:root{
  --sad-bg:#f4f7fb;
  --sad-card:#ffffff;
  --sad-text:#101828;
  --sad-muted:#667085;
  --sad-border:#dfe5ef;
  --sad-primary:#08aeea;
  --sad-primary-dark:#057aa4;
  --sad-accent:#222D3B;
  --sad-soft:#eef8fd;
  --sad-success:#039855;
  --sad-danger:#b42318;
  --sad-warning:#f79009;
  --sad-shadow:0 20px 50px rgba(15,23,42,.10);
}
*{box-sizing:border-box}

/* Isolamento visual: remove a barra do WordPress nas páginas da plataforma. */
html{margin-top:0!important}
body.sad-app-body #wpadminbar{display:none!important}
body.sad-app-body.admin-bar{padding-top:0!important;margin-top:0!important}
body.sad-app-body{margin:0!important;background:radial-gradient(circle at 12% 10%,rgba(8,174,234,.12),transparent 28%),linear-gradient(180deg,#f8fbff 0%,var(--sad-bg) 100%)!important;color:var(--sad-text);font-family:Inter,Arial,Helvetica,sans-serif!important;min-height:100vh}
.sad-app-shell{min-height:100vh;padding:26px 18px 56px;box-sizing:border-box}
.sad-front-wrap{max-width:1220px;margin:0 auto;padding:0;color:var(--sad-text)}
.sad-logo,.sad-login-logo,.sad-brand-logo,.sad-card-logo{display:block;max-width:100%;height:auto;object-fit:contain}.sad-login-logo{width:190px;max-height:72px}.sad-brand-logo{width:145px;max-height:52px}.sad-card-logo{width:160px;margin-bottom:16px}
.sad-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px;background:rgba(255,255,255,.94);border:1px solid var(--sad-border);border-radius:24px;padding:14px 16px;box-shadow:0 14px 34px rgba(15,23,42,.07);backdrop-filter:blur(10px)}
.sad-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--sad-text);font-size:17px;min-width:210px}.sad-brand-name{font-weight:900;color:var(--sad-accent)}.sad-front-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sad-front-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:13px;text-decoration:none;color:#344054;border:1px solid transparent;font-weight:800;font-size:14px;transition:.18s ease}.sad-front-nav a.active,.sad-front-nav a:hover{background:var(--sad-primary);color:#fff;box-shadow:0 12px 26px rgba(8,174,234,.20)}.sad-front-nav a.sad-logout{background:#fff4f3;color:var(--sad-danger);border-color:#ffd6d2}.sad-front-nav a.sad-logout:hover{background:var(--sad-danger);color:#fff}
.sad-front-card{background:var(--sad-card);border:1px solid var(--sad-border);border-radius:24px;padding:28px;margin-bottom:22px;box-shadow:var(--sad-shadow)}
.sad-front-card h2{margin:0 0 14px;font-size:22px;line-height:1.2;color:var(--sad-accent)}.sad-front-card p{font-size:15px;line-height:1.58}.sad-front-muted,.sad-front-card small{color:var(--sad-muted)}.sad-eyebrow{display:inline-block;color:var(--sad-primary-dark);font-weight:900;letter-spacing:.09em;text-transform:uppercase;font-size:12px;margin-bottom:8px}
.sad-dashboard-hero{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 12px;background:linear-gradient(135deg,var(--sad-accent) 0%,#34445a 52%,#057aa4 100%);border-radius:14px;padding:10px 14px;margin-bottom:10px;color:#fff;box-shadow:var(--sad-shadow);overflow:hidden;position:relative;min-height:0;box-sizing:border-box}.sad-dashboard-hero:after{content:"";position:absolute;right:-30px;top:-30px;width:90px;height:90px;border-radius:999px;background:rgba(255,255,255,.1);pointer-events:none}.sad-dashboard-hero h1{font-size:17px;line-height:1.1;margin:0 0 2px;color:#fff;font-weight:800}.sad-dashboard-hero p{font-size:12px;max-width:min(680px,100%);margin:0;color:rgba(255,255,255,.84);line-height:1.35}.sad-dashboard-hero .sad-eyebrow{color:#9ee8ff;font-size:9px;letter-spacing:.1em;margin:0 0 1px;line-height:1.2;display:block}.sad-hero-actions{display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}.sad-hero-actions .sad-front-secondary{background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)}
.sad-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.sad-metric-card{background:#fff;border:1px solid var(--sad-border);border-radius:22px;padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.06)}.sad-metric-card span{display:block;color:var(--sad-muted);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.sad-metric-card strong{display:block;color:var(--sad-accent);font-size:24px;line-height:1.15;margin:8px 0 5px}.sad-metric-card small{color:var(--sad-muted)}
.sad-front-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.sad-front-grid-main{align-items:stretch}.sad-front-btn,.login-submit input[type=submit]{display:inline-flex;align-items:center;justify-content:center;background:var(--sad-primary);color:#fff!important;border:0;border-radius:14px;padding:13px 18px;text-decoration:none;cursor:pointer;font-weight:900;box-shadow:0 12px 24px rgba(8,174,234,.22);transition:.18s ease}.sad-front-btn:hover,.login-submit input[type=submit]:hover{background:var(--sad-primary-dark);color:#fff!important;transform:translateY(-1px)}.sad-front-secondary{background:var(--sad-soft)!important;color:var(--sad-primary-dark)!important;box-shadow:none}.sad-front-secondary:hover{background:#dff3fc!important;color:var(--sad-primary-dark)!important}.sad-login-actions{display:flex;gap:10px;flex-wrap:wrap}
.sad-front-form label{display:block;margin:12px 0 6px;font-weight:850;color:#344054}.sad-front-form input[type=text],.sad-front-form input[type=email],.sad-front-form input[type=date],.sad-front-form input[type=file],.sad-front-form select{width:100%;max-width:640px;border:1px solid #cfd6e4;border-radius:14px;padding:13px 14px;background:#fff;font-size:15px;box-sizing:border-box}.sad-front-form input:focus,.sad-front-form select:focus{outline:3px solid rgba(8,174,234,.16);border-color:var(--sad-primary)}.sad-front-form input[type=checkbox]{margin-right:8px}.sad-front-table-wrap{overflow:auto;border:1px solid var(--sad-border);border-radius:18px}.sad-front-table{width:100%;border-collapse:collapse;background:#fff}.sad-front-table th,.sad-front-table td{border-bottom:1px solid #e5e7eb;text-align:left;padding:15px;vertical-align:top}.sad-front-table tr:last-child td{border-bottom:0}.sad-front-table th{background:#f8fafc;color:#475467;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.sad-small-link{display:inline-block;padding:8px 11px;border:1px solid var(--sad-primary);border-radius:11px;text-decoration:none;margin:2px;color:var(--sad-primary-dark);font-weight:800}.sad-small-link:hover{background:var(--sad-soft)}.sad-small-link.danger{border-color:#fda29b;color:var(--sad-danger)}.sad-small-link.danger:hover{background:#fff4f3}.sad-feature-public-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.sad-feature-public-item{display:flex;gap:12px;align-items:flex-start;padding:15px;border:1px solid #e5e7eb;border-radius:18px;background:#f9fafb}.sad-feature-public-item span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:999px;background:#ecfdf3;color:var(--sad-success);font-weight:900}.sad-feature-public-item strong{display:block;color:var(--sad-accent)}.sad-feature-public-item small{display:block;margin-top:3px}.sad-front-notice{background:#ecfdf3;border-left:4px solid #12b76a;padding:13px 15px;margin-bottom:16px;border-radius:12px;font-weight:800}.sad-section-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.sad-section-title h2{margin-bottom:4px}.sad-section-title p{margin:0;color:var(--sad-muted)}
.sad-action-list{display:grid;gap:12px}.sad-action-list a{display:block;text-decoration:none;border:1px solid var(--sad-border);border-radius:16px;padding:16px;background:#f9fafb;color:var(--sad-text);transition:.18s ease}.sad-action-list a:hover{border-color:var(--sad-primary);background:#f3fbff;transform:translateY(-1px)}.sad-action-list strong{display:block;margin-bottom:4px}.sad-action-list span{display:block;color:var(--sad-muted);font-size:14px;line-height:1.45}
.sad-login-screen{min-height:calc(100vh - 52px);display:grid;grid-template-columns:minmax(320px,520px) minmax(360px,500px);gap:34px;align-items:center;justify-content:center;padding:36px 18px}.sad-login-panel{background:linear-gradient(145deg,var(--sad-accent),#34445a);color:#fff;border-radius:30px;padding:42px;min-height:510px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--sad-shadow);position:relative;overflow:hidden}.sad-login-panel:before{content:"";position:absolute;right:-90px;top:-90px;width:280px;height:280px;border-radius:999px;background:rgba(8,174,234,.32)}.sad-login-panel:after{content:"";position:absolute;left:-80px;bottom:-80px;width:220px;height:220px;border-radius:999px;background:rgba(255,255,255,.08)}.sad-login-panel>*{position:relative;z-index:1}.sad-login-brand-block{background:rgba(255,255,255,.96);display:inline-flex;width:max-content;max-width:250px;border-radius:18px;padding:14px 16px;box-shadow:0 16px 38px rgba(0,0,0,.16)}.sad-login-copy h1{font-size:44px;line-height:1.02;margin:8px 0 14px;color:#fff}.sad-login-copy p{color:rgba(255,255,255,.84);font-size:17px;line-height:1.55;margin:0}.sad-login-note{display:grid;gap:6px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.08);padding:18px}.sad-login-note strong{font-size:15px}.sad-login-note span{color:rgba(255,255,255,.78);font-size:14px;line-height:1.45}.sad-login-card{background:#fff;border:1px solid var(--sad-border);border-radius:30px;padding:38px;box-shadow:var(--sad-shadow);width:100%;max-width:500px}.sad-login-card h1,.sad-login-card h2{font-size:32px;margin:0 0 10px;color:var(--sad-accent)}.sad-login-card label{display:block;margin-top:14px;margin-bottom:7px;font-weight:900;color:#344054}.sad-login-card input[type=text],.sad-login-card input[type=password]{width:100%;border:1px solid #cfd6e4;border-radius:14px;padding:14px 15px;box-sizing:border-box;font-size:16px}.sad-login-card input[type=text]:focus,.sad-login-card input[type=password]:focus{outline:3px solid rgba(8,174,234,.16);border-color:var(--sad-primary)}.sad-login-card .login-remember label{display:flex;gap:8px;align-items:center;font-weight:700}.sad-login-card .login-submit{margin-top:18px}.sad-login-card .login-submit input[type=submit]{width:100%;min-height:50px}.sad-login-help{margin-top:16px;text-align:center}.sad-login-help a{color:var(--sad-primary-dark);font-weight:800;text-decoration:none}.sad-already-card{max-width:540px;margin:0 auto}.sad-restricted-card{max-width:720px;margin:80px auto}.sad-client-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.sad-client-choice{display:block;background:#fff;border:1px solid var(--sad-border);border-radius:18px;padding:18px;text-decoration:none;color:var(--sad-text);box-shadow:0 10px 24px rgba(15,23,42,.05)}.sad-client-choice:hover{border-color:var(--sad-primary);transform:translateY(-1px)}.sad-client-choice strong{display:block;font-size:17px;margin-bottom:10px}.sad-client-choice span{display:block;color:var(--sad-muted);font-size:13px;margin-top:4px}
@media(max-width:1040px){.sad-login-screen{grid-template-columns:1fr;max-width:720px;margin:0 auto}.sad-login-panel{min-height:auto}.sad-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sad-feature-public-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.sad-topbar{align-items:flex-start;flex-direction:column}.sad-front-grid,.sad-feature-public-list,.sad-client-choice-grid{grid-template-columns:1fr}.sad-dashboard-hero{flex-direction:row;align-items:center;padding:10px 12px!important;gap:8px 10px!important}.sad-dashboard-hero h1{font-size:16px!important}.sad-login-copy h1{font-size:34px}.sad-login-card,.sad-login-panel{padding:28px}.sad-app-shell{padding:18px 12px 42px}.sad-metric-grid{grid-template-columns:1fr}.sad-brand-name{display:none}}
.sad-metric-link{display:block;text-decoration:none;color:inherit;transition:.18s ease}.sad-metric-link:hover{border-color:var(--sad-primary);transform:translateY(-2px);box-shadow:0 18px 40px rgba(8,174,234,.14)}.sad-inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.sad-inline-form label{margin:0 0 6px}.sad-inline-form input[type=date]{max-width:220px}.sad-birthday-hero{background:linear-gradient(135deg,#222D3B 0%,#057aa4 100%)}.sad-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;margin-bottom:4px}.sad-badge-ok{background:#ecfdf3;color:#027a48}.sad-badge-error{background:#fff1f0;color:#b42318}.sad-badge-waiting{background:#fff7e6;color:#b54708}.sad-badge-muted{background:#f2f4f7;color:#667085}.sad-birthday-table td small{display:block;margin-top:4px;color:var(--sad-muted)}


/* v0.7.9 — Ajuste de hierarquia tipográfica e responsividade
   Objetivo: reduzir títulos desproporcionais, padronizar textos e melhorar uso em tablet/celular. */
body.sad-app-body{
  font-size:15px!important;
  line-height:1.5!important;
  -webkit-text-size-adjust:100%;
}
.sad-app-shell{padding:22px 16px 44px}
.sad-front-wrap{max-width:1180px;width:100%}
.sad-front-card{padding:22px;border-radius:20px;margin-bottom:18px}
.sad-front-card h1,
.sad-front-card h2,
.sad-section-title h2{
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:800!important;
  margin:0 0 10px!important;
  color:var(--sad-accent)!important;
}
.sad-front-card p,
.sad-section-title p,
.sad-action-list span,
.sad-front-muted{
  font-size:14px!important;
  line-height:1.55!important;
}
.sad-eyebrow{
  font-size:11px!important;
  letter-spacing:.08em!important;
  font-weight:800!important;
}
.sad-dashboard-hero{
  padding:10px 14px!important;
  border-radius:14px!important;
  margin-bottom:10px!important;
  min-height:0!important;
}
.sad-dashboard-hero h1{
  font-size:17px!important;
  line-height:1.1!important;
  font-weight:800!important;
  margin:0 0 2px!important;
}
.sad-dashboard-hero p{
  font-size:12px!important;
  line-height:1.35!important;
}
.sad-hero-actions .sad-front-btn,
.sad-front-btn,
.login-submit input[type=submit]{
  min-height:42px!important;
  padding:10px 14px!important;
  border-radius:12px!important;
  font-size:14px!important;
  font-weight:800!important;
}
.sad-metric-grid{gap:14px;margin-bottom:18px}
.sad-metric-card{
  padding:18px!important;
  border-radius:18px!important;
}
.sad-metric-card span{
  font-size:11px!important;
  letter-spacing:.07em!important;
  font-weight:800!important;
}
.sad-metric-card strong{
  font-size:19px!important;
  line-height:1.25!important;
  font-weight:800!important;
  margin:7px 0 4px!important;
  overflow-wrap:anywhere;
}
.sad-metric-card small{
  font-size:13px!important;
  line-height:1.45!important;
}
.sad-front-grid{gap:18px}
.sad-action-list{gap:10px}
.sad-action-list a{
  padding:14px!important;
  border-radius:14px!important;
}
.sad-action-list strong{
  font-size:16px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.sad-feature-public-list{gap:10px}
.sad-feature-public-item{padding:12px!important;border-radius:14px!important}
.sad-feature-public-item strong{font-size:14px!important;font-weight:800!important;line-height:1.35!important}
.sad-feature-public-item small{font-size:12px!important}.sad-feature-public-item span{width:24px!important;height:24px!important;flex-basis:24px!important;font-size:13px!important}
.sad-topbar{
  border-radius:18px!important;
  padding:12px!important;
  margin-bottom:18px!important;
}
.sad-brand-name{font-size:14px!important;font-weight:800!important}.sad-brand-logo{width:120px!important;max-height:44px!important}.sad-front-nav a{min-height:36px!important;padding:8px 11px!important;font-size:13px!important;border-radius:11px!important}
.sad-front-form label{
  font-size:15px!important;
  font-weight:800!important;
  margin:10px 0 5px!important;
}
.sad-front-form input[type=text],
.sad-front-form input[type=email],
.sad-front-form input[type=date],
.sad-front-form input[type=file],
.sad-front-form select{
  min-height:42px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  font-size:14px!important;
}
.sad-front-table{font-size:14px!important}
.sad-front-table th{
  font-size:11px!important;
  letter-spacing:.06em!important;
  padding:12px!important;
  white-space:nowrap;
}
.sad-front-table td{
  font-size:14px!important;
  padding:12px!important;
  line-height:1.45!important;
}
.sad-front-table td strong{
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.sad-front-table td small{
  font-size:13px!important;
  line-height:1.4!important;
}
.sad-small-link{
  padding:7px 10px!important;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:800!important;
}
.sad-inline-form{align-items:flex-end!important}.sad-inline-form input[type=date]{max-width:200px!important}
.sad-badge{font-size:11px!important;padding:5px 9px!important}
.sad-login-screen{
  min-height:calc(100vh - 36px)!important;
  grid-template-columns:minmax(300px,470px) minmax(320px,440px)!important;
  gap:24px!important;
  padding:28px 16px!important;
}
.sad-login-panel{padding:30px!important;border-radius:24px!important;min-height:450px!important}.sad-login-copy h1{font-size:30px!important;line-height:1.12!important}.sad-login-copy p{font-size:15px!important}.sad-login-card{padding:30px!important;border-radius:24px!important;max-width:440px!important}.sad-login-card h1,.sad-login-card h2{font-size:24px!important;line-height:1.22!important}.sad-login-card label{font-size:14px!important}.sad-login-card input[type=text],.sad-login-card input[type=password]{min-height:42px!important;font-size:14px!important;padding:10px 12px!important}.sad-login-logo{width:160px!important;max-height:58px!important}

@media(max-width:1040px){
  .sad-login-screen{grid-template-columns:1fr!important;max-width:680px!important;margin:0 auto!important}
  .sad-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sad-feature-public-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  body.sad-app-body{font-size:14px!important}
  .sad-app-shell{padding:14px 10px 34px!important}
  .sad-front-wrap{max-width:100%!important}
  .sad-dashboard-hero{padding:10px 12px!important;border-radius:14px!important;gap:8px 10px!important;min-height:0!important}
  .sad-dashboard-hero h1{font-size:24px!important}
  .sad-dashboard-hero p{font-size:13px!important}
  .sad-hero-actions{width:100%!important}.sad-hero-actions .sad-front-btn{flex:1 1 160px!important}
  .sad-metric-grid,.sad-front-grid,.sad-feature-public-list,.sad-client-choice-grid{grid-template-columns:1fr!important;gap:12px!important}
  .sad-front-card{padding:16px!important;border-radius:18px!important}
  .sad-front-card h1,.sad-front-card h2,.sad-section-title h2{font-size:18px!important}
  .sad-metric-card{padding:15px!important}.sad-metric-card strong{font-size:18px!important}.sad-topbar{position:sticky;top:0;z-index:20;align-items:stretch!important;gap:10px!important}.sad-brand{width:100%!important;justify-content:space-between!important}.sad-brand-name{display:block!important;font-size:13px!important}.sad-front-nav{width:100%!important;display:flex!important;overflow-x:auto!important;white-space:nowrap!important;gap:7px!important;padding-bottom:2px!important;-webkit-overflow-scrolling:touch}.sad-front-nav a{flex:0 0 auto!important;font-size:12px!important;padding:7px 9px!important;min-height:34px!important}.sad-front-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.sad-front-table{min-width:620px!important}.sad-birthday-table{min-width:820px!important}.sad-login-screen{padding:18px 10px!important}.sad-login-panel{display:none!important}.sad-login-card{padding:22px!important;border-radius:20px!important}.sad-login-card h1,.sad-login-card h2{font-size:21px!important}.sad-inline-form{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}.sad-inline-form input[type=date]{max-width:100%!important}.sad-inline-form .sad-front-btn{width:100%!important}
}
@media(max-width:520px){
  .sad-dashboard-hero h1{font-size:22px!important}.sad-front-card h1,.sad-front-card h2,.sad-section-title h2{font-size:17px!important}.sad-metric-card strong{font-size:17px!important}.sad-front-btn,.login-submit input[type=submit]{width:100%!important}.sad-login-card{box-shadow:0 14px 32px rgba(15,23,42,.08)!important}.sad-login-card .login-submit input[type=submit]{width:100%!important}.sad-front-form input[type=text],.sad-front-form input[type=email],.sad-front-form input[type=date],.sad-front-form input[type=file],.sad-front-form select{max-width:100%!important}.sad-section-title{flex-direction:column!important;gap:8px!important}.sad-front-table th,.sad-front-table td{padding:10px!important}.sad-small-link{display:inline-flex!important;margin:3px 2px!important}
}

/* v0.8 - Central de Atendimento */
.sad-chat-log{display:flex;flex-direction:column;gap:10px;max-height:520px;overflow:auto;padding:10px;background:#f8fafc;border:1px solid #dbe5ef;border-radius:14px;margin-bottom:14px}
.sad-chat-item{padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #dbe5ef;max-width:88%}
.sad-chat-item strong{display:block;font-size:13px;color:#24364b;margin-bottom:4px}
.sad-chat-item p{margin:0 0 4px;font-size:14px;line-height:1.45;color:#0f172a}.sad-chat-item small{font-size:11px;color:#64748b}.sad-chat-operator{align-self:flex-end;background:#e7f8ff;border-color:#bae6fd}.sad-chat-visitor{align-self:flex-start;background:#fff}.sad-chat-internal_note{align-self:center;background:#fff7ed;border-color:#fed7aa}.sad-chat-system{align-self:center;background:#f1f5f9}.sad-front-form textarea{width:100%;min-height:90px;padding:10px 12px;border:1px solid #cfd8e6;border-radius:12px;font-size:14px;line-height:1.45}.sad-front-form select{width:100%}.sad-front-table td{vertical-align:top}@media(max-width:820px){.sad-chat-item{max-width:100%}.sad-chat-log{max-height:420px}}

/* v0.8.1 — catálogo de recursos, bloqueios e ajustes de permissões */
.sad-feature-catalog { margin-top: 24px; }
.sad-feature-group-title { font-size: 1.05rem; line-height: 1.25; margin: 20px 0 10px; color: var(--sad-accent, #222D3B); }
.sad-feature-catalog-list { margin-bottom: 8px; }
.sad-feature-public-item.is-locked { opacity: .72; cursor: pointer; background: rgba(255,255,255,.72); border-style: dashed; }
.sad-feature-public-item.is-locked:hover { opacity: 1; transform: translateY(-1px); }
.sad-feature-public-item.is-locked span { background: #f3f4f6; color: #556070; }
.sad-feature-public-item.is-enabled span { background: #e9fff3; color: #13a05f; }
.sad-upgrade-box { display:flex; gap:10px; align-items:flex-start; margin-top:18px; padding:14px 16px; border:1px solid rgba(8,174,234,.18); background:rgba(8,174,234,.06); border-radius:16px; color:#344154; }
.sad-upgrade-box strong { color:#172234; }
.sad-upgrade-box span { font-size:.95rem; line-height:1.45; }
@media (max-width: 760px) { .sad-upgrade-box { display:block; } .sad-feature-group-title { font-size:1rem; } }
.sad-event-log { margin-top: 18px; border-top: 1px solid rgba(31,45,61,.10); padding-top: 14px; }
.sad-event-log h3 { font-size: 1rem; margin: 0 0 10px; }
.sad-event-item { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid rgba(31,45,61,.10); border-radius:12px; background:#fff; margin-bottom:8px; }
.sad-event-item small { color:#60708a; white-space:nowrap; }
@media (max-width: 760px){ .sad-event-item{display:block}.sad-event-item small{display:block;margin-top:4px;white-space:normal} }

/* v0.8.2 - Conversa em dois lados e histórico completo */
.sad-chat-log-conversation{gap:12px;padding:14px;background:#f8fbff}
.sad-message-row{display:flex;width:100%}
.sad-message-row .sad-message-bubble{max-width:min(78%,620px);border:1px solid #dbe5ef;border-radius:14px;padding:10px 12px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.sad-message-body p{margin:0 0 8px}
.sad-message-body p:last-child{margin-bottom:0}
.sad-chat-media{margin:6px 0 4px}
.sad-chat-media-image{max-width:min(100%,320px);border-radius:10px;display:block}
.sad-chat-media-audio,.sad-chat-media-video{width:min(100%,320px);max-width:100%}
.sad-message-visitor{justify-content:flex-start}.sad-message-visitor .sad-message-bubble{background:#fff;border-color:#dbe5ef}
.sad-message-operator{justify-content:flex-end}.sad-message-operator .sad-message-bubble{background:#e7f8ff;border-color:#b7e6f8}
.sad-message-bot,.sad-message-system{justify-content:center}.sad-message-bot .sad-message-bubble,.sad-message-system .sad-message-bubble{background:#f1f5f9;border-color:#dbe5ef;max-width:min(70%,560px)}
.sad-message-internal_note{justify-content:center}.sad-message-internal_note .sad-message-bubble{background:#fff7ed;border-color:#fed7aa;max-width:min(76%,600px)}
.sad-message-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px}.sad-message-role{font-size:10px;line-height:1;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#036b91;background:#e0f6ff;padding:5px 7px;border-radius:999px}.sad-message-visitor .sad-message-role{color:#475569;background:#edf2f7}.sad-message-internal_note .sad-message-role{color:#9a3412;background:#ffedd5}.sad-message-meta strong{font-size:13px;color:#172033}.sad-message-bubble p{margin:0 0 7px;font-size:14px;line-height:1.45;color:#0f172a}.sad-message-foot{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#64748b}.sad-message-form{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:14px}.sad-event-item span{display:block;font-size:12px;color:#64748b;margin-top:2px}
@media(max-width:820px){.sad-message-row .sad-message-bubble{max-width:100%}.sad-message-bot .sad-message-bubble,.sad-message-system .sad-message-bubble,.sad-message-internal_note .sad-message-bubble{max-width:100%}.sad-message-foot{flex-direction:column;gap:2px}}

/* v0.8.3 - Inbox unificado estilo chat, responsivo */
/* v0.9.4 — Inbox mais parecido com chat/WhatsApp */
.sad-front-wrap.sad-inbox-page{max-width:1600px!important;width:100%;display:flex;flex-direction:column;min-height:calc(100vh - 60px)}
.sad-front-wrap.sad-inbox-page .sad-topbar,.sad-front-wrap.sad-inbox-page .sad-inbox-hero{flex:0 0 auto}
.sad-inbox-hero{margin-bottom:12px!important;padding:24px!important;border-radius:24px!important}
.sad-inbox-hero h1{font-size:24px!important}.sad-inbox-hero p{max-width:720px}
.sad-inbox-layout{display:grid;grid-template-columns:330px minmax(460px,1fr) 320px;gap:12px;align-items:stretch;flex:1 1 auto;min-height:0;height:calc(100vh - 250px)}
.sad-inbox-list-panel,.sad-inbox-chat-panel,.sad-inbox-details-panel{background:#fff;border:1px solid #dbe5ef;border-radius:22px;box-shadow:0 10px 28px rgba(15,23,42,.05);overflow:hidden;min-height:0}
.sad-inbox-list-panel{display:flex;flex-direction:column}
.sad-inbox-list-head{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;border-bottom:1px solid #e6eef8;background:linear-gradient(180deg,#fbfdff,#f6fbff)}
.sad-inbox-list-head strong{display:block;font-size:16px;color:#172033}.sad-inbox-list-head span{display:block;font-size:12px;color:#64748b;margin-top:2px}
.sad-inbox-search{display:flex;gap:8px;padding:12px;border-bottom:1px solid #eef3f8}.sad-inbox-search input{min-width:0;flex:1;border:1px solid #d3deec;border-radius:12px;min-height:38px;padding:8px 10px;font-size:13px}.sad-inbox-search button{border:0;border-radius:12px;background:#08aeea;color:#fff;font-size:12px;font-weight:800;padding:8px 10px;cursor:pointer}
.sad-inbox-tabs,.sad-inbox-status-tabs{display:flex;gap:6px;overflow:auto;padding:10px 12px 0;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.sad-inbox-status-tabs{padding-top:7px;padding-bottom:10px;border-bottom:1px solid #eef3f8}.sad-inbox-tabs a,.sad-inbox-status-tabs a{flex:0 0 auto;text-decoration:none;border:1px solid #dbe5ef;background:#f8fafc;color:#172033;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}.sad-inbox-tabs a.is-active,.sad-inbox-status-tabs a.is-active{background:#e8f7ff;border-color:#bae6fd;color:#0377a8}.sad-inbox-tabs span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:4px;border-radius:999px;background:#fff;color:#075985;font-size:11px}
.sad-inbox-thread-list{overflow:auto;min-height:0;flex:1;scrollbar-width:thin}.sad-inbox-thread{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;text-decoration:none;color:#172033;padding:12px 14px;border-bottom:1px solid #edf2f7;background:#fff}.sad-inbox-thread:hover,.sad-inbox-thread.is-active{background:#eff8ff}.sad-inbox-thread.is-active{box-shadow:inset 4px 0 0 #08aeea}.sad-inbox-avatar{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#08aeea,#2d5b75);color:#fff;font-size:15px;font-weight:900;flex:0 0 auto}.sad-inbox-avatar-large{width:44px;height:44px;font-size:18px}.sad-inbox-thread-main{min-width:0}.sad-inbox-thread-main strong,.sad-inbox-thread-main em,.sad-inbox-thread-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sad-inbox-thread-main strong{font-size:14px;font-weight:800}.sad-inbox-thread-main em{font-size:12px;color:#46566d;font-style:normal;margin-top:2px}.sad-inbox-thread-main small{font-size:11px;color:#64748b;margin-top:3px}.sad-inbox-thread time{font-size:11px;color:#64748b;white-space:nowrap;align-self:start}.sad-inbox-empty{padding:18px;color:#64748b;font-size:14px}.sad-inbox-empty-center{display:flex;min-height:420px;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.sad-inbox-manual{border-top:1px solid #eef3f8;padding:12px;background:#fbfdff;max-height:40%;overflow:auto}.sad-inbox-manual summary{cursor:pointer;font-weight:800;color:#026990}.sad-inbox-manual .sad-front-form{margin-top:12px}.sad-inbox-manual .sad-front-form label{font-size:12px!important}.sad-inbox-manual .sad-front-form input,.sad-inbox-manual .sad-front-form select{min-height:36px!important}
.sad-inbox-chat-panel{display:flex;flex-direction:column;min-height:0;background:linear-gradient(180deg,#f8fcff 0%,#eff7fc 100%)}.sad-inbox-chat-header{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #e6eef8;background:linear-gradient(180deg,#ffffff,#f8fbff)}.sad-inbox-chat-header h2{margin:0;font-size:18px!important;line-height:1.2;color:#172033}.sad-inbox-chat-header p,.sad-inbox-chat-header-meta{margin:3px 0 0;color:#64748b;font-size:12px}.sad-inbox-chat-scroll{flex:1 1 auto;overflow:auto;padding:18px 18px 12px;background:linear-gradient(180deg,#fbfdff,#f2f8fc);scroll-behavior:smooth;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.sad-inbox-chat-scroll .sad-message-row{margin-bottom:10px}
.sad-inbox-composer{display:flex;flex-direction:column;gap:8px;padding:12px;border-top:1px solid #e6eef8;background:#fff;flex:0 0 auto}.sad-inbox-compose-tools{display:grid;grid-template-columns:170px minmax(0,1fr);gap:8px}.sad-inbox-compose-tools select,.sad-inbox-compose-tools input{border:1px solid #cfd8e6;border-radius:12px;padding:9px 10px;font-size:13px;min-height:40px;width:100%}.sad-inbox-compose-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.sad-inbox-compose-main textarea{border:1px solid #cfd8e6;border-radius:18px;padding:12px 14px;font-size:14px;min-height:52px;max-height:140px;resize:vertical;background:#fbfdff}.sad-inbox-compose-main .sad-front-btn{min-height:48px;padding:12px 16px!important;font-size:13px!important}.sad-inbox-compose-tip{display:block;font-size:11px;color:#64748b;padding-left:2px}
.sad-inbox-details-panel{padding:0;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin}.sad-inbox-contact-card{padding:16px;border-bottom:1px solid #e6eef8;background:#fbfdff}.sad-inbox-contact-card h3{margin:0;font-size:18px!important;line-height:1.2}.sad-inbox-contact-card span{display:inline-flex;margin-top:6px;font-size:11px;font-weight:800;background:#e8f7ff;color:#0377a8;border-radius:999px;padding:5px 9px}.sad-inbox-detail-block{padding:15px 16px;border-bottom:1px solid #eef3f8}.sad-inbox-detail-block h4{margin:0 0 10px;font-size:13px!important;text-transform:uppercase;letter-spacing:.06em;color:#334155}.sad-inbox-detail-block p{margin:0 0 10px;font-size:13px;line-height:1.45;color:#46566d}.sad-inbox-detail-block p strong{color:#172033}.sad-inbox-update-form label{font-size:12px!important;margin-top:8px!important}.sad-inbox-update-form select{min-height:38px!important}.sad-inbox-update-form .sad-front-btn{margin-top:10px!important;padding:9px 14px!important;font-size:13px!important}.sad-inbox-event{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:10px;margin-bottom:8px}.sad-inbox-event strong{display:block;font-size:12px;color:#172033}.sad-inbox-event span{display:block;font-size:11px;color:#64748b;margin-top:2px}.sad-inbox-event small{display:block;font-size:11px;color:#64748b;margin-top:4px}
@media(max-width:1280px){.sad-inbox-layout{grid-template-columns:300px minmax(360px,1fr)}.sad-inbox-details-panel{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.sad-inbox-contact-card,.sad-inbox-detail-block{border-right:1px solid #eef3f8;border-bottom:0}}
@media(max-width:980px){.sad-front-wrap.sad-inbox-page{min-height:auto}.sad-inbox-layout{height:auto;grid-template-columns:1fr;min-height:0}.sad-inbox-list-panel,.sad-inbox-chat-panel,.sad-inbox-details-panel{min-height:auto}.sad-inbox-list-panel{max-height:420px}.sad-inbox-thread-list{max-height:285px}.sad-inbox-chat-scroll{max-height:58vh;min-height:280px;padding:12px}.sad-inbox-details-panel{display:block}.sad-inbox-contact-card,.sad-inbox-detail-block{border-right:0;border-bottom:1px solid #eef3f8}.sad-inbox-compose-tools{grid-template-columns:1fr}.sad-inbox-compose-main{grid-template-columns:1fr}.sad-inbox-compose-main .sad-front-btn{width:100%!important}}
@media(max-width:820px){.sad-inbox-page{padding-bottom:80px}.sad-inbox-hero{padding:20px!important}.sad-inbox-list-panel,.sad-inbox-chat-panel,.sad-inbox-details-panel{margin-bottom:12px;border-radius:18px}.sad-inbox-chat-header{padding:12px}.sad-inbox-chat-header h2{font-size:16px!important}.sad-inbox-tabs,.sad-inbox-status-tabs{padding-left:10px;padding-right:10px}.sad-inbox-search{display:grid;grid-template-columns:1fr auto}.sad-inbox-avatar{width:34px;height:34px}.sad-inbox-thread{grid-template-columns:38px minmax(0,1fr) auto;padding:10px}.sad-inbox-thread-main strong{font-size:13px}.sad-inbox-thread-main em,.sad-inbox-thread-main small{font-size:11px}}

/* v0.8.4 - Notificações sonoras e visuais de novas conversas */
.sad-notify-toggle{border:1px solid rgba(8,174,234,.28);background:#eef9ff;color:#036b91;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap;transition:.18s ease}
.sad-notify-toggle:hover{background:#dff4ff;transform:translateY(-1px)}
.sad-notify-toggle.is-active{background:#e9fff3;border-color:#a7f3d0;color:#047857}
.sad-notify-badge{align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 6px;margin-left:6px;border-radius:999px;background:#b91c1c;color:#fff;font-size:10px;font-weight:900;line-height:1;vertical-align:middle}
.sad-notify-toast-holder{position:fixed;right:18px;bottom:18px;z-index:99999;display:flex;flex-direction:column;gap:10px;max-width:min(360px,calc(100vw - 32px));pointer-events:none}
.sad-notify-toast{display:block;text-decoration:none;color:#172033;background:#fff;border:1px solid #dbe5ef;border-left:5px solid #08aeea;border-radius:16px;box-shadow:0 18px 44px rgba(15,23,42,.18);padding:13px 14px;opacity:0;transform:translateY(14px);transition:.22s ease;pointer-events:auto}
.sad-notify-toast.is-visible{opacity:1;transform:translateY(0)}
.sad-notify-toast strong{display:block;font-size:13px;color:#075985;margin-bottom:3px;text-transform:uppercase;letter-spacing:.04em}.sad-notify-toast span{display:block;font-size:13px;line-height:1.35;color:#334155}
@media(max-width:760px){.sad-notify-toggle{font-size:11px;padding:7px 9px}.sad-notify-toast-holder{right:10px;left:10px;bottom:12px;max-width:none}.sad-notify-toast{border-radius:14px}}

/* v0.9.5 — Mapa visual simples de automação/triagem */
.sad-flow-card{overflow:hidden}
.sad-flow-map{display:flex;align-items:center;gap:12px;overflow:auto;padding:14px 2px 8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.sad-flow-node{flex:0 0 210px;background:#fff;border:1px solid #dbe5ef;border-radius:18px;padding:14px;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.sad-flow-node strong{display:block;font-size:15px;color:#172033;margin-bottom:5px}.sad-flow-node span{display:block;font-size:12px;color:#526174;line-height:1.4}.sad-flow-node small{display:block;margin-top:7px;color:#64748b;font-size:11px;line-height:1.35}
.sad-flow-start{background:linear-gradient(135deg,#222D3B,#067ea8);border-color:transparent}.sad-flow-start strong,.sad-flow-start span{color:#fff}.sad-flow-arrow{flex:0 0 auto;font-size:24px;font-weight:900;color:#08aeea}.sad-flow-branches{display:flex;gap:10px;align-items:stretch}.sad-flow-dept{background:#f8fbff}.sad-flow-dept:hover{border-color:#08aeea;background:#eefaff}
@media(max-width:820px){.sad-flow-map{align-items:stretch}.sad-flow-node{flex-basis:190px}.sad-flow-arrow{align-self:center}}

/* v0.9.6 — Ajustes finos de chat, mobile e eventos sutis */
.sad-inbox-layout{grid-template-columns:310px minmax(420px,1fr) 300px;height:calc(100vh - 220px);min-height:560px}
.sad-inbox-hero{padding:18px 22px!important;margin-bottom:10px!important}.sad-inbox-hero h1{font-size:22px!important}.sad-inbox-hero p{font-size:14px!important;line-height:1.4!important}
.sad-inbox-tabs,.sad-inbox-status-tabs{flex-wrap:wrap;overflow:visible;padding:8px 10px 0}.sad-inbox-status-tabs{padding-bottom:8px}.sad-inbox-tabs a,.sad-inbox-status-tabs a{font-size:11px;padding:6px 9px}.sad-inbox-tabs span{height:18px;min-width:18px;font-size:10px}
.sad-inbox-search{padding:10px}.sad-inbox-search input{min-height:36px;font-size:12px}.sad-inbox-search button{font-size:11px;padding:7px 10px}
.sad-inbox-thread{padding:9px 12px;grid-template-columns:34px minmax(0,1fr) auto}.sad-inbox-avatar{width:31px;height:31px;font-size:13px}.sad-inbox-avatar-large{width:40px;height:40px;font-size:16px}.sad-inbox-thread-main strong{font-size:13px}.sad-inbox-thread-main em{font-size:11px}.sad-inbox-thread-main small{font-size:10px}.sad-inbox-thread time{font-size:10px}
.sad-inbox-manual{flex:0 0 auto;max-height:260px;overflow:auto;padding:9px 11px;background:#f8fbff}.sad-inbox-manual[open]{border-top:1px solid #dbe5ef}.sad-inbox-manual summary{font-size:13px;line-height:1.25;list-style-position:inside}.sad-inbox-manual .sad-front-form{display:block}.sad-inbox-manual .sad-front-form label{font-size:11px!important;margin-top:8px!important}.sad-inbox-manual .sad-front-form input,.sad-inbox-manual .sad-front-form select,.sad-inbox-manual .sad-front-form textarea{min-height:34px!important;font-size:12px!important;border-radius:12px!important;padding:8px 10px!important}
.sad-inbox-chat-header{padding:10px 14px}.sad-inbox-chat-header h2{font-size:16px!important}.sad-inbox-chat-header p{font-size:11px}.sad-inbox-chat-scroll{padding:14px 16px 10px}.sad-message-row .sad-message-bubble{max-width:min(74%,560px);padding:8px 10px;border-radius:12px;box-shadow:0 4px 12px rgba(15,23,42,.035)}.sad-message-meta{margin-bottom:3px}.sad-message-role{font-size:9px;padding:4px 6px}.sad-message-meta strong{font-size:12px}.sad-message-bubble p{font-size:13px;line-height:1.38;margin-bottom:5px}.sad-message-foot{font-size:10px}
.sad-chat-event-line{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin:7px 0;color:#64748b;font-size:11px;line-height:1.25;text-align:center}.sad-chat-event-line span{color:#94a3b8;font-size:10px}.sad-chat-event-line em{font-style:normal;background:rgba(226,232,240,.72);border:1px solid rgba(203,213,225,.6);border-radius:999px;padding:4px 8px;max-width:78%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sad-message-event{display:none!important}
.sad-inbox-composer{gap:6px;padding:9px 10px}.sad-inbox-compose-tools{grid-template-columns:150px minmax(0,1fr);gap:6px}.sad-inbox-compose-tools select,.sad-inbox-compose-tools input{min-height:34px;font-size:12px;padding:7px 9px;border-radius:12px}.sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 86px;gap:8px}.sad-inbox-compose-main textarea{min-height:44px;max-height:100px;border-radius:16px;padding:10px 12px;font-size:13px}.sad-inbox-compose-main .sad-front-btn{min-height:44px;padding:10px 12px!important;font-size:12px!important}.sad-inbox-compose-tip{font-size:10px}
.sad-inbox-contact-card{padding:12px 14px}.sad-inbox-contact-card h3{font-size:16px!important}.sad-inbox-detail-block{padding:12px 14px}.sad-inbox-detail-block h4{font-size:11px!important;margin-bottom:8px}.sad-inbox-detail-block p{font-size:12px;margin-bottom:8px}.sad-inbox-update-form label{font-size:11px!important}.sad-inbox-update-form select{min-height:34px!important;font-size:12px!important}.sad-inbox-event{padding:8px 9px;border-radius:10px;margin-bottom:6px}.sad-inbox-event strong,.sad-inbox-event span,.sad-inbox-event small{font-size:10px!important}
@media(max-width:1280px){.sad-inbox-layout{grid-template-columns:280px minmax(360px,1fr);height:auto;min-height:0}.sad-inbox-details-panel{display:block;max-height:360px}.sad-inbox-list-panel{max-height:620px}.sad-inbox-chat-panel{min-height:620px}}
@media(max-width:980px){.sad-front-wrap.sad-inbox-page{padding:10px}.sad-inbox-layout{display:flex;flex-direction:column;height:auto}.sad-inbox-list-panel{max-height:none}.sad-inbox-thread-list{max-height:250px}.sad-inbox-manual{max-height:220px}.sad-inbox-chat-panel{height:72vh;min-height:520px}.sad-inbox-chat-scroll{min-height:0;max-height:none}.sad-inbox-details-panel{max-height:none}.sad-inbox-compose-tools{grid-template-columns:1fr}.sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 76px}.sad-message-row .sad-message-bubble{max-width:86%}.sad-chat-event-line em{max-width:92%}}
@media(max-width:640px){.sad-inbox-hero{padding:16px!important}.sad-inbox-hero h1{font-size:19px!important}.sad-inbox-chat-panel{height:72vh;min-height:500px}.sad-inbox-chat-header{padding:9px 10px}.sad-inbox-avatar-large{width:34px;height:34px}.sad-inbox-chat-header h2{font-size:14px!important}.sad-inbox-compose-advanced:not([open]) .sad-inbox-compose-tools{display:none}.sad-inbox-compose-advanced[open] .sad-inbox-compose-tools{display:grid!important}.sad-inbox-compose-tip{display:none}.sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 70px}.sad-inbox-compose-main textarea{min-height:42px;font-size:12px}.sad-inbox-compose-main .sad-front-btn{min-height:42px;padding:8px!important}.sad-message-row .sad-message-bubble{max-width:91%;padding:8px}.sad-message-bubble p{font-size:12px}.sad-inbox-tabs a,.sad-inbox-status-tabs a{font-size:10px;padding:5px 7px}.sad-inbox-details-panel{font-size:12px}}

/* v0.9.8 — automações, relatórios e rastreamento */
.sad-code-preview{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:14px;font-size:12px;line-height:1.45;overflow:auto}
.sad-birthday-actions form{display:inline-block;margin:2px}.sad-birthday-actions button.sad-small-link{background:#eef8ff;border:1px solid #bae6fd;border-radius:999px;color:#0377a8;padding:6px 10px;font-weight:800;cursor:pointer}.sad-birthday-actions button.sad-small-link:hover{background:#dff3ff}
.sad-front-form h3{margin:18px 0 8px;font-size:16px;color:#172033}.sad-front-form textarea[maxlength]{font-family:inherit}
@media(max-width:820px){.sad-birthday-actions form{display:block}.sad-birthday-actions button.sad-small-link{width:100%;margin-bottom:4px}.sad-code-preview{font-size:11px}}

/* v0.9.9 — padronização visual, largura fixa e correções de overflow */
.sad-app-shell{max-width:1500px;margin:0 auto;padding:24px 18px 34px;box-sizing:border-box}
.sad-front-wrap,.sad-front-wrap.sad-dashboard-wrap,.sad-front-wrap.sad-page-standard{max-width:1320px!important;width:100%;margin:0 auto!important;box-sizing:border-box}
.sad-front-wrap.sad-inbox-page{max-width:1500px!important;width:100%;margin:0 auto!important;min-height:calc(100vh - 110px)}
.sad-topbar{width:100%;box-sizing:border-box;align-items:center!important;flex-wrap:wrap!important;gap:14px!important;padding:14px 18px!important}
.sad-brand{min-width:230px;flex:0 1 auto}.sad-brand-name{font-size:15px!important;line-height:1.25!important;white-space:normal!important;max-width:185px!important}.sad-front-nav{flex:1 1 620px;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.sad-front-nav a,.sad-notify-toggle,.sad-logout{font-size:13px!important;line-height:1!important;min-height:38px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.sad-notify-toggle{border:1px solid #bbf7d0;border-radius:999px;background:#f0fdf4;color:#078847;font-weight:800;padding:8px 12px;cursor:pointer}.sad-notify-toggle.is-active{background:#dcfce7}.sad-logout{border:1px solid #fecaca;border-radius:14px;background:#fff5f5;color:#b91c1c!important;text-decoration:none;padding:8px 12px;font-weight:800}
.sad-dashboard-hero{padding:10px 14px!important;border-radius:14px!important;min-height:0!important}.sad-dashboard-hero h1{font-size:17px!important;line-height:1.1!important}.sad-dashboard-hero p{font-size:12px!important;line-height:1.35!important}.sad-front-card{box-sizing:border-box}.sad-front-card h2{font-size:20px!important}.sad-front-card h3{font-size:16px!important}.sad-front-card-narrow{max-width:760px}.sad-front-grid{align-items:start}.sad-front-form input,.sad-front-form select,.sad-front-form textarea{box-sizing:border-box;max-width:100%;font-size:14px!important}.sad-compact-form textarea{min-height:72px}.sad-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:12px 0}.sad-check-grid label{margin:0!important;display:flex;gap:8px;align-items:center}.sad-accordion-card{padding:0!important;overflow:hidden}.sad-accordion-card>summary{cursor:pointer;list-style:none;padding:18px 22px;display:flex;justify-content:space-between;gap:14px;align-items:center;background:#fff}.sad-accordion-card>summary::-webkit-details-marker{display:none}.sad-accordion-card>summary strong{font-size:17px;color:#172033}.sad-accordion-card>summary span{font-size:12px;color:#64748b}.sad-accordion-card[open]>summary{border-bottom:1px solid #e6eef8}.sad-accordion-card>form,.sad-accordion-card>.sad-feature-catalog{margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:20px 22px!important}
.sad-app-footer{max-width:1320px;margin:22px auto 0;text-align:center;color:#64748b;font-size:12px}.sad-app-footer a{color:#057aa4;font-weight:800;text-decoration:none}.sad-app-footer a:hover{text-decoration:underline}
.sad-code-preview{white-space:pre-wrap;word-break:break-word;overflow:auto;max-width:100%;font-size:12px!important}

/* Inbox: manter tudo dentro da tela e impedir vazamento lateral */
.sad-inbox-layout{grid-template-columns:minmax(260px,310px) minmax(430px,1fr) minmax(250px,300px)!important;height:calc(100vh - 250px)!important;min-height:560px!important;overflow:hidden!important}
.sad-inbox-list-panel,.sad-inbox-chat-panel,.sad-inbox-details-panel{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}.sad-inbox-details-panel{overflow-y:auto!important;overflow-x:hidden!important;min-width:0!important}.sad-inbox-detail-block,.sad-inbox-contact-card{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important}.sad-inbox-event{overflow-wrap:anywhere!important;word-break:break-word!important}.sad-inbox-event span,.sad-inbox-event small{overflow-wrap:anywhere!important;word-break:break-word!important}.sad-inbox-update-form select{max-width:100%!important;width:100%!important}.sad-inbox-manual{max-height:210px!important;overflow-y:auto!important;overflow-x:hidden!important}.sad-inbox-manual[open]{padding-bottom:14px!important}.sad-inbox-manual summary{position:sticky;top:0;background:#fbfdff;z-index:2;padding:6px 0}.sad-inbox-tabs,.sad-inbox-status-tabs{flex-wrap:wrap!important;overflow:visible!important}.sad-inbox-chat-panel{min-width:0!important}.sad-inbox-chat-scroll{overflow-y:auto!important;overflow-x:hidden!important}.sad-chat-event-line{margin:5px 0!important}.sad-chat-event-line em{font-size:10px!important;max-width:88%!important}.sad-message-row .sad-message-bubble{max-width:min(76%,540px)!important;overflow-wrap:anywhere!important;word-break:break-word!important}.sad-message-bubble p{font-size:13px!important}.sad-message-meta strong{font-size:12px!important}.sad-message-foot{font-size:10px!important}.sad-inbox-composer{padding:10px!important}.sad-inbox-compose-tools{grid-template-columns:150px minmax(0,1fr)!important}.sad-inbox-compose-main textarea{min-height:46px!important;font-size:13px!important}.sad-inbox-compose-main .sad-front-btn{min-height:46px!important;padding:10px 14px!important}

@media(max-width:1280px){
  .sad-app-shell{max-width:100%;padding:18px 12px 30px}.sad-front-wrap,.sad-front-wrap.sad-dashboard-wrap,.sad-front-wrap.sad-page-standard,.sad-front-wrap.sad-inbox-page{max-width:100%!important}.sad-inbox-layout{grid-template-columns:minmax(250px,290px) minmax(360px,1fr)!important;height:auto!important;overflow:visible!important}.sad-inbox-details-panel{grid-column:1/-1!important;max-height:320px!important}.sad-inbox-chat-panel{height:70vh;min-height:560px}.sad-topbar{position:sticky;top:0;z-index:50}
}
@media(max-width:820px){
  .sad-app-shell{padding:10px 8px 26px}.sad-topbar{border-radius:18px!important}.sad-brand{width:100%;min-width:0}.sad-brand-name{max-width:none!important}.sad-front-nav{width:100%;justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important;white-space:nowrap!important;padding-bottom:4px}.sad-front-nav a,.sad-notify-toggle,.sad-logout{flex:0 0 auto!important;font-size:12px!important}.sad-dashboard-hero{padding:10px 12px!important;border-radius:14px!important;min-height:0!important}.sad-dashboard-hero h1{font-size:16px!important}.sad-dashboard-hero p{font-size:11px!important}.sad-check-grid{grid-template-columns:1fr}.sad-inbox-layout{display:flex!important;flex-direction:column!important;height:auto!important;overflow:visible!important}.sad-inbox-list-panel{max-height:340px!important}.sad-inbox-thread-list{max-height:170px!important}.sad-inbox-manual{max-height:42px!important;transition:max-height .2s ease}.sad-inbox-manual[open]{max-height:360px!important}.sad-inbox-chat-panel{height:68vh!important;min-height:500px!important}.sad-inbox-details-panel{max-height:380px!important}.sad-inbox-compose-tools{grid-template-columns:1fr!important}.sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 72px!important}.sad-inbox-compose-main .sad-front-btn{width:auto!important}.sad-message-row .sad-message-bubble{max-width:90%!important}.sad-front-card{padding:16px!important}.sad-accordion-card>summary{padding:14px 16px}.sad-accordion-card>form,.sad-accordion-card>.sad-feature-catalog{padding:16px!important}
}


/* v0.9.11 — unificação real de largura, inbox e responsividade */
.sad-app-shell{
  width:100%!important;
  max-width:1800px!important;
  margin:0 auto!important;
  padding:24px 30px 38px!important;
  box-sizing:border-box!important;
}
.sad-front-wrap,
.sad-front-wrap.sad-dashboard-wrap,
.sad-front-wrap.sad-page-standard,
.sad-front-wrap.sad-inbox-page{
  width:100%!important;
  max-width:1760px!important;
  margin:0 auto!important;
  box-sizing:border-box!important;
}
.sad-topbar,
.sad-dashboard-hero,
.sad-front-card,
.sad-inbox-list-panel,
.sad-inbox-chat-panel,
.sad-inbox-details-panel{
  box-sizing:border-box!important;
}
.sad-dashboard-hero{
  width:100%!important;
}
.sad-front-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important}
.sad-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
.sad-report-note{margin:18px 0 22px!important}
.sad-app-footer{width:100%!important;max-width:1760px!important;margin:24px auto 0!important}

/* Inbox estabilizado */
.sad-front-wrap.sad-inbox-page{min-height:calc(100vh - 92px)!important}
.sad-inbox-layout{
  display:grid!important;
  grid-template-columns:minmax(280px,360px) minmax(520px,1fr) minmax(280px,360px)!important;
  gap:14px!important;
  height:calc(100vh - 310px)!important;
  min-height:590px!important;
  overflow:hidden!important;
}
.sad-inbox-list-panel,.sad-inbox-chat-panel,.sad-inbox-details-panel{height:100%!important;min-height:0!important;max-width:100%!important;overflow:hidden!important}
.sad-inbox-list-panel{display:flex!important;flex-direction:column!important}
.sad-inbox-thread-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}
.sad-inbox-manual{flex:0 0 auto!important;max-height:46px!important;overflow:hidden!important;padding:10px 12px!important}
.sad-inbox-manual[open]{max-height:260px!important;overflow-y:auto!important}
.sad-inbox-manual summary{padding:0!important;position:relative!important;top:auto!important}
.sad-inbox-chat-panel{display:flex!important;flex-direction:column!important}
.sad-inbox-chat-header{flex:0 0 auto!important}
.sad-inbox-chat-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px!important}
.sad-inbox-composer{flex:0 0 auto!important;position:relative!important;z-index:3!important;background:#fff!important;border-top:1px solid #dbe5ef!important}
.sad-inbox-details-panel{display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:8px!important}
.sad-inbox-contact-card,.sad-inbox-detail-block{flex:0 0 auto!important;overflow-wrap:anywhere!important;word-break:normal!important}
.sad-inbox-update-form select,.sad-inbox-update-form input,.sad-inbox-update-form textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.sad-inbox-compose-tools{grid-template-columns:170px minmax(0,1fr)!important}
.sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 90px!important}
.sad-inbox-compose-main textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important;border:1px solid #cbd5e1!important;outline:none!important}
.sad-inbox-compose-main textarea:focus{border-color:#08aeea!important;box-shadow:0 0 0 3px rgba(8,174,234,.12)!important}
.sad-chat-event-line em{font-size:10px!important;padding:3px 8px!important;line-height:1.3!important;max-width:78%!important}
.sad-inbox-event{font-size:11px!important;line-height:1.35!important;max-width:100%!important;overflow-wrap:anywhere!important}
.sad-inbox-event span,.sad-inbox-event small{font-size:10px!important;overflow-wrap:anywhere!important}
.sad-message-row .sad-message-bubble{max-width:min(72%,560px)!important}.sad-message-bubble p{font-size:13px!important;line-height:1.35!important}
.sad-notify-toast-holder{position:fixed!important;right:18px!important;bottom:18px!important;z-index:999999!important;display:flex!important;flex-direction:column!important;gap:10px!important;max-width:min(380px,calc(100vw - 36px))!important}
.sad-notify-toast{display:block!important;text-decoration:none!important;background:#fff!important;border:1px solid #dbe5ef!important;border-left:4px solid #08aeea!important;border-radius:14px!important;box-shadow:0 14px 36px rgba(15,23,42,.16)!important;padding:12px 14px!important;transform:translateY(12px)!important;opacity:0!important;transition:.22s ease!important;color:#172033!important}
.sad-notify-toast.is-visible{transform:translateY(0)!important;opacity:1!important}.sad-notify-toast strong{display:block!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#066a91!important}.sad-notify-toast span{display:block!important;font-size:13px!important;margin-top:4px!important;color:#334155!important}

@media(max-width:1280px){
  .sad-app-shell{padding:20px 16px 34px!important}
  .sad-front-wrap,.sad-front-wrap.sad-dashboard-wrap,.sad-front-wrap.sad-page-standard,.sad-front-wrap.sad-inbox-page{max-width:100%!important}
  .sad-inbox-layout{grid-template-columns:minmax(260px,330px) minmax(440px,1fr)!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .sad-inbox-chat-panel{height:70vh!important;min-height:560px!important}
  .sad-inbox-details-panel{grid-column:1/-1!important;height:auto!important;max-height:360px!important;display:block!important;overflow-y:auto!important}
}
@media(max-width:900px){
  .sad-app-shell{padding:14px 10px 28px!important}
  .sad-front-grid,.sad-metric-grid{grid-template-columns:1fr!important}
  .sad-inbox-layout{display:flex!important;flex-direction:column!important;gap:12px!important;height:auto!important;overflow:visible!important}
  .sad-inbox-list-panel{height:auto!important;max-height:420px!important}
  .sad-inbox-chat-panel{height:72vh!important;min-height:520px!important}
  .sad-inbox-details-panel{height:auto!important;max-height:420px!important}
  .sad-inbox-tabs,.sad-inbox-status-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important}
  .sad-inbox-compose-tools{grid-template-columns:1fr!important}
  .sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 76px!important}
  .sad-message-row .sad-message-bubble{max-width:90%!important}
}
@media(max-width:640px){
  .sad-app-shell{padding:10px 8px 24px!important}
  .sad-dashboard-hero h1{font-size:22px!important}.sad-dashboard-hero p{font-size:13px!important}
  .sad-inbox-list-panel{max-height:360px!important}.sad-inbox-chat-panel{height:72vh!important;min-height:500px!important}.sad-inbox-details-panel{max-height:360px!important}
  .sad-inbox-compose-advanced:not([open]) .sad-inbox-compose-tools{display:none!important}
  .sad-inbox-compose-advanced[open] .sad-inbox-compose-tools{display:grid!important}
  .sad-inbox-compose-tip{display:none!important}.sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 68px!important}.sad-inbox-compose-main textarea{min-height:42px!important;font-size:12px!important}.sad-inbox-compose-main .sad-front-btn{min-height:42px!important;padding:8px!important}
}

/* v0.9.12 — recursos por plano, bônus e widget do site */
.sad-feature-public-item.is-bonus{background:#fff7ed!important;border-color:#fed7aa!important}
.sad-feature-public-item.is-bonus span{background:#ffedd5!important;color:#9a3412!important}
.sad-locked-card{border:1px solid #fed7aa!important;background:#fff7ed!important}
.sad-front-form input[readonly],.sad-front-form textarea[readonly]{background:#f8fafc;color:#334155;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px!important}
.sad-front-form textarea[readonly]{min-height:220px}
.sad-page-standard .sad-front-grid{align-items:start!important}
@media(max-width:900px){.sad-front-form textarea[readonly]{min-height:180px}.sad-page-standard .sad-front-grid{grid-template-columns:1fr!important}}

/* v0.9.13 — perfil visual, menus por plano e refinamentos de largura */
.sad-front-wrap,.sad-page-standard,.sad-dashboard-wrap,.sad-inbox-page{width:min(1780px,calc(100vw - 64px))!important;max-width:1780px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
.sad-topbar{width:100%!important;box-sizing:border-box!important;align-items:center!important;gap:18px!important}.sad-front-nav{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;justify-content:flex-end!important}.sad-brand{min-width:260px!important}.sad-brand-logo{max-height:52px!important}
.sad-attendance-profile-box{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:center;border:1px solid #dbe5ef;background:#f8fbff;border-radius:18px;padding:16px;margin:8px 0 18px}.sad-attendance-profile-preview{display:flex;align-items:center;gap:12px}.sad-attendance-profile-preview strong{display:block;font-size:17px;color:#172033}.sad-attendance-profile-preview span{display:block;font-size:12px;color:#07835d;margin-top:3px;font-weight:800}.sad-attendance-profile-fields{min-width:0}.sad-attendance-profile-avatar{width:68px;height:68px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 12px 24px rgba(15,23,42,.14);background:#e8f7ff;display:inline-flex;align-items:center;justify-content:center;color:#0b85ad;font-weight:900;font-size:22px;overflow:hidden}.sad-avatar-fallback{display:inline-flex!important;align-items:center!important;justify-content:center!important}.sad-operator-cell{display:flex;align-items:center;gap:10px}.sad-operator-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#e8f7ff;color:#0b85ad;font-weight:900;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 34px}.sad-message-avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#e8f7ff;color:#0b85ad;font-size:11px;font-weight:900;margin-right:7px;vertical-align:middle;overflow:hidden}.sad-message-meta{display:flex!important;align-items:center!important;gap:6px!important}.sad-inbox-details-panel,.sad-inbox-list-panel,.sad-inbox-chat-panel{box-sizing:border-box!important}.sad-inbox-details-panel *{max-width:100%;box-sizing:border-box}.sad-inbox-detail-block select,.sad-inbox-detail-block input,.sad-inbox-detail-block textarea{max-width:100%!important}.sad-inbox-layout{width:100%!important;box-sizing:border-box!important;grid-template-columns:minmax(280px,360px) minmax(520px,1fr) minmax(280px,360px)!important}.sad-inbox-composer{position:sticky!important;bottom:0!important;z-index:5!important}.sad-feature-public-item.is-locked{opacity:.75}.sad-feature-public-item.is-bonus{border-color:#facc15!important;background:#fffbeb!important}.sad-notify-toast{animation:sadPulseToast .8s ease 1}@keyframes sadPulseToast{0%{box-shadow:0 0 0 0 rgba(8,174,234,.35)}100%{box-shadow:0 14px 36px rgba(15,23,42,.16)}}
@media(max-width:1200px){.sad-front-wrap,.sad-page-standard,.sad-dashboard-wrap,.sad-inbox-page{width:min(100% - 28px,1780px)!important}.sad-inbox-layout{grid-template-columns:320px minmax(420px,1fr)!important}.sad-inbox-details-panel{grid-column:1 / -1!important}.sad-attendance-profile-box{grid-template-columns:1fr}.sad-brand{min-width:220px!important}}
@media(max-width:780px){.sad-front-wrap,.sad-page-standard,.sad-dashboard-wrap,.sad-inbox-page{width:calc(100vw - 18px)!important}.sad-topbar{padding:14px!important}.sad-brand{min-width:0!important;width:100%!important}.sad-front-nav{width:100%!important;justify-content:flex-start!important}.sad-inbox-layout{grid-template-columns:1fr!important}.sad-inbox-chat-panel{min-height:68vh!important}.sad-inbox-list-panel{max-height:none!important}.sad-inbox-thread-list{max-height:300px!important}.sad-attendance-profile-avatar{width:58px;height:58px}.sad-attendance-profile-preview strong{font-size:15px}.sad-inbox-compose-tools{grid-template-columns:1fr!important}}

/* v0.9.14 — ajustes do widget do site */
.sad-site-widget-form .sad-check-line{display:flex!important;align-items:center;gap:8px;margin:14px 0 6px!important;font-weight:850;color:#172033}
.sad-site-widget-form .sad-check-line input{width:auto!important;max-width:none!important;margin:0!important;flex:0 0 auto}
.sad-site-widget-form small.sad-front-muted{display:block;margin:5px 0 12px;line-height:1.45}
.sad-optional{display:inline-flex;align-items:center;margin-left:6px;padding:3px 8px;border-radius:999px;background:#eef6ff;color:#026990;font-size:11px;font-weight:850;vertical-align:middle}
.sad-install-card textarea[readonly]{width:100%!important;max-width:100%!important;min-height:250px!important;box-sizing:border-box;display:block}
.sad-install-card input[readonly]{width:100%!important;max-width:100%!important;box-sizing:border-box}
.sad-copy-widget-code{margin-top:10px!important}
.sad-tech-details{margin-top:14px;padding:13px 14px;border:1px solid #e6eef8;border-radius:16px;background:#f8fbff}
.sad-tech-details summary{cursor:pointer;font-weight:900;color:#172033}
.sad-tech-details input{margin-top:10px}
@media(max-width:760px){.sad-install-card textarea[readonly]{min-height:190px!important}.sad-site-widget-form .sad-check-line{align-items:flex-start}}


/* v0.9.15 - ajustes do widget e imagem de perfil */
.sad-image-ratio-help{margin-top:10px;padding:10px 12px;border-radius:14px;background:#ecfeff;border:1px solid #bae6fd;color:#334155;font-size:13px;line-height:1.45}
.sad-image-ratio-help strong{color:#075985}
.sad-attendance-profile-avatar img{object-fit:contain!important;padding:4px;box-sizing:border-box;background:#fff}
.sad-report-metrics{grid-template-columns:repeat(4,minmax(180px,1fr))!important}
@media(max-width:900px){.sad-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.sad-report-metrics{grid-template-columns:1fr!important}.sad-install-card textarea[readonly]{font-size:12px!important}}

/* v0.9.17 — ajustes de triagem e responsividade */
.sad-check-grid label{display:flex!important;align-items:center!important;gap:8px!important;line-height:1.25!important;min-width:0!important;word-break:normal!important;overflow-wrap:break-word!important}
.sad-check-grid input[type="checkbox"]{flex:0 0 auto!important;margin:0!important}
.sad-accordion-card .sad-front-form textarea[name="welcome_message"]{min-height:84px!important}
@media(max-width:780px){
  .sad-accordion-card .sad-front-form textarea[name="welcome_message"]{min-height:74px!important}
  .sad-check-grid{gap:8px!important}
}

/* v0.9.19 — Plano básico, recursos em acordeão e avatar sem corte */
.sad-feature-group-accordion{border:1px solid #dbe5ef;border-radius:16px;background:#fbfdff;margin:12px 0;overflow:hidden}
.sad-feature-group-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;padding:14px 16px;font-weight:900;color:var(--sad-accent,#222D3B);list-style:none}
.sad-feature-group-accordion>summary::-webkit-details-marker{display:none}
.sad-feature-group-accordion>summary span{font-size:12px;color:#64748b;font-weight:800;background:#eef8ff;border-radius:999px;padding:5px 9px;white-space:nowrap}
.sad-feature-group-accordion[open]>summary{border-bottom:1px solid #e6eef6;background:#f7fbff}
.sad-plan-note{border-left:4px solid #08aeea!important;background:#f8fbff!important}
.sad-inbox-basic-note{display:flex;gap:10px;align-items:center;justify-content:center;padding:10px 14px;border-top:1px solid #dbe5ef;background:#f8fbff;color:#46566d;font-size:13px}
.sad-inbox-basic-note strong{color:#026990;text-transform:uppercase;letter-spacing:.06em;font-size:11px}.sad-inbox-basic-note span{line-height:1.35}
.sad-attendance-profile-avatar,.sad-operator-avatar,.sad-message-avatar{object-fit:contain!important;background:#fff!important;padding:5px!important;box-sizing:border-box!important}
.sad-attendance-profile-avatar{border-color:#fff!important}.sad-operator-avatar{padding:3px!important}.sad-message-avatar{padding:2px!important}
.sad-attendance-profile-box{grid-template-columns:minmax(220px,320px) minmax(0,1fr)!important}.sad-attendance-profile-fields input{max-width:100%!important}
.sad-profile-image-url-input{font-size:14px!important;min-height:44px!important}
.sad-inbox-manual{position:relative!important;z-index:1!important;display:block!important;clear:both!important}.sad-inbox-manual[open]{max-height:340px!important;overflow-y:auto!important}.sad-inbox-thread-list{position:relative!important;z-index:0!important}
.sad-front-wrap{box-sizing:border-box!important}.sad-dashboard-hero,.sad-front-card,.sad-metric-card{box-sizing:border-box!important}
@media(max-width:780px){.sad-feature-group-accordion>summary{padding:12px}.sad-feature-group-accordion>summary span{font-size:11px}.sad-attendance-profile-box{grid-template-columns:1fr!important}.sad-inbox-basic-note{display:block;text-align:center}.sad-inbox-basic-note strong{display:block;margin-bottom:4px}}


/* v0.9.19 - filtros de relatório por período */
.sad-report-filter{margin:18px 0;padding:18px!important;display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;align-items:end}
.sad-report-filter-row label{display:block;margin:0 0 6px;font-weight:800;color:#26364d}
.sad-report-filter select,.sad-report-filter input[type="date"]{width:100%;min-height:44px;border:1px solid #cfe0f2;border-radius:14px;padding:10px 12px;background:#fff;font-size:15px;color:#0f172a}
.sad-report-filter-action{display:flex;align-items:end}
.sad-report-filter-action .sad-front-btn{width:100%;justify-content:center;text-align:center}
.sad-report-period-help{grid-column:1/-1;margin:0!important}
.sad-period-chip{display:inline-flex;margin-top:4px;padding:4px 8px;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:rgba(255,255,255,.12);font-weight:800;color:#fff!important;font-size:10px!important;line-height:1.2}
@media(max-width:900px){.sad-report-filter{grid-template-columns:1fr 1fr}.sad-report-filter-action{grid-column:1/-1}}
@media(max-width:560px){.sad-report-filter{grid-template-columns:1fr}.sad-report-filter-action{grid-column:auto}}

/* v0.9.22 - Bot de triagem */
.sad-mini-accordion{border:1px solid #dbe5ef;border-radius:18px;background:#f8fbff;margin:18px 0;padding:0;overflow:hidden}
.sad-mini-accordion summary{cursor:pointer;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px 18px;border-bottom:1px solid #e6eef7;color:#1f2d3d}
.sad-mini-accordion summary span{font-size:13px;color:#607089;font-weight:600}
.sad-bot-settings{padding:18px}
.sad-bot-settings textarea{min-height:70px}
@media(max-width:720px){.sad-mini-accordion summary{display:block}.sad-mini-accordion summary span{display:block;margin-top:4px}.sad-bot-settings{padding:14px}}

/* v0.9.23 - Menu mobile estilo app / hambúrguer */
.sad-mobile-menu-toggle{display:none;border:0;background:#eef8fd;color:#172033;border-radius:14px;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;box-shadow:none}
.sad-mobile-menu-toggle span{display:block;width:21px;height:2px;background:#172033;border-radius:999px;transition:.18s ease}
.sad-topbar.is-menu-open .sad-mobile-menu-toggle{background:#08aeea;color:#fff;box-shadow:0 10px 22px rgba(8,174,234,.18)}
.sad-topbar.is-menu-open .sad-mobile-menu-toggle span{background:#fff}
.sad-topbar.is-menu-open .sad-mobile-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.sad-topbar.is-menu-open .sad-mobile-menu-toggle span:nth-child(2){opacity:0}
.sad-topbar.is-menu-open .sad-mobile-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:780px){
  body.sad-app-body{overflow-x:hidden!important}
  .sad-app-shell{padding:10px 8px 26px!important;min-height:100dvh!important}
  .sad-front-wrap,.sad-page-standard,.sad-dashboard-wrap,.sad-inbox-page{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;overflow-x:hidden!important}
  .sad-topbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px!important;
    align-items:center!important;
    gap:10px!important;
    padding:10px 12px!important;
    border-radius:18px!important;
    margin-bottom:14px!important;
    position:sticky!important;
    top:8px!important;
    z-index:9990!important;
    min-height:auto!important;
  }
  .sad-brand{
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    overflow:hidden!important;
  }
  .sad-brand-logo{width:86px!important;max-width:86px!important;max-height:40px!important;flex:0 0 86px!important;object-fit:contain!important}
  .sad-brand-name{display:block!important;font-size:13px!important;line-height:1.18!important;font-weight:900!important;white-space:normal!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
  .sad-mobile-menu-toggle{display:inline-flex!important;justify-self:end!important;align-self:center!important;position:relative!important;z-index:2!important}
  .sad-front-nav{
    grid-column:1 / -1!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    flex-wrap:nowrap!important;
    overflow:hidden!important;
    max-height:0!important;
    opacity:0!important;
    padding:0!important;
    margin:0!important;
    pointer-events:none!important;
    transition:max-height .22s ease, opacity .16s ease, padding .16s ease!important;
    white-space:normal!important;
  }
  .sad-topbar.is-menu-open .sad-front-nav{
    max-height:calc(100dvh - 134px)!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    opacity:1!important;
    pointer-events:auto!important;
    padding-top:8px!important;
    border-top:1px solid #e6eef7!important;
  }
  .sad-front-nav a,
  .sad-front-nav .sad-notify-toggle,
  .sad-front-nav .sad-logout{
    width:100%!important;
    min-height:38px!important;
    justify-content:flex-start!important;
    text-align:left!important;
    padding:9px 12px!important;
    border-radius:12px!important;
    font-size:13px!important;
    line-height:1.15!important;
    box-shadow:none!important;
    margin:0!important;
  }
  .sad-front-nav .sad-notify-toggle{border:1px solid #bbf7d0!important;background:#f0fdf4!important;color:#047857!important;font-weight:900!important}
  .sad-front-nav .sad-logout{border:1px solid #fecaca!important;background:#fff4f3!important;color:#b42318!important}
  .sad-notify-badge{margin-left:8px!important;min-width:20px!important;height:20px!important;font-size:11px!important}
  .sad-dashboard-hero{margin-top:0!important;border-radius:14px!important;padding:10px 12px!important;min-height:0!important}
}

@media(max-width:380px){
  .sad-brand-logo{width:74px!important;max-width:74px!important;flex-basis:74px!important}
  .sad-brand-name{font-size:12px!important}
  .sad-mobile-menu-toggle{width:40px!important;height:40px!important;border-radius:12px!important}
}


/* v0.9.24 - Correção de zoom e quebra de layout no iPhone/mobile ao focar campos */
@media (max-width: 780px){
  html{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }
  body.sad-app-body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    -webkit-font-smoothing:antialiased!important;
  }
  .sad-app-shell,
  .sad-front-wrap,
  .sad-page-standard,
  .sad-dashboard-wrap,
  .sad-inbox-page{
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  /* iOS/Safari amplia a tela quando input/textarea/select tem fonte menor que 16px. */
  .sad-app-shell input[type="text"],
  .sad-app-shell input[type="email"],
  .sad-app-shell input[type="password"],
  .sad-app-shell input[type="tel"],
  .sad-app-shell input[type="url"],
  .sad-app-shell input[type="number"],
  .sad-app-shell input[type="search"],
  .sad-app-shell input[type="date"],
  .sad-app-shell input[type="time"],
  .sad-app-shell select,
  .sad-app-shell textarea,
  .sad-inbox-compose-main textarea,
  .sad-inbox-compose-tools input,
  .sad-inbox-compose-tools select,
  .sad-inbox-search input,
  .sad-inbox-update-form select,
  .sad-inbox-update-form input,
  .sad-inbox-update-form textarea,
  .sad-front-form input,
  .sad-front-form select,
  .sad-front-form textarea{
    font-size:16px!important;
    line-height:1.35!important;
    transform:none!important;
    zoom:1!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  .sad-app-shell input:focus,
  .sad-app-shell select:focus,
  .sad-app-shell textarea:focus{
    font-size:16px!important;
    transform:none!important;
  }

  /* Mantém o chat dentro da largura da tela, mesmo com teclado aberto. */
  .sad-inbox-layout,
  .sad-inbox-list-panel,
  .sad-inbox-chat-panel,
  .sad-inbox-details-panel,
  .sad-inbox-composer,
  .sad-inbox-chat-scroll,
  .sad-inbox-compose-main{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel{
    overflow:hidden!important;
    height:auto!important;
    min-height:0!important;
  }
  .sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-panel{
    overflow:hidden!important;
    height:72dvh!important;
    min-height:460px!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-chat-scroll,
  .sad-inbox-page.is-mobile-focus .sad-inbox-chat-scroll{
    overflow-y:scroll!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    flex:0 0 auto!important;
    height:clamp(240px,32dvh,300px)!important;
    max-height:clamp(240px,32dvh,300px)!important;
    min-height:200px!important;
  }
  .sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-scroll{
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    padding-bottom:12px!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-composer{
    position:relative!important;
    bottom:auto!important;
    z-index:3!important;
    background:#fff!important;
    box-shadow:0 -6px 16px rgba(15,23,42,.06)!important;
  }
  .sad-inbox-page:not(.has-thread-open) .sad-inbox-composer{
    position:sticky!important;
    bottom:0!important;
    z-index:10!important;
    background:#fff!important;
    box-shadow:0 -8px 18px rgba(15,23,42,.05)!important;
  }
  .sad-inbox-compose-main{
    grid-template-columns:minmax(0,1fr) 70px!important;
    align-items:end!important;
  }
  .sad-inbox-compose-main textarea{
    min-height:46px!important;
    max-height:96px!important;
    resize:none!important;
    border-radius:16px!important;
    padding:11px 12px!important;
  }
  .sad-inbox-compose-main .sad-front-btn{
    min-height:46px!important;
    height:46px!important;
    padding:0 10px!important;
    font-size:13px!important;
    border-radius:15px!important;
    width:auto!important;
  }
  .sad-inbox-details-panel{
    max-height:none!important;
  }
  .sad-inbox-contact-card h3{
    font-size:18px!important;
    line-height:1.2!important;
  }
  .sad-app-footer{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }
}

@media (max-width: 420px){
  .sad-inbox-chat-panel{
    height:70dvh!important;
    min-height:430px!important;
  }
  .sad-inbox-compose-main{
    grid-template-columns:minmax(0,1fr) 64px!important;
    gap:6px!important;
  }
  .sad-inbox-compose-main .sad-front-btn{
    font-size:12px!important;
    padding:0 8px!important;
  }
}


/* v0.9.25 - Correção definitiva de largura mobile e relatório responsivo */
@media (max-width: 780px){
  html, body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  body.sad-app-body,
  .sad-app-shell{
    position:relative!important;
    overflow-x:hidden!important;
  }
  .sad-app-shell{
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .sad-front-wrap,
  .sad-page-standard,
  .sad-dashboard-wrap,
  .sad-inbox-page{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow-x:hidden!important;
  }
  .sad-topbar,
  .sad-dashboard-hero,
  .sad-front-card,
  .sad-metric-card,
  .sad-report-filter,
  .sad-front-grid,
  .sad-metric-grid,
  .sad-report-metrics,
  .sad-inbox-layout,
  .sad-inbox-list-panel,
  .sad-inbox-chat-panel,
  .sad-inbox-details-panel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  .sad-dashboard-hero,
  .sad-inbox-hero{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:10px 12px!important;
    border-radius:14px!important;
    min-height:0!important;
    gap:8px 10px!important;
  }
  .sad-dashboard-hero h1,
  .sad-inbox-hero h1{
    font-size:16px!important;
    line-height:1.1!important;
    overflow-wrap:anywhere!important;
    margin:0 0 1px!important;
  }
  .sad-dashboard-hero p,
  .sad-inbox-hero p{
    font-size:11px!important;
    line-height:1.35!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    margin:0!important;
  }
  .sad-hero-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    width:auto!important;
    max-width:100%!important;
    gap:6px!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
  .sad-hero-actions .sad-front-btn{
    width:auto!important;
    max-width:100%!important;
    min-height:32px!important;
    padding:6px 10px!important;
    font-size:12px!important;
  }
  .sad-report-filter{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    padding:18px!important;
  }
  .sad-report-filter-row,
  .sad-report-filter select,
  .sad-report-filter input[type="date"],
  .sad-report-filter button,
  .sad-front-form input,
  .sad-front-form select,
  .sad-front-form textarea{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .sad-front-table-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .sad-front-table{
    width:max-content!important;
    min-width:100%!important;
    max-width:none!important;
  }
  .sad-front-table th,
  .sad-front-table td{
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    max-width:none!important;
  }
  .sad-front-table td{
    padding:13px 12px!important;
  }
  .sad-front-card h2{
    font-size:20px!important;
    line-height:1.18!important;
    overflow-wrap:anywhere!important;
  }
  .sad-metric-grid,
  .sad-report-metrics,
  .sad-front-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .sad-app-footer{
    padding-left:8px!important;
    padding-right:8px!important;
    white-space:normal!important;
  }
}

@media (max-width: 420px){
  .sad-app-shell{padding-left:6px!important;padding-right:6px!important;}
  .sad-dashboard-hero{padding:10px 12px!important;min-height:0!important;}
  .sad-front-card,.sad-metric-card,.sad-report-filter{border-radius:18px!important;padding:16px!important;}
  .sad-dashboard-hero h1{font-size:20px!important;}
  .sad-report-filter select,.sad-report-filter input[type="date"]{font-size:16px!important;}
}

/* v0.9.26 - Ajustes mobile de formulários, triagem e conta do cliente */
.sad-account-card{margin-top:18px!important}
.sad-account-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 16px!important;align-items:start!important}
.sad-account-grid>div{min-width:0!important}.sad-account-form input{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.sad-check-grid{width:100%!important;max-width:100%!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:10px!important;align-items:start!important;overflow:hidden!important}
.sad-check-grid label,.sad-check-line{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;display:flex!important;align-items:flex-start!important;gap:9px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;margin:0!important;padding:2px 0!important}
.sad-check-grid input[type="checkbox"],.sad-check-line input[type="checkbox"]{flex:0 0 auto!important;width:16px!important;height:16px!important;min-width:16px!important;margin:2px 0 0!important}
.sad-bot-accordion{margin-top:14px!important;background:#f8fbff!important}.sad-bot-accordion>summary{padding:14px 16px!important}.sad-bot-settings{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:14px 16px!important}.sad-bot-settings label{margin:0!important}.sad-bot-settings textarea{width:100%!important;max-width:100%!important;min-height:54px!important;box-sizing:border-box!important;resize:vertical!important}.sad-bot-settings textarea[name="whatsapp_template"]{min-height:140px!important}.sad-bot-settings .sad-front-muted{display:block!important;margin-top:0!important;line-height:1.45!important;overflow-wrap:anywhere!important}.sad-bot-settings code{white-space:normal!important;overflow-wrap:anywhere!important}
.sad-compact-form textarea[name="welcome_message"]{min-height:72px!important}.sad-compact-form textarea[name="menu_options"]{min-height:90px!important}

@media(max-width:1024px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}.sad-app-shell{width:100%!important;max-width:100%!important;overflow-x:hidden!important;box-sizing:border-box!important}.sad-front-wrap,.sad-page-standard,.sad-dashboard-wrap,.sad-inbox-page{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;box-sizing:border-box!important}.sad-front-card,.sad-dashboard-hero,.sad-metric-card,.sad-report-filter,.sad-mini-accordion,.sad-accordion-card{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important}
  .sad-wa-broadcast-wrap .sad-front-card:has(.sad-scroll-table-x),
  .sad-wa-broadcast-wrap .sad-scroll-table-x,
  .sad-wa-broadcast-wrap .sad-front-table-wrap{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .sad-wa-broadcast-wrap .sad-front-card:has(.sad-scroll-table-x){
    overflow:visible!important;
  }
  .sad-wa-broadcast-history-table{
    min-width:640px!important;
    width:max-content!important;
  }
  .sad-wa-broadcast-history-table th,
  .sad-wa-broadcast-history-table td{
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }.sad-accordion-card>form,.sad-accordion-card>.sad-feature-catalog{width:100%!important;max-width:100%!important;box-sizing:border-box!important}.sad-front-form,.sad-compact-form{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important}.sad-front-form input,.sad-front-form select,.sad-front-form textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}.sad-check-grid{grid-template-columns:1fr!important;gap:8px!important}.sad-check-grid label{font-size:16px!important}.sad-account-grid{grid-template-columns:1fr!important}.sad-attendance-profile-box{grid-template-columns:1fr!important;gap:14px!important}.sad-attendance-profile-fields,.sad-attendance-profile-preview{width:100%!important;max-width:100%!important;min-width:0!important}.sad-bot-accordion>summary{display:block!important;padding:12px 14px!important}.sad-bot-accordion>summary strong{display:block!important;font-size:16px!important;line-height:1.25!important}.sad-bot-accordion>summary span{display:block!important;margin-top:4px!important;font-size:12px!important;line-height:1.35!important}.sad-bot-settings{padding:12px 14px!important;gap:9px!important}.sad-bot-settings textarea{min-height:50px!important}.sad-bot-settings textarea[name="whatsapp_template"]{min-height:130px!important}.sad-image-ratio-help{font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}.sad-section-title{display:block!important}.sad-feature-public-list{grid-template-columns:1fr!important}
}

@media(max-width:480px){
  .sad-app-shell{padding-left:8px!important;padding-right:8px!important}.sad-dashboard-hero{padding:10px 12px!important;min-height:0!important}.sad-front-card{padding:14px!important}.sad-accordion-card{padding:0!important}.sad-accordion-card>summary{padding:13px 14px!important}.sad-accordion-card>form{padding:14px!important}.sad-front-form label{font-size:15px!important;line-height:1.25!important;margin:10px 0 5px!important}.sad-front-muted{font-size:13px!important;line-height:1.4!important}.sad-check-grid label,.sad-check-line{font-size:15px!important;font-weight:800!important}.sad-bot-settings textarea[name="whatsapp_template"]{min-height:150px!important}.sad-account-card h2{font-size:19px!important}.sad-account-card .sad-front-btn{width:100%!important}.sad-inbox-hero h1{font-size:20px!important;line-height:1.15!important}.sad-inbox-hero p{font-size:13px!important}.sad-dashboard-hero .sad-eyebrow{font-size:11px!important}.sad-dashboard-hero h1{overflow-wrap:anywhere!important}
}

/* v0.9.27 - Mobile: tabelas legíveis, checkboxes visíveis e triagem compacta */
.sad-option-phone-settings{margin:8px 0 12px!important;padding:12px!important;border:1px solid #dbeafe!important;border-radius:16px!important;background:#f8fbff!important}
.sad-option-phone-toggle{margin-top:12px!important}
.sad-front-form input[type="checkbox"],
.sad-check-grid input[type="checkbox"],
.sad-check-line input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  display:inline-block!important;
  opacity:1!important;
  position:static!important;
  margin:2px 8px 0 0!important;
  padding:0!important;
  flex:0 0 18px!important;
}
.sad-check-grid label,
.sad-check-line{
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  min-height:28px!important;
  padding:5px 0!important;
}
.sad-bot-settings textarea,
.sad-compact-form textarea,
.sad-front-form textarea{
  overflow:auto!important;
}

@media(max-width:640px){
  .sad-check-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    overflow:visible!important;
  }
  .sad-check-grid label,
  .sad-check-line{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow:visible!important;
    color:#344054!important;
  }
  .sad-bot-accordion{margin-top:12px!important}
  .sad-bot-accordion>summary{padding:12px!important}
  .sad-bot-settings{padding:12px!important;gap:8px!important}
  .sad-bot-settings textarea[name="whatsapp_template"]{min-height:118px!important;max-height:210px!important}
  .sad-option-phone-settings{padding:10px!important;border-radius:14px!important}
  .sad-option-phone-settings textarea{min-height:86px!important}

  .sad-front-table-wrap{
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .sad-responsive-table,
  .sad-responsive-table thead,
  .sad-responsive-table tbody,
  .sad-responsive-table tr,
  .sad-responsive-table th,
  .sad-responsive-table td{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  .sad-responsive-table{background:transparent!important;border-collapse:separate!important}
  .sad-responsive-table thead{display:none!important}
  .sad-responsive-table tr{
    margin:0 0 12px!important;
    padding:10px 12px!important;
    border:1px solid #dbe5ef!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 8px 18px rgba(15,23,42,.04)!important;
  }
  .sad-responsive-table td{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:start!important;
    padding:8px 0!important;
    border-bottom:1px solid #eef2f7!important;
    overflow:visible!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
  }
  .sad-responsive-table td:last-child{border-bottom:0!important}
  .sad-responsive-table td:before{
    content:attr(data-label);
    color:#667085!important;
    font-size:11px!important;
    font-weight:900!important;
    text-transform:uppercase!important;
    letter-spacing:.04em!important;
  }
  .sad-responsive-table td strong,
  .sad-responsive-table td small,
  .sad-responsive-table td a{
    min-width:0!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  .sad-responsive-table .sad-small-link{
    display:inline-flex!important;
    width:auto!important;
    min-width:76px!important;
    justify-content:center!important;
    padding:8px 10px!important;
    margin:0 6px 6px 0!important;
    white-space:nowrap!important;
  }
  .sad-operator-cell{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
  .sad-flow-map{overflow-x:auto!important;max-width:100%!important;padding-bottom:8px!important}
  .sad-flow-node{min-width:220px!important}
}

/* v0.9.30 — organização de modos, envio rápido e mobile */
.sad-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.sad-mode-card{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:flex-start;border:1px solid var(--sad-border);border-radius:18px;background:#f8fafc;padding:15px;cursor:pointer;transition:.18s ease;min-height:118px}
.sad-mode-card input{margin-top:3px}.sad-mode-card strong{display:block;color:var(--sad-accent);font-size:15px;margin-bottom:4px}.sad-mode-card span{display:block;color:var(--sad-muted);font-size:13px;line-height:1.45}.sad-mode-card.is-selected,.sad-mode-card:hover{border-color:var(--sad-primary);background:#f1fbff;box-shadow:0 12px 28px rgba(8,174,234,.10)}
.sad-message-pending .sad-message-bubble{opacity:.78}.sad-message-pending .sad-message-foot span:first-child{font-weight:800;color:var(--sad-warning)}.sad-message-failed .sad-message-bubble{border-color:#fda29b!important;background:#fff4f3!important}.sad-message-failed .sad-message-foot span:first-child{color:var(--sad-danger)!important}.sad-inbox-composer button[disabled]{opacity:.75;cursor:progress}
.sad-front-form input,.sad-front-form select,.sad-front-form textarea,.sad-inbox-composer input,.sad-inbox-composer select,.sad-inbox-composer textarea{font-size:16px}
@media(max-width:760px){.sad-mode-grid{grid-template-columns:1fr}.sad-mode-card{min-height:auto}.sad-inbox-compose-tools{grid-template-columns:1fr!important}.sad-inbox-composer textarea{font-size:16px;min-height:48px;max-height:120px;resize:none}.sad-inbox-compose-main{align-items:stretch}.sad-inbox-compose-main .sad-front-btn{min-width:92px}}

/* v0.9.31 — plano definido pela Star, sem troca de modo pelo cliente */
.sad-plan-current-card{
  margin:14px 0 18px;
  border:1px solid var(--sad-border);
  border-radius:18px;
  background:#f8fafc;
  padding:16px 18px;
  display:block;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.sad-plan-current-card strong{display:block;color:var(--sad-accent);font-size:16px;margin-bottom:5px;font-weight:900}
.sad-plan-current-card span{display:block;color:var(--sad-muted);font-size:13px;line-height:1.45}
.sad-plan-current-card.is-api{border-color:rgba(8,174,234,.30);background:#f1fbff}
.sad-plan-current-card.is-redirect{border-color:rgba(18,183,106,.28);background:#f0fdf4}

/* v0.9.32 — plano Start sem aparência de bot/API */
.sad-start-message-box{margin-top:18px!important;background:#fbfdff!important;border:1px solid #dbe9f6!important;box-shadow:none!important}
.sad-start-message-box h2{margin-top:0!important}

/* v0.9.34 — Disparos de e-mail e atendimento */
.sad-email-grid{grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr)}
.sad-email-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:6px 0 10px}
.sad-email-toolbar button{border:1px solid var(--sad-border);background:#fff;border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer;color:var(--sad-accent)}
.sad-email-toolbar button:hover{border-color:var(--sad-primary);background:var(--sad-soft)}
.sad-email-toolbar input[type=color]{width:42px;height:38px;border:1px solid var(--sad-border);border-radius:10px;background:#fff;padding:4px}
.sad-email-campaign-form textarea[data-sad-email-body]{font-family:Inter,Arial,Helvetica,sans-serif;min-height:320px;line-height:1.55}
.sad-email-recipient-box{border:1px solid var(--sad-border);border-radius:16px;background:#f8fafc;padding:12px;margin-top:12px;max-height:520px;overflow:auto}
.sad-email-contact-list{display:grid;gap:8px;margin-top:10px}
.sad-email-contact-list label{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start;margin:0;padding:10px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;font-weight:700}
.sad-email-contact-list label.is-disabled{opacity:.55;background:#f2f4f7}
.sad-email-contact-list small{display:block;color:var(--sad-muted);font-weight:600;margin-top:2px}
.sad-error-box{border-left:4px solid var(--sad-danger)!important;background:#fff4f3!important}
.sad-wa-broadcast-wrap .sad-wa-usage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
.sad-wa-usage-bar{height:10px;border-radius:999px;background:#e5e7eb;overflow:hidden;margin:8px 0 12px}
.sad-wa-usage-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--sad-primary),#22c55e);border-radius:999px}
.sad-wa-template-bubble{max-width:520px;background:#e7f8ef;border:1px solid #bbf7d0;border-radius:18px 18px 18px 6px;padding:14px 16px;line-height:1.55;white-space:pre-wrap}
.sad-wa-broadcast-errors .sad-front-table small{color:var(--sad-muted)}
.sad-wa-broadcast-errors--modal{margin-top:14px}
.sad-wa-broadcast-errors--modal .sad-front-table{font-size:13px}
.sad-wa-broadcast-detail-metrics{margin:0 0 8px}
.sad-link-btn{appearance:none;border:0;background:transparent;padding:0;font:inherit;font-weight:700;color:var(--sad-primary,#2563eb);text-decoration:underline;cursor:pointer}
.sad-link-btn:hover{color:#1d4ed8}
.sad-wa-broadcast-detail-overlay{
  position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:10010;
  display:flex;align-items:center;justify-content:center;
  padding:max(12px,env(safe-area-inset-top,12px)) max(12px,env(safe-area-inset-right,12px)) max(12px,env(safe-area-inset-bottom,12px)) max(12px,env(safe-area-inset-left,12px));
  box-sizing:border-box;
}
.sad-wa-broadcast-detail-overlay[hidden]{display:none!important}
body.sad-wa-broadcast-modal-open{overflow:hidden}
.sad-wa-broadcast-detail-panel{
  width:min(720px,calc(100vw - 32px));max-height:min(86dvh,780px);
  background:#fff;border-radius:18px;box-shadow:0 20px 56px rgba(15,23,42,.28);
  display:flex;flex-direction:column;overflow:hidden;
}
.sad-wa-broadcast-detail-body{padding:16px 20px 20px;overflow:auto;-webkit-overflow-scrolling:touch}
.sad-scroll-table-x,
.sad-wa-broadcast-wrap .sad-front-table-wrap{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
.sad-wa-broadcast-wrap .sad-front-card:has(.sad-scroll-table-x),
.sad-wa-broadcast-wrap .sad-front-card:has(.sad-wa-broadcast-history-table){
  overflow:visible!important;
  overflow-x:visible!important;
}
.sad-wa-broadcast-history-table{
  min-width:640px;
  width:max-content;
  table-layout:auto;
}
.sad-wa-broadcast-history-table th,
.sad-wa-broadcast-history-table td{
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
  hyphens:none!important;
}
.sad-wa-broadcast-scroll-hint{
  margin:0 0 10px;
  font-size:12px;
  color:#64748b;
  font-weight:700;
}
.sad-mobile-only{display:none}
@media(max-width:768px){
  .sad-mobile-only{display:block}
}
.sad-inbox-manual-internal{
  margin-top:12px;
  border:1px dashed #dbe5ef;
  border-radius:14px;
  padding:0 12px 4px;
  background:#f8fafc;
}
.sad-inbox-manual-internal > summary{
  cursor:pointer;
  font-weight:800;
  color:#475467;
  padding:12px 0;
  list-style:none;
}
.sad-inbox-manual-internal[open] > summary{
  margin-bottom:8px;
}
@media(min-width:961px){
  .sad-wa-broadcast-wrap .sad-wa-broadcast-history-card{
    width:100%;
    max-width:100%;
  }
  .sad-wa-broadcast-wrap .sad-wa-broadcast-history-card .sad-front-table-wrap{
    width:100%;
    max-width:100%;
    overflow-x:visible;
  }
  .sad-wa-broadcast-history-table{
    min-width:0;
    width:100%;
    table-layout:auto;
  }
  .sad-wa-broadcast-history-table th,
  .sad-wa-broadcast-history-table td{
    padding:14px 16px;
  }
}
@media(max-width:960px){.sad-wa-broadcast-wrap .sad-wa-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1024px){
  .sad-attendance-list-card .sad-responsive-table tr{
    padding:14px 16px!important;
    margin:0 0 14px!important;
  }
  .sad-attendance-list-card .sad-responsive-table td{
    grid-template-columns:minmax(96px,38%) minmax(0,1fr)!important;
    gap:10px 12px!important;
    padding:10px 2px!important;
    align-items:start!important;
  }
  .sad-attendance-list-card .sad-responsive-table td:before{
    padding-top:2px;
    line-height:1.3;
  }
  .sad-contact-form-panel.is-edit-modal .sad-contact-form-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:960px){.sad-email-grid{grid-template-columns:1fr}.sad-email-toolbar button{flex:1 1 auto}.sad-email-recipient-box{max-height:360px}}


/* v0.9.36 - estabilidade mobile do widget e tela de e-mail */
.sad-email-grid{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)!important;align-items:start!important}
.sad-email-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 10px;padding:10px;border:1px solid #dbe5ef;border-radius:14px;background:#f8fbff}
.sad-email-toolbar button{border:1px solid #cfe0f2;background:#fff;border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer;color:#223047}
.sad-email-toolbar input[type=color]{width:42px;height:36px;border:1px solid #cfe0f2;border-radius:10px;background:#fff;padding:3px}
.sad-email-html-chip{display:inline-flex;align-items:center;border-radius:999px;background:#ecfdf3;color:#067647;padding:6px 10px;font-size:12px;font-weight:900}
.sad-email-recipient-box{max-height:420px;overflow:auto;border:1px solid #dbe5ef;border-radius:14px;padding:10px;background:#fbfdff;margin-top:10px}
.sad-email-contact-list{display:grid;gap:6px;margin-top:8px}.sad-email-contact-list label{display:flex!important;gap:9px;align-items:flex-start;padding:8px;border-radius:10px;background:#fff;border:1px solid #e7eef7}.sad-email-contact-list label.is-disabled{opacity:.55}.sad-email-contact-list small{display:block;color:#667085;margin-top:2px}.sad-radio-line{display:flex!important;gap:8px;align-items:center;margin:8px 0!important}
@media(max-width:920px){.sad-email-grid{grid-template-columns:1fr!important}.sad-email-recipient-box{max-height:300px}}

/* v0.9.37 — contatos compactos, paginação e widget mobile sem zoom */
.sad-contact-filter{margin:10px 0 16px!important;padding:12px!important;background:#f8fafc;border:1px solid #e6eef8;border-radius:16px}
.sad-pagination{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.sad-pagination .sad-small-link.is-active{background:var(--sad-primary);color:#fff!important;border-color:var(--sad-primary)}
.sad-responsive-table td[data-label="Ações"]{white-space:nowrap}.sad-responsive-table td[data-label="Ações"] .sad-small-link{display:inline-flex;margin:2px 3px 2px 0;align-items:center}
@media(max-width:760px){.sad-responsive-table td[data-label="Ações"]{display:flex!important;gap:6px;align-items:center}.sad-responsive-table td[data-label="Ações"]:before{content:attr(data-label);font-weight:900;margin-right:auto}.sad-contact-filter .sad-two-cols{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Mobile — setores/operadores: rótulo acima do texto (sem sobreposição) */
@media(max-width:760px){
  .sad-attendance-list-card .sad-responsive-table tr{
    padding:14px 14px 12px!important;
    margin:0 0 12px!important;
  }
  .sad-attendance-list-card .sad-responsive-table td{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    grid-template-columns:unset!important;
    gap:4px!important;
    padding:10px 0!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  .sad-attendance-list-card .sad-responsive-table td:before{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    padding:0 0 2px!important;
    margin:0!important;
    line-height:1.35!important;
    white-space:normal!important;
  }
  .sad-attendance-list-card .sad-responsive-table td > *{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:break-word!important;
    line-height:1.45!important;
  }
  .sad-attendance-list-card .sad-responsive-table td .sad-operator-cell{
    flex-direction:row!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  .sad-attendance-list-card .sad-responsive-table td[data-label="Saudação"],
  .sad-attendance-list-card .sad-responsive-table td[data-label="Palavras-chave"],
  .sad-attendance-list-card .sad-responsive-table td[data-label="Notificação"],
  .sad-attendance-list-card .sad-responsive-table td[data-label="Contato"]{
    padding-bottom:12px!important;
  }
  .sad-attendance-list-card .sad-responsive-table td[data-label="Ações"]{
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    padding-top:4px!important;
  }
  .sad-attendance-list-card .sad-responsive-table td[data-label="Ações"]:before{
    flex:1 1 100%!important;
    margin-bottom:6px!important;
  }
}

/* Mobile popup setor/operador — ver regras v0.9.209 no final do arquivo */
/* v0.9.40 - ajustes de automações e notificações */
.sad-flow-list{margin:0 0 0 18px;padding:0;line-height:1.55}.sad-flow-list li{margin:0 0 10px}.sad-compact-list{list-style:none;margin:0;padding:0}.sad-compact-list li{padding:10px 0;border-bottom:1px solid #e5eef7}.sad-compact-list li:last-child{border-bottom:0}.sad-notify-toast-holder{position:fixed!important;right:18px!important;bottom:18px!important;z-index:2147483647!important}.sad-notify-toast{min-width:260px!important}.sad-message-failed .sad-message-bubble{border-color:#ef4444!important;background:#fff1f2!important}
@media(max-width:760px){.sad-notify-toast-holder{left:10px!important;right:10px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}.sad-notify-toast{min-width:0!important;width:100%!important}.sad-front-grid{grid-template-columns:1fr!important}}


/* v0.9.41 - ajustes visuais da configuração de aniversariantes/templates Meta */
.sad-form-field,
.sad-front-form .sad-form-field{
  display:block!important;
  min-width:0!important;
}
.sad-field-help,
.sad-form-help,
.sad-form-row .description,
.sad-client-panel .description,
.sad-front-form .description{
  display:block!important;
  width:100%!important;
  margin:8px 0 0!important;
  padding:0!important;
  color:#5b6b86!important;
  font-size:14px!important;
  line-height:1.45!important;
  font-weight:500!important;
}
.sad-birthday-whatsapp-fields{
  align-items:start!important;
  gap:18px!important;
  margin-bottom:12px!important;
}
.sad-birthday-template-field input[type=text],
.sad-birthday-language-field input[type=text]{
  width:100%!important;
  box-sizing:border-box!important;
  margin-bottom:0!important;
}
.sad-birthday-preview-textarea{
  margin-top:8px!important;
  margin-bottom:0!important;
}
.sad-birthday-preview-note{
  display:block!important;
  margin:10px 0 18px!important;
  padding:12px 14px!important;
  border-radius:12px!important;
  border:1px solid #d8ecf8!important;
  background:#eef8ff!important;
  color:#49627f!important;
  font-size:14px!important;
  line-height:1.45!important;
}

/* v0.9.241 - campos de mensagem com exemplo (hover) */
.sad-msg-config-section{
  margin:18px 0 22px!important;
  padding:14px 16px!important;
  border:1px solid #e3e9f2!important;
  border-radius:12px!important;
  background:#fafbfd!important;
}
.sad-msg-config-section-title{
  margin:0 0 10px!important;
  font-size:15px!important;
  font-weight:700!important;
  color:#1a2b44!important;
}
.sad-msg-config-field{
  margin:0 0 16px!important;
}
.sad-msg-config-label-row{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-bottom:4px!important;
}
.sad-msg-config-label-row label{
  margin:0!important;
  font-weight:600!important;
}
.sad-msg-config-when{
  margin:0 0 8px!important;
  font-size:13px!important;
  line-height:1.45!important;
  color:#5b6b86!important;
}
.sad-msg-example-tip{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:help!important;
}
.sad-msg-example-icon{
  width:20px!important;
  height:20px!important;
  border-radius:50%!important;
  background:#dbeafe!important;
  color:#1d4ed8!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:20px!important;
  text-align:center!important;
}
.sad-msg-example-pop{
  display:none!important;
  position:absolute!important;
  left:calc(100% + 8px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:50!important;
  min-width:220px!important;
  max-width:320px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:#1a2b44!important;
  color:#f8fafc!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:500!important;
  box-shadow:0 8px 24px rgba(15,23,42,.25)!important;
  white-space:pre-line!important;
  pointer-events:none!important;
}
.sad-msg-example-tip:hover .sad-msg-example-pop,
.sad-msg-example-tip:focus .sad-msg-example-pop,
.sad-msg-example-tip:focus-within .sad-msg-example-pop{
  display:block!important;
}
.sad-inline-tab-link{
  border:0!important;
  background:none!important;
  padding:0!important;
  color:#2563eb!important;
  font:inherit!important;
  font-weight:600!important;
  text-decoration:underline!important;
  cursor:pointer!important;
}
.sad-msg-config-advanced summary,
.sad-msg-email-section summary{
  cursor:pointer!important;
  list-style:none!important;
}
.sad-msg-config-advanced summary::-webkit-details-marker,
.sad-msg-email-section summary::-webkit-details-marker{
  display:none!important;
}
.sad-msg-email-section.is-collapsed{
  opacity:.85!important;
}
@media (max-width:760px){
  .sad-msg-example-pop{
    left:auto!important;
    right:0!important;
    top:calc(100% + 6px)!important;
    transform:none!important;
  }
}
.sad-front-form .sad-birthday-preview-note{font-weight:500!important}
@media(max-width:760px){
  .sad-birthday-whatsapp-fields{grid-template-columns:1fr!important;gap:12px!important}
  .sad-field-help,.sad-birthday-preview-note{font-size:13px!important}
}

/* v0.9.42 - notificações visuais reforçadas */
.sad-notify-toggle.is-popup-granted{background:#dcfce7!important;border-color:#86efac!important;color:#047857!important}
.sad-notify-toggle.is-popup-denied{background:#fff7ed!important;border-color:#fdba74!important;color:#c2410c!important}
.sad-notify-toast-holder{position:fixed!important;right:18px!important;bottom:18px!important;z-index:2147483647!important;display:flex!important;flex-direction:column!important;gap:10px!important;max-width:min(420px,calc(100vw - 36px))!important;pointer-events:none!important}.sad-notify-toast{pointer-events:auto!important}.sad-notify-toast-strong{animation:sadNotifyPop .25s ease-out 1, sadPulseToast .9s ease 1!important}.sad-notify-toast-warning{animation:sadNotifyPop .25s ease-out 1!important}@keyframes sadNotifyPop{0%{opacity:0;transform:translateY(12px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){.sad-notify-toast-holder{left:10px!important;right:10px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;max-width:none!important}.sad-notify-toast{width:100%!important;max-width:none!important;min-width:0!important}}

/* v0.9.43 - inbox filters, grouped conversations and notification preferences */
.sad-notify-controls{display:inline-flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}.sad-notify-controls .sad-notify-toggle{margin:0!important}.sad-inbox-search-advanced{display:grid!important;grid-template-columns:minmax(0,1fr) 132px auto auto auto!important;gap:8px!important;align-items:center!important;padding:12px 10px!important}.sad-inbox-search-advanced input[type="date"]{width:100%!important;border:1px solid #cfe0f2!important;border-radius:14px!important;padding:10px 12px!important;background:#fff!important;color:#172033!important;font-size:13px!important}.sad-inbox-unread-filter{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:9px 10px!important;border:1px solid #d9e8f4!important;border-radius:999px!important;background:#f8fbff!important;color:#172033!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}.sad-inbox-unread-filter input{margin:0!important}.sad-inbox-clear-filter{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;color:#057aa4!important;background:#e9f8ff!important;border-radius:999px!important;font-size:12px!important;font-weight:900!important;min-height:38px!important;padding:0 12px!important}.sad-unread-dot{display:inline-block!important;width:8px!important;height:8px!important;border-radius:999px!important;background:#0ea5e9!important;margin-right:6px!important;vertical-align:middle!important;box-shadow:0 0 0 3px rgba(14,165,233,.14)!important}.sad-cron-status-box{margin:18px 0 0!important;padding:16px 18px!important;border:1px solid #dbeafe!important;border-radius:16px!important;background:#f8fbff!important;color:#42526c!important}.sad-cron-status-box p{margin:0 0 8px!important}.sad-cron-status-box p:last-child{margin-bottom:0!important}.sad-cron-status-box form{margin-top:12px!important}.sad-inbox-thread-main small span{font-weight:900!important}
@media(max-width:760px){.sad-notify-controls{gap:5px!important}.sad-inbox-search-advanced{grid-template-columns:1fr!important}.sad-inbox-search-advanced button,.sad-inbox-clear-filter{width:100%!important}.sad-inbox-unread-filter{justify-content:center!important}.sad-cron-status-box{padding:14px!important;margin-top:14px!important}}


/* v0.9.44 - ferramentas de teste e transferência */
.sad-inbox-test-tools{margin-top:16px;padding:14px;border:1px dashed #d8e6f3;border-radius:14px;background:#f8fbff;display:grid;gap:8px}
.sad-inbox-test-tools h4{margin:0;color:#172033;font-size:15px}
.sad-inbox-test-tools p{margin:0;color:#5b6b86;font-size:13px;line-height:1.4}
.sad-inbox-test-tools form{margin:0;display:inline-flex}
.sad-checkline{display:flex!important;align-items:flex-start;gap:8px;margin:10px 0 4px!important;color:#334155;font-size:14px;font-weight:600}
.sad-checkline input{width:auto!important;margin-top:2px}

/* v0.9.45 - filtros compactos e histórico com linguagem para usuário final */
.sad-inbox-compact-filters{
  grid-template-columns:minmax(0,1fr) 132px 130px 155px auto auto auto!important;
  align-items:center!important;
}
.sad-inbox-compact-filters select{
  width:100%!important;
  border:1px solid #cfe0f2!important;
  border-radius:14px!important;
  padding:10px 12px!important;
  background:#fff!important;
  color:#172033!important;
  font-size:13px!important;
  font-weight:700!important;
  min-height:40px!important;
  box-sizing:border-box!important;
}
.sad-inbox-unread-filter span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 6px!important;
  margin-left:2px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#075985!important;
  font-size:11px!important;
}
.sad-inbox-test-tools h4{font-size:14px!important;letter-spacing:.02em!important;text-transform:none!important}
.sad-inbox-test-tools .sad-small-link{white-space:normal!important;text-align:left!important}
@media(max-width:1180px){
  .sad-inbox-compact-filters{grid-template-columns:1fr 1fr!important}
  .sad-inbox-compact-filters input[type="text"]{grid-column:1/-1!important}
  .sad-inbox-compact-filters button,.sad-inbox-compact-filters .sad-inbox-clear-filter{width:100%!important}
}
@media(max-width:760px){
  .sad-inbox-compact-filters{grid-template-columns:1fr!important}
}

/* v0.9.47 - ajuda visual de transferência no painel do operador */
.sad-transfer-help {
  display: block;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8ff;
  color: #4c617d;
  font-size: 13px;
  line-height: 1.45;
}


/* v0.9.48 - filtros em três linhas, relatórios por permissão e ações compactas */
.sad-inbox-compact-filters{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:12px!important;
  align-items:stretch!important;
  overflow:visible!important;
}
.sad-inbox-compact-filters input[type="text"]{
  grid-column:1/-1!important;
  min-width:0!important;
}
.sad-inbox-compact-filters input[type="date"],
.sad-inbox-compact-filters select,
.sad-inbox-compact-filters .sad-inbox-unread-filter,
.sad-inbox-compact-filters button,
.sad-inbox-compact-filters .sad-inbox-clear-filter{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.sad-inbox-compact-filters .sad-inbox-unread-filter{
  justify-content:center!important;
  border-radius:14px!important;
  min-height:40px!important;
}
.sad-inbox-compact-filters button,
.sad-inbox-compact-filters .sad-inbox-clear-filter{
  min-height:40px!important;
  border-radius:14px!important;
}
.sad-actions-inline{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:center!important;
}
@media(max-width:1280px){
  .sad-inbox-layout .sad-inbox-compact-filters{
    grid-template-columns:1fr!important;
  }
  .sad-inbox-layout .sad-inbox-compact-filters input[type="text"]{
    grid-column:1!important;
  }
}
@media(max-width:760px){
  .sad-inbox-compact-filters{
    grid-template-columns:1fr!important;
  }
  .sad-inbox-compact-filters input[type="text"]{
    grid-column:1!important;
  }
}

/* v0.9.49 - comunicação interna da equipe */
.sad-team-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.sad-team-sidebar{position:sticky;top:16px}
.sad-team-group-list{display:flex;flex-direction:column;gap:8px;margin:12px 0 18px}
.sad-team-group{display:block;text-decoration:none;color:#10243e;border:1px solid #d8e7f4;border-radius:16px;padding:12px 14px;background:#fff}
.sad-team-group.active{background:#eaf8ff;border-color:#14aee9;box-shadow:inset 4px 0 0 #14aee9}
.sad-team-group strong{display:block;font-weight:800}.sad-team-group small{display:block;color:#58708f;margin-top:2px}
.sad-team-direct-form,.sad-team-create form{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.sad-team-direct-form select,.sad-team-create input[type="text"],.sad-team-send textarea{width:100%;border:1px solid #cfe0ee;border-radius:14px;padding:12px;font-size:16px;background:#fff}
.sad-team-member-checks{display:flex;flex-direction:column;gap:7px;max-height:180px;overflow:auto;border:1px solid #e2edf6;border-radius:14px;padding:10px;background:#f8fbfe}
.sad-team-create summary{cursor:pointer;font-weight:800;margin-top:12px;color:#087ba6}
.sad-team-chat{min-height:620px;display:flex;flex-direction:column}
.sad-team-chat-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #e2edf6;padding-bottom:12px;margin-bottom:12px}
.sad-team-messages{display:flex;flex-direction:column;gap:12px;min-height:360px;max-height:520px;overflow:auto;padding:8px;background:#f5faff;border-radius:18px}
.sad-team-message{max-width:72%;background:#fff;border:1px solid #dbe9f4;border-radius:16px;padding:10px 12px;box-shadow:0 6px 18px rgba(20,60,100,.06)}
.sad-team-message.mine{margin-left:auto;background:#dff5ff;border-color:#99dbf5}.sad-team-message p{margin:6px 0;white-space:pre-wrap}.sad-team-message small{color:#58708f}
.sad-team-send{display:grid;grid-template-columns:minmax(0,1fr)140px;gap:12px;margin-top:14px;align-items:end}
.sad-outline-danger{border:1px solid #ff9a9a;color:#b40000;background:#fff;border-radius:12px;padding:9px 12px;font-weight:800;cursor:pointer}
@media (max-width:900px){.sad-team-layout{grid-template-columns:1fr}.sad-team-sidebar{position:static}.sad-team-chat{min-height:auto}.sad-team-send{grid-template-columns:1fr}.sad-team-message{max-width:92%}}

/* v0.9.51 - Equipe com experiência de chat semelhante ao inbox */
.sad-team-page .sad-team-inbox-layout{grid-template-columns:minmax(280px,360px) minmax(520px,1fr) minmax(280px,360px)!important;}
.sad-team-page .sad-team-list-panel{display:flex!important;flex-direction:column!important;}
.sad-team-page .sad-team-thread-list{flex:1 1 auto!important;overflow:auto!important;}
.sad-team-page .sad-team-thread .sad-team-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 6px;margin-left:5px;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:900;vertical-align:middle;}
.sad-team-page .sad-team-chat-panel{display:flex!important;flex-direction:column!important;min-height:0!important;}
.sad-team-page .sad-team-messages{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;background:linear-gradient(180deg,#fbfdff,#f2f8fc)!important;border-radius:0!important;}
.sad-team-page .sad-team-send{margin:0!important;display:flex!important;flex-direction:column!important;gap:8px!important;}
.sad-team-page .sad-team-send .sad-inbox-compose-main{display:grid!important;grid-template-columns:minmax(0,1fr) 90px!important;gap:8px!important;align-items:end!important;}
.sad-team-page .sad-team-send textarea{width:100%!important;border:1px solid #cbd5e1!important;border-radius:18px!important;padding:12px 14px!important;font-size:14px!important;min-height:52px!important;max-height:140px!important;resize:vertical!important;background:#fbfdff!important;box-sizing:border-box!important;}
.sad-team-page .sad-team-send textarea:focus{border-color:#08aeea!important;box-shadow:0 0 0 3px rgba(8,174,234,.12)!important;outline:none!important;}
.sad-team-page .sad-team-details-panel form label{display:block!important;font-size:12px!important;font-weight:800!important;margin:10px 0 6px!important;color:#334155!important;}
.sad-team-page .sad-team-details-panel select,
.sad-team-page .sad-team-details-panel input[type="text"]{width:100%!important;border:1px solid #cfd8e6!important;border-radius:12px!important;min-height:40px!important;padding:9px 10px!important;box-sizing:border-box!important;background:#fff!important;}
.sad-team-page .sad-team-member-checks{display:flex!important;flex-direction:column!important;gap:7px!important;max-height:180px!important;overflow:auto!important;border:1px solid #e2edf6!important;border-radius:14px!important;padding:10px!important;background:#f8fbfe!important;}
.sad-team-page .sad-message-row.is-operator{justify-content:flex-end!important;display:flex!important;}
.sad-team-page .sad-message-row.is-visitor{justify-content:flex-start!important;display:flex!important;}
.sad-team-page .sad-message-bubble{max-width:78%!important;}
.sad-team-page .sad-team-message-mine{background:#dff5ff!important;border-color:#99dbf5!important;}
.sad-team-page .sad-team-message-other{background:#fff!important;border-color:#dbe9f4!important;}
.sad-front-nav .sad-team-nav-badge{background:#dc2626!important;color:#fff!important;}
@media(max-width:1200px){.sad-team-page .sad-team-inbox-layout{grid-template-columns:320px minmax(420px,1fr)!important}.sad-team-page .sad-team-details-panel{grid-column:1/-1!important;height:auto!important;max-height:420px!important;}}
@media(max-width:780px){.sad-team-page .sad-team-inbox-layout{display:flex!important;flex-direction:column!important;gap:12px!important}.sad-team-page .sad-team-list-panel{max-height:360px!important}.sad-team-page .sad-team-chat-panel{height:72vh!important;min-height:500px!important}.sad-team-page .sad-team-send .sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 74px!important}.sad-team-page .sad-message-bubble{max-width:90%!important}.sad-team-page .sad-team-details-panel{max-height:none!important}}

/* v0.9.52 - Equipe simultânea, composer maior e horário de atendimento */
.sad-team-page .sad-team-send{padding:14px!important;background:#fff!important;border-top:1px solid #dce8f3!important}
.sad-team-page .sad-team-send .sad-inbox-compose-main{display:grid!important;grid-template-columns:minmax(0,1fr) 118px!important;gap:12px!important;align-items:stretch!important;width:100%!important}
.sad-team-page .sad-team-send textarea{min-height:76px!important;height:76px!important;max-height:180px!important;font-size:14px!important;line-height:1.45!important;border-radius:18px!important;padding:14px 16px!important;resize:vertical!important}
.sad-team-page .sad-team-send .sad-front-btn{min-height:76px!important;border-radius:16px!important;align-self:stretch!important}
.sad-team-page .sad-team-thread{transition:background .15s ease,border-color .15s ease!important}
.sad-team-page .sad-team-thread:hover{background:#f0f9ff!important}
.sad-team-page .sad-inbox-contact-card h3{font-size:20px!important}
.sad-team-presence-block select{width:100%!important;min-height:42px!important;border:1px solid #cfd8e6!important;border-radius:12px!important;padding:9px 10px!important;background:#fff!important;font-weight:800!important}
.sad-business-hours-form{display:block!important}
.sad-business-hours-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:14px 0!important}
.sad-business-day{border:1px solid #dbe7f3!important;background:#f8fbff!important;border-radius:14px!important;padding:12px!important;display:grid!important;gap:9px!important}
.sad-business-day>label{font-weight:900!important;color:#172033!important;margin:0!important;display:flex!important;gap:8px!important;align-items:center!important}
.sad-business-day>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
.sad-business-day input[type="time"]{width:100%!important;border:1px solid #cbd5e1!important;border-radius:10px!important;padding:9px!important;background:#fff!important;box-sizing:border-box!important}
.sad-business-day span{color:#64748b!important;font-size:12px!important;font-weight:800!important}
@media(max-width:780px){
  .sad-team-page .sad-team-send .sad-inbox-compose-main{grid-template-columns:1fr!important}
  .sad-team-page .sad-team-send .sad-front-btn{min-height:50px!important;width:100%!important}
  .sad-team-page .sad-team-send textarea{min-height:88px!important;height:88px!important}
  .sad-business-hours-grid{grid-template-columns:1fr!important}
}

/* v0.9.53 - transferência segura, digitação, linha do tempo recolhida e responsivo chat */
.sad-typing-indicator{
  display:block!important;
  margin-top:4px!important;
  color:#0784b6!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.3!important;
}
.sad-timeline-details{
  padding:0!important;
  overflow:hidden!important;
}
.sad-timeline-details>summary{
  list-style:none!important;
  cursor:pointer!important;
  padding:15px 16px!important;
  font-size:13px!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  color:#334155!important;
  font-weight:900!important;
  border-bottom:1px solid #eef3f8!important;
  user-select:none!important;
}
.sad-timeline-details>summary::-webkit-details-marker{display:none!important}
.sad-timeline-details>summary:after{content:'Mostrar';float:right;text-transform:none;letter-spacing:0;color:#087ba6;font-size:12px;background:#e9f8ff;border-radius:999px;padding:4px 9px}
.sad-timeline-details[open]>summary:after{content:'Ocultar'}
.sad-timeline-details .sad-inbox-event{margin:10px 14px!important}
.sad-team-page .sad-inbox-chat-header p{margin-bottom:0!important}
.sad-team-page .sad-inbox-chat-header .sad-typing-indicator{margin-top:3px!important}
.sad-team-page .sad-team-thread small{white-space:normal!important}
.sad-team-page .sad-team-thread-main strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sad-team-page .sad-team-thread-main em{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.sad-team-page .sad-inbox-compose-main textarea,
.sad-inbox-compose-main textarea{box-sizing:border-box!important;min-width:0!important}
.sad-team-page .sad-inbox-compose-main .sad-front-btn,
.sad-inbox-compose-main .sad-front-btn{white-space:nowrap!important;box-sizing:border-box!important;min-width:0!important}
.sad-team-page .sad-message-row .sad-message-bubble p,
.sad-inbox-chat-scroll .sad-message-bubble p{overflow-wrap:anywhere!important;word-break:break-word!important}
@media(max-width:1200px){
  .sad-team-page .sad-team-inbox-layout,
  .sad-inbox-layout{height:auto!important;min-height:0!important;overflow:visible!important}
}
@media(max-width:900px){
  .sad-front-wrap.sad-inbox-page,
  .sad-front-wrap.sad-team-page{width:calc(100vw - 16px)!important;padding:8px!important;box-sizing:border-box!important;overflow-x:hidden!important}
  .sad-inbox-layout,
  .sad-team-page .sad-team-inbox-layout{display:flex!important;flex-direction:column!important;gap:12px!important;height:auto!important;min-height:0!important;overflow:visible!important}
  .sad-inbox-list-panel,
  .sad-team-page .sad-team-list-panel{width:100%!important;max-height:none!important;height:auto!important;overflow:hidden!important;border-radius:18px!important}
  .sad-inbox-thread-list,
  .sad-team-page .sad-team-thread-list{max-height:330px!important;overflow-y:auto!important;overflow-x:hidden!important}
  .sad-inbox-chat-panel,
  .sad-team-page .sad-team-chat-panel{width:100%!important;height:72vh!important;min-height:500px!important;max-height:none!important;border-radius:18px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
  .sad-inbox-chat-scroll,
  .sad-team-page .sad-team-messages{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:12px!important}
  .sad-inbox-composer,
  .sad-team-page .sad-team-send{position:sticky!important;bottom:0!important;z-index:10!important;padding:10px!important;background:#fff!important;border-top:1px solid #dbe5ef!important}
  .sad-inbox-compose-tools{display:none!important}
  .sad-inbox-compose-main,
  .sad-team-page .sad-team-send .sad-inbox-compose-main{display:grid!important;grid-template-columns:minmax(0,1fr) 86px!important;gap:8px!important;align-items:stretch!important;width:100%!important}
  .sad-inbox-compose-main textarea,
  .sad-team-page .sad-team-send textarea{font-size:16px!important;min-height:56px!important;height:56px!important;max-height:120px!important;resize:none!important;border-radius:18px!important;padding:12px!important;line-height:1.35!important}
  .sad-inbox-compose-main .sad-front-btn,
  .sad-team-page .sad-team-send .sad-front-btn{width:100%!important;min-height:56px!important;height:56px!important;border-radius:16px!important;padding:8px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .sad-inbox-compose-tip{display:none!important}
  .sad-inbox-details-panel,
  .sad-team-page .sad-team-details-panel{width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;border-radius:18px!important}
  .sad-message-row .sad-message-bubble,
  .sad-team-page .sad-message-bubble{max-width:92%!important}
}
@media(max-width:520px){
  .sad-inbox-chat-panel,
  .sad-team-page .sad-team-chat-panel{height:74vh!important;min-height:520px!important}
  .sad-inbox-thread{grid-template-columns:40px minmax(0,1fr) auto!important;padding:10px 8px!important}
  .sad-inbox-avatar{width:34px!important;height:34px!important;flex:0 0 34px!important}
  .sad-inbox-chat-header{gap:9px!important;padding:10px!important}
  .sad-inbox-chat-header h2{font-size:16px!important;line-height:1.2!important}
  .sad-inbox-chat-header p{font-size:12px!important;line-height:1.3!important}
  .sad-inbox-chat-scroll,.sad-team-page .sad-team-messages{padding:10px!important}
  .sad-inbox-compose-main,
  .sad-team-page .sad-team-send .sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 78px!important;gap:7px!important}
  .sad-inbox-compose-main textarea,
  .sad-team-page .sad-team-send textarea{min-height:54px!important;height:54px!important;border-radius:16px!important}
  .sad-inbox-compose-main .sad-front-btn,
  .sad-team-page .sad-team-send .sad-front-btn{min-height:54px!important;height:54px!important;font-size:13px!important}
  .sad-timeline-details>summary{padding:13px!important}
}


/* v0.9.55 - status único, presença e responsividade refinada */
.sad-global-presence-form{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:6px 8px!important;
  border:1px solid #dbe7f3!important;
  border-radius:999px!important;
  background:#f8fbff!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
.sad-global-presence-form.is-compact{margin-left:6px!important;}
.sad-global-presence-form select{
  border:0!important;
  background:transparent!important;
  color:#172033!important;
  font-size:13px!important;
  font-weight:900!important;
  padding:2px 18px 2px 2px!important;
  min-height:28px!important;
  max-width:112px!important;
  outline:none!important;
}
.sad-presence-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 10px!important;
  padding:12px 14px!important;
}
.sad-presence-card h2{margin:0 0 2px!important;font-size:17px!important;line-height:1.2!important;}
.sad-presence-card p{margin:0!important;}
.sad-presence-dot{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:10px!important;
  height:10px!important;
  border-radius:50%!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.9)!important;
  vertical-align:middle!important;
}
.sad-presence-online{background:#20c767!important;}
.sad-presence-away{background:#f5b91f!important;}
.sad-presence-offline{background:#ef4444!important;}
.sad-thread-presence{margin-right:7px!important;}
.sad-header-presence{margin-right:9px!important;width:12px!important;height:12px!important;}
.sad-sender-name-wrap{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;}
.sad-sender-name-wrap input{width:100%!important;min-width:0!important;}
.sad-inbox-compose-tools{grid-template-columns:minmax(0,190px) minmax(0,1fr)!important;}
.sad-inbox-composer,
.sad-team-page .sad-team-send{
  padding:12px 14px!important;
  background:#fff!important;
  border-top:1px solid #dce8f3!important;
}
.sad-inbox-composer .sad-inbox-compose-main,
.sad-team-page .sad-team-send .sad-inbox-compose-main{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 118px!important;
  gap:12px!important;
  align-items:stretch!important;
  width:100%!important;
}
.sad-inbox-composer textarea,
.sad-team-page .sad-team-send textarea{
  width:100%!important;
  min-height:72px!important;
  height:72px!important;
  max-height:180px!important;
  padding:14px 16px!important;
  border-radius:18px!important;
  box-sizing:border-box!important;
  resize:vertical!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.sad-inbox-composer .sad-front-btn,
.sad-team-page .sad-team-send .sad-front-btn{
  min-height:72px!important;
  height:72px!important;
  align-self:stretch!important;
  border-radius:16px!important;
}
.sad-hours-card{margin-top:18px!important;}
.sad-hours-card summary{padding:18px 22px!important;}
.sad-business-hours-form{padding:18px 22px 22px!important;}
.sad-business-hours-grid{gap:14px!important;}
.sad-business-day{padding:14px!important;}
.sad-business-day-title{margin-bottom:2px!important;}
.sad-business-closed{display:flex!important;align-items:center!important;gap:8px!important;font-size:13px!important;font-weight:800!important;color:#64748b!important;margin:0!important;}
.sad-business-day.is-closed{opacity:.82!important;background:#f3f6fa!important;}
.sad-business-day.is-closed .sad-business-times{opacity:.55!important;}
.sad-business-times{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;}
@media(max-width:1100px){
  .sad-topbar{gap:10px!important;}
  .sad-front-nav{gap:8px!important;}
  .sad-global-presence-form.is-compact select{max-width:92px!important;}
}
@media(max-width:900px){
  .sad-global-presence-form{width:100%!important;justify-content:space-between!important;border-radius:14px!important;}
  .sad-global-presence-form select{max-width:none!important;width:100%!important;}
  .sad-presence-card{flex-direction:column!important;align-items:flex-start!important;}
  .sad-inbox-compose-tools{grid-template-columns:1fr!important;}
  .sad-sender-name-wrap{width:100%!important;}
  .sad-inbox-composer .sad-inbox-compose-main,
  .sad-team-page .sad-team-send .sad-inbox-compose-main{grid-template-columns:1fr!important;gap:8px!important;}
  .sad-inbox-composer textarea,
  .sad-team-page .sad-team-send textarea{min-height:86px!important;height:86px!important;}
  .sad-inbox-composer .sad-front-btn,
  .sad-team-page .sad-team-send .sad-front-btn{width:100%!important;min-height:50px!important;height:50px!important;}
  .sad-business-hours-form{padding:14px!important;}
  .sad-business-times{grid-template-columns:1fr!important;}
  .sad-business-times span{text-align:left!important;}
}
@media(max-width:520px){
  .sad-inbox-chat-header h2,
  .sad-team-page .sad-inbox-chat-header h2{font-size:20px!important;line-height:1.15!important;}
  .sad-inbox-thread time{font-size:11px!important;}
  .sad-inbox-composer,
  .sad-team-page .sad-team-send{padding:10px!important;}
}

/* v0.9.56 - leitura real, bolinha única de status e contadores limpos */
.sad-inbox-thread.is-unread .sad-inbox-thread-main strong,
.sad-inbox-thread.is-unread .sad-inbox-thread-main em{
  font-weight:900!important;
  color:#111827!important;
}
.sad-inbox-thread.is-unread .sad-inbox-thread-main small{
  font-weight:700!important;
}
.sad-thread-unread-badge,
.sad-team-unread-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 7px!important;
  margin-left:6px!important;
  border-radius:999px!important;
  background:#dc2626!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  vertical-align:middle!important;
}
.sad-thread-unread-badge{
  font-size:10px!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
  height:18px!important;
}
.sad-team-thread .sad-inbox-thread-main strong{
  display:flex!important;
  align-items:center!important;
  gap:0!important;
}
.sad-team-thread .sad-thread-presence{
  flex:0 0 auto!important;
  margin:0 7px 0 0!important;
}
.sad-team-thread .sad-unread-dot,
.sad-inbox-thread .sad-unread-dot{
  display:none!important;
}
.sad-inbox-unread-filter{
  cursor:pointer!important;
  text-decoration:none!important;
  text-align:center!important;
}
.sad-inbox-unread-filter.is-active{
  border-color:#08aeea!important;
  background:#e8f8ff!important;
  color:#057aa4!important;
  box-shadow:0 0 0 3px rgba(8,174,234,.10)!important;
}
.sad-inbox-unread-filter.is-active span{
  background:#08aeea!important;
  color:#fff!important;
}
.sad-notify-badge:empty,
.sad-team-nav-badge:empty{
  display:none!important;
}
.sad-business-hours-form{
  margin:0!important;
}
.sad-business-hours-grid{
  padding:2px!important;
}
.sad-business-day{
  border-radius:16px!important;
}
.sad-business-day-title,
.sad-business-closed{
  line-height:1.25!important;
}
.sad-business-day input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin:1px 8px 0 0!important;
}
@media(max-width:760px){
  .sad-thread-unread-badge{font-size:9px!important;padding:0 5px!important;margin-left:4px!important;}
  .sad-team-unread-count{min-width:18px!important;height:18px!important;font-size:10px!important;padding:0 6px!important;}
  .sad-team-thread .sad-thread-presence{margin-right:5px!important;}
  .sad-inbox-unread-filter{min-height:42px!important;}
  .sad-business-hours-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:0!important;}
  .sad-business-day{padding:12px!important;}
}

/* v0.9.58 - ajustes de login mobile, popup sempre ativo e aniversariantes */
.sad-popup-status{
  cursor:pointer!important;
}
.sad-notify-toggle.is-popup-granted{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#166534!important;
}
.sad-notify-toggle.is-popup-denied{
  background:#fff7ed!important;
  border-color:#f97316!important;
  color:#9a3412!important;
}
.sad-cron-status-box{
  margin-top:18px!important;
  padding:18px!important;
  border:1px solid #dbe5ef!important;
  border-radius:18px!important;
  background:#f8fbff!important;
}
.sad-cron-status-box p{
  margin:0 0 10px!important;
  line-height:1.45!important;
}
.sad-cron-status-box form{
  margin-top:12px!important;
}
.sad-birthday-preview-textarea{
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin-top:10px!important;
  padding:14px 16px!important;
  border-radius:16px!important;
  border:1px solid #cfd6e4!important;
  background:#fff!important;
  line-height:1.45!important;
}
.sad-birthday-preview-note{
  margin:10px 0 0!important;
  padding:12px 14px!important;
  border-radius:14px!important;
  background:#f1f7fb!important;
  color:#50617a!important;
  line-height:1.45!important;
}
.sad-front-card .sad-two-cols,
.sad-accordion-card .sad-two-cols{
  align-items:start!important;
}
@media(max-width:760px){
  .sad-login-screen{
    min-height:auto!important;
    padding:14px 12px 34px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .sad-login-panel{
    display:flex!important;
    min-height:auto!important;
    padding:22px!important;
    border-radius:22px!important;
    gap:18px!important;
  }
  .sad-login-panel:before{
    width:160px!important;
    height:160px!important;
    right:-62px!important;
    top:-62px!important;
  }
  .sad-login-panel:after{
    display:none!important;
  }
  .sad-login-brand-block{
    padding:10px 12px!important;
    border-radius:16px!important;
    max-width:190px!important;
  }
  .sad-login-logo{
    width:140px!important;
    max-height:54px!important;
  }
  .sad-login-copy h1{
    font-size:27px!important;
    line-height:1.12!important;
    margin:6px 0 8px!important;
  }
  .sad-login-copy p{
    font-size:14px!important;
    line-height:1.45!important;
  }
  .sad-login-note{
    padding:14px!important;
    border-radius:16px!important;
  }
  .sad-login-card{
    padding:22px!important;
    border-radius:22px!important;
    max-width:none!important;
    box-shadow:0 14px 34px rgba(15,23,42,.10)!important;
  }
  .sad-login-card h1,
  .sad-login-card h2{
    font-size:24px!important;
  }
  .sad-cron-status-box{
    padding:14px!important;
    margin-top:14px!important;
  }
  .sad-birthday-preview-textarea{
    padding:12px!important;
    min-height:190px!important;
  }
  .sad-birthday-preview-note{
    padding:10px 12px!important;
    font-size:13px!important;
  }
  .sad-two-cols.sad-birthday-whatsapp-fields{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
}

/* v0.9.59 - Central de monitoramento */
.sad-monitor-page{max-width:none;margin:0;padding:0;width:100%;}
.sad-monitor-hero{margin-bottom:22px;}
.sad-monitor-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0 0 18px;}
.sad-monitor-kpi{background:#fff;border:1px solid rgba(27,58,89,.12);border-radius:20px;padding:18px 18px;box-shadow:0 18px 45px rgba(13,39,68,.08);display:flex;flex-direction:column;gap:6px;min-height:110px;}
.sad-monitor-kpi span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#52627a;font-weight:800;}
.sad-monitor-kpi strong{font-size:32px;line-height:1;color:#10243d;}
.sad-monitor-kpi small{color:#52627a;font-size:13px;line-height:1.35;}
.sad-monitor-guidance{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;padding:22px 24px!important;}
.sad-monitor-guidance h2{margin:0 0 8px;font-size:22px;color:#10243d;}
.sad-monitor-guidance p{margin:0;color:#41516a;line-height:1.55;}
.sad-monitor-guidance>div:last-child{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.sad-monitor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.sad-monitor-operator-card{background:#fff;border:1px solid rgba(27,58,89,.12);border-radius:24px;padding:20px;box-shadow:0 20px 50px rgba(13,39,68,.08);display:flex;flex-direction:column;gap:16px;min-width:0;}
.sad-monitor-operator-card.has-late{border-color:rgba(226,82,82,.35);box-shadow:0 20px 50px rgba(226,82,82,.10);}
.sad-monitor-operator-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid rgba(27,58,89,.1);padding-bottom:14px;}
.sad-monitor-operator-head h3{margin:0 0 6px;font-size:22px;color:#10243d;}
.sad-monitor-operator-head p{margin:0;color:#52627a;font-size:13px;line-height:1.4;}
.sad-monitor-operator-head>span{border-radius:999px;background:#eef8fc;color:#087da5;padding:7px 10px;font-weight:800;font-size:12px;white-space:nowrap;}
.sad-monitor-mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.sad-monitor-mini-stats span{background:#f3f8fc;border:1px solid rgba(27,58,89,.08);border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:3px;font-size:12px;color:#52627a;font-weight:700;}
.sad-monitor-mini-stats strong{font-size:22px;color:#10243d;}
.sad-monitor-preview-list{display:flex;flex-direction:column;gap:8px;}
.sad-monitor-preview-item{display:grid;grid-template-columns:1fr;gap:4px;text-decoration:none;border:1px solid rgba(27,58,89,.1);border-radius:16px;padding:12px 14px;background:#fff;color:#10243d;}
.sad-monitor-preview-item:hover{background:#f3faff;border-color:#14aee3;}
.sad-monitor-preview-item strong{font-size:15px;color:#10243d;}
.sad-monitor-preview-item span{font-size:13px;color:#31415b;}
.sad-monitor-preview-item small{font-size:12px;color:#52627a;}
.sad-monitor-preview-item.is-late{border-color:rgba(226,82,82,.45);background:#fff8f8;}
.sad-monitor-empty{border:1px dashed rgba(27,58,89,.18);border-radius:16px;padding:16px;color:#52627a;background:#f9fcfe;}
.sad-monitor-card-actions{display:flex;justify-content:flex-end;margin-top:auto;}
.sad-inbox-search-advanced select[name="sad_operator_filter"]{grid-column:auto;}

@media (max-width:1180px){
  .sad-monitor-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
  .sad-monitor-grid{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .sad-monitor-page{padding:0;}
  .sad-monitor-kpis{grid-template-columns:1fr 1fr;gap:10px;}
  .sad-monitor-kpi{border-radius:18px;padding:14px;min-height:auto;}
  .sad-monitor-kpi strong{font-size:26px;}
  .sad-monitor-guidance{display:block;padding:18px!important;border-radius:20px;}
  .sad-monitor-guidance>div:last-child{justify-content:flex-start;margin-top:14px;}
  .sad-monitor-operator-card{border-radius:20px;padding:16px;}
  .sad-monitor-operator-head{display:block;}
  .sad-monitor-operator-head>span{display:inline-flex;margin-top:10px;}
  .sad-monitor-mini-stats{grid-template-columns:1fr 1fr;}
  .sad-monitor-card-actions .sad-front-btn{width:100%;justify-content:center;}
}
@media (max-width:420px){
  .sad-monitor-kpis{grid-template-columns:1fr;}
}

/* v0.9.75 - Mini-CRM nos contatos */
.sad-crm-panel{
  margin:18px 0 10px;
  padding:18px 18px 8px;
  border:1px solid rgba(27,58,89,.12);
  border-radius:18px;
  background:linear-gradient(180deg,#f8fcff 0%,#fff 100%);
}
.sad-crm-panel h3{margin:0 0 8px;font-size:18px;color:#10243d;}
.sad-crm-panel textarea{width:100%;min-height:110px;border-radius:12px;border:1px solid rgba(27,58,89,.16);padding:12px;}
.sad-crm-interest-meta{margin-top:-4px;font-size:13px;}
.sad-crm-row-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.sad-crm-interest-line,.sad-crm-notes-line{color:#41516a;}
.sad-contact-crm-report-table .sad-crm-report-cell{max-width:min(100%,480px);}
.sad-contact-crm-report-table .sad-crm-report-field{margin:0 0 8px;line-height:1.45;word-break:break-word;}
.sad-contact-crm-report-table .sad-crm-report-field span{white-space:pre-wrap;}
.sad-lead-source-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px;}
.sad-lead-source-filters-label{font-size:12px;font-weight:800;color:#41516a;}
.sad-lead-source-tab{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid #cfe0f2;background:#fff;color:#26364d;font-size:12px;font-weight:700;text-decoration:none;}
.sad-lead-source-tab.is-active{background:#0b5cab;border-color:#0b5cab;color:#fff;}
.sad-lead-source-tab span{font-size:11px;opacity:.85;}
.sad-install-domain-hint{margin:8px 0 0;font-size:12px;}
.sad-crm-temp{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
}
.sad-crm-temp-hot{background:#e8f8ee;color:#137a3f;border:1px solid rgba(19,122,63,.22);}
.sad-crm-temp-warm{background:#fff7df;color:#9a6b00;border:1px solid rgba(154,107,0,.22);}
.sad-crm-temp-cold{background:#ffecec;color:#b42318;border:1px solid rgba(180,35,24,.22);}
.sad-crm-qualified{background:#eef8fc;color:#087da5;border:1px solid rgba(8,125,165,.18);}
.sad-badge-muted{background:#f3f6fa;color:#52627a;border:1px solid rgba(82,98,122,.15);}
.sad-contacts-crm-table .sad-badge,
.sad-contacts-crm-table .sad-crm-temp{font-size:11px;}
.sad-report-crm-filter{margin-top:0;display:block!important;padding:18px!important;}
.sad-report-crm-filter .sad-crm-filter-head{margin:0 0 14px;}
.sad-report-crm-filter h3{margin:0 0 6px;font-size:18px;color:#10243d;}
.sad-report-crm-filter .sad-crm-filter-head .sad-front-muted{margin:0;line-height:1.45;}
.sad-report-crm-filter .sad-crm-filter-grid{
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) minmax(220px,1.4fr) auto;
  gap:14px;
  align-items:end;
}
.sad-report-crm-filter .sad-crm-filter-check{align-self:stretch;display:flex;align-items:flex-end;}
.sad-report-crm-filter .sad-crm-filter-checkline{margin:0;font-weight:700;line-height:1.35;color:#26364d;}
.sad-report-crm-filter .sad-report-filter-row label{display:block;margin:0 0 6px;font-weight:800;color:#26364d;}
.sad-report-crm-filter select{width:100%;min-height:44px;border:1px solid #cfe0f2;border-radius:14px;padding:10px 12px;background:#fff;font-size:15px;color:#0f172a;}
.sad-report-crm-filter .sad-report-filter-action .sad-front-btn{width:100%;min-width:190px;justify-content:center;text-align:center;}
@media(max-width:900px){
  .sad-report-crm-filter .sad-crm-filter-grid{grid-template-columns:1fr 1fr;}
  .sad-report-crm-filter .sad-crm-filter-check{grid-column:1/-1;}
  .sad-report-crm-filter .sad-report-filter-action{grid-column:1/-1;}
}
@media(max-width:560px){
  .sad-report-crm-filter .sad-crm-filter-grid{grid-template-columns:1fr;}
  .sad-report-crm-filter .sad-report-filter-action{grid-column:auto;}
}
.sad-form-capture-checklist{margin:0 0 14px;padding-left:18px;color:#41516a;line-height:1.5;font-size:13px;}
.sad-form-capture-checklist li{margin:0 0 6px;}
.sad-form-capture-status{margin:0 0 12px;padding:10px 12px;border-radius:12px;font-size:13px;}
.sad-form-capture-status.ok{background:#ecfdf5;border:1px solid rgba(19,122,63,.18);color:#137a3f;}
.sad-form-capture-status.warn{background:#fff7df;border:1px solid rgba(154,107,0,.22);color:#9a6b00;}
.sad-form-capture-snippet{width:100%;margin:8px 0 0;font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.35;border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#f8fafc;}
.sad-basic-install-hint{margin-top:16px;}
.sad-install-replace-note{margin:0 0 14px;}
.sad-install-steps{margin:0;padding-left:20px;line-height:1.55;}
.sad-install-steps li{margin:0 0 8px;}
.sad-site-install-card{margin-top:0;}
.sad-site-install-summary{margin:0 0 14px;padding-left:18px;color:#41516a;line-height:1.5;font-size:13px;}
.sad-site-install-summary li{margin:0 0 6px;}
.sad-install-script-textarea{width:100%;margin:8px 0 0;font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.35;border:1px solid #cfe0f2;border-radius:14px;padding:12px;background:#f8fafc;min-height:220px;}
.sad-install-script-label{display:block;margin:10px 0 0;font-weight:800;color:#10243d;}
.sad-install-footnote{margin:12px 0 0;font-size:12px;}
.sad-crm-report-metrics{margin-top:0;}

/* v0.9.77 - Termômetro CRM e dados empresariais opcionais */
.sad-crm-qualified-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  font-weight:700;
  color:#10243d;
}
.sad-crm-thermo-field{margin:0 0 16px;}
.sad-crm-thermo-label{
  display:block;
  margin:0 0 10px;
  font-weight:800;
  color:#10243d;
}
.sad-crm-thermo{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:16px;
  align-items:stretch;
  padding:14px;
  border:1px solid rgba(27,58,89,.12);
  border-radius:16px;
  background:#fff;
}
.sad-crm-thermo-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-height:210px;
}
.sad-crm-thermo-scale{
  display:flex;
  flex-direction:column-reverse;
  justify-content:space-between;
  height:150px;
  margin-right:4px;
  font-size:10px;
  font-weight:800;
  color:#94a3b8;
  position:absolute;
  left:0;
  top:8px;
}
.sad-crm-thermo-visual{position:relative;padding-left:18px;}
.sad-crm-thermo-scale span::before{content:'';}
.sad-crm-thermo-scale span:nth-child(1)::before{content:'Quente';}
.sad-crm-thermo-scale span:nth-child(2)::before{content:'Morno';}
.sad-crm-thermo-scale span:nth-child(3)::before{content:'Frio';}
.sad-crm-thermo-tube{
  width:28px;
  height:150px;
  border-radius:16px 16px 4px 4px;
  background:linear-gradient(180deg,#22c55e 0%,#facc15 48%,#ef4444 100%);
  position:relative;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);
}
.sad-crm-thermo-fill{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:0%;
  background:rgba(255,255,255,.28);
  transition:height .28s ease, background .28s ease;
  border-radius:0 0 4px 4px;
}
.sad-crm-thermo-bulb{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#cbd5e1;
  border:3px solid rgba(255,255,255,.9);
  box-shadow:0 8px 18px rgba(15,23,42,.12);
  transition:background .28s ease, box-shadow .28s ease;
}
.sad-crm-thermo[data-level="none"] .sad-crm-thermo-fill{height:8%;background:rgba(255,255,255,.45);}
.sad-crm-thermo[data-level="none"] .sad-crm-thermo-bulb{background:#cbd5e1;}
.sad-crm-thermo[data-level="cold"] .sad-crm-thermo-fill{height:28%;background:rgba(239,68,68,.35);}
.sad-crm-thermo[data-level="cold"] .sad-crm-thermo-bulb{background:#ef4444;box-shadow:0 10px 22px rgba(239,68,68,.35);}
.sad-crm-thermo[data-level="warm"] .sad-crm-thermo-fill{height:58%;background:rgba(250,204,21,.35);}
.sad-crm-thermo[data-level="warm"] .sad-crm-thermo-bulb{background:#f59e0b;box-shadow:0 10px 22px rgba(245,158,11,.35);}
.sad-crm-thermo[data-level="hot"] .sad-crm-thermo-fill{height:92%;background:rgba(34,197,94,.28);}
.sad-crm-thermo[data-level="hot"] .sad-crm-thermo-bulb{background:#22c55e;box-shadow:0 10px 22px rgba(34,197,94,.35);}
.sad-crm-thermo-status{
  margin:0 0 10px;
  font-size:14px;
  font-weight:800;
  color:#10243d;
}
.sad-crm-thermo-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.sad-crm-thermo-opt{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(27,58,89,.12);
  border-radius:12px;
  cursor:pointer;
  background:#f8fbfd;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sad-crm-thermo-opt input{position:absolute;opacity:0;pointer-events:none;}
.sad-crm-thermo-opt:has(input:checked){
  border-color:rgba(8,125,165,.45);
  background:#eef9fe;
  box-shadow:0 8px 20px rgba(8,125,165,.10);
}
.sad-crm-thermo-swatch{
  width:14px;
  height:14px;
  border-radius:50%;
  flex:0 0 14px;
  background:#cbd5e1;
}
.sad-crm-thermo-opt-cold .sad-crm-thermo-swatch{background:#ef4444;}
.sad-crm-thermo-opt-warm .sad-crm-thermo-swatch{background:#f59e0b;}
.sad-crm-thermo-opt-hot .sad-crm-thermo-swatch{background:#22c55e;}
.sad-crm-thermo-opt-none .sad-crm-thermo-swatch{background:#94a3b8;}
.sad-crm-thermo-opt-text{display:flex;flex-direction:column;gap:2px;min-width:0;}
.sad-crm-thermo-opt-text strong{font-size:13px;color:#10243d;}
.sad-crm-thermo-opt-text small{font-size:11px;color:#64748b;line-height:1.3;}
.sad-crm-thermo-opt-none{grid-column:1 / -1;}
.sad-crm-business-wrap{margin:0 0 16px;}
.sad-crm-business-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px dashed rgba(27,58,89,.18);
  border-radius:12px;
  background:#f9fcfe;
  cursor:pointer;
  font-weight:700;
  color:#10243d;
}
.sad-crm-business-toggle input{width:auto;margin:0;}
.sad-crm-business-fields{
  margin-top:12px;
  padding:14px;
  border:1px solid rgba(27,58,89,.10);
  border-radius:14px;
  background:#fff;
}
.sad-crm-business-fields[hidden]{display:none!important;}
.sad-crm-business-fields label{margin-top:10px;}
.sad-crm-business-fields label:first-child{margin-top:0;}
.sad-crm-business-fields input,
.sad-crm-business-fields select{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(27,58,89,.16);
  padding:10px 12px;
}
.sad-crm-business-docs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:10px;
}
@media (max-width:760px){
  .sad-crm-thermo{
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:10px 12px!important;
    padding:12px!important;
  }
  .sad-crm-thermo-visual{
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    min-height:auto;
    padding-left:0;
    gap:6px;
  }
  .sad-crm-thermo-scale{display:none;}
  .sad-crm-thermo-tube{
    width:22px;
    height:120px;
  }
  .sad-crm-thermo-bulb{width:34px;height:34px;}
  .sad-crm-thermo-status{font-size:12px;margin-bottom:6px;}
  .sad-crm-thermo-options{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .sad-crm-thermo-opt{
    padding:8px 10px!important;
    gap:8px!important;
  }
  .sad-crm-thermo-opt-text strong{font-size:12px;}
  .sad-crm-thermo-opt-text small{font-size:10px;}
  .sad-crm-thermo-opt-none{grid-column:1 / -1;}
  .sad-crm-business-docs{grid-template-columns:1fr;}
}

/* v0.9.81 — atalho celular (PWA) e aniversariantes simplificado */
.sad-mobile-app-card,
.sad-mobile-app-card-wrap{
  margin:0 0 10px!important;
  padding:12px 14px!important;
  border:1px solid #bfdbfe!important;
  background:linear-gradient(180deg,#f0f9ff 0%,#fff 100%)!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
}
.sad-mobile-app-card.is-compact,
.sad-mobile-app-card-wrap.is-compact{
  padding:10px 12px!important;
  margin-bottom:8px!important;
}
.sad-mobile-app-card-head{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 4px!important;
}
.sad-mobile-app-card-title,
.sad-mobile-app-card-head h2,
.sad-mobile-app-card h2{
  margin:0!important;
  font-size:17px!important;
  line-height:1.2!important;
  font-weight:800!important;
  color:#172033!important;
}
.sad-mobile-app-card-desc{
  margin:0 0 8px!important;
  font-size:13px!important;
  line-height:1.4!important;
}
.sad-mobile-app-card-wrap .sad-pwa-launcher{
  margin:0!important;
}
.sad-mobile-app-card-wrap .sad-pwa-launcher--card.sad-front-card{
  padding:10px 12px!important;
  margin:0!important;
  border-radius:12px!important;
  border:1px solid #dbe5ef!important;
  box-shadow:none!important;
}
.sad-mobile-app-card-wrap .sad-pwa-launcher-details>.sad-pwa-launcher-summary{
  padding:8px 10px!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.35!important;
}
.sad-mobile-app-card-wrap .sad-pwa-launcher-body{
  padding:0 10px 10px!important;
}
.sad-mobile-app-card-wrap .sad-pwa-launcher-actions{
  margin:6px 0 8px!important;
  gap:6px!important;
}
.sad-mobile-app-card-wrap .sad-pwa-launcher-actions .sad-front-btn{
  min-height:36px!important;
  padding:8px 12px!important;
  font-size:12px!important;
}
.sad-mobile-app-pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#08aeea;color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;}
.sad-mobile-app-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;}
.sad-mobile-app-steps div,.sad-mobile-app-step-link{padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #dbe5ef;display:block;text-decoration:none;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.sad-mobile-app-step-link:hover,.sad-mobile-app-step-link:focus{border-color:#08aeea;box-shadow:0 4px 14px rgba(8,174,234,.15);}
.sad-mobile-app-steps strong{display:block;font-size:13px;margin-bottom:4px;}
.sad-mobile-app-steps span{display:block;font-size:12px;color:#64748b;line-height:1.35;}
.sad-mobile-app-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.sad-mobile-app-actions .sad-front-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;cursor:pointer;}
.sad-mobile-app-steps a{color:inherit;text-decoration:underline;cursor:pointer;}
.sad-message-manager-badge{display:block;margin-top:4px;font-size:11px;font-weight:700;color:#7c3aed;letter-spacing:.02em;}
.sad-message-row.manager-assist .sad-message-bubble{border:1px solid #e9d5ff;}
.sad-save-operator-name-form{margin:0 0 10px;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;}
.sad-manager-reply-hint{margin:0 0 8px;padding:8px 10px;border-radius:10px;background:#f5f3ff;border:1px solid #e9d5ff;font-size:12px;line-height:1.4;}
.sad-birthday-simple-status{margin-top:16px;padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;}
.sad-birthday-simple-status p{margin:0 0 8px!important;line-height:1.45!important;}
.sad-birthday-simple-status .sad-status-ok{color:#166534;}
.sad-birthday-simple-status .sad-status-warn{color:#9a3412;}
.sad-birthday-run-today-form{margin-top:12px!important;}
@media(max-width:760px){
  .sad-mobile-app-steps{grid-template-columns:1fr;}
}

/* v0.9.82 — abas de atendimento, menu editável e nome do operador */
.sad-attendance-tabs{margin:0 0 16px;border-bottom:1px solid #e2e8f0;}
.sad-attendance-tab-nav{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 10px;}
.sad-attendance-tab-nav button{border:1px solid #dbe5ef;background:#f8fafc;color:#334155;border-radius:12px;padding:10px 14px;font-weight:700;font-size:13px;cursor:pointer;}
.sad-attendance-tab-nav button.is-active{background:#fff;color:#0f172a;box-shadow:0 0 0 2px #08aeea inset;}
.sad-attendance-tab-panel{display:none;padding-top:4px;}
.sad-attendance-tab-panel.is-active{display:block;}
.sad-choice-pill{display:inline-flex;align-items:center;gap:8px;margin:0 12px 10px 0;padding:10px 12px;border:1px solid #dbe5ef;border-radius:14px;background:#fff;cursor:pointer;font-size:13px;}
.sad-choice-pill input{margin:0;}
.sad-menu-lines-editor{display:grid;gap:8px;margin:10px 0;}
.sad-menu-line-row{display:flex;gap:8px;align-items:center;}
.sad-menu-line-row input{flex:1;}
.sad-menu-line-row button{flex:0 0 auto;min-width:36px;}
.sad-save-operator-name-form{margin:0 0 10px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;}
.sad-sender-name-save-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.sad-sender-name-save-row label{font-weight:700;font-size:13px;margin:0;}
.sad-sender-name-save-row .sad-sender-name-wrap{flex:1;min-width:160px;}
.sad-inbox-compose .sad-save-operator-name-form + .sad-inbox-compose-tools{margin-top:6px;}
@media(max-width:760px){
  .sad-sender-name-save-row{align-items:stretch;}
  .sad-sender-name-save-row .sad-front-btn{width:100%;}
  .sad-attendance-tab-nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px;-webkit-overflow-scrolling:touch;}
  .sad-attendance-tab-nav button{flex:0 0 auto;font-size:12px;padding:9px 12px;}
  .sad-menu-line-row input{font-size:16px;min-height:44px;}
  .sad-save-operator-name-form input{font-size:16px;min-height:44px;}
}

/* v0.9.87 — URA home, agrupamento inbox, mobile chat e PWA */
.sad-inbox-group-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid #eef3f8;background:#fbfdff;}
.sad-inbox-group-tabs-label{font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-right:4px;}
.sad-inbox-group-tabs a{text-decoration:none;border:1px solid #dbe5ef;background:#fff;color:#334155;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;}
.sad-inbox-group-tabs a.is-active{background:#e8f7ff;border-color:#7dd3fc;color:#0369a1;}
.sad-inbox-thread-group-head{display:flex;justify-content:space-between;align-items:center;padding:8px 12px 4px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:2;}
.sad-inbox-thread-group-head strong{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#475569;}
.sad-inbox-thread-group-head span{font-size:11px;font-weight:800;color:#0369a1;background:#e0f2fe;border-radius:999px;padding:2px 8px;}
.sad-inbox-chat-stack{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;height:100%;overflow:hidden;}
.sad-inbox-chat-body{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;}
.sad-inbox-back-btn{display:none;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border-radius:12px;border:1px solid #dbe5ef;background:#fff;color:#0369a1;font-weight:800;font-size:18px;text-decoration:none;line-height:1;}
.sad-inbox-chat-header-main{min-width:0;flex:1;}
.sad-inbox-chat-scroll{overscroll-behavior:contain;}
.sad-inbox-scroll-hint{display:none;margin:0;padding:4px 12px 6px;font-size:11px;color:#64748b;text-align:center;}
.sad-form-capture-card{margin-bottom:16px;}
.sad-form-capture-help{margin:0 0 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;}
.sad-form-capture-help summary{cursor:pointer;padding:10px 12px;font-weight:800;font-size:13px;}
.sad-form-capture-help-list{margin:0;padding:8px 12px 12px 22px;font-size:12px;line-height:1.45;color:#475569;}
.sad-form-capture-table select,.sad-form-capture-table input{width:100%;min-height:40px;}
.sad-inbox-compose-advanced{margin:6px 0 0;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;overflow:hidden;flex:0 0 auto;}
.sad-inbox-transfer-panel{margin:8px 0 0;border:1px solid #dbeafe;border-radius:12px;background:#f0f9ff;overflow:hidden;flex:0 0 auto;}
.sad-inbox-transfer-panel>.sad-inbox-accordion-summary{color:#0369a1;}
.sad-inbox-transfer-panel-body{padding:0 10px 12px;max-height:min(360px,48vh);overflow:auto;}
.sad-inbox-transfer-wrap--composer .sad-inbox-transfer-form label{font-size:11px;font-weight:700;color:#475569;margin-top:8px;display:block;}
.sad-inbox-transfer-wrap--composer .sad-inbox-transfer-form select,
.sad-inbox-transfer-wrap--composer .sad-inbox-transfer-form .sad-inbox-transfer-submit{width:100%;min-height:40px;margin-top:4px;}
.sad-inbox-transfer-wrap--composer .sad-transfer-help{margin:8px 0 0;font-size:11px;line-height:1.4;}
.sad-inbox-transfer-wrap--panel .sad-inbox-transfer-title,
.sad-inbox-transfer-wrap--modal .sad-inbox-transfer-title{margin:0 0 6px;font-size:13px;}
.sad-inbox-transfer-current{margin:0 0 10px;font-size:12px;line-height:1.45;color:#475569;}
.sad-inbox-lead-modal-transfer{margin-top:14px;padding-top:14px;border-top:1px solid #e6eef8;}
.sad-inbox-lead-modal-transfer .sad-inbox-transfer-form{display:grid;gap:8px;}
.sad-inbox-lead-modal-transfer .sad-inbox-transfer-form select{min-height:40px;}
.sad-inbox-transfer-submit{margin-top:4px;}
.sad-inbox-compose-advanced .sad-inbox-compose-tools{padding:0 10px 10px;display:grid;grid-template-columns:1fr;gap:8px;}
.sad-inbox-compose-advanced:not([open]) .sad-inbox-compose-tools{display:none;}
.sad-inbox-accordion-summary{cursor:pointer;padding:10px 12px;font-size:12px;font-weight:800;color:#475569;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;-webkit-tap-highlight-color:transparent;user-select:none;}
.sad-inbox-accordion-summary::-webkit-details-marker{display:none;}
.sad-inbox-accordion-summary::after{content:'▼';font-size:10px;color:#64748b;transition:transform .2s ease;}
.sad-inbox-compose-advanced.is-open>.sad-inbox-accordion-summary::after,
.sad-inbox-chat-tools.is-open>.sad-inbox-accordion-summary::after,
.sad-inbox-transfer-panel.is-open>.sad-inbox-accordion-summary::after{transform:rotate(180deg);}
.sad-inbox-compose-advanced.is-open>.sad-inbox-accordion-summary,
.sad-inbox-chat-tools.is-open>.sad-inbox-accordion-summary,
.sad-inbox-transfer-panel.is-open>.sad-inbox-accordion-summary{color:#0369a1;background:#eff8ff;}
.sad-inbox-chat-tools{margin:0;border-top:1px solid #e6eef8;background:#f8fafc;flex:0 0 auto;}
.sad-inbox-chat-tools>.sad-inbox-accordion-summary{color:#0369a1;}
.sad-inbox-chat-tools-panel{padding:0 12px 12px;display:grid;gap:10px;max-height:42vh;overflow:auto;}
.sad-inbox-chat-extras,.sad-inbox-chat-tools-panel .sad-replay-home-form{display:grid;gap:6px;}
.sad-replay-home-btn{width:100%;justify-content:center;}
.sad-inbox-chat-tools-panel .sad-save-operator-name-form{margin:0;padding:10px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;}
.sad-inbox-chat-tools-panel .sad-manager-reply-hint{margin:0;}
.sad-inbox-basic-note{flex:0 0 auto;margin:0;padding:10px 12px;border-top:1px solid #e6eef8;background:#fff;font-size:12px;}
.sad-front-notice.is-error{background:#fef2f2;border-color:#fecaca;color:#991b1b;}
.sad-pwa-launcher{margin:0 0 14px;}
.sad-pwa-launcher--strip{margin:0 0 12px;padding:12px 14px;border-radius:18px;background:linear-gradient(180deg,#eff8ff,#fff);border:1px solid #bae6fd;}
.sad-pwa-launcher--card{padding:16px 18px!important;}
.sad-pwa-launcher--compact .sad-pwa-launcher-summary{font-size:13px;}
.sad-pwa-launcher-details{border:1px solid #dbe5ef;border-radius:16px;background:#fff;overflow:hidden;}
.sad-pwa-launcher-details>.sad-pwa-launcher-summary{cursor:pointer;padding:12px 14px;font-weight:800;font-size:14px;color:#0f172a;list-style-position:inside;}
.sad-pwa-launcher-details>.sad-pwa-launcher-summary em{font-weight:500;font-size:12px;color:#64748b;font-style:normal;}
.sad-pwa-launcher-pill{display:inline-flex;align-items:center;margin-right:8px;padding:3px 8px;border-radius:999px;background:#08aeea;color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle;}
.sad-pwa-launcher-body{padding:0 14px 14px;}
.sad-pwa-launcher-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px;}
.sad-pwa-launcher-actions .sad-front-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;}
.sad-pwa-device-details{margin:8px 0;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;overflow:hidden;}
.sad-pwa-device-details summary{cursor:pointer;padding:10px 12px;font-weight:800;font-size:13px;color:#172033;}
.sad-pwa-device-panel{padding:0 12px 12px;}
.sad-pwa-config-link{margin:10px 0 0;font-size:12px;}
.sad-mobile-app-card-wrap{margin-bottom:16px;}
.sad-mobile-app-card-wrap.is-compact{margin-bottom:12px;}
.sad-pwa-strip{margin:0 0 12px;padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#eff8ff,#fff);border:1px solid #bae6fd;}
.sad-pwa-strip-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:8px;}
.sad-pwa-strip-head strong{font-size:15px;color:#0c4a6e;}
.sad-pwa-strip-head span{font-size:12px;color:#0369a1;}
.sad-pwa-strip-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.sad-pwa-guide-details{margin:8px 0;border:1px solid #dbe5ef;border-radius:14px;background:#fff;overflow:hidden;}
.sad-pwa-guide-details summary{cursor:pointer;padding:10px 12px;font-weight:800;font-size:13px;color:#0f172a;list-style-position:inside;}
.sad-pwa-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 12px;}
.sad-pwa-guide-step{padding:10px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;}
.sad-pwa-guide-step.is-highlight{border-color:#08aeea;background:#eff8ff;box-shadow:0 0 0 2px rgba(8,174,234,.2);}
.sad-pwa-guide-step strong{display:block;font-size:13px;margin-bottom:6px;color:#172033;}
.sad-pwa-guide-step ol{margin:0;padding-left:18px;font-size:12px;line-height:1.45;color:#475569;}
.sad-pwa-guide-step li{margin-bottom:4px;}
@media(max-width:980px){
  .sad-inbox-chat-panel{display:flex;flex-direction:column;min-height:72vh;}
  .sad-inbox-chat-stack{min-height:72vh;}
  .sad-inbox-chat-scroll{flex:1 1 auto;min-height:220px;max-height:none;}
  .sad-inbox-list-panel{max-height:42vh;}
  .sad-inbox-details-panel{order:3;}
}
@media(max-width:820px){
  .sad-inbox-page.has-thread-open{padding-bottom:20px!important;min-height:auto!important;}
  .sad-inbox-page.has-thread-open .sad-inbox-hero,
  .sad-inbox-page.has-thread-open .sad-pwa-launcher,
  .sad-inbox-page.has-thread-open .sad-inbox-details-panel{display:none!important;}
  .sad-inbox-page.has-thread-open .sad-inbox-list-panel{
    display:block!important;
    max-height:none!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-layout,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-stack{
    display:flex!important;flex-direction:column!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel{margin:0!important;}
  .sad-inbox-page.has-thread-open .sad-inbox-chat-stack{gap:0;}
  .sad-inbox-page.has-thread-open .sad-inbox-chat-header{
    flex:0 0 auto;padding:8px 10px;gap:8px;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-back-btn{display:inline-flex;}
  .sad-inbox-page.has-thread-open .sad-inbox-chat-header-main h2{
    font-size:15px!important;line-height:1.2!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-chat-header-meta{
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
    font-size:10px!important;line-height:1.35!important;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;
  }
  /* ~4 mensagens visíveis; o restante rola aqui dentro */
  .sad-inbox-page.has-thread-open .sad-inbox-chat-scroll,
  .sad-inbox-page.is-mobile-focus .sad-inbox-chat-scroll{
    flex:0 0 auto!important;
    height:clamp(240px,32dvh,300px)!important;
    max-height:clamp(240px,32dvh,300px)!important;
    min-height:200px!important;
    overflow-y:scroll!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    padding:10px 12px 8px!important;
    margin:0 8px;
    border:1px solid #dbe5ef;
    border-radius:14px;
    scrollbar-width:thin;
    scrollbar-color:#94a3b8 #f1f5f9;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-scroll-hint,
  .sad-inbox-page.is-mobile-focus .sad-inbox-scroll-hint{display:block;}
  .sad-inbox-page.has-thread-open .sad-inbox-composer{
    flex:0 0 auto;position:relative!important;padding:8px 10px 6px;
    background:#fff;border-top:1px solid #e6eef8;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-compose-main{
    grid-template-columns:minmax(0,1fr) 72px!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-compose-main textarea{
    min-height:40px!important;max-height:72px!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-compose-main .sad-front-btn{
    min-height:40px!important;height:40px!important;padding:0 10px!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-compose-tip{display:none!important;}
  .sad-inbox-page.has-thread-open .sad-inbox-chat-tools{flex:0 0 auto;}
  .sad-inbox-page.has-thread-open .sad-inbox-chat-tools[open] .sad-inbox-chat-tools-panel{
    max-height:220px;overflow-y:auto;
  }
  .sad-inbox-page.is-mobile-focus .sad-inbox-hero{display:none;}
  .sad-inbox-page.is-mobile-focus .sad-pwa-launcher--strip{font-size:12px;}
}
@media(max-width:640px){
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-stack{
    height:auto!important;min-height:0!important;
  }
  .sad-inbox-compose-main{grid-template-columns:minmax(0,1fr) 72px!important;}
  .sad-pwa-guide-grid{grid-template-columns:1fr;}
  .sad-inbox-group-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;}
  .sad-inbox-search-advanced{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
  .sad-inbox-search-advanced input[type="date"]{grid-column:1/-1;}
  .sad-inbox-search-advanced .sad-inbox-unread-filter{grid-column:1/-1;}
  .sad-inbox-search-advanced button,.sad-inbox-search-advanced .sad-inbox-clear-filter{min-height:40px;}
}

/* v0.9.88 — plano básico unificado */
.sad-basic-unified-intro{margin-bottom:16px!important;}
.sad-basic-triage-section{margin:0 0 20px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;}
.sad-basic-triage-section h3{margin:0 0 8px;font-size:1.05rem;color:#0f172a;}
.sad-basic-triage-section .sad-front-muted{margin-bottom:12px;}
.sad-basic-install-block{margin-top:18px;}
.sad-basic-triage-unified-form .sad-menu-lines-editor{margin-top:10px;}
.sad-basic-wa-note{margin:8px 0 0;padding:10px 12px;border-radius:12px;background:#ecfdf5;border:1px solid #bbf7d0;font-size:12px;line-height:1.45;}
@media(max-width:760px){
  .sad-basic-triage-section{padding:14px;}
}

/* v0.9.102 — lembretes no painel */
.sad-reminders-card{margin-top:18px;}
.sad-reminders-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.sad-reminder-item{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:start;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;}
.sad-reminder-item.is-today{border-color:#38bdf8;background:#f0f9ff;box-shadow:0 0 0 1px rgba(56,189,248,.25);}
.sad-reminder-meta{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#64748b;}
.sad-reminder-type{display:inline-block;padding:2px 8px;border-radius:999px;background:#f1f5f9;color:#334155;font-weight:600;text-transform:uppercase;letter-spacing:.03em;font-size:10px;width:fit-content;}
.sad-reminder-item.is-today .sad-reminder-type{background:#dbeafe;color:#1d4ed8;}
.sad-reminder-link{display:flex;flex-direction:column;gap:4px;color:inherit;text-decoration:none;}
.sad-reminder-link strong{color:#0f172a;font-size:15px;}
.sad-reminder-link small{color:#64748b;line-height:1.4;}
@media(max-width:640px){
  .sad-reminder-item{grid-template-columns:1fr;}
}

/* v0.9.103 — hub de lembretes + popup central */
.sad-reminder-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;}
.sad-reminder-summary-grid div{padding:14px 16px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;display:flex;flex-direction:column;gap:4px;}
.sad-reminder-summary-grid strong{font-size:28px;line-height:1;color:#0f172a;}
.sad-reminder-summary-grid span{font-size:13px;color:#64748b;}
.sad-reminder-tabs{padding:20px;}
.sad-reminder-tab-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
.sad-reminder-tab,.sad-reminder-subnav a{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;border:1px solid #dbe5ef;background:#fff;color:#334155;text-decoration:none;font-size:13px;font-weight:600;}
.sad-reminder-tab.is-active,.sad-reminder-subnav a.is-active{background:#0ea5e9;border-color:#0ea5e9;color:#fff;}
.sad-reminder-subnav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
.sad-reminder-tip{margin-top:16px;font-size:13px;}
.sad-reminder-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:20px;z-index:2147483646;}
.sad-reminder-modal{width:min(560px,100%);max-height:min(90vh,720px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 24px 64px rgba(15,23,42,.28);padding:24px;}
.sad-reminder-modal-head h2{margin:6px 0 8px;font-size:24px;color:#0f172a;}
.sad-reminder-modal-head p{margin:0;color:#64748b;line-height:1.5;font-size:14px;}
.sad-reminder-modal-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px;}
.sad-reminder-modal-item{display:grid;gap:6px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;}
.sad-reminder-modal-item strong{font-size:16px;color:#0f172a;}
.sad-reminder-modal-item small{color:#64748b;line-height:1.4;}
.sad-reminder-open{justify-self:start;margin-top:4px;}
.sad-reminder-snooze{margin-top:18px;padding-top:16px;border-top:1px solid #e2e8f0;}
.sad-reminder-snooze p{margin:0 0 10px;font-size:13px;color:#475569;font-weight:600;}
.sad-reminder-snooze-btns{display:flex;flex-wrap:wrap;gap:8px;}
.sad-reminder-snooze-btns button{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;}
.sad-reminder-snooze-btns button:hover{background:#f1f5f9;}
.sad-reminder-modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;justify-content:flex-end;}
@media(max-width:640px){
  .sad-reminder-summary-grid{grid-template-columns:1fr;}
  .sad-reminder-modal-actions{flex-direction:column;}
  .sad-reminder-modal-actions .sad-front-btn{width:100%;justify-content:center;}
}
.sad-save-debug-panel{border:2px solid #08aeea;background:#f0f9ff;margin:0 0 18px;}
.sad-save-debug-panel.is-error{border-color:#f87171;background:#fef2f2;}
.sad-save-debug-panel.is-ok{border-color:#34d399;background:#ecfdf5;}
.sad-save-debug-warnings{margin:10px 0 14px;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fdba74;color:#9a3412;}
.sad-save-debug-warnings ul{margin:6px 0 0 18px;padding:0;}
.sad-save-debug-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}
.sad-save-debug-table th,.sad-save-debug-table td{border:1px solid #e2e8f0;padding:8px 10px;vertical-align:top;word-break:break-word;}
.sad-save-debug-table th{background:#f8fafc;font-size:11px;text-transform:uppercase;letter-spacing:.03em;}

/* v0.9.124 — layout responsivo: leads, contatos, CRM e notificações */
.sad-contacts-page{
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
}
.sad-contacts-page--full{
  width:100%;
  max-width:100%;
}
.sad-attendance-routing{
  display:grid;
  gap:20px;
  width:100%;
  max-width:100%;
}
.sad-attendance-list-card{
  width:100%;
  max-width:100%;
}
.sad-inbox-manual-divider{
  margin:14px 0;
  border:0;
  border-top:1px solid #e2e8f0;
}
.sad-contacts-list-card{
  min-height:0;
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:100%;
}
.sad-contacts-list-viewport{
  flex:1 1 auto;
  min-height:0;
  max-height:calc(100dvh - 250px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#94a3b8 #eef2f7;
  margin-top:2px;
  padding-right:2px;
}
.sad-contacts-list-viewport::-webkit-scrollbar{width:10px;}
.sad-contacts-list-viewport::-webkit-scrollbar-track{background:#eef2f7;border-radius:10px;}
.sad-contacts-list-viewport::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:10px;border:2px solid #eef2f7;}
.sad-contacts-list-viewport .sad-front-table-wrap{
  overflow-x:auto;
  max-width:100%;
  -webkit-overflow-scrolling:touch;
}
.sad-contact-filter .sad-two-cols{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.sad-contact-filter-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 12px;
  align-items:end;
}
.sad-contact-filter-grid .sad-contact-filter-cell{
  min-width:0;
}
.sad-contact-filter-grid .sad-contact-filter-cell label{
  margin:0 0 4px!important;
  font-size:13px!important;
}
.sad-contact-filter-grid .sad-contact-filter-actions{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:4px 0 0;
}
.sad-origin-label-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 8px;
  margin:8px 0 4px!important;
}
.sad-origin-add-link{
  border:0;
  background:none;
  padding:0;
  margin:0;
  font-size:11px;
  font-weight:700;
  color:#087ba6;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:2px;
}
.sad-origin-add-link:hover{color:#055f7d;}
.sad-origin-custom-panel{
  margin:6px 0 10px;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#f8fafc;
}
.sad-origin-custom-form{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.sad-origin-custom-form input{
  flex:1 1 180px;
  min-width:0;
  margin:0!important;
}
.sad-origin-custom-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.sad-origin-custom-actions .sad-front-btn,
.sad-origin-custom-actions .sad-small-link{
  margin:0!important;
}
.sad-origin-custom-status{
  margin:8px 0 0!important;
  font-size:12px!important;
}
.sad-origin-custom-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin:4px 0 6px;
}
.sad-origin-custom-list:empty,
.sad-origin-custom-list[hidden]{
  display:none!important;
  margin:0!important;
}
.sad-contact-origin-tags-col{
  display:flex;
  flex-direction:column;
  gap:0;
  min-width:0;
  align-self:start;
}
.sad-contact-origin-tags-col .sad-contact-origin-block{
  display:flex;
  flex-direction:column;
  gap:0;
}
.sad-contact-origin-tags-col label{
  display:block;
  margin:0 0 4px!important;
  padding:0;
}
.sad-contact-origin-tags-col .sad-origin-label-row{
  margin-bottom:4px!important;
}
.sad-contact-origin-tags-col select,
.sad-contact-origin-tags-col input[type="text"]{
  width:100%!important;
  max-width:100%!important;
  margin:0 0 8px!important;
  box-sizing:border-box!important;
}
.sad-contact-origin-tags-col .sad-origin-custom-list{
  margin:2px 0 6px!important;
}
.sad-contact-origin-tags-col .sad-origin-custom-status{
  margin:0 0 6px!important;
  font-size:12px!important;
  line-height:1.35!important;
}
.sad-contact-origin-tags-col .sad-origin-custom-panel{
  margin:0 0 8px!important;
  padding:8px 10px!important;
}
.sad-contact-origin-tags-col > label:last-of-type,
.sad-contact-origin-tags-col label:not(.sad-origin-label-row){
  margin-top:2px!important;
}
.sad-origin-custom-list-title{
  font-size:10px;
  font-weight:800;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-right:4px;
  width:100%;
  flex-basis:100%;
}
.sad-origin-custom-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef6ff;
  border:1px solid #dbeafe;
  font-size:12px;
  font-weight:700;
  color:#0f172a;
}
.sad-origin-custom-delete{
  border:0;
  background:transparent;
  color:#b91c1c;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  padding:0 2px;
}
.sad-contact-filter-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 0;
}
.sad-contact-filter-actions .sad-front-btn{margin:0;}
#sad-contact-form-panel:not(.is-edit-modal){
  display:none!important;
}
.sad-contacts-page-wrap .sad-form-capture-card{
  margin-top:16px;
}
.sad-page-standard .sad-form-capture-card{
  margin-top:16px;
}
.sad-contact-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:start;
}
.sad-contact-form-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.sad-contact-form-field label{
  display:block;
  margin:0;
  font-weight:700;
}
.sad-contact-form-field input,
.sad-contact-form-field select{
  margin:0;
  width:100%;
}
.sad-contact-form-field .sad-field-help{
  display:block;
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:var(--sad-muted,#667085);
}
.sad-contact-form-grid > label,
.sad-contact-form-grid > input,
.sad-contact-form-grid > select{margin-top:0;}
.sad-contact-form-span{grid-column:1 / -1;}
.sad-location-field-row label{display:block;margin-bottom:6px;}
.sad-location-input-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;}
.sad-location-input-actions input[type="text"]{flex:1 1 200px;min-width:0;margin:0;}
.sad-location-input-actions .sad-front-btn{flex:0 0 auto;margin:0;white-space:nowrap;padding:10px 14px;font-size:13px;line-height:1.2;}
.sad-location-refresh-status{margin:6px 0 0;font-size:12px;line-height:1.35;}
.sad-location-tip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#e9f3ff;
  color:#0b83aa;
  font-size:12px;
  font-weight:800;
  cursor:help;
  vertical-align:middle;
  margin-left:4px;
}
.sad-front-wrap{
  display:grid;
  grid-template-columns:248px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:0;
  width:100%;
  max-width:none;
  margin:0;
  min-height:100vh;
  align-items:start;
}
.sad-front-wrap > .sad-client-topbar{
  grid-column:1 / -1;
  grid-row:1;
}
.sad-front-wrap > .sad-topbar.sad-sidebar-shell{
  grid-column:1;
  grid-row:2;
  align-self:stretch;
}
.sad-front-wrap > .sad-main-column{
  grid-column:2;
  grid-row:2;
  min-width:0;
  align-self:start;
  height:auto;
  max-height:none;
}
.sad-front-wrap > *:not(.sad-client-topbar):not(.sad-topbar):not(.sad-main-column){
  grid-column:2;
  grid-row:2;
  align-self:start;
}
.sad-client-topbar{
  background:linear-gradient(180deg,#222d3b 0%, #1d2937 100%);
  border:none;
  border-bottom:1px solid #334357;
  border-radius:0;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:none;
  width:100%;
  box-sizing:border-box;
}
.sad-client-topbar .sad-brand-name{
  color:#e9fbff;
  font-weight:700;
  letter-spacing:.01em;
}
.sad-client-topbar .sad-brand-logo{
  background:#fff;
  border-radius:10px;
  padding:6px 8px;
  border:1px solid #d8edf6;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.sad-client-topbar .sad-topbar-right{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
.sad-client-topbar .sad-notify-controls{
  display:flex;
  gap:6px;
  align-items:center;
}
.sad-client-topbar .sad-notify-toggle{
  background:#1a2533;
  color:#d8f8ff;
  border:1px solid #3a4d64;
  width:34px;
  min-width:34px;
  height:34px;
  min-height:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  border-radius:10px;
}
.sad-client-topbar .sad-notify-toggle:hover{
  border-color:#4fddff;
  color:#4fddff;
}
.sad-mobile-menu-toggle-top{
  display:none;
}
.sad-sidebar-shell{
  position:sticky;
  top:0;
  align-self:stretch;
  background:#222d3b !important;
  border:none !important;
  border-right:1px solid #334357 !important;
  border-radius:0 !important;
  padding:0 0 12px !important;
  min-height:calc(100vh - 48px);
  height:calc(100vh - 48px);
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  box-shadow:none !important;
  box-sizing:border-box;
}
.sad-main-column{
  min-width:0;
  padding:14px 18px 28px;
  box-sizing:border-box;
  align-self:start;
}
.sad-sidebar-shell .sad-front-nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.sad-sidebar-shell .sad-front-nav a{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  border-radius:10px;
  padding:7px 10px;
  color:#e6f8ff;
  background:transparent;
  border:1px solid #2a394b;
  min-height:34px;
  font-size:12px;
  line-height:1.2;
  text-decoration:none;
  transition:all .18s ease;
  text-align:left;
}
.sad-sidebar-shell .sad-front-nav a:hover{
  border-color:#4fddff70;
  background:#29404e;
}
.sad-sidebar-shell .sad-front-nav a.active{
  background:#4fddff;
  color:#113448;
  font-weight:800;
  border-color:#4fddff;
  box-shadow:0 6px 18px rgba(79,221,255,.32);
}
.sad-nav-session{
  margin-top:8px;
  padding-top:6px;
  border-top:1px solid #334357;
}
.sad-nav-logout{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:10px;
  padding:7px 10px;
  background:#1a2533;
  color:#d8f8ff !important;
  border:1px solid #3a4d64;
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  min-height:34px;
  transition:all .18s ease;
}
.sad-nav-logout:hover{
  border-color:#4fddff;
  color:#113448 !important;
  background:#4fddff;
  box-shadow:0 6px 18px rgba(79,221,255,.32);
  transform:translateY(-1px);
}
.sad-nav-logout .sad-nav-icon{
  font-size:14px;
}
.sad-sidebar-shell .sad-nav-icon{
  width:19px;
  display:inline-flex;
  justify-content:center;
  font-size:14px;
  color:currentColor;
  opacity:.95;
}
.sad-sidebar-shell .sad-nav-label{
  flex:1;
  text-align:left;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sad-dashboard-hero{
  padding:10px 14px !important;
  border-radius:14px !important;
  margin-bottom:10px !important;
  min-height:0 !important;
}
.sad-dashboard-hero h1{
  font-size:17px !important;
  line-height:1.1 !important;
  margin:0 0 2px !important;
}
.sad-dashboard-hero p{
  font-size:12px !important;
  line-height:1.35 !important;
  margin:0 !important;
}
.sad-hero-actions .sad-front-btn{
  min-height:36px !important;
  padding:8px 12px !important;
  font-size:13px !important;
}
.sad-contacts-page-wrap .sad-front-card h2,
.sad-page-standard .sad-front-card h2{
  font-size:19px !important;
  line-height:1.2 !important;
}
.sad-contact-crm-report-table,
.sad-contact-crm-report-table td,
.sad-contact-crm-report-table th,
.sad-front-wrap.sad-dashboard-wrap .sad-front-table,
.sad-front-wrap.sad-dashboard-wrap .sad-front-table td,
.sad-front-wrap.sad-dashboard-wrap .sad-front-table th{
  font-size:13px !important;
}
.sad-dashboard-marketplace{
  background:#222d3b;
  border:1px solid #334357;
  border-radius:16px;
  color:#dff9ff;
  box-shadow:0 10px 28px rgba(18,30,43,.2);
}
.sad-dashboard-marketplace h2,
.sad-dashboard-marketplace h3{
  color:#4fddff !important;
}
.sad-dashboard-marketplace-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.sad-dash-period-filter{
  display:flex;
  align-items:center;
  gap:8px;
}
.sad-dash-period-filter label{
  margin:0;
  font-size:12px;
  color:#c4eef8;
}
.sad-dash-period-filter select{
  min-width:112px;
  background:#1b2531;
  color:#dff9ff;
  border:1px solid #3a4b61;
}
.sad-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.sad-kpi-card{
  border:1px solid #32455a;
  border-radius:12px;
  padding:12px 13px;
  background:linear-gradient(180deg,#1b2836 0%, #17222f 100%);
}
.sad-kpi-card span{
  font-size:12px;
  text-transform:uppercase;
  color:#9ad9e8;
}
.sad-kpi-card strong{
  display:block;
  color:#4fddff;
  font-size:26px;
  margin:6px 0 2px;
  letter-spacing:.01em;
}
.sad-kpi-card small{
  color:#8db4bf;
}
.sad-dashboard-panels{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:10px;
}
.sad-chart-panel,.sad-status-panel{
  border:1px solid #32455a;
  border-radius:12px;
  padding:13px;
  background:#182430;
}
.sad-chart-placeholder{
  height:180px;
  border-radius:10px;
  border:1px dashed #3a4b61;
  display:flex;
  align-items:flex-end;
  gap:8px;
  padding:10px;
  margin-bottom:10px;
}
.sad-chart-placeholder span{
  flex:1;
  border-radius:6px 6px 0 0;
  background:linear-gradient(180deg,#4fddff 0%, #2a5563 100%);
}
.sad-chart-placeholder span:nth-child(1){height:32%}
.sad-chart-placeholder span:nth-child(2){height:58%}
.sad-chart-placeholder span:nth-child(3){height:46%}
.sad-chart-placeholder span:nth-child(4){height:74%}
.sad-chart-placeholder span:nth-child(5){height:62%}
.sad-chart-placeholder span:nth-child(6){height:84%}
.sad-status-panel ul{
  list-style:none;
  margin:0 0 10px;
  padding:0;
}
.sad-status-panel li{
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid #334357;
  padding:9px 0;
}
.sad-status-panel li span{
  color:#4fddff;
  font-weight:700;
}
@media (max-width: 900px){
  .sad-front-wrap{
    grid-template-columns:1fr;
  }
  .sad-front-wrap > .sad-client-topbar,
  .sad-front-wrap > .sad-topbar,
  .sad-front-wrap > *:not(.sad-client-topbar):not(.sad-topbar){
    grid-column:1;
  }
  .sad-sidebar-shell{
    min-height:auto;
    position:relative;
    top:auto;
    margin-bottom:6px;
    padding:10px !important;
  }
  .sad-sidebar-shell .sad-mobile-menu-toggle{
    display:none;
  }
  .sad-sidebar-shell .sad-front-nav{
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    gap:4px!important;
  }
  .sad-sidebar-shell .sad-front-nav a{
    flex:0 0 auto!important;
    width:100%!important;
  }
  .sad-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .sad-dashboard-panels{
    grid-template-columns:1fr;
  }
}
@media (max-width: 640px){
  .sad-client-topbar{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px 12px;
  }
  .sad-client-topbar .sad-topbar-right{
    width:auto;
    margin-left:0;
    gap:6px;
  }
  .sad-client-topbar .sad-brand{
    min-width:0 !important;
    width:auto !important;
    gap:8px;
  }
  .sad-client-topbar .sad-brand-name{
    font-size:12px;
    line-height:1.05;
    white-space:normal;
    max-width:118px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .sad-client-topbar .sad-notify-toggle{
    width:32px;
    min-width:32px;
    height:32px;
    min-height:32px;
    font-size:15px;
  }
  .sad-mobile-menu-toggle-top{
    display:inline-flex;
    width:32px;
    height:32px;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    border:1px solid #3a4d64;
    background:#1a2533;
  }
  .sad-mobile-menu-toggle-top span{
    width:14px;
  }
  .sad-sidebar-shell .sad-mobile-menu-toggle{
    display:none !important;
  }
  .sad-client-topbar .sad-popup-status{
    display:none !important;
  }
  .sad-sidebar-shell .sad-front-nav a{
    flex:1 1 100%;
  }
  .sad-sidebar-shell{
    min-height:0 !important;
    max-height:none !important;
  }
  .sad-sidebar-shell.is-menu-open .sad-front-nav{
    max-height:65vh !important;
    overflow-y:auto !important;
    border-top:0 !important;
    padding-top:4px !important;
  }
  .sad-kpi-grid{
    grid-template-columns:1fr;
  }
}
.sad-contact-form-footer{margin-top:12px;padding-top:12px;border-top:1px solid #e6eef8;}

/* Padrão de popups do painel (Leads, Contatos, etc.) */
.sad-app-modal-head{
  position:relative;
  display:block;
  padding:16px 56px 14px 20px;
  border-bottom:1px solid #e6eef8;
  background:#fff;
  box-sizing:border-box;
}
.sad-app-modal-head h3,
.sad-app-modal-head strong{
  display:block;
  margin:0;
  font-size:17px;
  line-height:1.25;
  color:#172033;
  padding-right:0;
}
.sad-app-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  appearance:none;
  border:0;
  background:#f1f5f9;
  width:36px;
  height:36px;
  border-radius:12px;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  color:#334155;
  z-index:2;
  margin:0;
  padding:0;
}
.sad-app-modal-close:hover{background:#e2e8f0;}

.sad-contact-edit-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  z-index:10010;
  display:none;
  align-items:center;
  justify-content:center;
  padding:max(12px,env(safe-area-inset-top,12px)) max(12px,env(safe-area-inset-right,12px)) max(12px,env(safe-area-inset-bottom,12px)) max(12px,env(safe-area-inset-left,12px));
  box-sizing:border-box;
}
.sad-contact-edit-overlay:not([hidden]){
  display:flex;
}
body.sad-contact-modal-open{overflow:hidden;}
.sad-contact-form-panel.is-edit-modal{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  width:min(900px,calc(100vw - 32px))!important;
  max-width:min(900px,calc(100vw - 32px))!important;
  height:min(86dvh,820px)!important;
  max-height:min(86dvh,820px)!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  z-index:10020;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  box-shadow:0 20px 56px rgba(15,23,42,.28);
  border-radius:18px!important;
  box-sizing:border-box;
}
.sad-contact-form-panel.is-edit-modal > summary{
  flex:0 0 auto;
  display:block!important;
  position:relative;
  padding:0;
  margin:0;
  cursor:default;
  list-style:none;
  background:#fff;
  z-index:3;
}
.sad-contact-form-panel.is-edit-modal > summary::-webkit-details-marker{display:none;}
.sad-contact-modal-head{
  padding:16px 56px 14px 20px;
}
.sad-contact-modal-head-text{min-width:0;}
.sad-contact-form-subtitle{
  display:block;
  font-size:12px;
  font-weight:500;
  color:#64748b;
  margin-top:3px;
  line-height:1.35;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-form-subtitle{display:none;}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-close{
  position:absolute;
  top:12px;
  right:12px;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-body{
  flex:1 1 0!important;
  min-height:0!important;
  overflow:hidden!important;
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-fields-form,
.sad-contact-form-panel.is-edit-modal form.sad-front-form{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  padding:0!important;
  margin:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  background:#fff!important;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-footer{
  flex:0 0 auto;
  padding:12px 20px 16px;
  border-top:1px solid #e6eef8;
  background:#fff;
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-scroll{
  box-sizing:border-box;
  width:100%;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:16px 22px 18px;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#94a3b8 #eef2f7;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar{
  width:10px;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar-track{
  background:#eef2f7;
  border-radius:10px;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar-thumb{
  background:#94a3b8;
  border-radius:10px;
  border:2px solid #eef2f7;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-form-footer{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e6eef8;
  background:transparent;
}
.sad-contact-form-panel.is-edit-modal .sad-front-form label{
  margin:8px 0 4px!important;
  font-size:13px!important;
}
.sad-contact-form-panel.is-edit-modal .sad-front-form input,
.sad-contact-form-panel.is-edit-modal .sad-front-form select,
.sad-contact-form-panel.is-edit-modal .sad-front-form textarea{
  font-size:14px;
  padding:9px 11px;
  min-height:38px;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-editor-meta{
  margin-bottom:8px;
  padding:8px 10px;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-crm-subpanel{
  margin:10px 0;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  align-items:start;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid > label,
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid > input,
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid > select,
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid > textarea,
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid > small{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid,
.sad-contact-form-panel.is-edit-modal .sad-location-input-actions{
  overflow-x:hidden;
}
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid input,
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid select,
.sad-contact-form-panel.is-edit-modal .sad-contact-form-grid textarea,
.sad-contact-form-panel.is-edit-modal .sad-location-input-actions input{
  max-width:100%;
  box-sizing:border-box;
}
body.sad-contact-modal-open .sad-contact-form-panel.is-edit-modal.sad-accordion-card>.sad-contact-modal-body,
body.sad-contact-modal-open .sad-contact-form-panel.is-edit-modal.sad-accordion-card>form.sad-contact-fields-form{
  padding:0!important;
  overflow:hidden!important;
  max-width:100%!important;
}
.sad-contact-form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  align-items:center;
  margin:0;
}
.sad-contact-form-actions .sad-front-btn,
.sad-contact-form-actions .sad-small-link.danger{
  margin:0;
}
.sad-contact-form-actions .sad-small-link.danger{
  margin-left:auto;
  padding:8px 12px;
}
.sad-contact-crm-subpanel,
.sad-mini-accordion{
  margin:12px 0;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
  overflow:hidden;
}
.sad-contact-crm-subpanel>summary,
.sad-mini-accordion>summary{
  cursor:pointer;
  padding:12px 14px;
  font-weight:800;
  font-size:14px;
  color:#10243d;
  list-style:none;
}
.sad-contact-crm-subpanel>summary::-webkit-details-marker,
.sad-mini-accordion>summary::-webkit-details-marker{display:none;}
.sad-contact-crm-subpanel>form,
.sad-contact-crm-subpanel .sad-crm-panel,
.sad-contact-crm-subpanel .sad-crm-panel-compact{padding:0 14px 14px;}
.sad-crm-panel-compact .sad-crm-qualified-toggle{margin-top:0;}
.sad-form-capture-card>summary span,
.sad-contact-form-panel:not(.is-edit-modal)>summary .sad-contact-form-subtitle{
  display:block;
  font-size:12px;
  font-weight:500;
  color:#64748b;
  margin-top:2px;
}
.sad-form-capture-card>form,
.sad-form-capture-card>.sad-front-muted{padding:0 18px 18px;}
.sad-form-capture-table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:0 0 12px;
  max-width:100%;
}
.sad-bulk-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #dbe5ef;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fafc,#fff);
}
.sad-bulk-actions-label{
  margin:0;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#475569;
}
.sad-bulk-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:stretch;
}
.sad-bulk-actions-row select{
  flex:1 1 180px;
  min-height:36px;
  height:36px;
  border:1px solid #cfe0f2;
  border-radius:12px;
  padding:6px 10px;
  font-size:13px;
  font-weight:700;
  line-height:1.25;
  background:#fff;
}
.sad-bulk-actions-row .sad-front-btn{
  flex:0 0 auto;
  min-width:120px;
  min-height:36px;
  padding:8px 14px;
}
.sad-contact-cell-body{display:flex;flex-direction:column;gap:6px;min-width:0;}
.sad-contact-cell-primary{min-width:0;}
.sad-contact-dates{
  margin-top:6px;
  display:grid;
  grid-template-columns:1fr;
  gap:2px;
}
.sad-contact-dates small{
  display:block;
  font-size:11px;
  color:#64748b;
  line-height:1.35;
}
.sad-contact-location-line{
  display:block;
  font-size:11px;
  color:#475569;
  line-height:1.35;
}
.sad-contact-editor-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:10px 12px;
  margin:0 0 10px;
  border:1px solid #dbe5ef;
  border-radius:12px;
  background:#f8fafc;
}
.sad-contact-editor-meta span{
  font-size:12px;
  color:#334155;
}
.sad-contact-editor-meta em{
  font-style:normal;
  color:#0f172a;
  font-weight:700;
}
.sad-crm-row-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin:0;
}
.sad-crm-row-badges .sad-badge,
.sad-crm-row-badges .sad-crm-temp{flex:0 0 auto;}
.sad-crm-interest-line{
  display:block;
  width:100%;
  margin:4px 0 0;
  padding:8px 10px;
  border-radius:10px;
  background:#f1f5f9;
  font-size:12px;
  line-height:1.4;
  color:#334155;
}
.sad-inbox-compact-filters{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  grid-template-columns:unset!important;
  padding:12px!important;
  background:#f8fafc;
  border:1px solid #e6eef8;
  border-radius:16px;
}
.sad-inbox-filter-row{
  display:grid;
  gap:8px;
  width:100%;
  min-width:0;
}
.sad-inbox-filter-row-search input{width:100%!important;grid-column:1/-1;}
.sad-inbox-filter-row-fields{
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
}
.sad-inbox-filter-row-origin .sad-lead-source-filters{
  margin:0;
  width:100%;
}
.sad-inbox-filter-row-actions{
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  align-items:stretch;
}
.sad-inbox-filter-row-actions .sad-inbox-unread-filter,
.sad-inbox-filter-row-actions button,
.sad-inbox-filter-row-actions .sad-inbox-clear-filter{
  min-height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0!important;
}
.sad-lead-source-filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.sad-lead-source-tab{flex:0 1 auto;}
.sad-basic-triage-section.sad-accordion-card{
  margin:0 0 12px;
  padding:0!important;
  border:1px solid #e2e8f0;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.sad-basic-triage-section.sad-accordion-card>summary{
  cursor:pointer;
  padding:14px 16px;
  list-style:none;
}
.sad-basic-triage-section.sad-accordion-card>summary span{
  display:block;
  font-size:12px;
  font-weight:500;
  color:#64748b;
  margin-top:2px;
}
.sad-basic-triage-section-body{padding:0 16px 16px;}
.sad-section-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
/* v0.9.125 — barra de lead no mobile + modal de detalhes */
.sad-inbox-mobile-lead-bar{
  display:none;
  margin:0 8px 8px;
  padding:10px 12px;
  border:1px solid #dbe5ef;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fafc,#fff);
}
.sad-inbox-mobile-lead-bar-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.sad-inbox-mobile-lead-badge{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  background:#e8f7ff;
  color:#0377a8;
  font-size:11px;
  font-weight:800;
}
.sad-inbox-mobile-lead-more{
  min-height:32px!important;
  padding:6px 12px!important;
  font-size:12px!important;
}
.sad-inbox-mobile-lead-bar-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
}
.sad-inbox-mobile-lead-k{
  display:block;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
}
.sad-inbox-mobile-lead-v{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#10243d;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.sad-inbox-filter-notice{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(8,125,165,.22);
  background:#eef9ff;
  color:#0f172a;
  font-size:13px;
  line-height:1.45;
}
.sad-inbox-filter-notice a{font-weight:700;}
.sad-inbox-lead-name-btn{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  font:inherit;
  font-weight:800;
  color:#10243d;
  text-align:left;
  cursor:pointer;
  text-decoration:underline;
  text-decoration-color:rgba(8,125,165,.35);
  text-underline-offset:3px;
}
.sad-inbox-lead-name-btn:hover,
.sad-inbox-lead-name-btn:focus{
  color:#087da5;
  outline:none;
}
.sad-inbox-lead-modal--readonly .sad-inbox-lead-modal-content .sad-inbox-update-form,
.sad-inbox-lead-modal--readonly .sad-inbox-lead-modal-content .sad-inbox-band-col-responsibility{
  display:none!important;
}
.sad-lead-detail-compact{padding:12px 6px 10px;}
.sad-lead-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(140px,1fr));
  gap:8px 14px;
  overflow-x:auto;
  padding-bottom:4px;
}
.sad-lead-detail-cell{min-width:130px;}
.sad-lead-detail-k{
  display:block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
  margin-bottom:2px;
}
.sad-lead-detail-v{
  display:block;
  font-size:12px;
  line-height:1.35;
  color:#0f172a;
  word-break:break-word;
}
.sad-inbox-lead-modal-content .sad-lead-detail-grid{
  grid-template-columns:repeat(3,minmax(120px,1fr));
}
@media (max-width:900px){
  .sad-lead-detail-grid{grid-template-columns:repeat(2,minmax(120px,1fr));}
}
.sad-contact-cell-body{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.8fr);
  gap:6px 12px;
  align-items:start;
  font-size:12px;
  line-height:1.35;
}
.sad-contact-cell-primary strong{font-size:13px;}
.sad-contact-cell-primary small,.sad-contact-dates small,.sad-contact-location-line{font-size:11px;}
.sad-crm-row-badges{margin-top:4px;}
.sad-crm-interest-line{font-size:11px;margin-top:4px;}
.sad-front-table .sad-contact-cell-body{min-width:520px;}
.sad-contacts-list-viewport .sad-front-table .sad-contact-cell-body{min-width:480px;}
@media (max-width:980px){
  .sad-contact-cell-body{grid-template-columns:1fr;}
}
.sad-inbox-lead-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:10050;
  padding:16px;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
}
.sad-inbox-lead-modal.is-open{
  display:flex;
}
body.sad-inbox-lead-modal-open{overflow:hidden;}
.sad-inbox-lead-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.45);
}
.sad-inbox-lead-modal-dialog{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  top:auto;
  transform:none;
  width:min(720px,calc(100vw - 40px));
  max-height:min(86dvh,760px);
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,23,42,.22);
  z-index:1;
}
.sad-inbox-lead-modal-head{
  padding:16px 56px 14px 22px;
  flex:0 0 auto;
}
.sad-inbox-lead-modal-head h3{margin:0;font-size:17px;line-height:1.25;}
.sad-inbox-lead-modal-close{
  top:12px;
  right:12px;
}
.sad-inbox-lead-modal-body{
  overflow-y:auto;
  padding:4px 22px 22px;
  -webkit-overflow-scrolling:touch;
}
.sad-inbox-lead-modal-content{
  border:0;
  border-radius:0;
  box-shadow:none;
}
.sad-inbox-lead-modal-content .sad-inbox-band-col-delete{
  margin-top:12px;
  padding:14px 4px 6px;
  border-top:1px solid #e6eef8;
  background:#fffafb;
  border-radius:12px;
}
.sad-inbox-lead-modal-content .sad-inbox-band-col-delete h4{
  margin:0 0 8px;
  font-size:12px;
}
.sad-inbox-lead-modal-content .sad-inbox-band-col-delete p{
  margin:0 0 10px;
  font-size:12px;
  line-height:1.45;
  color:#64748b;
}
.sad-inbox-lead-modal-content .sad-timeline-details{
  margin-top:4px;
  padding:10px 4px 4px;
}
.sad-inbox-lead-modal-content .sad-inbox-band-col-delete .sad-small-link.danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
}
.sad-inbox-lead-modal-content .sad-inbox-contact-card,
.sad-inbox-lead-modal-content .sad-inbox-detail-block{
  border-right:0!important;
}
@media(max-width:820px){
  .sad-inbox-page.has-thread-open .sad-inbox-mobile-lead-bar{display:block;}
}
@media(max-width:760px){
  .sad-contacts-page{grid-template-columns:1fr!important;}
  .sad-contacts-list-viewport{
    max-height:calc(100dvh - 290px);
  }
  .sad-contact-form-grid{grid-template-columns:1fr;}
  .sad-section-title{flex-direction:column;align-items:flex-start!important;}
  .sad-section-actions{width:100%;}
  .sad-section-actions .sad-front-btn{flex:1 1 calc(50% - 4px);min-width:0;text-align:center;font-size:12px;padding:10px 8px;}
  .sad-section-actions #sad-add-contact-btn{flex:1 1 100%;}
  .sad-bulk-actions-row{flex-direction:row;align-items:center;}
  .sad-bulk-actions-row select{flex:1 1 auto;}
  .sad-bulk-actions-row .sad-front-btn{width:auto!important;min-width:96px;}
  .sad-contacts-crm-table .sad-contact-cell-body{
    min-width:0!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
  }
  .sad-contacts-crm-table td[data-label="Contato"]{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    overflow:visible!important;
  }
  .sad-contacts-crm-table td[data-label="Contato"]:before{
    display:block;
    margin-bottom:0;
  }
  .sad-contact-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 10px;
  }
  .sad-contact-filter-grid .sad-contact-filter-cell input,
  .sad-contact-filter-grid .sad-contact-filter-cell select{
    min-height:38px!important;
    font-size:13px!important;
  }
  .sad-contact-filter .sad-two-cols{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 10px!important;
  }
  .sad-contact-filter .sad-two-cols input,
  .sad-contact-filter .sad-two-cols select{
    min-height:38px!important;
    font-size:13px!important;
  }
  .sad-form-capture-table-wrap{margin-left:-4px;margin-right:-4px;padding-bottom:4px;}
  .sad-contact-form-panel.is-edit-modal{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    height:min(88dvh,720px)!important;
    max-height:min(88dvh,720px)!important;
    border-radius:16px!important;
  }
  .sad-contact-form-panel.is-edit-modal .sad-contact-modal-scroll{
    padding:10px 16px 20px;
  }
  .sad-app-modal-head,
  .sad-contact-modal-head{
    padding:14px 52px 12px 16px;
  }
  .sad-app-modal-close,
  .sad-contact-form-panel.is-edit-modal .sad-contact-modal-close{
    top:10px;
    right:10px;
  }
  .sad-contact-form-panel.is-edit-modal .sad-front-form label{
    margin:7px 0 4px!important;
    font-size:13px!important;
  }
  .sad-contact-form-panel.is-edit-modal .sad-front-form input,
  .sad-contact-form-panel.is-edit-modal .sad-front-form select,
  .sad-contact-form-panel.is-edit-modal .sad-front-form textarea{
    min-height:36px!important;
    padding:8px 10px!important;
    font-size:14px!important;
  }
  .sad-contact-form-actions .sad-small-link.danger{
    margin-left:0;
    width:100%;
    text-align:center;
  }
  .sad-contact-form-panel.is-edit-modal .sad-contact-form-grid{
    grid-template-columns:1fr!important;
  }
  .sad-contact-editor-meta{
    grid-template-columns:1fr;
    gap:6px;
  }
}
@media(max-width:1280px){
  .sad-inbox-layout .sad-inbox-compact-filters{
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:unset!important;
  }
  .sad-inbox-layout .sad-inbox-filter-row-fields{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Final UI normalization (CRM standard) */
.sad-client-topbar{
  min-height:52px !important;
  padding:8px 12px !important;
  border-radius:14px !important;
}
.sad-client-topbar .sad-brand{
  align-items:center !important;
}
.sad-client-topbar .sad-brand-logo{
  width:68px !important;
  max-width:68px !important;
  max-height:34px !important;
  padding:4px 6px !important;
}
.sad-client-topbar .sad-brand-name{
  font-size:13px !important;
  line-height:1.1 !important;
}
.sad-sidebar-shell .sad-front-nav a,
.sad-nav-logout{
  font-size:13px !important;
  line-height:1.2 !important;
}
.sad-sidebar-shell{
  width:100% !important;
}
.sad-sidebar-shell .sad-front-nav{
  width:100% !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
}
.sad-sidebar-shell .sad-front-nav a{
  justify-content:flex-start !important;
  text-align:left !important;
  width:100% !important;
  padding:7px 10px !important;
  min-height:34px !important;
  font-size:12px !important;
}
.sad-sidebar-shell .sad-nav-icon{
  color:currentColor !important;
  filter:grayscale(100%);
}
.sad-dashboard-hero{
  padding:10px 14px !important;
  border-radius:14px !important;
  margin-bottom:10px !important;
  min-height:0 !important;
  height:auto !important;
}
.sad-dashboard-hero h1{
  font-size:17px !important;
  line-height:1.1 !important;
  margin:0 0 2px !important;
}
.sad-dashboard-hero p{
  font-size:12px !important;
  line-height:1.35 !important;
  margin:0 !important;
}
.sad-front-wrap.sad-dashboard-wrap .sad-front-card h2{
  font-size:16px !important;
}
.sad-front-wrap.sad-dashboard-wrap .sad-front-table,
.sad-front-wrap.sad-dashboard-wrap .sad-front-table th,
.sad-front-wrap.sad-dashboard-wrap .sad-front-table td{
  font-size:12px !important;
}
.sad-front-wrap.sad-inbox-page .sad-inbox-hero{
  padding:10px 14px !important;
  border-radius:14px !important;
  min-height:0 !important;
  height:auto !important;
}
.sad-front-wrap.sad-inbox-page .sad-inbox-hero h1{
  font-size:16px !important;
  line-height:1.08 !important;
  margin:0 0 2px !important;
}
.sad-front-wrap.sad-inbox-page .sad-inbox-hero p{
  font-size:11px !important;
  line-height:1.3 !important;
  margin:0 !important;
}
.sad-front-wrap.sad-inbox-page .sad-inbox-thread-main strong{
  font-size:12px !important;
}
.sad-front-wrap.sad-inbox-page .sad-inbox-thread-main em,
.sad-front-wrap.sad-inbox-page .sad-inbox-thread-main small{
  font-size:10px !important;
}
.sad-contacts-page-wrap .sad-front-card h2{
  font-size:17px !important;
}
.sad-contacts-page-wrap .sad-front-form label{
  font-size:13px !important;
}
.sad-contacts-page-wrap .sad-front-form input,
.sad-contacts-page-wrap .sad-front-form select{
  font-size:13px !important;
  min-height:40px !important;
}
.sad-contact-crm-report-table td strong{
  font-size:16px !important;
}
.sad-report-filter select,
.sad-report-filter input[type="date"]{
  font-size:13px !important;
  min-height:40px !important;
}
.sad-front-wrap.sad-dashboard-wrap .sad-front-card h2{
  font-size:16px !important;
}
@media (max-width:640px){
  .sad-client-topbar{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:6px !important;
    padding:8px 10px !important;
  }
  .sad-client-topbar .sad-brand{
    width:auto !important;
    min-width:0 !important;
    gap:6px !important;
  }
  .sad-client-topbar .sad-brand-logo{
    width:54px !important;
    max-width:54px !important;
    max-height:30px !important;
    padding:4px 5px !important;
    border-radius:8px !important;
  }
  .sad-client-topbar .sad-brand-name{
    font-size:11px !important;
    line-height:1.05 !important;
    max-width:112px !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    white-space:normal !important;
    overflow:hidden !important;
  }
  .sad-client-topbar .sad-notify-controls{
    gap:4px !important;
  }
  .sad-client-topbar .sad-notify-toggle{
    width:30px !important;
    min-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    padding:0 !important;
    font-size:14px !important;
  }
  .sad-client-topbar .sad-popup-status{
    display:none !important;
  }
  .sad-mobile-menu-toggle-top{
    display:inline-flex !important;
    width:30px !important;
    height:30px !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:8px !important;
    border:1px solid #3a4d64 !important;
    background:#1a2533 !important;
  }
  .sad-mobile-menu-toggle-top span{width:14px !important;}
  .sad-sidebar-shell{
    display:none !important;
    min-height:0 !important;
    max-height:none !important;
    padding:10px !important;
    background:#222d3b !important;
    border:1px solid #334357 !important;
    border-radius:12px !important;
    box-shadow:0 10px 24px rgba(18,30,43,.25) !important;
    margin:0 0 8px 0 !important;
  }
  .sad-sidebar-shell.is-menu-open{
    display:block !important;
  }
  .sad-sidebar-shell.is-menu-open .sad-front-nav{
    max-height:70vh !important;
    overflow-y:auto !important;
    opacity:1 !important;
    pointer-events:auto !important;
    padding-top:4px !important;
  }
  .sad-sidebar-shell .sad-mobile-menu-toggle{
    display:none !important;
  }
}

/* v0.9.143 — cabeçalhos compactos, Leads em 2 colunas + faixa de contato, sem sobreposição do menu */
.sad-dashboard-hero,
.sad-inbox-hero,
.sad-hero-card.sad-front-card,
.sad-monitor-hero,
.sad-birthday-hero{
  padding:10px 14px !important;
  margin-bottom:10px !important;
  border-radius:14px !important;
  min-height:0 !important;
  max-height:none !important;
  align-items:center !important;
  position:relative !important;
  z-index:1 !important;
  flex-shrink:0 !important;
}
.sad-dashboard-hero h1,
.sad-inbox-hero h1,
.sad-hero-card.sad-front-card h1{
  font-size:17px !important;
  line-height:1.1 !important;
  margin:0 0 2px !important;
}
.sad-dashboard-hero p,
.sad-inbox-hero p,
.sad-hero-card.sad-front-card p{
  font-size:12px !important;
  line-height:1.35 !important;
  margin:0 !important;
  max-width:min(720px,100%) !important;
}
.sad-dashboard-hero .sad-eyebrow,
.sad-inbox-hero .sad-eyebrow,
.sad-hero-card .sad-eyebrow{
  font-size:10px !important;
  letter-spacing:.08em !important;
  margin:0 0 2px !important;
  display:block !important;
}
.sad-hero-actions{
  gap:8px !important;
}
.sad-hero-actions .sad-front-btn{
  min-height:34px !important;
  padding:7px 11px !important;
  font-size:12px !important;
}
.sad-inbox-list-head{
  padding:8px 12px !important;
}
.sad-inbox-list-head strong{
  font-size:13px !important;
}
.sad-inbox-list-head span{
  font-size:11px !important;
  margin-top:1px !important;
}
.sad-inbox-chat-header{
  padding:8px 12px !important;
  min-height:0 !important;
}
.sad-inbox-chat-header h2{
  font-size:15px !important;
}
.sad-inbox-chat-header-meta{
  font-size:11px !important;
}

/* Menu lateral: não herdar overlay sticky/z-index alto do topbar legado */
@media (max-width:780px){
  .sad-sidebar-shell.sad-topbar{
    position:relative !important;
    top:auto !important;
    z-index:2 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    margin-bottom:10px !important;
    box-shadow:0 10px 24px rgba(18,30,43,.25) !important;
  }
  .sad-sidebar-shell.sad-topbar .sad-front-nav{
    grid-column:1 !important;
    max-height:none !important;
    opacity:1 !important;
    pointer-events:auto !important;
    padding:4px 0 0 !important;
    margin:0 !important;
    overflow:visible !important;
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
  }
  .sad-sidebar-shell.sad-topbar .sad-front-nav a{
    width:100% !important;
    flex:0 0 auto !important;
  }
}
@media (max-width:640px){
  .sad-sidebar-shell.sad-topbar:not(.is-menu-open){
    display:none !important;
  }
}

/* Inbox: fluxo normal (sem altura fixa que corta/sobrepõe conteúdo) */
.sad-front-wrap.sad-inbox-page{
  display:grid !important;
  min-height:0 !important;
}
.sad-front-wrap.sad-inbox-page > .sad-inbox-hero,
.sad-front-wrap.sad-inbox-page > .sad-inbox-layout,
.sad-front-wrap.sad-inbox-page > .sad-pwa-launcher{
  min-width:0 !important;
}
.sad-inbox-layout{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  flex:1 1 auto !important;
}
.sad-inbox-layout .sad-inbox-list-panel,
.sad-inbox-layout .sad-inbox-chat-panel{
  height:auto !important;
  max-height:none !important;
  overflow:hidden !important;
}

/* Leads aberto: lista + conversa no topo; dados do contato em largura total */
.sad-inbox-contact-band{
  display:none;
}
.sad-inbox-layout--split{
  display:grid !important;
  grid-template-columns:minmax(260px,32%) minmax(0,1fr) !important;
  grid-template-rows:minmax(0,calc(100vh - 200px)) !important;
  gap:12px !important;
  align-items:stretch !important;
  min-height:calc(100vh - 200px) !important;
  height:calc(100vh - 200px) !important;
}
.sad-inbox-layout--split .sad-inbox-list-panel{
  grid-column:1;
  grid-row:1;
  min-height:0 !important;
  max-height:none !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
}
.sad-inbox-layout--split .sad-inbox-chat-panel{
  grid-column:2;
  grid-row:1;
  min-height:0 !important;
  max-height:none !important;
  height:100% !important;
  display:flex !important;
  flex-direction:column !important;
}
.sad-inbox-layout--split .sad-inbox-chat-stack{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:100% !important;
}
.sad-inbox-layout--split .sad-inbox-contact-band{
  display:block !important;
  grid-column:1 / -1;
  grid-row:2;
  background:#fff;
  border:1px solid #dbe5ef;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  overflow:visible;
}
.sad-inbox-layout--split .sad-inbox-details-panel,
.sad-inbox-layout--split .sad-inbox-details-panel--band-active{
  display:none !important;
}
.sad-inbox-contact-band-head{
  padding:10px 14px;
  border-bottom:1px solid #e6eef8;
  background:linear-gradient(180deg,#fbfdff,#f6fbff);
}
.sad-inbox-contact-band-head strong{
  font-size:13px;
  color:#172033;
}
.sad-inbox-contact-band-body{
  display:grid;
  grid-template-columns:minmax(150px,11%) minmax(0,2.4fr) minmax(260px,1.15fr) minmax(220px,0.95fr);
  gap:0;
  align-items:stretch;
  width:100%;
}
.sad-inbox-contact-band-body .sad-inbox-contact-card,
.sad-inbox-contact-band-body .sad-inbox-detail-block,
.sad-inbox-contact-band-body .sad-inbox-test-tools,
.sad-inbox-contact-band-body .sad-timeline-details{
  border-right:1px solid #eef3f8;
  border-bottom:0;
  min-height:100%;
  padding:14px 18px !important;
  box-sizing:border-box;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-name{
  grid-column:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding:14px 16px !important;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-lead-data{
  grid-column:2;
  min-width:0;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-responsibility{
  grid-column:3;
  min-width:260px;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-delete{
  grid-column:4;
  min-width:220px;
  border-right:0;
  background:#fffafb;
}
.sad-inbox-contact-band-body:not(:has(.sad-inbox-band-col-responsibility)) .sad-inbox-band-col-lead-data{
  grid-column:2 / 4;
}
.sad-inbox-contact-band-body:not(:has(.sad-inbox-band-col-responsibility)) .sad-inbox-band-col-delete{
  grid-column:4;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-responsibility .sad-inbox-test-tools{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #eef3f8;
  grid-column:auto;
  min-width:0;
  background:transparent;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-lead-data h4,
.sad-inbox-contact-band-body .sad-inbox-band-col-responsibility h4,
.sad-inbox-contact-band-body .sad-inbox-band-col-delete h4{
  margin-bottom:12px !important;
  font-size:11px !important;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-lead-data{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:22px;
  row-gap:2px;
  align-content:start;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-lead-data h4{
  grid-column:1 / -1;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-lead-data p{
  margin:0 0 10px !important;
  font-size:13px !important;
  line-height:1.4 !important;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-lead-data p strong{
  display:block;
  font-size:11px !important;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
  margin-bottom:2px;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-responsibility .sad-inbox-update-form,
.sad-inbox-contact-band-body .sad-inbox-band-col-responsibility p{
  font-size:13px !important;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-delete p,
.sad-inbox-contact-band-body .sad-inbox-band-col-delete .sad-front-muted{
  font-size:12px !important;
  line-height:1.45 !important;
  max-width:42ch;
}
.sad-inbox-contact-band-body .sad-inbox-band-col-delete .sad-small-link.danger,
.sad-inbox-contact-band-body .sad-inbox-test-tools .sad-small-link.danger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:10px 16px !important;
  font-size:13px !important;
  width:100%;
  max-width:220px;
  box-sizing:border-box;
  text-align:center;
}
.sad-inbox-contact-band-body .sad-timeline-details{
  grid-column:1 / -1;
  border-right:0;
  border-top:1px solid #eef3f8;
  padding:12px 18px !important;
}
@media (max-width:1200px){
  .sad-inbox-contact-band-body{
    grid-template-columns:minmax(140px,14%) minmax(0,1.6fr) minmax(220px,1fr);
  }
  .sad-inbox-contact-band-body .sad-inbox-band-col-delete{
    grid-column:1 / -1;
    border-right:0;
    border-top:1px solid #eef3f8;
    min-width:0;
  }
  .sad-inbox-contact-band-body:not(:has(.sad-inbox-band-col-responsibility)) .sad-inbox-band-col-lead-data{
    grid-column:2 / -1;
  }
  .sad-inbox-contact-band-body:not(:has(.sad-inbox-band-col-responsibility)) .sad-inbox-band-col-delete{
    grid-column:1 / -1;
  }
  .sad-inbox-contact-band-body .sad-inbox-band-col-responsibility{
    grid-column:3;
    min-width:0;
  }
}
@media (max-width:900px){
  .sad-inbox-layout--split{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:none !important;
    grid-template-rows:none !important;
    height:auto !important;
    min-height:0 !important;
  }
  .sad-inbox-layout--split .sad-inbox-list-panel,
  .sad-inbox-layout--split .sad-inbox-chat-panel{
    grid-column:auto !important;
    grid-row:auto !important;
    max-height:none !important;
    min-height:0 !important;
    height:auto !important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-list-panel{
    max-height:none;
    flex:0 0 auto;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-thread-list{
    max-height:360px;
    overflow-y:auto;
    flex:0 0 auto;
    -webkit-overflow-scrolling:touch;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel{
    flex:1 1 auto;
    min-height:min(62vh,calc(100vh - 240px));
  }
  .sad-inbox-lead-modal-body{padding:4px 18px 18px;}
  .sad-inbox-lead-modal-head{padding:14px 18px;}
  .sad-inbox-lead-modal-content .sad-lead-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .sad-inbox-layout--split .sad-inbox-contact-band{
    display:none !important;
  }
}

/* v0.9.144 — padrão final de altura dos headers (referência anexo) */
.sad-client-topbar{
  padding:8px 14px !important;
  border-radius:0 !important;
  margin-bottom:0 !important;
}
.sad-client-topbar .sad-brand-logo{
  max-height:28px !important;
  padding:4px 6px !important;
}
.sad-client-topbar .sad-brand-name{
  font-size:13px !important;
  line-height:1.15 !important;
}
.sad-front-wrap .sad-dashboard-hero,
.sad-front-wrap .sad-inbox-hero,
.sad-front-wrap .sad-hero-card.sad-front-card,
.sad-front-wrap .sad-monitor-hero,
.sad-front-wrap .sad-birthday-hero,
.sad-dashboard-hero,
.sad-inbox-hero{
  padding:8px 14px !important;
  margin-bottom:10px !important;
  border-radius:14px !important;
  min-height:0 !important;
  max-height:none !important;
  gap:10px 14px !important;
  align-items:center !important;
}
.sad-front-wrap .sad-dashboard-hero:after,
.sad-inbox-hero:after{
  width:120px !important;
  height:120px !important;
  right:-40px !important;
  top:-50px !important;
  opacity:.1 !important;
}
.sad-front-wrap .sad-dashboard-hero h1,
.sad-front-wrap .sad-inbox-hero h1,
.sad-dashboard-hero h1,
.sad-inbox-hero h1{
  font-size:16px !important;
  line-height:1.1 !important;
  margin:0 0 1px !important;
}
.sad-front-wrap .sad-dashboard-hero p,
.sad-front-wrap .sad-inbox-hero p,
.sad-dashboard-hero p,
.sad-inbox-hero p{
  font-size:11px !important;
  line-height:1.35 !important;
  margin:0 !important;
  max-width:min(680px,100%) !important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sad-front-wrap .sad-dashboard-hero .sad-eyebrow,
.sad-front-wrap .sad-inbox-hero .sad-eyebrow,
.sad-dashboard-hero .sad-eyebrow,
.sad-inbox-hero .sad-eyebrow{
  font-size:9px !important;
  letter-spacing:.1em !important;
  margin:0 0 1px !important;
  line-height:1.2 !important;
}
.sad-front-wrap .sad-hero-actions .sad-front-btn,
.sad-hero-actions .sad-front-btn{
  min-height:32px !important;
  padding:6px 11px !important;
  font-size:12px !important;
  border-radius:10px !important;
}
@media (max-width:820px){
  .sad-front-wrap .sad-dashboard-hero,
  .sad-front-wrap .sad-inbox-hero{
    padding:8px 12px !important;
  }
  .sad-inbox-contact-band-body{
    grid-template-columns:1fr;
  }
  .sad-inbox-contact-band-body .sad-inbox-band-col-name,
  .sad-inbox-contact-band-body .sad-inbox-band-col-lead-data,
  .sad-inbox-contact-band-body .sad-inbox-band-col-responsibility,
  .sad-inbox-contact-band-body .sad-inbox-band-col-delete{
    grid-column:1 !important;
    min-width:0 !important;
    border-right:0;
    border-bottom:1px solid #eef3f8;
  }
  .sad-inbox-contact-band-body .sad-inbox-band-col-lead-data{
    grid-template-columns:1fr;
  }
}

/* v0.9.145 — mobile: topbar fixa + hambúrguer branco visível (v0.9.151 sobrescreve posição/largura) */
@media (max-width:900px){
  body.sad-app-body{
    --sad-mobile-topbar-h:48px;
    --sad-mobile-topbar-gap:0px;
    --sad-mobile-topbar-offset:var(--sad-mobile-topbar-h);
  }
  .sad-app-shell{
    padding-top:0 !important;
  }
  .sad-front-wrap > .sad-client-topbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:none !important;
    z-index:10050 !important;
    margin:0 !important;
    min-height:var(--sad-mobile-topbar-h) !important;
    padding:8px 10px !important;
    border-radius:0 !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
  }
  .sad-front-wrap{
    padding-top:0 !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top{
    display:inline-flex !important;
    flex-direction:column !important;
    gap:4px !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    padding:0 !important;
    border-radius:8px !important;
    border:1px solid rgba(255,255,255,.45) !important;
    background:rgba(255,255,255,.1) !important;
    color:#fff !important;
    box-shadow:none !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top span{
    display:block !important;
    width:14px !important;
    height:2px !important;
    background:#fff !important;
    border-radius:999px !important;
    opacity:1 !important;
    transition:transform .18s ease,opacity .16s ease,background .16s ease !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top[aria-expanded="true"]{
    background:#08aeea !important;
    border-color:#4fddff !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top[aria-expanded="true"] span{
    background:#fff !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top[aria-expanded="true"] span:nth-child(1){
    transform:translateY(6px) rotate(45deg) !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top[aria-expanded="true"] span:nth-child(2){
    opacity:0 !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top[aria-expanded="true"] span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg) !important;
  }
  .sad-sidebar-shell.sad-topbar{
    position:relative !important;
    top:auto !important;
    z-index:2 !important;
  }
  .sad-sidebar-shell.sad-topbar.is-menu-open{
    position:fixed !important;
    top:calc(var(--sad-mobile-topbar-gap) + var(--sad-mobile-topbar-h) + 6px) !important;
    left:var(--sad-mobile-topbar-gap) !important;
    right:var(--sad-mobile-topbar-gap) !important;
    width:auto !important;
    max-width:calc(100vw - (var(--sad-mobile-topbar-gap) * 2)) !important;
    z-index:10045 !important;
    margin:0 !important;
    max-height:calc(100dvh - var(--sad-mobile-topbar-offset) - 16px) !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    box-shadow:0 14px 36px rgba(18,30,43,.35) !important;
  }
  .sad-sidebar-shell.sad-topbar.is-menu-open .sad-front-nav{
    max-height:none !important;
  }
}
@media (max-width:640px){
  .sad-client-topbar .sad-mobile-menu-toggle-top{
    width:32px !important;
    height:32px !important;
    border:1px solid rgba(255,255,255,.5) !important;
    background:rgba(255,255,255,.12) !important;
  }
  .sad-client-topbar .sad-mobile-menu-toggle-top span{
    background:#fff !important;
  }
}

/* v0.9.146 — altura definitiva: section.sad-dashboard-hero (correção na raiz do CSS) */
.sad-app-shell section.sad-dashboard-hero,
.sad-app-shell section.sad-inbox-hero,
.sad-front-wrap section.sad-dashboard-hero,
.sad-front-wrap section.sad-inbox-hero,
section.sad-dashboard-hero,
section.sad-inbox-hero,
.sad-dashboard-hero.sad-inbox-hero,
.sad-dashboard-hero.sad-monitor-hero,
.sad-dashboard-hero.sad-birthday-hero{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px 12px !important;
  padding:10px 14px !important;
  margin:0 0 10px !important;
  min-height:0 !important;
  max-height:none !important;
  height:auto !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
}
.sad-app-shell section.sad-dashboard-hero > div:first-child,
.sad-app-shell section.sad-inbox-hero > div:first-child,
section.sad-dashboard-hero > div:first-child,
section.sad-inbox-hero > div:first-child{
  flex:1 1 180px;
  min-width:0;
}
section.sad-dashboard-hero .sad-eyebrow,
section.sad-inbox-hero .sad-eyebrow,
.sad-dashboard-hero .sad-eyebrow,
.sad-inbox-hero .sad-eyebrow{
  font-size:9px !important;
  letter-spacing:.1em !important;
  margin:0 0 1px !important;
  line-height:1.2 !important;
  display:block !important;
}
section.sad-dashboard-hero h1,
section.sad-inbox-hero h1,
.sad-dashboard-hero h1,
.sad-inbox-hero h1{
  font-size:17px !important;
  line-height:1.1 !important;
  margin:0 0 2px !important;
  font-weight:800 !important;
}
section.sad-dashboard-hero p,
section.sad-inbox-hero p,
.sad-dashboard-hero p,
.sad-inbox-hero p{
  font-size:12px !important;
  line-height:1.35 !important;
  margin:0 !important;
  max-width:min(680px,100%) !important;
}
section.sad-dashboard-hero .sad-period-chip,
.sad-dashboard-hero .sad-period-chip{
  margin-top:4px !important;
  padding:3px 8px !important;
  font-size:10px !important;
}
section.sad-dashboard-hero .sad-hero-actions,
section.sad-inbox-hero .sad-hero-actions,
.sad-dashboard-hero .sad-hero-actions,
.sad-inbox-hero .sad-hero-actions{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  margin:0 !important;
  width:auto !important;
  flex:0 0 auto !important;
}
section.sad-dashboard-hero .sad-hero-actions .sad-front-btn,
.sad-dashboard-hero .sad-hero-actions .sad-front-btn{
  min-height:32px !important;
  padding:6px 11px !important;
  font-size:12px !important;
  width:auto !important;
}
section.sad-dashboard-hero:after,
section.sad-inbox-hero:after,
.sad-dashboard-hero:after,
.sad-inbox-hero:after{
  width:80px !important;
  height:80px !important;
  right:-24px !important;
  top:-24px !important;
}
@media (max-width:780px){
  section.sad-dashboard-hero,
  section.sad-inbox-hero,
  .sad-dashboard-hero,
  .sad-inbox-hero{
    padding:10px 12px !important;
    gap:8px 10px !important;
  }
  section.sad-dashboard-hero h1,
  section.sad-inbox-hero h1,
  .sad-dashboard-hero h1,
  .sad-inbox-hero h1{
    font-size:16px !important;
  }
  section.sad-dashboard-hero p,
  section.sad-inbox-hero p,
  .sad-dashboard-hero p,
  .sad-inbox-hero p{
    font-size:11px !important;
  }
  section.sad-dashboard-hero .sad-hero-actions,
  .sad-dashboard-hero .sad-hero-actions{
    display:flex !important;
    width:auto !important;
    margin:0 !important;
  }
  section.sad-dashboard-hero .sad-hero-actions .sad-front-btn,
  .sad-dashboard-hero .sad-hero-actions .sad-front-btn{
    min-height:32px !important;
    width:auto !important;
  }
}

/* v0.9.147 — menu lateral compacto + bloco “Atender como aplicativo” proporcional */
.sad-sidebar-shell .sad-global-presence-form,
.sad-sidebar-shell .sad-global-presence-form.is-compact{
  display:flex!important;
  width:100%!important;
  margin:4px 0 0!important;
  margin-left:0!important;
  padding:6px 10px!important;
  border-radius:10px!important;
  border:1px solid #3a4d64!important;
  background:#1a2533!important;
  box-sizing:border-box!important;
  white-space:normal!important;
}
.sad-sidebar-shell .sad-global-presence-form select{
  color:#e6f8ff!important;
  width:100%!important;
  max-width:none!important;
  font-size:12px!important;
  font-weight:700!important;
  min-height:28px!important;
  padding:2px 4px!important;
}
.sad-sidebar-shell .sad-front-nav a,
.sad-sidebar-shell .sad-nav-logout{
  min-height:34px!important;
  padding:7px 10px!important;
  font-size:12px!important;
}
.sad-sidebar-shell .sad-front-nav{
  gap:4px!important;
}
.sad-dashboard-wrap .sad-dashboard-hero .sad-hero-actions{
  gap:6px!important;
}
.sad-dashboard-wrap .sad-dashboard-hero .sad-hero-actions .sad-front-btn{
  min-height:36px!important;
  padding:8px 12px!important;
  font-size:12px!important;
}
.sad-dashboard-wrap .sad-metric-grid{
  margin-top:0!important;
  margin-bottom:12px!important;
  gap:10px!important;
}
.sad-mobile-app-card-wrap + .sad-presence-card,
.sad-dashboard-hero + .sad-mobile-app-card-wrap{
  margin-top:0!important;
}

/* v0.9.148 — shell full bleed: topbar/menu sem cantos, menu altura total, hero independente */
.sad-app-shell{
  padding:0 !important;
  max-width:none !important;
  width:100% !important;
}
.sad-app-shell .sad-front-wrap{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  min-height:100vh;
}
.sad-app-shell .sad-client-topbar{
  border-radius:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  border-top:0 !important;
  border-bottom:1px solid #334357 !important;
  box-shadow:none !important;
  width:100% !important;
  margin:0 !important;
  padding:10px 18px !important;
  min-height:48px !important;
  box-sizing:border-box !important;
}
.sad-app-shell .sad-client-topbar .sad-brand-name{
  font-size:15px !important;
}
.sad-app-shell .sad-client-topbar .sad-brand-logo{
  max-height:32px !important;
}
.sad-app-shell .sad-sidebar-shell{
  border-radius:0 !important;
  border:0 !important;
  border-right:1px solid #334357 !important;
  box-shadow:none !important;
  align-self:stretch !important;
  min-height:calc(100vh - 48px) !important;
  height:calc(100vh - 48px) !important;
  max-height:calc(100vh - 48px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  position:sticky !important;
  top:0 !important;
}
.sad-app-shell .sad-main-column{
  align-self:start !important;
  min-height:0 !important;
  height:auto !important;
  padding:14px 18px 24px !important;
}
.sad-app-shell .sad-main-column > .sad-dashboard-hero,
.sad-app-shell .sad-main-column > section.sad-dashboard-hero,
.sad-app-shell .sad-main-column > .sad-inbox-hero{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin-bottom:12px !important;
}
.sad-app-shell .sad-main-column .sad-dashboard-hero,
.sad-app-shell .sad-main-column section.sad-dashboard-hero,
.sad-app-shell .sad-main-column .sad-inbox-hero,
.sad-app-shell .sad-main-column .sad-monitor-hero{
  flex:0 0 auto !important;
  align-self:flex-start !important;
  width:100% !important;
}
@media (min-width:901px){
  .sad-app-shell .sad-client-topbar{
    border-radius:0 !important;
    margin-bottom:0 !important;
    min-height:48px !important;
    padding:10px 20px !important;
  }
  .sad-app-shell .sad-client-topbar .sad-brand-name{
    font-size:16px !important;
  }
  .sad-app-shell .sad-client-topbar .sad-brand-logo{
    max-height:34px !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-front-nav a,
  .sad-app-shell .sad-sidebar-shell .sad-nav-logout{
    font-size:13px !important;
    min-height:36px !important;
    padding:8px 11px !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-nav-label{
    font-size:13px !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-global-presence-form,
  .sad-app-shell .sad-sidebar-shell .sad-global-presence-form.is-compact{
    padding:5px 8px !important;
    margin-top:4px !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-global-presence-form select{
    font-size:11px !important;
    min-height:26px !important;
  }
  .sad-app-shell .sad-mobile-app-card-title{
    font-size:14px !important;
    line-height:1.25 !important;
  }
  .sad-app-shell .sad-mobile-app-card-desc{
    font-size:12px !important;
    line-height:1.35 !important;
  }
  .sad-app-shell .sad-main-column .sad-front-card h2,
  .sad-app-shell .sad-presence-card h2{
    font-size:20px !important;
    line-height:1.2 !important;
  }
  .sad-app-shell .sad-main-column .sad-front-card p,
  .sad-app-shell .sad-main-column .sad-front-muted{
    font-size:14px !important;
    line-height:1.45 !important;
  }
  .sad-app-shell .sad-main-column section.sad-dashboard-hero,
  .sad-app-shell .sad-main-column section.sad-inbox-hero,
  .sad-app-shell .sad-main-column .sad-dashboard-hero.sad-monitor-hero{
    padding:12px 18px !important;
    margin-bottom:12px !important;
    min-height:0 !important;
    max-height:none !important;
    height:auto !important;
    border-radius:0 !important;
  }
  .sad-app-shell .sad-main-column section.sad-dashboard-hero h1,
  .sad-app-shell .sad-main-column section.sad-inbox-hero h1,
  .sad-app-shell .sad-main-column .sad-dashboard-hero h1{
    font-size:20px !important;
    line-height:1.15 !important;
  }
  .sad-app-shell .sad-main-column section.sad-dashboard-hero p,
  .sad-app-shell .sad-main-column section.sad-inbox-hero p,
  .sad-app-shell .sad-main-column .sad-dashboard-hero p{
    font-size:14px !important;
    line-height:1.4 !important;
    -webkit-line-clamp:unset !important;
    display:block !important;
    overflow:visible !important;
  }
  .sad-app-shell .sad-main-column section.sad-dashboard-hero .sad-eyebrow,
  .sad-app-shell .sad-main-column .sad-dashboard-hero .sad-eyebrow{
    font-size:10px !important;
  }
  .sad-app-shell .sad-main-column .sad-hero-actions .sad-front-btn{
    min-height:38px !important;
    padding:8px 14px !important;
    font-size:13px !important;
  }
}
@media (max-width:900px){
  .sad-app-shell .sad-front-wrap{
    display:block !important;
    min-height:0 !important;
  }
  .sad-app-shell .sad-sidebar-shell{
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    border-right:0 !important;
    border-bottom:1px solid #334357 !important;
    position:relative !important;
  }
  .sad-app-shell .sad-main-column{
    padding:10px 12px 20px !important;
  }
}

/* v0.9.149 — largura total do shell (sobrescreve max-width legado) */
.sad-app-shell,
.sad-app-shell .sad-front-wrap,
.sad-app-shell .sad-front-wrap.sad-dashboard-wrap,
.sad-app-shell .sad-front-wrap.sad-page-standard,
.sad-app-shell .sad-front-wrap.sad-inbox-page,
.sad-app-shell .sad-front-wrap.sad-monitor-page{
  max-width:none !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

/* v0.9.151 — topbar + menu lateral fixos, colados (zero vão), todas as páginas */
body.sad-app-body{
  --sad-shell-topbar-h:48px;
  --sad-shell-sidebar-w:248px;
}
.sad-app-shell .sad-client-topbar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:var(--sad-shell-topbar-h) !important;
  min-height:var(--sad-shell-topbar-h) !important;
  max-height:var(--sad-shell-topbar-h) !important;
  margin:0 !important;
  padding:0 18px !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  z-index:10060 !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
}
.sad-app-shell .sad-client-topbar::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  height:3px !important;
  background:linear-gradient(90deg,#08aeea 0%,#4fddff 55%,#08aeea 100%) !important;
  pointer-events:none !important;
}
.sad-app-shell .sad-front-wrap{
  display:block !important;
  min-height:100vh !important;
  padding:var(--sad-shell-topbar-h) 0 0 0 !important;
  margin:0 !important;
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
.sad-app-shell .sad-front-wrap > .sad-client-topbar{
  margin:0 !important;
}
.sad-app-shell .sad-sidebar-shell,
.sad-app-shell .sad-sidebar-shell.sad-topbar,
.sad-app-shell .sad-front-wrap > .sad-topbar.sad-sidebar-shell{
  position:fixed !important;
  top:var(--sad-shell-topbar-h) !important;
  left:0 !important;
  bottom:0 !important;
  width:var(--sad-shell-sidebar-w) !important;
  max-width:var(--sad-shell-sidebar-w) !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 0 12px !important;
  border:0 !important;
  border-right:1px solid #334357 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  z-index:10050 !important;
  box-sizing:border-box !important;
}
.sad-app-shell .sad-sidebar-shell .sad-front-nav{
  gap:0 !important;
  padding:0 !important;
  margin:0 !important;
}
.sad-app-shell .sad-sidebar-shell .sad-front-nav a,
.sad-app-shell .sad-sidebar-shell .sad-nav-logout{
  border-radius:0 !important;
  width:100% !important;
  margin:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  box-sizing:border-box !important;
}
.sad-app-shell .sad-main-column{
  display:block !important;
  margin:0 0 0 var(--sad-shell-sidebar-w) !important;
  padding:14px 18px 28px !important;
  min-height:calc(100vh - var(--sad-shell-topbar-h)) !important;
  width:auto !important;
  max-width:none !important;
  box-sizing:border-box !important;
}
.sad-app-shell .sad-front-wrap.sad-monitor-page,
.sad-app-shell .sad-monitor-page .sad-main-column{
  max-width:none !important;
  width:auto !important;
}
/* Anula margens legadas que abriam vão (topbar v0.9.144, .sad-topbar no aside) */
.sad-app-shell .sad-client-topbar,
.sad-app-shell header.sad-client-topbar{
  margin-bottom:0 !important;
  border-radius:0 !important;
}
.sad-app-shell .sad-sidebar-shell.sad-topbar{
  margin-top:0 !important;
  margin-bottom:0 !important;
}
@media (min-width:901px){
  .sad-app-shell .sad-front-wrap > *:not(.sad-client-topbar):not(.sad-topbar):not(.sad-main-column){
    margin-left:var(--sad-shell-sidebar-w) !important;
  }
}
@media (max-width:900px){
  body.sad-app-body{
    --sad-shell-topbar-h:48px;
    --sad-shell-sidebar-w:0px;
  }
  .sad-app-shell{
    padding:0 !important;
  }
  .sad-app-shell .sad-client-topbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 12px !important;
    border-radius:0 !important;
    z-index:10060 !important;
  }
  .sad-app-shell .sad-front-wrap{
    display:flex !important;
    flex-direction:column !important;
    padding:var(--sad-shell-topbar-h) 0 0 !important;
    min-height:100vh !important;
  }
  .sad-app-shell .sad-sidebar-shell,
  .sad-app-shell .sad-sidebar-shell.sad-topbar{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    bottom:auto !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    min-height:0 !important;
    max-height:min(70dvh,calc(100dvh - var(--sad-shell-topbar-h))) !important;
    margin:0 !important;
    padding:0 0 8px !important;
    border:0 !important;
    border-bottom:3px solid #4fddff !important;
    border-radius:0 !important;
    display:none !important;
    flex:0 0 auto !important;
    order:1 !important;
    z-index:10055 !important;
  }
  .sad-app-shell .sad-sidebar-shell.is-menu-open{
    display:block !important;
  }
  .sad-app-shell .sad-main-column{
    order:2 !important;
    margin:0 !important;
    padding:12px 12px 24px !important;
    min-height:0 !important;
    flex:1 1 auto !important;
    width:100% !important;
  }
  .sad-app-shell .sad-front-wrap > *:not(.sad-client-topbar):not(.sad-topbar):not(.sad-main-column){
    margin-left:0 !important;
  }
}
@media (max-width:640px){
  .sad-app-shell .sad-sidebar-shell:not(.is-menu-open){
    display:none !important;
  }
}

/* v0.9.152 — desktop: menu colado na topbar; mobile: drawer em largura total visível */
@media (min-width:901px){
  body.sad-app-body{
    --sad-shell-topbar-h:52px;
    --sad-shell-sidebar-w:248px;
  }
  .sad-app-shell .sad-client-topbar,
  .sad-app-shell header.sad-client-topbar{
    height:var(--sad-shell-topbar-h) !important;
    min-height:var(--sad-shell-topbar-h) !important;
    max-height:var(--sad-shell-topbar-h) !important;
    margin:0 !important;
    padding:0 18px !important;
    border-radius:0 !important;
    overflow:hidden !important;
  }
  .sad-app-shell .sad-sidebar-shell,
  .sad-app-shell .sad-sidebar-shell.sad-topbar,
  .sad-app-shell .sad-front-wrap > .sad-topbar.sad-sidebar-shell{
    top:var(--sad-shell-topbar-h) !important;
    left:0 !important;
    width:var(--sad-shell-sidebar-w) !important;
    min-width:var(--sad-shell-sidebar-w) !important;
    max-width:var(--sad-shell-sidebar-w) !important;
    margin:0 !important;
    padding:0 0 12px !important;
    display:block !important;
  }
  .sad-app-shell .sad-sidebar-shell.sad-topbar{
    margin-top:0 !important;
    margin-bottom:0 !important;
    gap:0 !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-front-nav,
  .sad-app-shell .sad-sidebar-shell .sad-front-nav[data-sad-mobile-menu-nav]{
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-front-nav > a:first-child{
    margin-top:0 !important;
  }
}
@media (max-width:900px){
  body.sad-app-body{
    --sad-shell-topbar-h:48px;
    --sad-shell-sidebar-w:100%;
  }
  .sad-app-shell .sad-sidebar-shell,
  .sad-app-shell .sad-sidebar-shell.sad-topbar,
  .sad-app-shell .sad-front-wrap > .sad-topbar.sad-sidebar-shell,
  .sad-app-shell .sad-sidebar-shell.sad-topbar.is-menu-open,
  .sad-sidebar-shell.sad-topbar.is-menu-open{
    position:relative !important;
    top:auto !important;
    left:0 !important;
    right:0 !important;
    bottom:auto !important;
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 0 8px !important;
    transform:none !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }
  .sad-app-shell .sad-sidebar-shell.is-menu-open,
  .sad-sidebar-shell.sad-topbar.is-menu-open{
    display:block !important;
    z-index:10055 !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-front-nav,
  .sad-sidebar-shell.sad-topbar .sad-front-nav{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    opacity:1 !important;
    pointer-events:auto !important;
    max-height:min(70dvh,calc(100dvh - var(--sad-shell-topbar-h))) !important;
    overflow-y:auto !important;
    display:flex !important;
    flex-direction:column !important;
    grid-column:auto !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-front-nav a,
  .sad-app-shell .sad-sidebar-shell .sad-nav-logout{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .sad-app-shell .sad-client-topbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:10060 !important;
  }
}

/* v0.9.153 — respiro abaixo da topbar (desktop) + menu mobile em overlay */
@media (min-width:901px){
  body.sad-app-body{
    --sad-shell-nav-gap:8px;
  }
  .sad-app-shell .sad-sidebar-shell,
  .sad-app-shell .sad-sidebar-shell.sad-topbar,
  .sad-app-shell .sad-front-wrap > .sad-topbar.sad-sidebar-shell{
    padding-top:var(--sad-shell-nav-gap) !important;
  }
  .sad-app-shell .sad-sidebar-shell .sad-front-nav,
  .sad-app-shell .sad-sidebar-shell .sad-front-nav[data-sad-mobile-menu-nav]{
    padding-top:0 !important;
    margin-top:0 !important;
  }
}
@media (max-width:900px){
  body.sad-app-body.sad-mobile-menu-active{
    overflow:hidden !important;
  }
  .sad-app-shell .sad-sidebar-shell,
  .sad-app-shell .sad-sidebar-shell.sad-topbar,
  .sad-app-shell .sad-front-wrap > .sad-topbar.sad-sidebar-shell{
    display:none !important;
  }
  .sad-app-shell .sad-sidebar-shell.sad-topbar.is-menu-open,
  .sad-app-shell .sad-sidebar-shell.is-menu-open,
  .sad-sidebar-shell.sad-topbar.is-menu-open{
    display:block !important;
    position:fixed !important;
    top:var(--sad-shell-topbar-h) !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    min-width:100% !important;
    max-width:100% !important;
    min-height:calc(100dvh - var(--sad-shell-topbar-h)) !important;
    max-height:none !important;
    margin:0 !important;
    padding:10px 0 16px !important;
    border:0 !important;
    border-bottom:3px solid #4fddff !important;
    border-radius:0 !important;
    transform:none !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    z-index:10070 !important;
    box-shadow:0 18px 40px rgba(18,30,43,.42) !important;
    background:#222d3b !important;
    box-sizing:border-box !important;
  }
  .sad-app-shell .sad-sidebar-shell.is-menu-open .sad-front-nav,
  .sad-sidebar-shell.sad-topbar.is-menu-open .sad-front-nav{
    width:100% !important;
    max-width:100% !important;
    max-height:none !important;
    margin:0 !important;
    padding:4px 0 0 !important;
    opacity:1 !important;
    pointer-events:auto !important;
    overflow-y:auto !important;
    display:flex !important;
    flex-direction:column !important;
  }
  .sad-app-shell .sad-main-column{
    position:relative !important;
    z-index:1 !important;
  }
}

/* v0.9.172 — Conversas: acordeões empurram conteúdo (sem sobrepor) + templates Meta */
.sad-inbox-layout .sad-inbox-list-panel{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  overflow:hidden!important;
}
.sad-inbox-layout .sad-inbox-list-head,
.sad-inbox-layout .sad-inbox-search,
.sad-inbox-layout .sad-inbox-group-tabs{
  flex:0 0 auto!important;
}
.sad-inbox-layout .sad-inbox-thread-list{
  flex:1 1 auto!important;
  min-height:80px!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.sad-inbox-manual.sad-inbox-accordion-panel{
  flex:0 0 auto!important;
  max-height:none!important;
  overflow:visible!important;
  border-top:1px solid #dbe5ef!important;
  background:#f8fbff!important;
  margin-top:0!important;
  position:relative!important;
  z-index:auto!important;
}
.sad-inbox-manual.sad-inbox-accordion-panel:not([open]){
  overflow:hidden!important;
}
.sad-inbox-manual-body,
.sad-inbox-accordion-body{
  max-height:min(440px,48vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:12px 14px 14px!important;
  scrollbar-width:thin;
  scrollbar-color:#94a3b8 #eef2f7;
}
.sad-inbox-manual .sad-inbox-accordion-summary,
.sad-inbox-compose-advanced .sad-inbox-accordion-summary,
.sad-inbox-chat-tools .sad-inbox-accordion-summary{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  background:transparent!important;
}
.sad-inbox-manual-divider{margin:14px 0;border:0;border-top:1px solid #e2e8f0;}
.sad-inbox-layout .sad-inbox-chat-panel{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
.sad-inbox-chat-panel .sad-inbox-chat-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
}
.sad-inbox-composer,
.sad-inbox-compose-advanced,
.sad-inbox-chat-tools{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:auto!important;
}
.sad-inbox-compose-advanced-body .sad-inbox-compose-tools,
.sad-inbox-chat-tools-panel{
  max-height:none!important;
  overflow:visible!important;
  padding:0 12px 12px!important;
}
.sad-meta-templates-card{
  margin:16px 0 0;
  padding:14px 16px;
  border:1px solid #dbe5ef;
  border-radius:14px;
  background:#f8fbff;
}
.sad-meta-templates-card h4{margin:0 0 8px;font-size:15px;color:#0f172a;}
.sad-meta-templates-grid{margin-top:10px;}
.sad-meta-templates-table-wrap{margin:12px 0 0;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.sad-meta-templates-table{width:100%;border-collapse:collapse;font-size:13px;}
.sad-meta-templates-table th,.sad-meta-templates-table td{padding:10px 8px;border-bottom:1px solid #dbe5ef;vertical-align:top;text-align:left;}
.sad-meta-templates-table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800;}
.sad-meta-templates-table input[type=text],.sad-meta-templates-table input[type=time]{width:100%;min-width:120px;box-sizing:border-box;}
.sad-meta-templates-birthday-row td{background:#f0f9ff;}
.sad-meta-templates-client .sad-wa-template-bubble--compact{max-width:280px;font-size:12px;padding:10px 12px;margin-top:4px;}
.sad-meta-client-birthday-controls{margin-top:8px;}
.sad-star-only-tag{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;vertical-align:middle;}
.sad-dispatch-badge.sad-dispatch-scheduled{background:#dbeafe;color:#1d4ed8;}
.sad-dispatch-badge.sad-dispatch-auto{background:#dcfce7;color:#166534;}

/* v0.9.216 — Conversas: abas no rodapé do chat */
.sad-inbox-chat-tabs{border-top:1px solid #e2e8f0;background:#fff;}
.sad-inbox-chat-tab-nav{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;border-bottom:1px solid #e2e8f0;background:#f8fafc;}
.sad-inbox-chat-tab-nav button{border:1px solid #dbe5ef;background:#fff;color:#475569;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer;}
.sad-inbox-chat-tab-nav button.is-active{background:#e8f7ff;border-color:#7dd3fc;color:#0369a1;box-shadow:0 0 0 1px #7dd3fc inset;}
.sad-inbox-chat-tab-panel{display:none;padding:10px 12px 12px;}
.sad-inbox-chat-tab-panel.is-active{display:block;}
.sad-inbox-tab-intro{margin:0 0 10px;font-size:12px;color:#64748b;line-height:1.45;}
.sad-inbox-template-actions{display:grid;gap:10px;}
.sad-inbox-template-actions form{display:grid;gap:4px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;}
.sad-inbox-wa-status{margin:0 0 10px;padding:10px 12px;border-radius:12px;border:1px solid #e2e8f0;background:#f8fafc;font-size:12px;line-height:1.45;}
.sad-inbox-wa-status strong{display:block;font-size:13px;margin-bottom:4px;}
.sad-inbox-wa-status p{margin:0;}
.sad-inbox-wa-status--open{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
.sad-inbox-wa-status--closed{border-color:#fed7aa;background:#fff7ed;color:#9a3412;}
.sad-inbox-wa-status--waiting{border-color:#fde68a;background:#fffbeb;color:#92400e;}
.sad-inbox-settings-advanced{margin-top:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.sad-inbox-settings-advanced summary{cursor:pointer;padding:10px 12px;font-weight:700;font-size:12px;}
@media(max-width:760px){
  .sad-inbox-chat-tab-nav{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;}
  .sad-inbox-chat-tab-nav button{flex:0 0 auto;}
}

/* v0.9.217 — Conversas: abas na lista + guia rápido */
.sad-inbox-list-tabs{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;}
.sad-inbox-list-tab-nav{display:flex;gap:6px;padding:8px 10px;border-bottom:1px solid #e2e8f0;background:#f8fafc;}
.sad-inbox-list-tab-nav button{flex:1;border:1px solid #dbe5ef;background:#fff;color:#475569;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:800;cursor:pointer;}
.sad-inbox-list-tab-nav button.is-active{background:#e8f7ff;border-color:#7dd3fc;color:#0369a1;}
.sad-inbox-tab-count{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:999px;background:#e2e8f0;font-size:10px;}
.sad-inbox-list-tab-nav button.is-active .sad-inbox-tab-count{background:#bae6fd;}
.sad-inbox-list-tab-panel{display:none;flex:1 1 auto;min-height:0;overflow:hidden;flex-direction:column;}
.sad-inbox-list-tab-panel.is-active{display:flex;}
.sad-inbox-list-tab-panel.is-active[data-sad-list-tab-panel="new"]{overflow-y:auto;}
.sad-inbox-new-contact-panel{padding:12px;display:grid;gap:10px;overflow:auto;}
.sad-inbox-new-contact-intro{margin:0;padding:10px 12px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;font-size:12px;line-height:1.45;}
.sad-inbox-new-contact-hint{margin:0;font-size:12px;}
.sad-inbox-new-contact-internal{margin-top:4px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.sad-inbox-new-contact-internal summary{cursor:pointer;padding:10px 12px;font-weight:700;font-size:12px;}
.sad-inbox-new-contact-internal .sad-front-form{padding:0 12px 12px;}
.sad-inbox-responsibility-banner{margin:0 12px 10px;padding:10px 12px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;font-size:12px;line-height:1.45;}
.sad-inbox-responsibility-banner p{margin:0 0 8px;}
.sad-assume-conversation-form{margin:0;}
.sad-operator-bulk-reassign{margin-top:12px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff;}
.sad-operator-bulk-reassign summary{cursor:pointer;font-weight:800;font-size:13px;}
.sad-operator-bulk-reassign .sad-front-form{margin-top:10px;display:grid;gap:8px;}
.sad-inbox-quick-guide{margin:10px 0 0;padding:0 0 0 18px;font-size:12px;color:#64748b;line-height:1.5;}
.sad-inbox-quick-guide li{margin:2px 0;}
.sad-inbox-reception-panel{margin:0 0 14px;padding:12px 14px;}
.sad-inbox-reception-panel summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;}
.sad-inbox-reception-panel summary::-webkit-details-marker{display:none;}
.sad-inbox-reception-body{margin-top:12px;}
.sad-inbox-agenda-tools{margin:10px 0 0;padding-top:10px;border-top:1px solid #e8edf3;}
.sad-inbox-agenda-badge{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;}
.sad-inbox-agenda-badge.is-on{background:#ecfdf5;color:#047857;}
.sad-contact-added-by{display:block;font-size:11px;color:#94a3b8;margin-top:2px;}
.sad-lead-detail-v .sad-contact-added-by{display:inline;font-size:11px;}
.sad-dispatch-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;margin:0 4px 4px 0;}
.sad-dispatch-manual{background:#fef3c7;color:#92400e;}
.sad-dispatch-auto{background:#dcfce7;color:#166534;}
.sad-dispatch-scheduled{background:#dbeafe;color:#1d4ed8;}
.sad-meta-dispatch-check{display:block!important;margin:6px 0 0!important;font-size:12px!important;}
.sad-meta-dispatch-time{display:block;margin-top:8px;font-size:12px;font-weight:700;}
.sad-meta-dispatch-time input[type=time]{display:block;margin-top:4px;font-weight:500;}
.sad-resume-template-form{display:grid;gap:6px;margin-bottom:10px;}
@media(max-width:980px){
  .sad-inbox-layout .sad-inbox-list-panel{max-height:none!important;height:auto!important;}
  .sad-inbox-manual-body,.sad-inbox-accordion-body{max-height:min(380px,55vh)!important;}
}

/* v0.9.175 — acordeões Conversas: abrir para baixo (empurra layout, sem sobrepor) */
.sad-inbox-manual.sad-inbox-accordion-panel,
.sad-inbox-compose-advanced.sad-inbox-accordion-panel,
.sad-inbox-transfer-panel.sad-inbox-accordion-panel,
.sad-inbox-chat-tools.sad-inbox-accordion-panel{
  flex:0 0 auto!important;
  width:100%!important;
  max-height:none!important;
  position:relative!important;
  z-index:auto!important;
  display:block!important;
  box-sizing:border-box!important;
}
.sad-inbox-manual.sad-inbox-accordion-panel:not([open]),
.sad-inbox-compose-advanced.sad-inbox-accordion-panel:not([open]),
.sad-inbox-transfer-panel.sad-inbox-accordion-panel:not([open]),
.sad-inbox-chat-tools.sad-inbox-accordion-panel:not([open]){
  overflow:hidden!important;
}
.sad-inbox-manual.sad-inbox-accordion-panel[open],
.sad-inbox-compose-advanced.sad-inbox-accordion-panel[open],
.sad-inbox-transfer-panel.sad-inbox-accordion-panel[open],
.sad-inbox-chat-tools.sad-inbox-accordion-panel[open]{
  overflow:visible!important;
  max-height:none!important;
}
.sad-inbox-list-panel .sad-inbox-manual.sad-inbox-accordion-panel,
.sad-inbox-list-panel .sad-inbox-manual.sad-inbox-accordion-panel[open]{
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
}
.sad-inbox-list-panel .sad-inbox-thread-list{
  flex:1 1 auto!important;
  min-height:56px!important;
  position:relative!important;
  z-index:auto!important;
}
.sad-inbox-manual .sad-inbox-accordion-summary,
.sad-inbox-compose-advanced .sad-inbox-accordion-summary,
.sad-inbox-chat-tools .sad-inbox-accordion-summary{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
  background:#f8fbff!important;
  border-radius:12px;
}
.sad-inbox-manual.sad-inbox-accordion-panel.is-open>.sad-inbox-accordion-summary::after,
.sad-inbox-compose-advanced.is-open>.sad-inbox-accordion-summary::after,
.sad-inbox-chat-tools.is-open>.sad-inbox-accordion-summary::after{
  transform:rotate(180deg);
}
.sad-inbox-manual-body,
.sad-inbox-accordion-body{
  position:relative!important;
  z-index:auto!important;
  display:block!important;
  max-height:min(420px,48vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.sad-inbox-chat-footer{
  flex:0 0 auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:100%!important;
  padding:0 0 10px!important;
  background:#fff!important;
  border-top:1px solid #e6eef8!important;
  position:relative!important;
  bottom:auto!important;
  z-index:auto!important;
}
.sad-inbox-chat-footer .sad-inbox-composer{
  flex:0 0 auto!important;
  position:relative!important;
  bottom:auto!important;
  z-index:auto!important;
  border-top:0!important;
  box-shadow:none!important;
  padding:10px 12px 0!important;
}
.sad-inbox-chat-footer .sad-inbox-chat-tools{
  margin:0 10px 0!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  overflow:visible!important;
}
.sad-inbox-chat-footer .sad-inbox-compose-advanced{
  margin:0!important;
  overflow:visible!important;
}
.sad-inbox-page .sad-inbox-composer,
.sad-inbox-page.has-thread-open .sad-inbox-composer,
.sad-inbox-page:not(.has-thread-open) .sad-inbox-composer{
  position:relative!important;
  bottom:auto!important;
  z-index:auto!important;
}
.sad-inbox-chat-stack{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
}
.sad-inbox-chat-stack .sad-inbox-chat-scroll{
  flex:1 1 auto!important;
  min-height:100px!important;
  overflow-y:auto!important;
}
.sad-inbox-chat-tools-panel{
  max-height:min(400px,45vh)!important;
  overflow-y:auto!important;
}

/* v0.9.176 — Conversas: rolagem única da página (sem barras nas colunas) */
.sad-front-wrap.sad-inbox-page{
  min-height:auto!important;
  height:auto!important;
  overflow:visible!important;
  padding-bottom:56px!important;
}
.sad-inbox-layout,
.sad-inbox-layout.sad-inbox-layout--split{
  height:auto!important;
  min-height:760px!important;
  max-height:none!important;
  overflow:visible!important;
  grid-template-rows:auto auto!important;
  align-items:stretch!important;
}
.sad-inbox-layout .sad-inbox-list-panel,
.sad-inbox-layout .sad-inbox-chat-panel,
.sad-inbox-layout .sad-inbox-details-panel,
.sad-inbox-layout--split .sad-inbox-list-panel,
.sad-inbox-layout--split .sad-inbox-chat-panel{
  height:auto!important;
  max-height:none!important;
  min-height:540px!important;
  overflow:visible!important;
}
.sad-inbox-layout .sad-inbox-list-panel{
  display:flex!important;
  flex-direction:column!important;
  padding-bottom:14px!important;
}
.sad-inbox-layout .sad-inbox-thread-list,
.sad-inbox-layout .sad-inbox-chat-scroll,
.sad-inbox-layout .sad-inbox-details-panel,
.sad-inbox-manual-body,
.sad-inbox-accordion-body,
.sad-inbox-chat-tools-panel{
  max-height:none!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
.sad-inbox-layout .sad-inbox-thread-list{
  min-height:120px!important;
  padding-bottom:8px!important;
}
.sad-inbox-chat-stack{
  height:auto!important;
  min-height:500px!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
.sad-inbox-layout .sad-inbox-chat-scroll{
  min-height:360px!important;
  padding:16px 18px 20px!important;
  flex:0 0 auto!important;
}
.sad-inbox-list-panel .sad-inbox-manual.sad-inbox-accordion-panel,
.sad-inbox-list-panel .sad-inbox-manual.sad-inbox-accordion-panel[open]{
  padding:0 12px 12px!important;
  margin:0!important;
}
.sad-inbox-manual .sad-inbox-accordion-summary,
.sad-inbox-compose-advanced .sad-inbox-accordion-summary,
.sad-inbox-chat-tools .sad-inbox-accordion-summary{
  padding:12px 14px!important;
  margin:8px 0 0!important;
  border-radius:12px!important;
  background:#f8fbff!important;
}
.sad-inbox-manual-body,
.sad-inbox-accordion-body{
  padding:14px 16px 18px!important;
}
.sad-inbox-chat-footer{
  padding:0 14px 16px!important;
  gap:10px!important;
}
.sad-inbox-chat-footer .sad-inbox-composer{
  padding:12px 14px 0!important;
}
.sad-inbox-chat-footer .sad-inbox-chat-tools,
.sad-inbox-chat-footer .sad-inbox-compose-advanced{
  margin:0!important;
}
.sad-inbox-page .sad-inbox-composer,
.sad-inbox-page.has-thread-open .sad-inbox-composer,
.sad-inbox-page:not(.has-thread-open) .sad-inbox-composer{
  position:relative!important;
  bottom:auto!important;
  box-shadow:none!important;
}
.sad-inbox-page.has-thread-open .sad-inbox-layout,
.sad-inbox-page.has-thread-open .sad-inbox-chat-panel,
.sad-inbox-page.has-thread-open .sad-inbox-chat-stack{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
.sad-inbox-page.has-thread-open .sad-inbox-chat-scroll,
.sad-inbox-page.is-mobile-focus .sad-inbox-chat-scroll,
.sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-scroll{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
.sad-inbox-page.has-thread-open .sad-inbox-list-panel{
  max-height:none!important;
  height:auto!important;
}
@media(max-width:980px){
  .sad-inbox-layout,
  .sad-inbox-layout.sad-inbox-layout--split{
    min-height:0!important;
  }
  .sad-inbox-layout .sad-inbox-list-panel,
  .sad-inbox-layout .sad-inbox-chat-panel,
  .sad-inbox-layout .sad-inbox-details-panel{
    min-height:0!important;
  }
  .sad-inbox-page .sad-inbox-chat-panel,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel,
  .sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-panel{
    height:auto!important;
    min-height:460px!important;
  }
  .sad-inbox-layout .sad-inbox-thread-list{
    max-height:none!important;
  }
}

/* v0.9.182 — Conversas: histórico compacto com altura limitada e rolagem interna */
.sad-inbox-layout,
.sad-inbox-layout.sad-inbox-layout--split{
  min-height:0!important;
}
.sad-inbox-layout .sad-inbox-list-panel,
.sad-inbox-layout .sad-inbox-chat-panel,
.sad-inbox-layout .sad-inbox-details-panel{
  min-height:0!important;
}
.sad-inbox-chat-stack{
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  flex:0 0 auto!important;
}
.sad-inbox-layout .sad-inbox-chat-scroll,
.sad-inbox-page.has-thread-open .sad-inbox-chat-scroll,
.sad-inbox-page.is-mobile-focus .sad-inbox-chat-scroll,
.sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-scroll{
  min-height:160px!important;
  max-height:min(380px,42vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  flex:0 0 auto!important;
  padding:10px 12px 12px!important;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.sad-inbox-chat-scroll .sad-message-row{
  margin-bottom:6px!important;
}
.sad-inbox-chat-scroll .sad-message-row .sad-message-bubble{
  padding:7px 10px!important;
  border-radius:11px!important;
}
.sad-inbox-chat-scroll .sad-message-meta{
  margin-bottom:2px!important;
  gap:5px!important;
}
.sad-inbox-chat-scroll .sad-message-role{
  font-size:9px!important;
  padding:3px 6px!important;
}
.sad-inbox-chat-scroll .sad-message-meta strong{
  font-size:12px!important;
}
.sad-inbox-chat-scroll .sad-message-bubble p{
  font-size:13px!important;
  line-height:1.32!important;
  margin:0 0 3px!important;
}
.sad-inbox-chat-scroll .sad-message-foot{
  font-size:10px!important;
  margin-top:2px!important;
}
.sad-inbox-chat-scroll .sad-chat-event-line{
  margin:4px 0!important;
}
.sad-inbox-chat-scroll .sad-chat-event-line em{
  font-size:10px!important;
  padding:3px 7px!important;
}
.sad-inbox-wa-guidance{
  margin:0 0 8px;
  border:1px solid #dbe5ef;
  border-radius:10px;
  background:#f8fafc;
  font-size:12px;
}
.sad-inbox-wa-guidance-summary{
  cursor:pointer;
  padding:8px 12px;
  font-weight:700;
  color:#334155;
  list-style:none;
}
.sad-inbox-wa-guidance-summary::-webkit-details-marker{display:none;}
.sad-inbox-wa-guidance-body{padding:0 12px 10px;}
.sad-inbox-wa-guidance-list{
  margin:0;
  padding-left:18px;
  line-height:1.45;
  color:#475569;
}
.sad-inbox-wa-guidance-list li{margin:0 0 6px;}
.sad-inbox-wa-guidance-warn{color:#9a3412;}
.sad-meta-template-copy-hint{padding:8px 10px!important;background:#f8fafc;}
.sad-inbox-scroll-hint{
  display:block!important;
  margin:0!important;
  padding:4px 12px 0!important;
  font-size:10px!important;
  color:#94a3b8!important;
  text-align:center!important;
}
@media(max-width:980px){
  .sad-inbox-layout .sad-inbox-chat-scroll,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-scroll{
    max-height:min(340px,38vh)!important;
    min-height:140px!important;
  }
  .sad-inbox-page .sad-inbox-chat-panel,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel{
    min-height:0!important;
    height:auto!important;
  }
}

/* v0.9.187 — Conversas: histórico com rolagem interna; composer e URA/24h sempre visíveis */
.sad-inbox-layout,
.sad-inbox-layout.sad-inbox-layout--split{
  min-height:0!important;
  height:auto!important;
  align-items:stretch!important;
}
.sad-inbox-layout .sad-inbox-chat-panel,
.sad-inbox-layout--split .sad-inbox-chat-panel,
.sad-inbox-page.has-thread-open .sad-inbox-chat-panel{
  display:flex!important;
  flex-direction:column!important;
  max-height:calc(100dvh - 168px)!important;
  min-height:min(480px,calc(100dvh - 168px))!important;
  height:auto!important;
  overflow:hidden!important;
}
.sad-inbox-chat-stack,
.sad-inbox-page.has-thread-open .sad-inbox-chat-stack{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
.sad-inbox-chat-header,
.sad-inbox-mobile-lead-hint,
.sad-inbox-scroll-hint,
.sad-inbox-chat-footer,
.sad-inbox-basic-note{
  flex:0 0 auto!important;
}
.sad-inbox-layout .sad-inbox-chat-scroll,
.sad-inbox-page.has-thread-open .sad-inbox-chat-scroll,
.sad-inbox-page.is-mobile-focus .sad-inbox-chat-scroll,
.sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-scroll{
  flex:1 1 auto!important;
  min-height:96px!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.sad-inbox-chat-footer{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  padding:0 12px 12px!important;
  background:linear-gradient(180deg,rgba(248,252,255,.92),#fff)!important;
  border-top:1px solid #e6eef8!important;
}
.sad-inbox-chat-footer .sad-inbox-composer{
  margin:0!important;
  padding:10px 0 0!important;
  border-top:0!important;
}
.sad-inbox-chat-tools-panel{
  max-height:min(220px,28vh)!important;
  overflow-y:auto!important;
}
.sad-business-hours-form--highlight{
  margin-top:16px!important;
  padding:14px 16px!important;
  border:1px solid #bfdbfe!important;
  border-radius:14px!important;
  background:#f0f9ff!important;
}
.sad-business-hours-form--highlight h5{
  margin:0 0 8px!important;
  font-size:15px!important;
  color:#0c4a6e!important;
}
.sad-meta-dispatch-time strong{
  font-weight:800!important;
  color:#0369a1!important;
}
@media(max-width:980px){
  .sad-inbox-layout .sad-inbox-chat-panel,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-panel{
    max-height:calc(100dvh - 140px)!important;
    min-height:min(420px,calc(100dvh - 140px))!important;
  }
  .sad-inbox-chat-tools-panel{
    max-height:min(180px,24vh)!important;
  }
}

/* v0.9.190 — Mais opções (URA/24h) separado do composer, com altura própria maior */
.sad-inbox-layout .sad-inbox-chat-panel,
.sad-inbox-layout--split .sad-inbox-chat-panel,
.sad-inbox-page.has-thread-open .sad-inbox-chat-panel{
  overflow:visible!important;
  max-height:none!important;
  min-height:0!important;
  height:auto!important;
}
.sad-inbox-chat-stack,
.sad-inbox-page.has-thread-open .sad-inbox-chat-stack{
  flex:0 0 auto!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
  border-bottom:0!important;
}
.sad-inbox-layout .sad-inbox-chat-scroll,
.sad-inbox-page.has-thread-open .sad-inbox-chat-scroll,
.sad-inbox-page.is-mobile-focus .sad-inbox-chat-scroll,
.sad-inbox-page:not(.has-thread-open) .sad-inbox-chat-scroll{
  flex:0 1 auto!important;
  max-height:min(320px,36vh)!important;
  min-height:160px!important;
}
.sad-inbox-chat-footer{
  flex:0 0 auto!important;
  padding:0 12px 10px!important;
  border-top:1px solid #e6eef8!important;
  border-bottom:0!important;
}
.sad-inbox-chat-actions-widget{
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  border-top:2px solid #cbd5e1!important;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9)!important;
  border-radius:0 0 22px 22px!important;
  overflow:hidden!important;
}
.sad-inbox-chat-actions-widget .sad-inbox-chat-tools{
  margin:0!important;
  border:0!important;
  background:transparent!important;
}
.sad-inbox-chat-actions-widget .sad-inbox-accordion-summary{
  padding:14px 16px!important;
  margin:0!important;
  border-radius:0!important;
  background:#eef6ff!important;
  font-size:14px!important;
  font-weight:800!important;
  color:#0369a1!important;
}
.sad-inbox-chat-actions-widget details[open]>.sad-inbox-accordion-summary{
  border-bottom:1px solid #dbe5ef!important;
}
.sad-inbox-chat-actions-widget .sad-inbox-chat-tools-panel{
  max-height:min(480px,52vh)!important;
  min-height:220px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:14px 16px 18px!important;
  display:grid!important;
  gap:12px!important;
}
.sad-inbox-chat-actions-widget .sad-resume-template-form,
.sad-inbox-chat-actions-widget .sad-replay-home-form,
.sad-inbox-chat-actions-widget .sad-save-operator-name-form{
  padding:12px 14px!important;
  background:#fff!important;
  border:1px solid #dbe5ef!important;
  border-radius:12px!important;
}
@media(max-width:980px){
  .sad-inbox-layout .sad-inbox-chat-scroll,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-scroll{
    max-height:min(280px,34vh)!important;
    min-height:140px!important;
  }
  .sad-inbox-chat-actions-widget .sad-inbox-chat-tools-panel{
    max-height:min(380px,46vh)!important;
    min-height:200px!important;
  }
}
.sad-compliance-notice{
  background:#fffbeb;
  border:1px solid #fcd34d;
  border-radius:12px;
  padding:12px 14px;
  margin:0 0 14px;
  font-size:14px;
  line-height:1.45;
}
.sad-inbox-chat-header-top{
  display:flex;
  gap:12px;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
}
.sad-inbox-chat-header-avatar{flex:0 0 auto;}
.sad-inbox-chat-header-actions{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  margin-left:auto;
}
.sad-inbox-export-pdf{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  margin:0;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #dbe5ef;
  background:#fff;
  color:#0369a1;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  box-sizing:border-box;
}
.sad-inbox-export-pdf:hover{background:#f0f9ff;border-color:#7dd3fc;}
.sad-plan-package-card{
  margin-top:14px;
}
.sad-plan-package-name{
  font-size:20px;
  margin:0 0 8px;
  color:#172033;
}
.sad-plan-limits-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin:14px 0 18px;
}
.sad-plan-limit-item{
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px 14px;
  background:#f8fafc;
}
.sad-plan-limit-item span{
  display:block;
  font-size:12px;
  color:#64748b;
  margin-bottom:4px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.sad-plan-limit-item strong{
  font-size:17px;
  color:#0f172a;
}
.sad-plan-composition-title{
  margin:18px 0 10px;
  font-size:15px;
  color:#334155;
}
.sad-plan-composition-list{
  margin:0 0 14px;
  padding-left:20px;
  color:#475467;
  line-height:1.55;
}
.sad-plan-composition-list li{
  margin-bottom:6px;
}
.sad-plan-bonus-title{
  color:#9a3412;
}
.sad-plan-bonus-list li{
  color:#7c2d12;
}
.sad-plan-usage-box{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #dbeafe;
  background:#eff6ff;
}
.sad-plan-usage-box strong{
  display:block;
  margin-bottom:6px;
  color:#1e3a5f;
}
.sad-inbox-ai-assist{
  margin:0 0 10px;
  border:1px solid #e9d5ff;
  border-radius:14px;
  background:linear-gradient(180deg,#faf5ff 0%,#fff 100%);
}
.sad-inbox-ai-summary{
  cursor:pointer;
  padding:10px 12px;
  font-weight:800;
  color:#6b21a8;
  list-style:none;
}
.sad-inbox-ai-body{
  padding:0 12px 12px;
}
.sad-inbox-ai-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}
.sad-inbox-ai-result{
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e9d5ff;
  font-size:14px;
  line-height:1.5;
  white-space:pre-wrap;
  color:#334155;
}
.sad-login-terms{
  margin:12px 0;
  font-size:14px;
  line-height:1.4;
}

/* v0.9.209 — mobile: popup setor/operador (altura fixa + scroll lateral) + PDF no chat */
@media(max-width:760px){
  .sad-inbox-page.has-thread-open .sad-inbox-chat-header,
  .sad-inbox-page.is-mobile-focus .sad-inbox-chat-header,
  .sad-inbox-chat-header{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    padding:10px 12px!important;
  }
  .sad-inbox-chat-header-top{
    width:100%!important;
    min-width:0!important;
    flex:0 0 auto!important;
  }
  .sad-inbox-chat-header-main{
    min-width:0!important;
    padding-right:0!important;
    max-width:100%!important;
  }
  .sad-inbox-chat-header-main h2,
  .sad-inbox-page.has-thread-open .sad-inbox-chat-header-main h2{
    padding-right:0!important;
    word-break:break-word!important;
    overflow-wrap:break-word!important;
    white-space:normal!important;
  }
  .sad-inbox-chat-header-actions{
    width:100%!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
  .sad-inbox-export-pdf{
    width:100%!important;
    margin:0!important;
    min-height:40px!important;
    box-sizing:border-box!important;
    font-size:13px!important;
    white-space:normal!important;
  }
  .sad-inbox-page.has-thread-open .sad-inbox-chat-header-meta,
  .sad-inbox-page.is-mobile-focus .sad-inbox-chat-header-meta{
    -webkit-line-clamp:unset!important;
    display:block!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .sad-inbox-page.has-thread-open .sad-chat-event-line em,
  .sad-inbox-page.is-mobile-focus .sad-chat-event-line em{
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:break-word!important;
    overflow-wrap:break-word!important;
    border-radius:10px!important;
    line-height:1.35!important;
  }

  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal{
    display:flex!important;
    flex-direction:column!important;
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    height:min(94dvh,calc(100svh - 16px))!important;
    max-height:min(94dvh,calc(100svh - 16px))!important;
    overflow:hidden!important;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal > summary,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal > summary{
    flex:0 0 auto!important;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal > .sad-contact-modal-body,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal > .sad-contact-modal-body{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.sad-contact-modal-open #sad-department-editor-form,
  body.sad-contact-modal-open #sad-operator-editor-form{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:100%!important;
    overflow:hidden!important;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:scroll!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
    padding:12px 12px 16px 14px!important;
    scrollbar-width:thin;
    scrollbar-color:#64748b #e8eef4;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar{
    width:8px;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar-track,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar-track{
    background:#e8eef4;
    border-radius:8px;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar-thumb,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-scroll::-webkit-scrollbar-thumb{
    background:#94a3b8;
    border-radius:8px;
    border:2px solid #e8eef4;
  }
  body.sad-contact-modal-open #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-footer,
  body.sad-contact-modal-open #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-modal-footer{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:2!important;
    background:#fff!important;
    border-top:1px solid #e6eef8!important;
    box-shadow:0 -4px 12px rgba(15,23,42,.06)!important;
    padding:10px 14px max(12px,env(safe-area-inset-bottom,12px))!important;
  }
  #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-form-grid,
  #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-form-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:0!important;
    align-content:start!important;
  }
  #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-form-grid > *,
  #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-contact-form-grid > *{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    min-height:auto!important;
  }
  #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form label,
  #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form label,
  #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form input,
  #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form input,
  #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form select,
  #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form select,
  #sad-department-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form textarea,
  #sad-operator-form-panel.sad-entity-edit-modal.is-edit-modal .sad-front-form textarea{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

.sad-admin-client-bar{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  padding:8px 18px;
  background:linear-gradient(180deg,#fff9ed 0%,#fff4dc 100%);
  border-bottom:1px solid #e8d4a0;
  font-size:13px;
}
.sad-front-wrap:has(.sad-admin-client-bar) > .sad-admin-client-bar{grid-row:2}
.sad-front-wrap:has(.sad-admin-client-bar) > .sad-topbar.sad-sidebar-shell,
.sad-front-wrap:has(.sad-admin-client-bar) > .sad-main-column,
.sad-front-wrap:has(.sad-admin-client-bar) > *:not(.sad-client-topbar):not(.sad-admin-client-bar):not(.sad-topbar):not(.sad-main-column){
  grid-row:3;
}
.sad-admin-client-bar-label{
  font-weight:700;
  color:#7a5a12;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:11px;
}
.sad-admin-client-switch{
  min-width:220px;
  max-width:min(360px,100%);
  padding:6px 10px;
  border:1px solid #d8c48e;
  border-radius:8px;
  background:#fff;
  font-size:13px;
}
.sad-admin-client-bar-link{
  color:#5c4510;
  text-decoration:none;
  font-weight:600;
}
.sad-admin-client-bar-link:hover{text-decoration:underline}
@media(max-width:820px){
  .sad-admin-client-switch{min-width:0;width:100%}
  .sad-admin-client-bar{align-items:stretch;flex-direction:column}
}
