:root{--blue:#0b6f3c;--blue2:#11a85a;--yellow:#8bd900;--ink:#152238;--muted:#697386;--line:#e7ebf1;--bg:#f4f8f5;--white:#fff;--green:#0f9f4b;--red:#c62828;--shadow:0 10px 30px rgba(13,38,76,.08);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);padding-bottom:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.hidden{display:none!important}.grow{flex:1}.muted{color:var(--muted)}.small{font-size:.82rem}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--blue2);font-size:.72rem;font-weight:800;margin:0 0 5px}.container{width:min(1180px,calc(100% - 28px));margin:auto}.topbar{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.topbar-inner{width:min(1180px,calc(100% - 28px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px}.brand{border:0;background:none;display:flex;align-items:center;gap:10px;text-align:left;color:var(--ink)}.brand img{width:82px;height:48px;object-fit:contain}.brand strong,.brand span{display:block}.brand strong{font-size:1rem}.brand span{font-size:.72rem;color:var(--muted)}.desktop-nav{display:flex;gap:4px;align-items:center}.desktop-nav button{border:0;background:transparent;border-radius:10px;padding:9px 10px;color:#334155}.desktop-nav button:hover{background:#eefaf2;color:var(--blue)}.desktop-nav .server-link{border:1px solid var(--line)}.mobile-more{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px}.public-app{padding:18px 0 40px}.pilot-banner{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:#fff8dc;border:1px solid #ffe082;margin-bottom:18px}.pilot-banner span{display:block;color:#6e5d13;font-size:.86rem;margin-top:2px}.pilot-icon{font-size:1.4rem}.intro-row{background:linear-gradient(135deg,#0b7d43,#14bd64);color:#fff;border-radius:24px;padding:26px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:var(--shadow)}.intro-row h1{font-size:clamp(1.65rem,3vw,2.4rem);margin:0 0 8px}.intro-row p:not(.eyebrow){max-width:710px;margin:0;color:#e7f7ec}.intro-row .eyebrow{color:#c7f0d4}.primary,.outline,.danger,.soft{border:0;border-radius:11px;padding:11px 15px;font-weight:750;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary{background:var(--blue2);color:#fff}.intro-row .primary{background:var(--yellow);color:#154d25}.outline{background:#fff;border:1px solid #d8dee8;color:#334155}.danger{background:#fff0f0;color:var(--red);border:1px solid #ffc6c6}.soft{background:#eaf8ef;color:var(--blue)}.large{padding:14px 20px}.full{width:100%;margin-top:14px}.section-block{margin-top:28px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:13px}.section-head h2,.section-block h2{margin:0}.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.category-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:14px 8px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 14px rgba(14,39,77,.04);transition:.18s}.category-card:hover{transform:translateY(-2px);border-color:#b8e7c8;box-shadow:var(--shadow)}.category-card .icon{font-size:1.75rem}.category-card b{font-size:.82rem;text-align:center}.alert-enable-card{display:flex;align-items:center;gap:14px;background:#0b4d2c;color:#fff;border-radius:18px;padding:16px;margin-bottom:14px}.alert-enable-card span{display:block;color:#d5f4df;font-size:.86rem;margin-top:3px}.alert-enable-icon{font-size:2rem}.alert-enable-card .primary{background:var(--yellow);color:#154d25}.alerts-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.alert-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(12,36,70,.05)}.alert-card img{width:100%;height:150px;object-fit:cover}.alert-card .content{padding:14px}.alert-card .sector-tag{font-size:.7rem;font-weight:800;color:var(--blue2);text-transform:uppercase}.alert-card h3{margin:5px 0 7px;font-size:1rem}.alert-card p{margin:0;color:#526071;font-size:.88rem;line-height:1.45}.alert-card time{display:block;margin-top:10px;color:#8a94a4;font-size:.73rem}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stats-grid article,.stats-grid>div{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px}.stats-grid strong{display:block;font-size:1.7rem;color:var(--blue)}.stats-grid span{font-size:.82rem;color:var(--muted)}.chart-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-top:12px;overflow:hidden}.chart-card canvas{width:100%;height:270px}.compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.info-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;align-items:flex-start;gap:14px}.whatsapp-card{background:#f2fff6;border-color:#c8efd5}.big-icon{font-size:2rem}.info-card h3{margin:0 0 4px}.info-card p{margin:0;color:var(--muted)}.info-card .primary{margin-left:auto;white-space:nowrap}.phone-list{display:grid;gap:5px;margin-top:9px}.phone-list a{text-decoration:none;color:#445064;font-size:.85rem}.phone-list b{color:var(--blue)}.about-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.about-card p{line-height:1.55}.bottom-nav{display:none}.modal{border:0;padding:0;border-radius:20px;width:min(720px,calc(100% - 24px));max-height:90vh;box-shadow:0 28px 80px rgba(3,19,48,.25)}.modal::backdrop{background:rgba(5,18,39,.62);backdrop-filter:blur(3px)}.modal>header{position:sticky;top:0;z-index:2;background:linear-gradient(135deg,#0b7d43,#12ad5b);color:#fff;padding:17px 20px;display:flex;align-items:center;justify-content:space-between}.modal>header h2{margin:0}.modal>header .eyebrow{color:#d6f4df}.modal>header>button{border:0;background:rgba(255,255,255,.15);color:#fff;border-radius:9px;width:36px;height:36px;font-size:1.2rem}.modal-body{padding:20px;overflow:auto;max-height:74vh}.small-modal{width:min(480px,calc(100% - 24px))}label{display:block;font-size:.82rem;font-weight:700;margin:12px 0 5px}input,select,textarea{width:100%;border:1px solid #dbe1ea;background:#fff;border-radius:10px;padding:11px 12px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#6dcc8d;box-shadow:0 0 0 3px #e9f8ee}textarea{min-height:105px;resize:vertical}.check{display:flex;gap:8px;align-items:flex-start;font-weight:500}.check input{width:auto;margin-top:2px}.inline{display:flex;gap:8px;align-items:center}.honeypot{display:none!important}.notice{border-radius:11px;padding:11px 12px;margin-top:12px;background:#eaf8ef;color:#24643d}.notice.success{background:#eaf8ef;color:#1e6d3a}.notice.error{background:#fff0f0;color:#a32828}.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#172033;color:#fff;padding:10px 15px;border-radius:10px;z-index:100;font-size:.85rem;box-shadow:var(--shadow)}.protocol-list,.server-list,.preference-list{display:grid;gap:9px}.protocol-item,.server-list-item,.preference-item{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.protocol-item{display:flex;justify-content:space-between;align-items:center;gap:12px}.protocol-item button{border:0;background:none;color:var(--blue2);font-weight:750}.timeline{display:grid;gap:10px;margin:16px 0}.timeline-step{display:flex;align-items:center;gap:10px;color:#8b96a6}.timeline-step .dot{width:28px;height:28px;border-radius:50%;background:#edf0f4;display:grid;place-items:center;font-weight:800}.timeline-step.done,.timeline-step.current{color:var(--ink)}.timeline-step.done .dot{background:#dff5e7;color:var(--green)}.timeline-step.current .dot{background:#e6f7ec;color:var(--blue2)}.menu-list{display:grid;padding:8px}.menu-list button{border:0;background:#fff;text-align:left;padding:13px;border-bottom:1px solid var(--line)}.menu-list button:last-child{border-bottom:0}.server-shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr;background:#f4f6fa}.server-sidebar{background:#083622;color:#ddf5e5;padding:18px 12px;display:flex;flex-direction:column;gap:5px}.server-brand{padding:10px 10px 18px}.server-brand span,.server-brand b{display:block}.server-brand span{font-size:.8rem;color:#93d5aa}.server-brand b{font-size:1.05rem}.server-sidebar button{border:0;background:transparent;color:#ddf5e5;border-radius:10px;text-align:left;padding:12px}.server-sidebar button:hover,.server-sidebar button.active{background:#0d5a34;color:#fff}.server-main{padding:22px;min-width:0}.server-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.server-top h1{margin:0}.server-actions{display:flex;gap:8px}.toolbar{display:grid;grid-template-columns:repeat(4,minmax(135px,1fr)) repeat(2,minmax(145px,.8fr)) minmax(220px,1.5fr);gap:8px;margin-bottom:10px}.date-filter{margin:0;display:flex;align-items:center;gap:6px;font-weight:600;color:#667085}.date-filter input{padding:9px}.table-shell{max-height:66vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}.table-shell table{width:100%;border-collapse:collapse;min-width:980px}.table-shell th{position:sticky;top:0;background:#f8fafc;z-index:1;text-align:left;font-size:.72rem;text-transform:uppercase;color:#667085;padding:11px;border-bottom:1px solid var(--line)}.table-shell td{padding:12px 11px;border-bottom:1px solid #eef1f5;font-size:.84rem}.table-shell tbody tr{cursor:pointer;transition:.15s}.table-shell tbody tr:hover{background:#eef9f1}.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.72rem;font-weight:800}.status.recebida{background:#eaf8ef;color:#2d7448}.status.encaminhada{background:#eef8f1;color:#39784f}.status.em-atendimento{background:#fff4d6;color:#8a6500}.status.resolvida{background:#eaf8ef;color:#247143}.two-col{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr);gap:14px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.panel h2{margin-top:0}.server-list-item{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.server-list-item .actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.server-list-item .actions button{padding:7px 9px;font-size:.73rem}.request-photo{width:100%;max-height:340px;object-fit:contain;background:#f4f5f7;border-radius:12px}.detail-grid{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;margin-top:12px}.detail-grid b{font-size:.8rem;color:#667085}.mobile-only{display:none}.empty{padding:20px;background:#fff;border:1px dashed #cfd7e3;border-radius:14px;color:var(--muted);text-align:center}
@media(max-width:1000px){.desktop-nav{display:none}.mobile-more{display:block}.category-grid{grid-template-columns:repeat(4,1fr)}.alerts-feed{grid-template-columns:1fr 1fr}.toolbar{grid-template-columns:1fr 1fr 1fr}.two-col{grid-template-columns:1fr}.server-shell{grid-template-columns:190px 1fr}}
@media(max-width:720px){body{padding-bottom:72px}.container,.topbar-inner{width:min(100% - 20px,1180px)}.topbar-inner{min-height:62px}.brand img{width:70px;height:42px}.brand strong{font-size:.92rem}.mobile-more{display:none}.intro-row{padding:19px;border-radius:18px;display:block}.intro-row .primary{width:100%;margin-top:16px}.section-block{margin-top:22px}.category-grid{grid-template-columns:repeat(3,1fr);gap:8px}.category-card{min-height:82px;padding:9px 6px}.category-card .icon{font-size:1.45rem}.category-card b{font-size:.73rem}.alerts-feed{display:flex;overflow-x:auto;scrollbar-width:none;gap:10px;padding-bottom:2px}.alerts-feed::-webkit-scrollbar{display:none}.alert-card{min-width:78vw;max-width:300px}.alert-enable-card{align-items:flex-start;flex-wrap:wrap}.alert-enable-card .primary{width:100%}.stats-grid{grid-template-columns:1fr 1fr}.compact-grid{grid-template-columns:1fr}.info-card{flex-wrap:wrap}.info-card .primary{margin-left:0;width:100%}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px rgba(13,36,70,.08)}.bottom-nav button{border:0;background:#fff;color:#627083;font-size:.66rem;padding:4px 2px}.bottom-nav span{display:block;font-size:1.05rem;margin-bottom:2px}.modal{max-height:92vh}.modal-body{padding:16px;max-height:78vh}.inline{align-items:stretch;flex-direction:column}.server-shell{display:block}.server-sidebar{position:fixed;inset:0 auto 0 0;width:240px;z-index:60;transform:translateX(-105%);transition:.2s;box-shadow:20px 0 50px rgba(0,0,0,.25)}.server-sidebar.open{transform:translateX(0)}.server-main{padding:14px}.mobile-only{display:inline-flex}.toolbar{grid-template-columns:1fr 1fr}.toolbar>input:last-child{grid-column:1/-1}.table-shell{max-height:65vh}.server-top{align-items:flex-start}.server-top h1{font-size:1.45rem}.two-col{display:block}.panel{margin-bottom:12px}.detail-grid{grid-template-columns:1fr}.public-app{padding-bottom:22px}}

.install-card{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#effff4,#f8fff9);border:1px solid #c9efd6;border-radius:18px;padding:16px 18px;margin-bottom:16px;box-shadow:0 6px 20px rgba(13,111,60,.06)}.install-card span{display:block;color:var(--muted);font-size:.86rem;margin-top:4px;line-height:1.45}.install-visual{position:relative;flex:0 0 82px;width:82px;height:72px;border-radius:18px;background:linear-gradient(135deg,#e8fff0,#ffffff);border:1px solid #dbeee1;display:grid;place-items:center;overflow:hidden}.phone-hero{font-size:2.1rem;line-height:1}.phone-badge{position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:999px;background:#8bd900;color:#154d25;display:grid;place-items:center;font-size:.9rem;box-shadow:0 6px 14px rgba(139,217,0,.25)}.field-tip{font-size:.82rem;line-height:1.4;color:var(--muted);margin-top:4px}.integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.integration-panel{position:relative;overflow:hidden}.integration-title{display:flex;gap:12px;align-items:center;margin-bottom:10px}.integration-title h2{margin:0}.integration-title p{margin:3px 0 0}.integration-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-weight:900}.integration-icon.whatsapp{background:#e7faee;color:#0a9a4a;font-size:1.45rem}.integration-icon.ai{background:#eaf1ff;color:#183d74}.two-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.switch-line{display:flex;align-items:center;gap:8px;background:#f7faf8;border:1px solid var(--line);border-radius:11px;padding:10px 12px;margin-top:10px}.switch-line input{width:auto;margin:0}.secret-state{font-size:.7rem;color:#0d8d49;font-weight:800}.webhook-box{margin-top:14px;background:#f5f8f6;border:1px dashed #bcd5c5;border-radius:12px;padding:12px}.integration-note{margin-top:14px;padding:11px;border-radius:10px;background:#f5faf7;color:#4f6758;font-size:.82rem}.brand img{border-radius:10px;background:#fff}.server-brand{border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:4px}.wa-ready{border-color:#a8e4bc!important;box-shadow:0 6px 20px rgba(19,161,80,.08)}
@media(max-width:900px){.integration-grid{grid-template-columns:1fr}}
@media(max-width:720px){.install-card{align-items:flex-start;flex-wrap:wrap}.install-card .primary{width:100%}.install-visual{width:100%;height:66px;flex:0 0 100%}.two-inputs{grid-template-columns:1fr}.integration-panel{padding:15px}}

.public-footer{
  margin:24px auto 90px;
  max-width:1180px;
  padding:20px 18px;
  text-align:center;
  color:#667085;
  font-size:.84rem;
  line-height:1.55;
  border-top:1px solid #e5e7eb;
}
.public-footer b{color:#17324d}
.person-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.person-actions .outline{padding:8px 12px}

.global-notice-modal{max-width:420px}
.global-notice-body{text-align:center;padding:28px 24px}
.global-notice-icon{
  width:64px;height:64px;border-radius:50%;display:grid;place-items:center;
  margin:0 auto 14px;font-size:2rem;font-weight:800;background:#dcfce7;color:#15803d
}
.global-notice-modal.error .global-notice-icon{background:#fee2e2;color:#b91c1c}
.global-notice-modal.warning .global-notice-icon{background:#fef3c7;color:#b45309}
.check-card{
  display:flex;align-items:flex-start;gap:12px;border:1px solid #dbe4ea;border-radius:14px;
  padding:14px;margin:10px 0 14px;background:#fff;cursor:pointer
}
.check-card input{width:auto;margin-top:3px}
.check-card span{display:flex;flex-direction:column;gap:3px}
.check-card small{color:#667085;line-height:1.4}

.icon-input-row{display:flex;gap:10px;align-items:center}
.icon-input-row input{flex:1}
.category-icon-preview{
  width:52px;height:52px;border:1px solid #dbe4ea;border-radius:14px;
  display:grid;place-items:center;font-size:1.7rem;background:#f8fafc
}
.emoji-palette{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 14px}
.emoji-palette button{
  width:40px;height:40px;border:1px solid #dbe4ea;background:#fff;border-radius:10px;
  font-size:1.25rem;cursor:pointer
}
.emoji-palette button:hover{background:#effcf5;border-color:#7bd8a1}
.category-home-switch{margin:16px 0}
.category-home-switch span,.switch-line span{display:flex;flex-direction:column;gap:2px}
.category-home-switch small,.switch-line small{color:#667085;font-weight:400}
.category-admin-item{align-items:center}
.category-admin-icon{font-size:1.7rem;width:44px;text-align:center}
.category-admin-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:4px}
.category-tag{
  display:inline-flex;padding:3px 7px;border-radius:999px;background:#eef2f6;
  color:#526071;font-size:.72rem
}
.category-tag.home{background:#dcfce7;color:#166534}
.category-tag.form-only{background:#fef3c7;color:#92400e}

/* v3.1.8 - desktop navigation refinement */
.topbar-inner{
  max-width:1280px;
  width:calc(100% - 36px);
  gap:26px;
}
.brand{
  flex:0 0 auto;
  min-width:250px;
}
.brand img{
  width:72px;
  height:46px;
}
.desktop-nav{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  white-space:nowrap;
}
.desktop-nav-main,
.desktop-nav-actions{
  display:flex;
  align-items:center;
  gap:4px;
}
.desktop-nav-actions{
  padding-left:12px;
  border-left:1px solid var(--line);
}
.desktop-nav button{
  flex:0 0 auto;
  padding:9px 9px;
  font-size:.88rem;
  line-height:1;
}
.desktop-nav .nav-profile{
  color:#475569;
}
.desktop-nav .server-link{
  background:#fff;
  border:1px solid #dbe1ea;
  padding:10px 12px;
  font-weight:700;
}
.desktop-nav .server-link:hover{
  background:#eefaf2;
  border-color:#b7dfc5;
}
@media (max-width:1180px){
  .topbar-inner{width:calc(100% - 24px);gap:14px}
  .brand{min-width:210px}
  .brand img{width:64px}
  .desktop-nav{gap:8px}
  .desktop-nav button{font-size:.81rem;padding:8px 7px}
  .desktop-nav-actions{padding-left:7px}
}
@media (max-width:1040px){
  .desktop-nav{display:none}
  .mobile-more{display:block}
}

/* v3.1.9 - PWA, server mobile UX and statuses */
body.server-mode > .topbar{display:none}
body.server-mode{padding-bottom:0}

.server-nav-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(4,18,11,.42);
  backdrop-filter:blur(2px);
  z-index:55;
}
.server-nav-backdrop.show{display:block}

.server-menu-toggle{
  width:46px;height:46px;padding:0;border-radius:13px;
  border:1px solid #dbe1ea;background:#fff;color:#203044;
  align-items:center;justify-content:center;font-size:1.25rem;font-weight:800;
}
.server-title-block{min-width:0;flex:1}
.server-refresh{flex:0 0 auto}

.status.recebida{
  background:#fff;
  color:#475569;
  border:1px solid #cbd5e1;
}
.status.encaminhada{
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
.status.em-atendimento{
  background:#dbeafe;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
}
.status.resolvida{
  background:#dcfce7;
  color:#15803d;
  border:1px solid #bbf7d0;
}
.request-row{border-left:4px solid transparent}
.request-row-encaminhada{border-left-color:#dc2626}
.request-row-em-atendimento{border-left-color:#2563eb}
.request-row-resolvida{border-left-color:#16a34a}

@media (min-width:721px){
  .toolbar{
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:10px;
    align-items:center;
  }
  #requestStatusFilter,
  #requestCategoryFilter,
  #requestOriginFilter,
  #requestPeriodFilter{grid-column:span 3}
  .date-filter{grid-column:span 3}
  #requestSearch{grid-column:span 6}
}

@media (max-width:720px){
  .server-main{padding:12px 12px 18px}
  .server-top{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
    padding:4px 0 2px;
  }
  .server-top .eyebrow{margin-bottom:2px}
  .server-top h1{font-size:1.65rem;line-height:1.05}
  .server-top #serverIdentity{display:block;margin-top:4px;font-size:.82rem}
  .server-refresh{height:46px;padding:0 13px}
  .refresh-label{display:none}

  .server-sidebar{
    width:min(82vw,290px);
    z-index:60;
    padding-top:20px;
  }

  .toolbar{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .toolbar select{min-width:0}
  .date-filter{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:6px;
  }
  .toolbar>input:last-child{grid-column:1/-1}
  .table-shell{max-height:calc(100vh - 330px);min-height:360px}

  #tabPeople .two-col,
  #tabAlerts .two-col,
  #tabSectors .two-col{display:grid;grid-template-columns:1fr;gap:12px}
  .panel{margin-bottom:0}
}

/* v3.1.11 footer, about, support and useful phones */
.public-footer{margin:34px auto 88px;max-width:1180px;padding:24px 18px 20px;text-align:center;color:#697386;font-size:.82rem;line-height:1.5;border-top:1px solid #dfe7e2}.footer-brand{display:flex;flex-direction:column;gap:2px}.footer-brand b{color:#17324d;font-size:.98rem}.footer-brand span{font-size:.78rem}.footer-links{display:flex;justify-content:center;gap:8px;margin:16px 0 14px}.footer-links button{border:1px solid #d7e4dc;background:#fff;color:#28543a;border-radius:999px;padding:8px 16px;font-weight:750;cursor:pointer}.footer-links button:hover{background:#effaf3;border-color:#a9d8b8}.footer-meta{color:#6b7280;font-size:.76rem}.footer-credit{margin-top:5px;color:#94a3b8;font-size:.72rem}.about-modal-content p{line-height:1.6;color:#465569}.about-signature{margin-top:18px;padding:14px;border-radius:13px;background:#f5faf7;color:#1f5134;font-weight:750}.about-signature span{font-weight:500;color:#6b7280;font-size:.84rem}.useful-phone-list{display:grid;gap:9px}.useful-phone-list a{display:flex;flex-direction:column;gap:5px;text-decoration:none;border:1px solid #e0e8e3;border-radius:13px;padding:13px 14px;background:#fff}.useful-phone-list a:hover{background:#effaf3;border-color:#afd8bc}.useful-phone-list span{font-weight:700;color:#26364b}.useful-phone-list b{color:#0b7d43}.whatsapp-card{width:100%}
@media(max-width:720px){.public-footer{margin-bottom:82px;padding-left:12px;padding-right:12px}.footer-links button{min-width:108px}.footer-meta{max-width:330px;margin:auto}}

.clear-filters-btn{white-space:nowrap;min-height:42px}
@media(min-width:721px){.clear-filters-btn{grid-column:span 2}}
@media(max-width:720px){.clear-filters-btn{grid-column:1/-1;width:100%}}

/* v3.1.16 */
.mobile-menu-dropdown{
  position:fixed;top:72px;right:14px;z-index:80;width:min(360px,calc(100vw - 28px));
  background:#fff;border:1px solid #dfe7e2;border-radius:0 0 16px 16px;
  box-shadow:0 18px 42px rgba(15,23,42,.18);overflow:hidden
}
.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;background:#0f9f4b;color:#fff}
.mobile-menu-head b{font-size:1.05rem}.mobile-menu-head button{width:34px;height:34px;border:0;border-radius:9px;background:rgba(255,255,255,.14);color:#fff;font-size:1.1rem}
.mobile-menu-dropdown .menu-list{padding:4px 10px 10px}.mobile-menu-dropdown .menu-list button{padding:12px 8px}
.server-appbar{grid-column:1/-1;position:sticky;top:0;z-index:52;height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:8px 18px}
.server-appbar-brand{display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;color:var(--ink)}
.server-appbar-brand img{width:64px;height:42px;object-fit:contain}.server-appbar-brand span{display:flex;flex-direction:column}.server-appbar-brand b{font-size:.95rem}.server-appbar-brand small{color:var(--muted)}
.server-appbar-back{border:1px solid #d8dee8;background:#fff;color:#334155;border-radius:11px;padding:10px 14px;font-weight:750}
.server-appbar-back:hover{background:#eefaf2;color:var(--blue)}
body.server-mode .server-shell{min-height:100vh}
.install-card.hidden{display:none!important}
@media(max-width:1040px){.mobile-menu-dropdown{top:62px}}
@media(max-width:720px){
  .mobile-menu-dropdown{top:62px;right:10px;width:calc(100vw - 20px);border-radius:0 0 16px 16px;max-height:calc(100vh - 78px);overflow:auto}
  .server-appbar{height:60px;padding:6px 12px}.server-appbar-brand img{width:56px;height:38px}.server-appbar-back{padding:9px 11px;font-size:.8rem}
}

/* v3.1.17 - corrige espaço vazio da Área do Servidor no desktop */
.server-shell{
  grid-template-columns:230px minmax(0,1fr);
  grid-template-rows:66px minmax(0,1fr);
  align-content:start;
}
.server-appbar{
  grid-column:1/-1;
  grid-row:1;
  height:66px;
  align-self:start;
}
.server-sidebar{
  grid-column:1;
  grid-row:2;
  align-self:stretch;
  min-height:calc(100vh - 66px);
}
.server-main{
  grid-column:2;
  grid-row:2;
  align-self:start;
}
@media(max-width:1000px) and (min-width:721px){
  .server-shell{grid-template-columns:190px minmax(0,1fr);grid-template-rows:66px minmax(0,1fr)}
}
@media(max-width:720px){
  .server-shell{display:block;min-height:100vh}
  .server-appbar{height:60px}
  .server-sidebar{min-height:100vh}
}

/* v3.1.19 - Central de Alertas */
.alert-nav-button,.bottom-alert-button,.bottom-alert-icon{position:relative}
.alert-badge{
  display:inline-flex;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#e11d48;
  color:#fff;
  font-size:.66rem;
  line-height:1;
  font-weight:900;
  box-shadow:0 2px 8px rgba(225,29,72,.28);
}
.desktop-nav .alert-badge{margin-left:2px}
.mobile-badge{
  position:absolute;
  top:-8px;
  right:calc(50% - 22px);
  border:2px solid #fff;
  min-width:20px;
  height:20px;
}
.alerts-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.alerts-center-modal{width:min(820px,calc(100% - 24px))}
.alerts-center-body{padding-top:14px}
.alerts-center-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 0 14px;
  border-bottom:1px solid var(--line);
  margin-bottom:14px;
}
.compact-button{padding:8px 10px;font-size:.82rem}
.all-alerts-feed{display:grid;gap:12px}
.alert-card-full{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  min-height:150px;
}
.alert-card-full>img{
  width:180px;
  height:100%;
  min-height:150px;
  object-fit:cover;
}
.alert-card-full .content{align-self:center}
.alert-card-full h3{font-size:1.08rem}
.alert-card-full p{font-size:.9rem;white-space:pre-wrap}
@media(max-width:720px){
  .alerts-section-head{align-items:flex-end}
  .alerts-head-actions{gap:6px}
  .alerts-head-actions #headerAlertPrefsBtn{display:none}
  .alerts-feed .alert-card:nth-child(n+4){display:none}
  .alert-card-full{
    grid-template-columns:1fr;
  }
  .alert-card-full>img{
    width:100%;
    height:190px;
    min-height:0;
  }
  .alerts-center-modal{
    width:calc(100% - 16px);
    max-height:94vh;
  }
  .alerts-center-modal .modal-body{max-height:80vh}
  .alerts-center-toolbar{align-items:flex-start}
}

/* v3.1.20 - alternar conta na Área do Servidor */
.login-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:14px;
}
.login-actions button{width:100%;min-height:44px}
@media(max-width:520px){
  .login-actions{grid-template-columns:1fr}
}

.inline-menu-badge{
  margin-left:auto;
  vertical-align:middle;
}
.menu-list button{
  display:flex;
  align-items:center;
  gap:8px;
}

/* v3.1.22 - login da Área do Servidor */
#serverLoginModal{width:min(520px,calc(100% - 24px))}
#serverLoginModal .modal-body{padding:22px}
#serverLoginModal #accessPersonName{
  margin:0 0 14px;
  padding:10px 12px;
  border-radius:10px;
  background:#f7faf8;
  border:1px solid #e4ece7;
}
#serverLoginModal .login-actions{
  display:grid;
  grid-template-columns:minmax(110px,.75fr) minmax(210px,1.25fr);
  gap:10px;
  align-items:stretch;
}
#serverLoginModal .login-actions button{
  min-height:46px;
  padding:11px 14px;
}
#serverLoginModal #ownerLogin .full{
  margin-top:12px;
}
#serverLoginModal #serverLoginMsg{
  margin-top:12px;
}
@media(max-width:560px){
  #serverLoginModal .login-actions{
    grid-template-columns:1fr;
  }
}

/* v3.1.23 - alert cards + request confirmation */
.alerts-feed .alert-card{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  min-height:118px;
}
.alerts-feed .alert-card>img{
  width:96px;
  height:96px;
  margin:11px 0 11px 11px;
  border-radius:12px;
  object-fit:cover;
}
.alerts-feed .alert-card .content{padding:12px 13px}
.alert-card-full{
  grid-template-columns:120px minmax(0,1fr)!important;
  min-height:132px!important;
}
.alert-card-full>img{
  width:104px!important;
  height:104px!important;
  min-height:0!important;
  margin:14px 0 14px 14px;
  border-radius:12px;
  object-fit:cover;
}
.request-success-modal{width:min(460px,calc(100% - 24px))}
.request-success-body{text-align:center;padding:28px 24px}
.request-success-icon{
  width:64px;height:64px;border-radius:50%;display:grid;place-items:center;
  margin:0 auto 12px;background:#dcfce7;color:#15803d;font-size:2rem;font-weight:900
}
.request-success-body h2{margin:4px 0 16px}
.request-success-protocol{
  background:#effaf3;border:1px solid #ccebd7;border-radius:14px;padding:13px 14px;margin:14px 0
}
.request-success-protocol span{display:block;font-size:.76rem;color:#667085;text-transform:uppercase;letter-spacing:.08em}
.request-success-protocol b{display:block;margin-top:4px;font-size:1.2rem;color:#075c33;word-break:break-word}
@media(max-width:720px){
  .alerts-feed .alert-card{min-width:86vw;max-width:360px;grid-template-columns:86px minmax(0,1fr)}
  .alerts-feed .alert-card>img{width:76px;height:76px;margin:10px 0 10px 10px}
  .alert-card-full{grid-template-columns:92px minmax(0,1fr)!important;min-height:112px!important}
  .alert-card-full>img{width:78px!important;height:78px!important;margin:12px 0 12px 12px}
  .alert-card-full .content{padding:11px 12px}
  .alert-card-full h3{font-size:1rem}
}

/* v3.1.24 - Push administrativo e novas solicitações */
.server-request-notice-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}
.server-push-card,.server-new-card{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
}
.server-push-card{
  border-color:#bce5ca;
  background:#f5fff8;
}
.server-new-card{
  border-color:#fecaca;
  background:#fff7f7;
}
.server-push-card span,.server-new-card span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.35;
}
.server-push-icon,.server-new-icon{font-size:1.45rem}
.server-requests-nav{display:flex!important;align-items:center;gap:8px}
.server-new-badge{
  margin-left:auto;
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:.67rem;
  font-weight:900;
}
.request-status-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.request-status-actions button{flex:1;min-width:130px}
.status-red{border-color:#fecaca!important;color:#b91c1c!important;background:#fff7f7!important}
.status-blue{border-color:#bfdbfe!important;color:#1d4ed8!important;background:#eff6ff!important}
@media(max-width:800px){
  .server-request-notice-row{grid-template-columns:1fr}
  .server-push-card,.server-new-card{align-items:flex-start;flex-wrap:wrap}
  .server-push-card button,.server-new-card button{width:100%}
}

/* v3.1.25 - setor responsável no formulário */
.request-sector-info{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  padding:10px 12px;
  border:1px solid #dbeee1;
  border-radius:11px;
  background:#f5fbf7;
}
.request-sector-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#e4f7ea;
  font-size:1.05rem;
}
.request-sector-info small,
.request-sector-info b{
  display:block;
}
.request-sector-info small{
  color:#6b7280;
  font-size:.72rem;
  margin-bottom:2px;
}
.request-sector-info b{
  color:#166534;
  font-size:.86rem;
}

/* v3.1.26 - detalhes completos do alerta */
.alert-card-clickable{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.alert-card-clickable:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(15,23,42,.10)}
.alert-detail-modal{width:min(720px,calc(100vw - 28px));max-height:88vh}
.alert-detail-modal header{align-items:flex-start}
.alert-detail-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--muted);font-size:.78rem;margin-top:6px}
.alert-detail-body{padding-top:20px}
.alert-detail-image{width:100%;max-height:360px;object-fit:cover;border-radius:14px;display:block;margin-bottom:20px;border:1px solid var(--line)}
.alert-detail-content{font-size:.98rem;line-height:1.65;color:#263345}
@media(max-width:600px){.alert-detail-modal{width:calc(100vw - 18px);max-height:90vh}.alert-detail-image{max-height:260px;border-radius:12px}}
