/*
 * SiteImobi — Visual Refresh V1.1 (16.0.36)
 * Camada visual global dos painéis App/Master e autenticação.
 * Carregada por último para neutralizar o CSS legado sem criar estilos por tela.
 * !important é usado apenas onde o legado anterior também o utiliza.
 */

/* =========================================================
   Base dos painéis
   ========================================================= */
body.msi-surface-app,
body.msi-surface-master,
body.msi-auth-page{
  background:var(--msi-color-page);
  color:var(--msi-color-text);
  font-family:var(--msi-font-family);
}

body.msi-surface-app a,
body.msi-surface-master a,
body.msi-auth-page a{
  transition:background-color var(--msi-transition),border-color var(--msi-transition),color var(--msi-transition),box-shadow var(--msi-transition),transform var(--msi-transition);
}

/* Cards mais retos e profissionais */
body.msi-surface-app .card,
body.msi-surface-app .page-card,
body.msi-surface-app .msi-card,
body.msi-surface-master .card,
body.msi-surface-master .page-card,
body.msi-surface-master .master-card-v13,
body.msi-surface-master .master-metric-card,
body.msi-surface-master .master-welcome-card,
body.msi-surface-master .msi-card{
  border-radius:var(--msi-radius-lg)!important;
  border-color:var(--msi-color-border)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}

body.msi-surface-app .card:hover,
body.msi-surface-master .master-metric-card:hover{
  box-shadow:0 6px 18px rgba(15,23,42,.07)!important;
}

/* Botões sem degradê e com cantos discretos */
body.msi-surface-app .btn,
body.msi-surface-app .btn-outline,
body.msi-surface-app .msi-btn,
body.msi-surface-master .btn,
body.msi-surface-master .btn-outline,
body.msi-surface-master .msi-btn,
body.msi-surface-master .master-primary-btn,
body.msi-auth-page .btn,
body.msi-auth-page .msi-btn{
  border-radius:var(--msi-radius-md)!important;
  box-shadow:none!important;
  font-weight:700!important;
}

body.msi-surface-app .btn,
body.msi-surface-app .msi-btn:not(.msi-btn--secondary):not(.msi-btn--danger):not(.msi-btn--success):not(.msi-btn--ghost),
body.msi-surface-master .btn,
body.msi-surface-master .master-primary-btn,
body.msi-auth-page .btn{
  background:var(--msi-color-primary)!important;
  border-color:var(--msi-color-primary)!important;
  color:#fff!important;
}

body.msi-surface-app .btn:hover,
body.msi-surface-master .btn:hover,
body.msi-surface-master .master-primary-btn:hover,
body.msi-auth-page .btn:hover{
  background:var(--msi-color-primary-hover)!important;
  border-color:var(--msi-color-primary-hover)!important;
  color:#fff!important;
}

body.msi-surface-app .btn-outline,
body.msi-surface-master .btn-outline{
  background:#fff!important;
  border:1px solid var(--msi-color-border-strong)!important;
  color:var(--msi-color-text)!important;
}
body.msi-surface-app .btn-outline:hover,
body.msi-surface-master .btn-outline:hover{
  border-color:var(--msi-color-primary)!important;
  color:var(--msi-color-primary)!important;
  background:var(--msi-color-primary-soft)!important;
}

/* =========================================================
   APP — cabeçalho e navegação
   ========================================================= */
body.msi-surface-app .top-main{
  min-height:64px!important;
  height:64px!important;
  padding:0 22px!important;
  gap:20px!important;
  background:var(--msi-color-primary)!important;
  background-image:none!important;
  border-bottom:1px solid rgba(255,255,255,.14)!important;
  box-shadow:none!important;
}

body.msi-surface-app .brand-siteimobi-top{
  min-width:190px!important;
  max-width:205px!important;
}
body.msi-surface-app .brand-siteimobi-top img{
  display:block;
  max-width:170px!important;
  max-height:34px!important;
  object-fit:contain;
}

body.msi-surface-app .top-nav{
  gap:2px!important;
}
body.msi-surface-app .top-link,
body.msi-surface-app .top-main nav>a{
  height:38px!important;
  min-height:38px!important;
  padding:0 10px!important;
  border-radius:4px!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:600!important;
  background:transparent!important;
}
body.msi-surface-app .top-link:hover,
body.msi-surface-app .top-link.active,
body.msi-surface-app .top-main nav>a:hover,
body.msi-surface-app .top-main nav>a.active{
  background:rgba(255,255,255,.13)!important;
  color:#fff!important;
}
body.msi-surface-app .top-link i,
body.msi-surface-app .top-main nav>a i{
  color:#fff!important;
}

body.msi-surface-app .dropdown-panel{
  top:54px!important;
  padding:6px!important;
  min-width:250px!important;
  border:1px solid var(--msi-color-border)!important;
  border-radius:6px!important;
  box-shadow:0 16px 38px rgba(15,23,42,.15)!important;
}
body.msi-surface-app .dropdown-panel a{
  min-height:38px!important;
  padding:8px 10px!important;
  border-radius:4px!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.msi-surface-app .dropdown-panel a:hover{
  background:var(--msi-color-primary-soft)!important;
  color:var(--msi-color-primary-hover)!important;
}

body.msi-surface-app .top-user{
  gap:10px!important;
}
body.msi-surface-app .bell{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:4px;
  font-size:17px!important;
}
body.msi-surface-app .bell b{
  right:-5px!important;
  top:-5px!important;
  min-width:16px!important;
  height:16px!important;
  border:2px solid var(--msi-color-primary);
  font-size:9px!important;
}
body.msi-surface-app .user-mini{
  font-weight:600!important;
}
body.msi-surface-app .user-mini>span:first-child{
  font-size:13px;
  line-height:1.2;
}
body.msi-surface-app .user-mini>span:first-child small{
  opacity:.82;
  font-size:10px;
  font-weight:500;
}
body.msi-surface-app .user-mini .avatar-round{
  width:36px!important;
  height:36px!important;
  border-radius:4px!important;
  border:1px solid rgba(255,255,255,.28);
  overflow:hidden;
}
body.msi-surface-app .user-mini .avatar-round img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Barra secundária mais discreta */
body.msi-surface-app .quick-bar{
  height:48px!important;
  min-height:48px!important;
  padding:0 22px!important;
  gap:8px!important;
  border-bottom:1px solid var(--msi-color-border)!important;
  box-shadow:none!important;
  background:#fff!important;
}
body.msi-surface-app .quick-bar>a{
  min-height:32px;
  padding:0 9px;
  border-radius:4px;
  color:#475569!important;
  font-size:12px!important;
  font-weight:600!important;
}
body.msi-surface-app .quick-bar>a:hover{
  background:#F1F5F9;
  color:var(--msi-color-primary)!important;
}
body.msi-surface-app .quick-bar>a i{
  color:var(--msi-color-primary)!important;
}
body.msi-surface-app .plan-pill{
  font-size:12px!important;
  color:#475569!important;
  font-weight:600!important;
}
body.msi-surface-app .plan-pill>i{color:var(--msi-color-primary)!important;}
body.msi-surface-app .plan-pill .btn-outline{
  min-height:32px!important;
  height:32px!important;
  padding:0 10px!important;
}

body.msi-surface-app .panel-body{
  display:block!important;
  padding:22px!important;
  background:var(--msi-color-page)!important;
}
body.msi-surface-app main.content{
  width:min(100%,1480px)!important;
  max-width:1480px!important;
  margin:0 auto!important;
  min-width:0!important;
}

body.msi-surface-app .footer-credit{
  width:calc(100% + 44px)!important;
  max-width:none!important;
  height:75px!important;
  min-height:75px!important;
  margin:22px -22px -22px!important;
  padding:0 22px!important;
  border:0!important;
  background:#1677F2!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  font-size:12px!important;
  line-height:1.25!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.msi-surface-app .footer-credit span{
  color:#fff!important;
  margin:0!important;
}

/* =========================================================
   APP — dashboard
   ========================================================= */
body.msi-surface-app .home-hero-clean{
  grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr)!important;
  gap:14px!important;
  margin-bottom:14px!important;
}
body.msi-surface-app .welcome-clean,
body.msi-surface-app .plan-card-pro{
  border-radius:6px!important;
  border:1px solid var(--msi-color-border)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
body.msi-surface-app .welcome-clean{
  min-height:170px!important;
  padding:22px 24px!important;
  border-left:4px solid var(--msi-color-primary)!important;
}
body.msi-surface-app .welcome-clean .eyebrow,
body.msi-surface-app .v146-eyebrow,
body.msi-surface-app .v1482-eyebrow{
  color:var(--msi-color-primary)!important;
  font-size:11px!important;
  letter-spacing:.09em!important;
  font-weight:700!important;
}
body.msi-surface-app .welcome-clean h1{
  margin:6px 0!important;
  font-size:27px!important;
  font-weight:700!important;
  letter-spacing:-.03em!important;
}
body.msi-surface-app .welcome-clean p{
  max-width:720px;
  margin:0 0 14px!important;
  font-size:14px!important;
  font-weight:500!important;
}

body.msi-surface-app .plan-card-pro{
  padding:18px!important;
}
body.msi-surface-app .plan-icon{
  width:38px!important;
  height:38px!important;
  border-radius:4px!important;
  background:var(--msi-color-primary-soft)!important;
  color:var(--msi-color-primary)!important;
}
body.msi-surface-app .plan-card-pro .plan-head h2{
  font-size:18px!important;
}
body.msi-surface-app .plan-grid-v14>div{
  border-radius:4px!important;
  background:#F8FAFC!important;
  border:1px solid #E9EEF4!important;
}
body.msi-surface-app .plan-action{
  border-radius:4px!important;
}

/* Cards horizontais de módulos: menos ruído visual */
body.msi-surface-app [class*="dashboard-card"],
body.msi-surface-app .v148-dashboard-finance,
body.msi-surface-app .v147-dashboard-alert,
body.msi-surface-app .v1482-subscription-card{
  border-left:3px solid var(--msi-color-primary)!important;
  background:#fff!important;
}
body.msi-surface-app [class*="dashboard-card"] h2,
body.msi-surface-app .v148-dashboard-finance strong{
  font-size:17px!important;
}

body.msi-surface-app .home-kpis{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:14px!important;
}
body.msi-surface-app .home-kpis>div{
  min-height:118px;
  padding:14px!important;
  border-radius:6px!important;
  text-align:left!important;
  display:grid;
  grid-template-columns:36px 1fr;
  grid-template-areas:"icon value" "icon label" "icon hint";
  column-gap:10px;
  align-content:center;
  border-color:var(--msi-color-border)!important;
}
body.msi-surface-app .home-kpis>div>i{
  grid-area:icon;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  align-self:start;
  border-radius:4px;
  background:var(--msi-color-primary-soft);
  color:var(--msi-color-primary)!important;
  font-size:16px!important;
}
body.msi-surface-app .home-kpis>div>strong{
  grid-area:value;
  margin:0!important;
  font-size:22px!important;
  line-height:1!important;
}
body.msi-surface-app .home-kpis>div>span{
  grid-area:label;
  font-size:13px;
  font-weight:700!important;
}
body.msi-surface-app .home-kpis>div>small{
  grid-area:hint;
  font-size:11px;
  font-weight:500!important;
}

body.msi-surface-app .home-grid-2{
  gap:14px!important;
  margin-bottom:14px!important;
}
body.msi-surface-app .quick-home-actions{
  gap:8px!important;
}
body.msi-surface-app .quick-home-actions a,
body.msi-surface-app .quick-home-actions a:first-child{
  min-height:40px;
  padding:0 12px!important;
  display:inline-flex;
  align-items:center;
  border:1px solid var(--msi-color-border-strong)!important;
  border-radius:4px!important;
  background:#fff!important;
  color:var(--msi-color-text)!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.msi-surface-app .quick-home-actions a:hover,
body.msi-surface-app .quick-home-actions a:first-child:hover{
  background:var(--msi-color-primary-soft)!important;
  border-color:#B8D4FA!important;
  color:var(--msi-color-primary-hover)!important;
}
body.msi-surface-app .quick-home-actions a i,
body.msi-surface-app .quick-home-actions a:first-child i{
  color:var(--msi-color-primary)!important;
}

body.msi-surface-app .v146-usage-grid{
  gap:10px!important;
}
body.msi-surface-app .v146-usage-item{
  border-radius:4px!important;
  box-shadow:none!important;
}
body.msi-surface-app .v146-usage-top i{
  border-radius:4px!important;
}
body.msi-surface-app .v146-plan-note,
body.msi-surface-app .v1482-warning{
  border-radius:4px!important;
}

/* =========================================================
   Conteúdo: formulário, tabelas, tabs e cabeçalhos
   ========================================================= */
body.msi-surface-app .msi-page-header,
body.msi-surface-master .msi-page-header{
  padding:18px!important;
  border-radius:6px!important;
  box-shadow:none!important;
}
body.msi-surface-app .msi-page-header h1,
body.msi-surface-master .msi-page-header h1,
body.msi-surface-app .page-head h1,
body.msi-surface-master .page-head h1{
  font-size:24px!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}

body.msi-surface-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.msi-surface-app select,
body.msi-surface-app textarea,
body.msi-surface-master input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.msi-surface-master select,
body.msi-surface-master textarea,
body.msi-auth-page input,
body.msi-auth-page select,
body.msi-auth-page textarea{
  border-radius:4px!important;
  border-color:var(--msi-color-border-strong)!important;
  box-shadow:none!important;
}
body.msi-surface-app input:focus,
body.msi-surface-app select:focus,
body.msi-surface-app textarea:focus,
body.msi-surface-master input:focus,
body.msi-surface-master select:focus,
body.msi-surface-master textarea:focus,
body.msi-auth-page input:focus,
body.msi-auth-page select:focus,
body.msi-auth-page textarea:focus{
  border-color:var(--msi-color-primary)!important;
  box-shadow:var(--msi-focus-ring)!important;
}
body.msi-surface-app .floating label,
body.msi-surface-app .form-group label,
body.msi-surface-app .field label,
body.msi-surface-master .floating label,
body.msi-surface-master .form-group label,
body.msi-surface-master .field label{
  color:#334155!important;
  font-weight:600!important;
}

body.msi-surface-app .table-wrap,
body.msi-surface-app .table-responsive,
body.msi-surface-app .msi-table-wrap,
body.msi-surface-master .table-wrap,
body.msi-surface-master .table-responsive,
body.msi-surface-master .msi-table-wrap{
  border-radius:6px!important;
  box-shadow:none!important;
}
body.msi-surface-app table th,
body.msi-surface-master table th,
body.msi-surface-app .msi-table th,
body.msi-surface-master .msi-table th{
  background:#F5F7FA!important;
  color:#475569!important;
  font-size:11px!important;
  letter-spacing:.04em!important;
  font-weight:700!important;
}
body.msi-surface-app table tbody tr:hover,
body.msi-surface-master table tbody tr:hover{
  background:#F8FAFC!important;
}
body.msi-surface-app .badge,
body.msi-surface-master .badge,
body.msi-surface-app .msi-badge,
body.msi-surface-master .msi-badge{
  border-radius:4px!important;
  font-weight:700!important;
}
body.msi-surface-app .msi-action-trigger,
body.msi-surface-master .msi-action-trigger{
  border-radius:4px!important;
}
body.msi-surface-app .msi-action-panel,
body.msi-surface-master .msi-action-panel{
  border-radius:6px!important;
}

/* =========================================================
   MASTER — shell profissional
   ========================================================= */
body.master-v13.msi-surface-master{
  background:var(--msi-color-page)!important;
}
body.msi-surface-master .master-shell-v13{
  grid-template-columns:248px minmax(0,1fr)!important;
}
body.msi-surface-master .master-sidebar-v13{
  padding:16px 12px!important;
  gap:8px!important;
  background:var(--msi-color-primary-strong)!important;
  border-right:0!important;
}
body.msi-surface-master .master-brand-v13{
  height:54px!important;
  margin:0 2px 8px!important;
  padding:0 12px!important;
  border-radius:4px!important;
  background:var(--msi-color-primary)!important;
}
body.msi-surface-master .master-brand-v13 img{
  width:166px!important;
}
body.msi-surface-master .master-section-title{
  color:#AFC5DE!important;
  padding:10px 10px 4px!important;
  font-size:10px!important;
  letter-spacing:.12em!important;
}
body.msi-surface-master .master-menu-v13{
  gap:2px!important;
}
body.msi-surface-master .master-menu-v13 a{
  height:40px!important;
  padding:0 10px!important;
  border-radius:4px!important;
  color:#D9E6F3!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.msi-surface-master .master-menu-v13 a i{
  width:20px!important;
  color:#9FC8F6!important;
}
body.msi-surface-master .master-menu-v13 a:hover{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}
body.msi-surface-master .master-menu-v13 a.active{
  background:var(--msi-color-primary)!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #79B6FF;
}
body.msi-surface-master .master-menu-v13 a:hover i,
body.msi-surface-master .master-menu-v13 a.active i{
  color:#fff!important;
}
body.msi-surface-master .master-version-v13{
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:4px!important;
  background:rgba(255,255,255,.06)!important;
  color:#fff!important;
}
body.msi-surface-master .master-version-v13 small{color:#AFC5DE!important;}
body.msi-surface-master .master-version-v13 strong{font-size:17px!important;}
body.msi-surface-master .master-logout-v13{
  height:40px!important;
  border-radius:4px!important;
  color:#D9E6F3!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.msi-surface-master .master-logout-v13:hover{
  background:rgba(255,255,255,.08);
  color:#fff!important;
}

body.msi-surface-master .master-topbar-v13{
  min-height:66px!important;
  padding:0 20px!important;
  border-bottom:1px solid var(--msi-color-border)!important;
  box-shadow:none!important;
}
body.msi-surface-master .master-mobile-toggle-v13{
  width:38px!important;
  height:38px!important;
  border-radius:4px!important;
}
body.msi-surface-master .master-title-v13 strong{
  font-size:18px!important;
  font-weight:700!important;
}
body.msi-surface-master .master-title-v13 span{
  margin-top:2px!important;
  font-size:12px!important;
  font-weight:500!important;
}
body.msi-surface-master .master-actions-v13 a{
  height:36px!important;
  padding:0 10px!important;
  border-radius:4px!important;
  font-size:12px!important;
  font-weight:600!important;
}
body.msi-surface-master .master-user-v13{
  min-width:122px!important;
  padding:7px 10px!important;
  border-radius:4px!important;
  background:var(--msi-color-primary-soft)!important;
}
body.msi-surface-master .master-user-v13 span{font-size:11px!important;}
body.msi-surface-master .master-user-v13 b{font-size:12px!important;}
body.msi-surface-master .master-content-v13{
  padding:20px!important;
}

body.msi-surface-master .master-welcome-card{
  padding:20px!important;
  margin-bottom:12px!important;
  border-left:4px solid var(--msi-color-primary)!important;
}
body.msi-surface-master .master-welcome-card span{
  font-size:10px!important;
  letter-spacing:.10em!important;
  font-weight:700!important;
}
body.msi-surface-master .master-welcome-card h1{
  margin:5px 0!important;
  font-size:26px!important;
  font-weight:700!important;
}
body.msi-surface-master .master-welcome-card p{
  font-size:13px!important;
  font-weight:500!important;
}
body.msi-surface-master .master-primary-btn{
  height:40px!important;
  padding:0 13px!important;
  font-size:13px!important;
}
body.msi-surface-master .master-metrics-v13{
  gap:10px!important;
  margin-bottom:12px!important;
}
body.msi-surface-master .master-metric-card{
  padding:14px!important;
  gap:11px!important;
  border-radius:6px!important;
}
body.msi-surface-master .master-metric-card:hover{
  transform:none!important;
  border-color:#C3D5EA!important;
}
body.msi-surface-master .master-metric-card i{
  width:40px!important;
  height:40px!important;
  border-radius:4px!important;
  font-size:16px!important;
}
body.msi-surface-master .master-metric-card strong{
  font-size:23px!important;
  font-weight:700!important;
}
body.msi-surface-master .master-metric-card span{
  margin-top:3px!important;
  font-size:12px!important;
  font-weight:600!important;
}
body.msi-surface-master .master-grid-v13{gap:12px!important;}
body.msi-surface-master .master-card-v13{padding:16px!important;border-radius:6px!important;}
body.msi-surface-master .master-card-head h2{font-size:16px!important;}
body.msi-surface-master .master-list-item-v13{
  padding:10px!important;
  border-radius:4px!important;
}
body.msi-surface-master .master-list-item-v13 em{border-radius:4px!important;}
body.msi-surface-master .si-panel-footer-v13{
  min-height:54px!important;
  padding:10px 20px!important;
  background:var(--msi-color-primary-strong)!important;
}
body.msi-surface-master .si-footer-social-v13 a{
  border-radius:4px!important;
}

/* =========================================================
   Autenticação — cliente, cadastro e master
   ========================================================= */
body.msi-auth-page{
  min-height:100vh;
  margin:0;
  display:grid;
  place-items:center;
  padding:28px 18px;
  background:var(--msi-color-page);
}
body.msi-auth-page .msi-auth-shell{
  width:min(100%,460px);
}
body.msi-auth-page .msi-auth-shell--wide{
  width:min(100%,620px);
}
body.msi-auth-page .msi-auth-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
}
body.msi-auth-page .msi-auth-brand img{
  width:178px;
  max-height:46px;
  object-fit:contain;
}
body.msi-auth-page .msi-auth-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:26px!important;
  border:1px solid var(--msi-color-border)!important;
  border-top:4px solid var(--msi-color-primary)!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:0 18px 45px rgba(15,23,42,.08)!important;
}
body.msi-auth-page .msi-auth-card h1{
  margin:0 0 5px!important;
  font-size:25px!important;
  font-weight:700!important;
  letter-spacing:-.03em!important;
}
body.msi-auth-page .msi-auth-card>.muted,
body.msi-auth-page .msi-auth-intro{
  margin:0 0 20px!important;
  color:var(--msi-color-text-muted)!important;
  font-size:13px!important;
  line-height:1.5!important;
}
body.msi-auth-page .floating{
  margin-bottom:12px!important;
}
body.msi-auth-page .floating input,
body.msi-auth-page .floating select{
  min-height:46px!important;
  background:#fff!important;
}
body.msi-auth-page .floating label{
  color:#475569!important;
  font-weight:600!important;
}
body.msi-auth-page .msi-auth-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
}
body.msi-auth-page .msi-auth-actions .btn{
  min-height:44px!important;
  flex:1 1 auto;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
}
body.msi-auth-page .msi-auth-actions .btn.secondary{
  background:#fff!important;
  border:1px solid var(--msi-color-border-strong)!important;
  color:var(--msi-color-text)!important;
}
body.msi-auth-page .msi-auth-actions .btn.secondary:hover{
  background:var(--msi-color-primary-soft)!important;
  color:var(--msi-color-primary)!important;
  border-color:#B8D4FA!important;
}
body.msi-auth-page .notice,
body.msi-auth-page .msi-auth-alert{
  margin:0 0 16px!important;
  padding:11px 12px!important;
  border-radius:4px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
body.msi-auth-page .msi-auth-alert--error{
  border:1px solid #FECACA;
  background:#FEF2F2;
  color:#991B1B;
}
body.msi-auth-page .msi-auth-meta{
  margin-top:14px;
  color:var(--msi-color-text-muted);
  text-align:center;
  font-size:11px;
}

/* =========================================================
   Responsividade
   ========================================================= */
@media(max-width:1240px){
  body.msi-surface-app .top-main{padding-inline:14px!important;gap:10px!important;}
  body.msi-surface-app .brand-siteimobi-top{min-width:158px!important;max-width:165px!important;}
  body.msi-surface-app .brand-siteimobi-top img{max-width:150px!important;}
  body.msi-surface-app .top-link,body.msi-surface-app .top-main nav>a{padding-inline:8px!important;font-size:12px!important;}
  body.msi-surface-app .user-mini>span:first-child{display:none;}
}

@media(max-width:1024px){
  body.msi-surface-app .top-main{
    min-height:62px!important;
    height:62px!important;
  }
  body.msi-surface-app .mobile-menu-btn{
    width:38px!important;
    height:38px!important;
    border-radius:4px!important;
    background:rgba(255,255,255,.12)!important;
  }
  body.msi-surface-app .top-nav{
    width:292px!important;
    padding:72px 10px 16px!important;
    background:#fff!important;
  }
  body.msi-surface-app .top-nav::before{
    content:"Navegação"!important;
    top:18px!important;
    left:14px!important;
    font-size:16px!important;
  }
  body.msi-surface-app .top-nav>a,
  body.msi-surface-app .top-nav .top-link,
  body.msi-surface-app .top-main nav>a{
    width:100%!important;
    min-height:40px!important;
    height:auto!important;
    margin:2px 0!important;
    padding:9px 10px!important;
    border-radius:4px!important;
    background:#fff!important;
    color:#1E293B!important;
    font-size:13px!important;
  }
  body.msi-surface-app .top-nav>a i,
  body.msi-surface-app .top-nav .top-link i,
  body.msi-surface-app .top-main nav>a i{color:var(--msi-color-primary)!important;}
  body.msi-surface-app .top-link.active,
  body.msi-surface-app .top-link:hover,
  body.msi-surface-app .top-dropdown.mobile-open>.top-link{
    background:var(--msi-color-primary-soft)!important;
    color:#1E293B!important;
  }
  body.msi-surface-app .dropdown-panel{
    border-radius:4px!important;
    background:#F8FAFC!important;
  }
  body.msi-surface-app .quick-bar{padding-inline:12px!important;}
  body.msi-surface-app .panel-body{padding:14px!important;}
  body.msi-surface-app .home-hero-clean{grid-template-columns:1fr!important;}
  body.msi-surface-app .home-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}

  body.msi-surface-master .master-shell-v13{grid-template-columns:1fr!important;}
  body.msi-surface-master .master-sidebar-v13{
    width:248px!important;
    left:-270px!important;
  }
  body.master-menu-open.msi-surface-master .master-sidebar-v13{left:0!important;}
}

@media(max-width:720px){
  body.msi-surface-app .top-main{padding-inline:10px!important;}
  body.msi-surface-app .brand-siteimobi-top{min-width:0!important;max-width:145px!important;}
  body.msi-surface-app .brand-siteimobi-top img{max-width:138px!important;}
  body.msi-surface-app .quick-bar{height:44px!important;min-height:44px!important;}
  body.msi-surface-app .plan-pill{margin-left:6px!important;}
  body.msi-surface-app .panel-body{padding:10px!important;}
  body.msi-surface-app .welcome-clean{padding:18px!important;min-height:auto!important;}
  body.msi-surface-app .welcome-clean h1{font-size:23px!important;}
  body.msi-surface-app .home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.msi-surface-app .home-kpis>div{min-height:104px;}
  body.msi-surface-app .home-grid-2{grid-template-columns:1fr!important;}
  body.msi-surface-app .v146-usage-grid{grid-template-columns:1fr 1fr!important;}
  body.msi-surface-app .footer-credit{
    width:calc(100% + 20px)!important;
    height:75px!important;
    min-height:75px!important;
    margin:10px -10px -10px!important;
    padding:7px 10px!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:3px!important;
    text-align:center!important;
    font-size:10px!important;
  }
  body.msi-surface-app .footer-credit span{display:block!important;margin:0!important;}

  body.msi-surface-master .master-content-v13{padding:12px!important;}
  body.msi-surface-master .master-topbar-v13{padding-inline:12px!important;}
  body.msi-surface-master .master-title-v13 span{display:none!important;}
  body.msi-surface-master .master-user-v13{min-width:auto!important;}
  body.msi-surface-master .master-user-v13 span{display:none!important;}
  body.msi-surface-master .master-welcome-card{padding:16px!important;}
  body.msi-surface-master .master-welcome-card h1{font-size:22px!important;}
  body.msi-surface-master .master-metrics-v13{grid-template-columns:1fr 1fr!important;}

  body.msi-auth-page{padding:18px 10px;}
  body.msi-auth-page .msi-auth-card{padding:20px!important;}
}

@media(max-width:480px){
  body.msi-surface-app .home-kpis{grid-template-columns:1fr!important;}
  body.msi-surface-app .home-kpis>div{min-height:88px;}
  body.msi-surface-app .v146-usage-grid{grid-template-columns:1fr!important;}
  body.msi-surface-app .welcome-actions{display:grid!important;grid-template-columns:1fr!important;}
  body.msi-surface-app .welcome-actions .btn,
  body.msi-surface-app .welcome-actions .btn-outline{width:100%!important;justify-content:center!important;}
  body.msi-surface-master .master-metrics-v13{grid-template-columns:1fr!important;}
  body.msi-auth-page .msi-auth-actions{flex-direction:column;align-items:stretch;}
  body.msi-auth-page .msi-auth-actions .btn{width:100%;}
}

/* =========================================================
   Meu Site Imobi 16.0.43 — Menu suspenso refinado
   Escopo: somente dropdowns da barra superior do painel.
   ========================================================= */
body.msi-surface-app .dropdown-panel a{
  font-weight:500!important;
  letter-spacing:0!important;
  line-height:1.25!important;
}

@media(min-width:901px){
  body.msi-surface-app .top-dropdown{
    position:relative!important;
    align-self:stretch!important;
    display:flex!important;
    align-items:center!important;
  }

  /* Ponte invisível entre o botão e o painel para o hover não se perder. */
  body.msi-surface-app .top-dropdown::after{
    content:""!important;
    position:absolute!important;
    left:-5px!important;
    right:-5px!important;
    top:calc(100% - 9px)!important;
    height:20px!important;
    z-index:99997!important;
    pointer-events:auto!important;
  }

  body.msi-surface-app .top-dropdown .dropdown-panel{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:1px!important;
    top:calc(100% - 2px)!important;
    left:0!important;
    margin-top:0!important;
    min-width:258px!important;
    max-width:300px!important;
    width:max-content!important;
    padding:5px!important;
    background:#fff!important;
    border:1px solid #DCE4EE!important;
    border-radius:5px!important;
    box-shadow:0 6px 18px rgba(15,23,42,.09)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-2px)!important;
    transition:opacity .10s ease,transform .10s ease,visibility .10s ease!important;
    z-index:99999!important;
    max-height:calc(100vh - 175px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }

  /* Módulos também fica sempre em uma única coluna. */
  body.msi-surface-app .top-dropdown .dropdown-panel.dropdown-panel-wide{
    grid-template-columns:minmax(0,1fr)!important;
    min-width:278px!important;
    max-width:300px!important;
  }

  body.msi-surface-app .top-dropdown:hover>.dropdown-panel,
  body.msi-surface-app .top-dropdown.menu-open>.dropdown-panel,
  body.msi-surface-app .top-dropdown:focus-within>.dropdown-panel{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(0)!important;
  }

  body.msi-surface-app .dropdown-panel a{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:34px!important;
    padding:7px 9px!important;
    margin:0!important;
    border-radius:3px!important;
    color:#26364A!important;
    background:transparent!important;
    font-size:13px!important;
    font-weight:500!important;
    white-space:nowrap!important;
  }

  body.msi-surface-app .dropdown-panel a i{
    width:18px!important;
    min-width:18px!important;
    text-align:center!important;
    font-size:12px!important;
    color:var(--msi-color-primary)!important;
  }

  body.msi-surface-app .dropdown-panel a:hover,
  body.msi-surface-app .dropdown-panel a:focus-visible{
    background:#F2F6FB!important;
    color:#0F5FC7!important;
    outline:0!important;
  }
}
