@import url("assets/modal_padrao.css");
:root{--azul:#075bbb;--azul2:#095cbc;--bg:#edf4f9;--borda:#d2dde7;--texto:#163a5d}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--texto);overflow-x:hidden}
.top{height:91px;position:fixed;top:0;left:0;right:0;background:var(--azul2);color:#fff;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 26px;gap:15px}
.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand img{width:48px;height:66px;object-fit:contain}.brand strong{font-size:19px;display:block;color:#fff}.brand small{font-size:11px;display:block;margin-top:5px;font-weight:600;color:#fff}.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.a11y{display:flex;align-items:center;gap:5px}
.sidebar{position:fixed;left:0;top:91px;bottom:26px;width:218px;background:#0a5cad;z-index:20;overflow-y:auto}.side-title{font-size:10px;color:#dbeafe;font-weight:bold;padding:17px 12px 8px}.sidebar a{height:48px;color:#fff;text-decoration:none;display:flex;align-items:center;gap:10px;padding:0 11px;border-bottom:1px solid #ffffff24;font-size:12px}.sidebar a:hover,.sidebar a.active{background:#07509a}.mi{width:31px;height:31px;flex:none;border-radius:7px;background:#ffffff22;display:grid;place-items:center;font-size:14px}
.main-content{margin-left:218px;padding:112px 24px 54px;min-height:100vh;display:block}.page-title{background:#fff;border:1px solid var(--borda);border-radius:9px;padding:20px 22px;margin-bottom:16px;box-shadow:0 1px 3px #0001}.page-title h1{margin:0 0 6px;font-size:22px;color:#0758b5}.page-title p{margin:0;font-size:12px;color:#536d86}
.panel{background:#fff;border:1px solid var(--borda);border-radius:8px;overflow:hidden;margin-bottom:16px;box-shadow:0 1px 3px #0001}.panel-head{background:#0960c5;color:#fff;min-height:44px;display:flex;align-items:center;padding:12px 15px;font-size:13px;font-weight:700;gap:9px}.panel-body{padding:20px 22px}.panel-body>h1:first-child,.panel-body>h2:first-child{margin-top:0}h1,h2,h3{color:#0758b5}h1{font-size:22px}h2{font-size:17px}h3{font-size:14px}p{font-size:12px;line-height:1.6}
.filters{display:flex;align-items:end;flex-wrap:wrap;gap:11px;margin:0}.filters label{flex:1;min-width:145px}.stack{display:grid;gap:14px}label{display:grid;gap:6px;font-size:11px;font-weight:bold}input,select,textarea{width:100%;height:38px;border:1px solid #cbd7e2;border-radius:6px;padding:7px 10px;background:#fff;color:#163a5d;font:13px Arial,sans-serif}input:focus,select:focus{outline:2px solid #b6d7ff;outline-offset:1px}button,.button{background:#075bbb;color:#fff;border:0;border-radius:6px;padding:10px 14px;font-size:12px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px}button:hover,.button:hover{background:#064a9d}.danger{background:#b42318}.table-scroll{overflow-x:auto;width:100%}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:12px 11px;border-bottom:1px solid #e1e8ef;text-align:left;font-size:11px;vertical-align:middle}thead th{background:#0960c5;color:#fff;font-size:11px;font-weight:700;white-space:nowrap}tr.today{background:#e7f4ec}.note{padding:12px;background:#f1f5fb;border-left:3px solid #075bbb;font-size:12px;margin-top:15px}.error,.success{padding:12px;border-radius:6px;background:#fff0f0;color:#922626}.success{background:#e6f6ea;color:#246b35}.company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:12px}.company{border:1px solid #d9e3f0;border-radius:8px;padding:14px;display:grid;gap:10px}.check{display:flex;align-items:center}.check input{width:auto;height:auto}.narrow{max-width:520px;margin:0 auto}footer{position:fixed;left:0;right:0;bottom:0;height:26px;background:#075bbb;color:#fff;z-index:40;display:flex;align-items:center;justify-content:center;font-size:10px}.mobile-menu{display:none}
@media(max-width:800px){.top{height:90px;padding:7px 10px}.brand img{width:37px;height:51px}.brand strong{font-size:14px}.brand small{font-size:9px;max-width:200px}.sidebar{top:90px;width:58px}.sidebar .label,.side-title{display:none}.sidebar a{padding:0 13px}.main-content{margin-left:58px;padding:104px 9px 65px}.panel-body{padding:15px}.page-title{padding:16px}.mobile-menu{display:inline-flex;padding:9px}.menu-open .sidebar{width:218px}.menu-open .sidebar .label,.menu-open .side-title{display:block}.header-actions{max-width:45%}.a11y{gap:2px}footer{font-size:9px;text-align:center;padding:3px 6px}}
@media(max-width:520px){.brand strong{font-size:12px}.brand small{font-size:8px}.brand img{width:32px;height:44px}.filters label{min-width:100%;}.filters button,.filters .button{flex:1}.header-actions{max-width:40%}}
@media print{.top,.sidebar,footer,.filters{display:none!important}.main-content{margin:0;padding:0}.panel{border:0;box-shadow:none}}

/* V5 - Barra institucional igual ao modelo de RH */
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.top-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 15px;border-radius:10px;background:#fff;color:#0758b5;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;min-height:44px}.top-actions a i{color:#0758b5}.top-actions a:hover{background:#eaf3ff}
.footer-link,.footer-cookie{color:#fff;text-decoration:underline;font-size:10px;font-weight:500;background:none;border:0;min-height:0;padding:0;cursor:pointer}.footer-cookie:hover{background:none}footer{gap:6px;padding:0 8px;flex-wrap:wrap;height:auto;min-height:26px}.privacy-content h2{margin-top:18px}.privacy-content p{font-size:13px}
@media(max-width:1050px){.top{padding:0 12px}.top-actions{gap:5px}.top-actions a{padding:9px;font-size:11px}.brand strong{font-size:15px}}
@media(max-width:760px){.top{height:auto;min-height:92px;align-items:flex-start;padding:9px}.brand{padding-top:4px}.header-actions{max-width:65%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.top-actions{order:2;width:100%;justify-content:flex-end;gap:4px}.top-actions a{min-height:30px;padding:6px;font-size:10px;border-radius:6px}.a11y{order:1}.mobile-menu{order:1}.sidebar{top:92px}.main-content{padding-top:116px}footer{font-size:9px;padding:5px 8px;line-height:1.4}}
@media(max-width:480px){.brand strong{font-size:11px}.brand small{font-size:8px}.top-actions a{font-size:0;padding:6px 10px}.top-actions a i{font-size:14px}.header-actions{max-width:55%}.footer-link,.footer-cookie{font-size:9px}}

/* V6 — Navegação e login seguindo o modelo do RH */
.header-login{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#0758b5;text-decoration:none;border-radius:9px;padding:11px 13px;font-weight:700;font-size:12px;white-space:nowrap}.header-login:hover{background:#e9f3ff}.login-content{margin-left:0;display:flex;justify-content:center;align-items:flex-start;padding-top:140px}.login-content .panel{width:min(520px,100%)}.sidebar a.active .mi{background:#ffffff2b}.sidebar a .mi i{font-size:15px}.sidebar a .label{font-size:13px}@media(max-width:800px){.login-content{margin-left:0;padding:125px 12px 65px}.header-login{padding:7px 9px;font-size:10px}}@media(max-width:480px){.header-login{font-size:0}.header-login i{font-size:15px}}

/* V7 - Componentes do painel do RH */
.cards-rh{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.card-rh{background:#fff;border:1px solid #d2dde7;border-radius:8px;padding:14px;display:flex;align-items:center;gap:11px;min-width:0}.card-rh .card-icon{width:39px;height:39px;border-radius:8px;background:#eaf3fd;color:#075bbb;display:grid;place-items:center;font-size:17px;flex:none}.card-rh small{display:block;font-size:9px;text-transform:uppercase;color:#6c8194;font-weight:700;margin-bottom:3px}.card-rh strong{font-size:20px;color:#17466f}.menu-usuario{min-height:52px;color:#fff;display:flex;align-items:center;gap:9px;padding:7px 11px;border-bottom:1px solid rgba(255,255,255,.14)}.menu-usuario .usuario-icone{border-radius:50%;background:#fff;color:#075bbb;width:25px;height:25px;font-size:13px}.menu-usuario small{display:block;font-size:8px;line-height:1.1}.menu-usuario strong{display:block;font-size:11px;line-height:1.2}.sair-icone{background:transparent!important}.panel-head{background:#075bbb}.panel th{background:#f2f6fa;color:#49657e;font-size:10px;text-transform:uppercase}.page-title{display:flex;align-items:center;justify-content:space-between}.page-title h1{font-size:22px}@media(max-width:1180px){.cards-rh{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:800px){.menu-usuario .label{display:none}.menu-open .menu-usuario .label{display:block}.card-rh{padding:9px;gap:7px}.card-rh .card-icon{width:31px;height:31px;font-size:13px}.card-rh strong{font-size:16px}}

.footer-admin{color:#fff;text-decoration:underline;font-size:10px;font-weight:600;white-space:nowrap}.footer-admin:hover{color:#e7f2ff}@media(max-width:480px){.footer-admin{font-size:9px}}

/* Rodapé institucional conforme modelo fornecido */
footer{display:flex;align-items:center;justify-content:center;gap:16px;min-height:30px;height:auto;padding:5px 12px;flex-wrap:wrap;background:#075bbb;color:white;text-align:center;}
.footer-copyright{font-size:10px;font-weight:600;}
.footer-admin{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;text-decoration:none;color:white;white-space:nowrap;}
.footer-admin:hover{text-decoration:underline;}
.footer-extras{display:inline-flex;align-items:center;gap:6px;font-size:10px;}
@media(max-width:760px){footer{gap:5px 12px;padding:7px 8px}.footer-copyright,.footer-admin,.footer-extras{font-size:9px}.sidebar{bottom:44px}.main-content{padding-bottom:95px}}

/* Rodapé alinhado ao modelo RH: texto e área administrativa na mesma faixa */
footer{gap:10px;min-height:30px;}footer .footer-admin{font-weight:inherit;text-decoration:none;margin-left:14px;}footer .footer-admin:hover{text-decoration:underline;}@media(max-width:760px){footer .footer-admin{margin-left:0}}
/* Rodapé institucional: links legíveis, acessíveis e alinhados */
footer{gap:12px!important;min-height:38px!important;height:auto!important;padding:7px 14px!important;line-height:1.5!important;flex-wrap:wrap!important;box-sizing:border-box}
footer .footer-copyright{font-size:11px!important;font-weight:500!important}
footer .footer-admin,footer .footer-extras,footer .footer-link,footer .footer-cookie{font-size:11px!important;color:#fff!important}
footer .footer-admin{margin-left:0!important;display:inline-flex;gap:6px;align-items:center}
footer .footer-extras{display:inline-flex;gap:9px;align-items:center}
footer .footer-link,footer .footer-cookie{background:transparent!important;border:0!important;padding:2px 0!important;min-height:0!important;text-decoration:underline!important;text-underline-offset:3px;cursor:pointer;font-weight:600!important}
footer a:focus-visible,footer button:focus-visible{outline:2px solid white;outline-offset:3px}
.main-content{padding-bottom:95px}
/* Orientações: cartões seguindo as cores e ícones do portal */
.orient-intro{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #d2dde7;border-radius:9px;padding:22px;margin-bottom:17px;box-shadow:0 1px 3px #0001}
.orient-intro-icon{width:55px;height:55px;flex:none;display:grid;place-items:center;border-radius:12px;background:#eaf3fd;color:#075bbb;font-size:24px}
.orient-intro div{flex:1}.orient-intro h2{font-size:18px;margin:0 0 5px}.orient-intro p{margin:0;color:#526b82;font-size:13px}
.orient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.orient-step{position:relative;border:1px solid #dbe5ef;border-radius:9px;padding:20px;background:#fff;min-height:160px}
.orient-step>i{font-size:23px;color:#075bbb;margin-bottom:12px;display:block}.orient-step h3{margin:0 0 8px;font-size:15px}.orient-step p{margin:0;color:#4d657b;font-size:13px}
.orient-number{position:absolute;top:16px;right:17px;color:#075bbb;background:#eaf3fd;border-radius:7px;padding:6px 9px;font-weight:700;font-size:12px}
.orient-alert{display:flex;gap:12px;align-items:flex-start;background:#eff6ff;border-left:4px solid #075bbb;padding:15px;border-radius:6px}.orient-alert>i{color:#075bbb;font-size:19px;margin-top:2px}.orient-alert p{margin:0;font-size:13px}
@media(max-width:760px){footer{gap:4px 12px!important;padding:9px 8px!important}footer .footer-copyright,footer .footer-admin,footer .footer-extras,footer .footer-link,footer .footer-cookie{font-size:10px!important}.main-content{padding-bottom:135px}.orient-intro{flex-wrap:wrap;padding:16px}.orient-intro .button{width:100%}.orient-grid{grid-template-columns:1fr}.orient-step{min-height:0}}
/* Calendário público de plantões */
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.calendar-weekday{text-align:center;font-weight:700;color:#164e91;padding:10px 2px}.calendar-day{min-height:112px;padding:9px;border:1px solid #d5e2f2;border-radius:9px;background:#fff;overflow-wrap:anywhere}.calendar-day.is-today{border:2px solid #0759bd;background:#edf5ff}.calendar-day.is-empty{background:#f5f7fa;border-color:transparent}.calendar-date{display:block;font-weight:800;color:#0b4b96;margin-bottom:8px}.calendar-company{font-size:13px;line-height:1.4;color:#223c5e}.calendar-contact{display:block;font-size:11px;color:#596d83;margin-top:5px}.calendar-legend{margin:12px 0;color:#365575}.calendar-panel .filters{margin-bottom:4px}footer{min-height:30px!important;padding:5px 12px!important;gap:10px!important;font-size:11px!important}footer .footer-copyright,footer .footer-admin{font-size:inherit!important}footer .footer-extras{display:none!important}@media(max-width:700px){.calendar-grid{gap:3px}.calendar-day{min-height:80px;padding:5px;border-radius:5px}.calendar-company{font-size:10px}.calendar-contact{font-size:9px}.calendar-date{font-size:12px}.calendar-weekday{font-size:11px}footer{justify-content:center;flex-wrap:wrap;text-align:center}}

/* Ícones dos cabeçalhos e dos contatos: padrão visual SEMUSA */
table thead th i{color:#0B59BD;margin-right:6px;font-size:13px;vertical-align:middle}
.contact-with-icon{display:inline-flex;align-items:baseline;gap:6px;line-height:1.4}
.contact-with-icon i,.calendar-contact i{color:#0B59BD;font-size:11px;flex-shrink:0}
.calendar-contact i{margin-right:3px}

/* Suporte integrado: preserva cabeçalho, menu lateral e rodapé */
.main-content:has(.suporte-integrado){padding:91px 0 30px;min-height:100vh;height:100vh;overflow:hidden}
.suporte-integrado{width:100%;height:100%;background:#fff}
.suporte-integrado iframe{display:block;width:100%;height:100%;border:0;background:#fff}
@media(max-width:800px){.main-content:has(.suporte-integrado){padding-top:92px;padding-bottom:44px}}

/* Ícones das tabelas administrativas */
.main-content table th .fa-solid{color:#0B59BD;margin-right:7px;font-size:12px;vertical-align:middle}
.main-content table th{white-space:nowrap}

/* Iconografia consistente nas linhas e cabeçalhos */
.main-content table td .data-icon{color:#0B59BD;font-size:13px;margin-right:6px;vertical-align:middle}
.main-content table th i{color:#0B59BD!important;margin-right:6px;font-size:13px}
.sidebar nav a .mi i{color:#fff}

/* Administrador: ícones apenas nos cabeçalhos das tabelas */
body.admin-area .main-content table td .data-icon,body.admin-area .main-content table td .contact-with-icon i{display:none!important}

/* Calendário: cartões legíveis e borda azul pulsante apenas em dias com plantão. */
.calendar-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 3px 12px;scrollbar-width:thin}
.calendar-scroll .calendar-grid{min-width:1050px;grid-template-columns:repeat(7,minmax(142px,1fr));gap:9px}
.calendar-scroll .calendar-day{box-sizing:border-box;min-width:0;min-height:148px;padding:10px 9px;overflow-wrap:normal;word-break:normal;overflow:hidden}
.calendar-scroll .calendar-company{font-size:12px;line-height:1.35;font-weight:600;overflow-wrap:break-word;hyphens:none}
.calendar-scroll .calendar-contact{font-size:11px;line-height:1.5;overflow-wrap:break-word;word-break:normal;white-space:normal}
.calendar-scroll .calendar-contact i{display:inline;margin-right:4px}
.calendar-scroll .calendar-day.has-shift{border:1px solid #d5e2f2;animation:none}
.calendar-scroll .calendar-day.is-active-shift{border:3px solid #0759bd;animation:plantao-borda-azul 1.35s ease-in-out infinite;background:#edf5ff}
.calendar-scroll .calendar-day.is-today{background:#edf5ff}
@keyframes plantao-borda-azul{0%,100%{border-color:#0759bd;box-shadow:0 0 0 0 rgba(7,89,189,.08)}50%{border-color:#4a9bff;box-shadow:0 0 0 3px rgba(7,89,189,.24)}}
@media(max-width:700px){.calendar-scroll .calendar-grid{min-width:1050px;gap:8px}.calendar-scroll .calendar-day{min-height:148px;padding:9px}.calendar-scroll .calendar-company{font-size:12px}.calendar-scroll .calendar-contact{font-size:11px}}
@media(prefers-reduced-motion:reduce){.calendar-scroll .calendar-day.is-active-shift{animation:none;border:3px solid #0759bd}}

/* Correção final: não cortar nomes e contatos dos cartões. */
.calendar-scroll .calendar-day{overflow:visible;display:flex;flex-direction:column;min-width:0;height:auto}
.calendar-scroll .calendar-company,.calendar-scroll .calendar-contact{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;word-break:normal;overflow-wrap:anywhere;hyphens:none}
.calendar-scroll .calendar-contact{display:block;line-height:1.45}
.calendar-scroll .calendar-grid{align-items:stretch}
.calendar-scroll .calendar-day.is-empty{overflow:hidden}

/* Calendário: cartões legíveis e plantão ativo realmente animado. */
.calendar-scroll{overflow-x:auto!important;overflow-y:visible!important;padding:10px 8px 20px!important}
.calendar-scroll .calendar-grid{min-width:1540px!important;grid-template-columns:repeat(7,minmax(210px,1fr))!important;gap:10px!important;align-items:stretch!important}
.calendar-scroll .calendar-day{position:relative;min-width:0!important;min-height:154px!important;height:auto!important;padding:12px!important;box-sizing:border-box!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:5px!important;word-break:normal!important;overflow-wrap:normal!important}
.calendar-scroll .calendar-date{font-size:17px!important;line-height:1.2!important;margin:0 0 3px!important}
.calendar-scroll .calendar-company{font-size:13px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important}
.calendar-scroll .calendar-contact{font-size:12px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important}
.calendar-scroll .calendar-day.is-today:not(.is-active-shift){border:1px solid #d5e2f2!important;background:#f7faff!important}
.calendar-scroll .calendar-day.is-active-shift{border:2px solid #0759bd!important;background:#edf5ff!important;animation:semusa-plantao-piscar 1s ease-in-out infinite!important;z-index:2}
@keyframes semusa-plantao-piscar{0%,100%{border-color:#0759bd;box-shadow:0 0 0 1px #0759bd,0 0 4px rgba(7,89,189,.25)}50%{border-color:#a8d5ff;box-shadow:0 0 0 5px rgba(7,89,189,.50),0 0 16px rgba(7,89,189,.55)}}
@media(max-width:700px){.calendar-scroll .calendar-grid{min-width:1540px!important}.calendar-scroll .calendar-day{min-height:154px!important;padding:12px!important}}

/* Gerenciamento de usuários */
#editarUsuarioModal.aberto{display:flex;opacity:1;visibility:visible;pointer-events:auto}#editarUsuarioModal .modal-padrao-content label{display:block;margin:10px 0;font-weight:600}#editarUsuarioModal input,#editarUsuarioModal select{display:block;width:100%;padding:10px;margin-top:5px;box-sizing:border-box}#tabelaUsuarios td{vertical-align:middle}#tabelaUsuarios button{margin:3px}#tabelaUsuarios tr[hidden]{display:none}

/* Ajuste de largura do calendário: sem rolagem horizontal e sem cartões gigantes. */
.calendar-scroll{width:100%!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:visible!important;padding:5px 2px 12px!important}
.calendar-scroll .calendar-grid{width:100%!important;min-width:0!important;max-width:100%!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important;align-items:stretch!important}
.calendar-scroll .calendar-day{min-width:0!important;width:auto!important;min-height:125px!important;padding:9px 7px!important;gap:4px!important;overflow:hidden!important}
.calendar-scroll .calendar-date{font-size:15px!important}
.calendar-scroll .calendar-company{font-size:11px!important;line-height:1.35!important;overflow-wrap:anywhere!important;word-break:normal!important}
.calendar-scroll .calendar-contact{font-size:10px!important;line-height:1.4!important;overflow-wrap:anywhere!important;word-break:normal!important}
.calendar-scroll .calendar-weekday{min-width:0!important}
@media(max-width:900px){.calendar-scroll .calendar-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.calendar-scroll .calendar-weekday,.calendar-scroll .calendar-day.is-empty{display:none!important}.calendar-scroll .calendar-day{min-height:130px!important}.calendar-scroll .calendar-company{font-size:12px!important}.calendar-scroll .calendar-contact{font-size:11px!important}}
@media(max-width:480px){.calendar-scroll .calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.calendar-scroll .calendar-day{min-height:135px!important;padding:10px!important}}

/* Calendário: telefone e responsável em linhas separadas, sem traço. */
.calendar-scroll .calendar-contact-group{display:flex;flex-direction:column;gap:3px;min-width:0;width:100%;margin-top:4px}
.calendar-scroll .calendar-contact-line{display:flex;align-items:flex-start;gap:5px;min-width:0;font-size:10px;line-height:1.35;color:#365575}
.calendar-scroll .calendar-contact-line i{color:#0B59BD;flex:0 0 12px;margin-top:2px;text-align:center}
.calendar-scroll .calendar-contact-line span{min-width:0;overflow-wrap:anywhere;word-break:normal}

/* Contatos no calendário: telefone e responsável em linhas separadas. */
.calendar-scroll .calendar-contact-group{gap:2px!important;margin-top:3px!important}
.calendar-scroll .calendar-contact-line{display:flex!important;align-items:baseline!important;gap:4px!important;font-size:10px!important;line-height:1.25!important;min-width:0!important}
.calendar-scroll .calendar-contact-line i{flex:0 0 11px!important;font-size:10px!important;margin:0!important}
.calendar-scroll .calendar-contact-line .calendar-phone{white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;font-size:clamp(8px,.72vw,10px)!important;letter-spacing:-.15px}
.calendar-scroll .calendar-contact-line .calendar-person{overflow-wrap:break-word!important;word-break:normal!important;font-size:10px!important}
@media(max-width:900px){.calendar-scroll .calendar-contact-line .calendar-phone{font-size:10px!important}}

/* SEMUSA: cartões legíveis sem rolagem horizontal — versão 16 */
.calendar-scroll{overflow-x:hidden!important;overflow-y:visible!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.calendar-scroll .calendar-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;min-width:0!important;max-width:100%!important;width:100%!important;gap:9px!important}
.calendar-scroll .calendar-weekday,.calendar-scroll .calendar-day.is-empty{display:none!important}
.calendar-scroll .calendar-day{box-sizing:border-box!important;min-width:0!important;min-height:135px!important;padding:10px!important;overflow:hidden!important;gap:5px!important}
.calendar-scroll .calendar-company{font-size:12px!important;overflow-wrap:break-word!important;word-break:normal!important}
.calendar-scroll .calendar-contact-group{width:100%!important;gap:4px!important}
.calendar-scroll .calendar-contact-line{display:flex!important;align-items:center!important;gap:6px!important;font-size:11px!important;line-height:1.35!important;min-width:0!important}
.calendar-scroll .calendar-contact-line i{flex:0 0 13px!important;font-size:11px!important}
.calendar-scroll .calendar-contact-line .calendar-phone{font-size:11px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;letter-spacing:0!important}
.calendar-scroll .calendar-contact-line .calendar-person{font-size:11px!important;overflow-wrap:break-word!important}
.calendar-scroll .calendar-day.is-active-shift{animation:semusa-plantao-piscar 1s ease-in-out infinite!important}
@media(min-width:1550px){.calendar-scroll .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important}.calendar-scroll .calendar-weekday,.calendar-scroll .calendar-day.is-empty{display:block!important}}
@media(max-width:780px){.calendar-scroll .calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:400px){.calendar-scroll .calendar-grid{grid-template-columns:1fr!important}}
.calendar-date-weekday{font-size:10px;font-weight:600;color:#58718e;margin-left:4px}
@media(min-width:1550px){.calendar-date-weekday{display:none}}

/* Tabelas do painel administrativo: mesmo estado vazio e paginação em todas. */
body.admin-area .admin-table-no-data {overflow-x:hidden}
body.admin-area .admin-table-empty{min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;background:#f9fbfd;border-bottom:1px solid #dbe5f0;color:#3e5b7a;padding:22px 12px;font-size:11px}
body.admin-area .admin-table-empty[hidden]{display:none!important}
body.admin-area .admin-table-empty>i{font-size:27px;color:#075bbb;margin-bottom:5px}
body.admin-area .admin-table-empty strong{font-size:12px}
body.admin-area .admin-table-empty span{color:#7c90a8}
body.admin-area .admin-table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;border-top:1px solid #e0e8f1;color:#6a8098;font-size:11px}
body.admin-area .admin-table-pages{display:flex;align-items:center;gap:5px}
body.admin-area .admin-table-pages button{background:#fff;color:#075bbb;border:1px solid #d9e5f3;border-radius:5px;width:30px;height:30px;min-height:30px;padding:0}
body.admin-area .admin-table-pages button:disabled{opacity:.4;cursor:default}
body.admin-area .admin-table-pages .admin-current{background:#075bbb;color:#fff;display:flex;align-items:center;justify-content:center;border-radius:5px;min-width:30px;height:30px;font-weight:bold}
@media(max-width:480px){body.admin-area .admin-table-footer{padding:10px 7px;gap:5px}}

body.admin-area .admin-table-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:135px;gap:9px;background:#f9fbfd;color:#3e5b7a;text-align:center;border:1px solid #dbe5f0}body.admin-area .admin-table-empty[hidden]{display:none!important}body.admin-area .admin-table-empty i{font-size:27px;color:#075bbb}body.admin-area .admin-table-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:#fff;border:1px solid #dbe5f0;color:#6a8098}body.admin-area .admin-table-pages{display:flex;gap:5px;align-items:center}body.admin-area .admin-table-pages button{background:white;color:#075bbb;border:1px solid #d9e5f3;border-radius:5px;width:30px;height:30px;padding:0}body.admin-area .admin-table-pages button:disabled{opacity:.4}body.admin-area .admin-table-pages .current{background:#075bbb;color:white;border-radius:5px;padding:7px 11px}
/* Tabelas administrativas: cabeçalho sempre visível e identidade visual RH */
body.admin-area .main-content .table-scroll{overflow-x:auto;background:#fff}
body.admin-area .main-content .table-scroll table{width:100%;border-collapse:collapse}
body.admin-area .main-content .table-scroll table tr:first-child th{background:#eff3f8!important;color:#0759bd!important;font-weight:700;border-bottom:1px solid #d9e4f0}
body.admin-area .main-content .table-scroll table tr:first-child th i{color:#0759bd!important;margin-right:6px}
body.admin-area .main-content .admin-empty-row td{padding:0!important;border:0!important;background:#fff!important}
body.admin-area .admin-empty-row[hidden]{display:none!important}
body.admin-area .admin-empty-content{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:145px;gap:9px;padding:20px 10px;background:#fff;color:#3c5675}
body.admin-area .admin-empty-content i{font-size:28px;color:#0759bd}
body.admin-area .admin-empty-content strong{font-size:12px}
body.admin-area .admin-empty-content span{font-size:11px;color:#71869d}
body.admin-area .admin-table-footer{background:#fff;border:1px solid #e0e8f1;border-top:1px solid #e0e8f1;color:#637d99}
body.admin-area .admin-table-pages .current{background:#0759bd!important;color:#fff!important}

/* SEMUSA: empty state and pagination for every administrative table */
body.admin-area .main-content .admin-table-empty{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:135px;padding:20px 12px;gap:8px;text-align:center;background:#fff;color:#385879;border:0;border-bottom:1px solid #dbe5f0}
body.admin-area .main-content .admin-table-empty[hidden]{display:none!important}
body.admin-area .main-content .admin-table-empty i{font-size:27px;color:#0759bd}
body.admin-area .main-content .admin-table-empty strong{font-size:12px;color:#385879}
body.admin-area .main-content .admin-table-empty span{font-size:11px;color:#7b8fa5}
body.admin-area .main-content .admin-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#fff;border:0;color:#637d99;font-size:11px}
body.admin-area .main-content .admin-table-pages{display:flex;align-items:center;gap:5px}
body.admin-area .main-content .admin-table-pages button{min-height:30px;width:30px;padding:0;background:#fff;color:#0759bd;border:1px solid #d9e5f3;border-radius:5px}
body.admin-area .main-content .admin-table-pages button:disabled{opacity:.45}
body.admin-area .main-content .admin-table-pages .current{display:flex;align-items:center;justify-content:center;min-width:30px;height:30px;background:#0759bd;color:#fff;border-radius:5px;font-weight:700}
body.admin-area .main-content .table-scroll.admin-table-no-data{overflow-x:hidden}

/* V21: experiencia de aplicativo apenas em telas pequenas. Desktop intacto. */
.mobile-nav-backdrop{display:none}
@media screen and (max-width:800px){
 html,body{width:100%;max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
 body{background:#edf4f9}
 .top{height:64px!important;min-height:64px!important;padding:7px 12px!important;align-items:center!important;flex-wrap:nowrap!important;box-shadow:0 2px 10px #002b6024;padding-top:calc(7px + env(safe-area-inset-top,0px))!important;height:calc(64px + env(safe-area-inset-top,0px))!important}
 .brand{padding:0!important;gap:9px!important;flex:1;min-width:0}
 .brand img{height:42px!important;width:31px!important;object-fit:contain}
 .brand strong{font-size:13px!important;line-height:1.2!important;white-space:normal}
 .brand small{font-size:9px!important;line-height:1.25!important;margin-top:2px!important}
 .header-actions{max-width:none!important;flex:0 0 auto;display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:5px!important}
 .mobile-menu{display:inline-flex!important;order:0!important;min-width:42px;min-height:42px;padding:0!important;background:#ffffff22!important;border:1px solid #ffffff40!important;color:#fff!important;border-radius:10px;position:relative;z-index:35}
 .top-actions,.a11y{display:none!important}
 .sidebar{display:block!important;top:calc(64px + env(safe-area-inset-top,0px))!important;bottom:0!important;left:0!important;width:min(286px,85vw)!important;max-width:85vw;z-index:55!important;transform:translateX(-105%);transition:transform .22s ease;box-shadow:5px 0 20px #092d4c33;overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
 .sidebar .label,.sidebar .side-title,.sidebar .menu-usuario .label{display:block!important}
 .sidebar a{min-height:51px!important;height:auto!important;padding:8px 13px!important;gap:12px!important;font-size:13px!important}
 .sidebar a .label{font-size:13px!important}
 .sidebar .mi{width:34px;height:34px}
 .menu-open .sidebar{transform:translateX(0)}
 .mobile-nav-backdrop{position:fixed;inset:calc(64px + env(safe-area-inset-top,0px)) 0 0;z-index:50;background:#082d50a3;border:0;border-radius:0;padding:0;min-height:0;width:100%;display:none}
 .menu-open .mobile-nav-backdrop{display:block}
 .main-content,.login-content{margin-left:0!important;width:100%!important;max-width:100%!important;min-height:100dvh!important;height:auto!important;overflow:visible!important;padding:calc(77px + env(safe-area-inset-top,0px)) 10px calc(96px + env(safe-area-inset-bottom,0px))!important}
 .main-content:has(.suporte-integrado){padding:calc(64px + env(safe-area-inset-top,0px)) 0 calc(58px + env(safe-area-inset-bottom,0px))!important;height:100dvh!important;overflow:hidden!important}
 .page-title{padding:14px!important;margin-bottom:12px!important;gap:8px;flex-wrap:wrap;border-radius:12px}
 .page-title h1{font-size:18px!important;line-height:1.25}
 .panel{border-radius:12px!important;margin-bottom:12px!important;max-width:100%;min-width:0}
 .panel-head{min-height:44px;padding:11px 13px!important}
 .panel-body{padding:12px!important;min-width:0}
 .cards-rh{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 .card-rh{min-width:0;overflow-wrap:anywhere}
 .filters{gap:9px!important}
 .filters label{flex:1 1 100%;min-width:0!important}
 input,select,textarea{font-size:16px!important;max-width:100%}
 button,.button{min-height:42px}
 .company-grid{grid-template-columns:1fr!important}
 .calendar-scroll{width:100%;max-width:100%;overflow-x:hidden!important}
 .calendar-scroll .calendar-grid{min-width:0!important;width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .calendar-scroll .calendar-day{min-width:0!important;width:100%!important;min-height:126px!important;padding:9px!important;overflow-wrap:normal!important}
 .calendar-scroll .calendar-phone{white-space:nowrap!important;font-size:clamp(9px,2.6vw,12px)!important;letter-spacing:-.2px}
 .calendar-scroll .calendar-contact-line{min-width:0;max-width:100%}
 .calendar-scroll .calendar-company{font-size:11px!important;overflow-wrap:break-word}
 .calendar-scroll .calendar-weekday,.calendar-scroll .calendar-day.is-empty{display:none!important}
 footer{position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:40!important;min-height:40px!important;max-height:76px;overflow-y:auto;padding:7px 9px calc(7px + env(safe-area-inset-bottom,0px))!important;gap:4px 9px!important;font-size:9px!important;line-height:1.35!important}
 footer .footer-copyright,footer .footer-admin{font-size:9px!important}
 .main-content .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 body.admin-area .main-content .table-scroll table{min-width:0!important;width:100%!important}
 body.admin-area .main-content .table-scroll table thead{display:none!important}
 body.admin-area .main-content .table-scroll table tbody,body.admin-area .main-content .table-scroll table tbody tr{display:block;width:100%}
 body.admin-area .main-content .table-scroll table tbody tr{border:1px solid #dce6f2;border-radius:9px;padding:8px 10px;margin:8px 0;background:#fff}
 body.admin-area .main-content .table-scroll table tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0;width:100%;padding:8px 0!important;border-bottom:1px solid #edf1f6;overflow-wrap:anywhere;text-align:right}
 body.admin-area .main-content .table-scroll table tbody td:last-child{border-bottom:0}
 body.admin-area .main-content .table-scroll table tbody td::before{content:attr(data-label);color:#0759bd;font-weight:700;flex:0 0 38%;text-align:left;text-transform:uppercase;font-size:10px}
 body.admin-area .main-content .table-scroll table tbody td[colspan]::before{display:none}
 body.admin-area .main-content .admin-table-empty{min-height:130px!important}
 body.admin-area .main-content .admin-table-footer{padding:10px 8px!important;flex-wrap:wrap}
 .modal-padrao-box{max-width:calc(100vw - 22px)!important;max-height:calc(100dvh - 90px)!important;overflow-y:auto}
}
@media screen and (max-width:370px){.calendar-scroll .calendar-grid{grid-template-columns:1fr!important}.brand strong{font-size:11px!important}.brand small{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none!important}}

/* SEMUSA: reparo exclusivo para celular - acessibilidade e rodape */
@media screen and (max-width:800px){
 body:not(.admin-area) .top{height:112px!important;min-height:112px!important;align-items:flex-start!important;padding-top:calc(9px + env(safe-area-inset-top,0px))!important;position:fixed!important}
 body:not(.admin-area) .brand{padding-top:2px!important;padding-right:48px!important}
 body:not(.admin-area) .header-actions{position:static!important}
 body:not(.admin-area) .mobile-menu{position:absolute!important;right:10px;top:10px;z-index:70}
 body:not(.admin-area) .a11y{display:flex!important;position:absolute!important;left:8px;right:8px;bottom:5px;min-height:36px;align-items:center;justify-content:center;max-width:calc(100% - 16px);overflow:visible;z-index:65}
 body:not(.admin-area) #acessibilidade{display:flex!important;margin-left:0!important;max-width:100%;justify-content:center}
 body:not(.admin-area) .acessibilidade-box{gap:clamp(6px,2.3vw,14px)!important;justify-content:center;flex-wrap:nowrap}
 body:not(.admin-area) .btn-acessibilidade{display:inline-flex!important;align-items:center;justify-content:center;min-width:30px!important;min-height:32px!important;font-size:clamp(15px,4vw,20px)!important}
 body:not(.admin-area) .sidebar{top:calc(112px + env(safe-area-inset-top,0px))!important}
 body:not(.admin-area) .mobile-nav-backdrop{inset:calc(112px + env(safe-area-inset-top,0px)) 0 0!important}
 body:not(.admin-area) .main-content{padding-top:calc(126px + env(safe-area-inset-top,0px))!important}
 body:not(.admin-area) .main-content:has(.suporte-integrado){padding-top:calc(112px + env(safe-area-inset-top,0px))!important}
 footer{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column!important;gap:5px!important;min-height:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;width:100%!important;box-sizing:border-box!important;line-height:1.45!important}
 footer .footer-copyright{display:block!important;max-width:100%;font-size:10px!important;line-height:1.5!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important}
 footer .footer-admin{display:inline-flex!important;justify-content:center!important;font-size:10px!important;min-height:28px!important;white-space:nowrap!important}
 .main-content{min-height:calc(100dvh - 48px)!important;padding-bottom:22px!important}
 body.admin-area .top{height:64px!important}
 body.admin-area .sidebar{top:64px!important}
 body.admin-area .main-content{padding-top:77px!important}
}
@media screen and (max-width:370px){body:not(.admin-area) .brand strong{font-size:11px!important}body:not(.admin-area) .btn-acessibilidade{min-width:27px!important}}

/* V23 — cabeçalho público mobile em três faixas; desktop e admin intactos */
@media screen and (max-width:800px){
 body:not(.admin-area) .top{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:56px 44px 43px!important;align-content:start!important;
   height:calc(157px + env(safe-area-inset-top,0px))!important;
   min-height:calc(157px + env(safe-area-inset-top,0px))!important;
   padding:calc(7px + env(safe-area-inset-top,0px)) 10px 7px!important;
   gap:3px!important;box-sizing:border-box!important;overflow:visible!important;
 }
 body:not(.admin-area) .brand{grid-row:1!important;grid-column:1!important;min-width:0!important;padding:0 51px 0 0!important;align-self:center!important;gap:8px!important}
 body:not(.admin-area) .brand img{width:31px!important;height:43px!important;flex-shrink:0!important}
 body:not(.admin-area) .brand strong{font-size:clamp(11px,3.5vw,14px)!important;line-height:1.15!important}
 body:not(.admin-area) .brand small{font-size:clamp(8px,2.5vw,10px)!important;line-height:1.2!important}
 body:not(.admin-area) .header-actions{display:contents!important}
 body:not(.admin-area) .mobile-menu{position:absolute!important;top:calc(12px + env(safe-area-inset-top,0px))!important;right:10px!important;width:42px!important;height:42px!important;z-index:70!important}
 body:not(.admin-area) .top-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-row:2!important;grid-column:1!important;gap:6px!important;min-width:0!important;width:100%!important;align-items:center!important;justify-content:stretch!important}
 body:not(.admin-area) .top-actions a{display:flex!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;min-height:37px!important;height:37px!important;padding:5px 3px!important;gap:5px!important;border-radius:8px!important;font-size:clamp(9px,2.75vw,12px)!important;white-space:nowrap!important}
 body:not(.admin-area) .top-actions a i{font-size:12px!important;flex-shrink:0!important}
 body:not(.admin-area) .a11y{display:flex!important;grid-row:3!important;grid-column:1!important;position:static!important;min-width:0!important;max-width:100%!important;width:100%!important;min-height:38px!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
 body:not(.admin-area) #acessibilidade{display:flex!important;max-width:100%!important;margin:0!important;justify-content:center!important}
 body:not(.admin-area) .acessibilidade-box{display:flex!important;align-items:center!important;justify-content:space-evenly!important;width:min(100%,310px)!important;gap:6px!important;flex-wrap:nowrap!important}
 body:not(.admin-area) .btn-acessibilidade{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:34px!important;min-height:34px!important;font-size:19px!important;line-height:1!important;color:#fff!important}
 body:not(.admin-area) .btn-acessibilidade i{font-size:18px!important}
 body:not(.admin-area) .sidebar{top:calc(157px + env(safe-area-inset-top,0px))!important}
 body:not(.admin-area) .mobile-nav-backdrop{inset:calc(157px + env(safe-area-inset-top,0px)) 0 0!important}
 body:not(.admin-area) .main-content{padding-top:calc(170px + env(safe-area-inset-top,0px))!important;min-height:0!important}
 body:not(.admin-area) .main-content:has(.suporte-integrado){padding-top:calc(157px + env(safe-area-inset-top,0px))!important}
 body:not(.admin-area) footer,body.admin-area footer{position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:5px!important;box-sizing:border-box!important}
 footer .footer-copyright{display:block!important;max-width:100%!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important;text-align:center!important;font-size:10px!important;line-height:1.45!important}
 footer .footer-admin{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;min-height:27px!important;margin:0!important;font-size:10px!important}
}
@media screen and (max-width:360px){body:not(.admin-area) .top-actions a{font-size:9px!important;gap:3px!important}body:not(.admin-area) .brand strong{font-size:11px!important}}

/* V24: manter faixa de identificação SEMUSA sempre visível no celular.
   Somente portal público mobile; não altera desktop nem administrador. */
@media screen and (max-width:800px){
 body:not(.admin-area) header.top{
   position:fixed!important;top:0!important;left:0!important;right:0!important;
   z-index:100!important;visibility:visible!important;opacity:1!important;
   transform:none!important;grid-template-rows:60px 44px 43px!important;
   height:calc(161px + env(safe-area-inset-top,0px))!important;
   min-height:calc(161px + env(safe-area-inset-top,0px))!important;
   background:#095cbc!important;
 }
 body:not(.admin-area) header.top .brand{
   display:flex!important;visibility:visible!important;opacity:1!important;
   grid-row:1!important;align-self:stretch!important;align-items:center!important;
   position:relative!important;z-index:2!important;
   border-bottom:1px solid rgba(255,255,255,.22)!important;
   padding-right:52px!important;
 }
 body:not(.admin-area) header.top .brand>div,
 body:not(.admin-area) header.top .brand strong,
 body:not(.admin-area) header.top .brand small{display:block!important;visibility:visible!important;opacity:1!important}
 body:not(.admin-area) header.top .brand strong{color:#fff!important;white-space:normal!important}
 body:not(.admin-area) header.top .brand small{color:#fff!important;white-space:normal!important}
 body:not(.admin-area) .sidebar{top:calc(161px + env(safe-area-inset-top,0px))!important}
 body:not(.admin-area) .mobile-nav-backdrop{inset:calc(161px + env(safe-area-inset-top,0px)) 0 0!important}
 body:not(.admin-area) .main-content{padding-top:calc(174px + env(safe-area-inset-top,0px))!important}
 body:not(.admin-area) .main-content:has(.suporte-integrado){padding-top:calc(161px + env(safe-area-inset-top,0px))!important}
}

/* V27: somente cabeçalho público mobile: sem risco branco; | SEMUSA na mesma linha. */
@media screen and (max-width:800px){
 body:not(.admin-area) header.top .brand{border-bottom:0!important;}
 body:not(.admin-area) header.top .brand>div{min-width:0!important;flex:1 1 auto!important;}
 body:not(.admin-area) header.top .brand small{display:block!important;white-space:nowrap!important;overflow:visible!important;max-width:none!important;font-size:clamp(6.6px,2.05vw,10px)!important;letter-spacing:-.15px!important;}
}


/* V30: unica regra para rodape mobile: viewport fixa; sem rolagem interna.
   A especificidade supera as antigas regras body:not(.admin-area) footer. */
@media screen and (max-width:800px){
  body:not(.admin-area) > footer, body.admin-area > footer{
    position:fixed!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;
    inset:auto 0 0 0!important;transform:none!important;z-index:999!important;
    width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;box-sizing:border-box!important;overflow:hidden!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;flex-wrap:nowrap!important;gap:3px!important;
    padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))!important;
  }
  body > footer .footer-copyright{display:flex!important;flex-direction:column!important;
    align-items:center!important;gap:2px!important;text-align:center!important;line-height:1.3!important}
  body > footer .footer-separator{display:none!important}
  body > footer .footer-rights,body > footer .footer-version{display:block!important;text-align:center!important}
  body > footer .footer-admin{margin:0!important;min-height:0!important;line-height:1.3!important}
  body > .main-content{padding-bottom:calc(var(--semusa-footer-height,105px) + 16px)!important}
  body > .sidebar{bottom:var(--semusa-footer-height,105px)!important}
}

/* V32: aviso de instalação, sem alterar o layout existente */
.semusa-install-banner[hidden]{display:none!important}
.semusa-install-banner{position:fixed;left:12px;right:12px;bottom:calc(110px + env(safe-area-inset-bottom,0px));z-index:9998;max-width:460px;margin:auto;padding:12px;display:flex;align-items:center;gap:8px;background:#fff;color:#143257;border:1px solid #0759bd;border-radius:12px;box-shadow:0 4px 24px #0003;font-size:13px}
.semusa-install-banner button{border:0;border-radius:7px;padding:9px;background:#0759bd;color:white;cursor:pointer;white-space:nowrap}
.semusa-install-banner #semusa-install-close{background:transparent;color:#143257;font-size:20px;padding:4px}

/* V33: mobile — estrutura de aplicativo; somente o conteúdo central rola. */
@media screen and (max-width:800px){
 html:has(body > header.top > .brand):has(body > footer){height:100%;min-height:0;overflow:hidden!important;overscroll-behavior:none}
 body:has(> header.top > .brand):has(> footer){
   display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);
   height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;
   overflow:hidden!important;overscroll-behavior:none;margin:0!important;
 }
 body:not(.admin-area) > header.top,body.admin-area > header.top{
   position:relative!important;inset:auto!important;grid-row:1;grid-column:1;width:100%!important;
 }
 body:not(.admin-area) > main.main-content,body.admin-area > main.main-content{
   grid-row:2;grid-column:1;min-height:0!important;height:auto!important;max-height:none!important;
   margin:0!important;padding:12px 10px 16px!important;overflow-x:hidden!important;overflow-y:auto!important;
   overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:16px;
 }
 body:not(.admin-area) > main.main-content:has(.suporte-integrado),body.admin-area > main.main-content:has(.suporte-integrado){padding:0!important;height:auto!important;overflow:hidden!important}
 body > main.login-content{align-items:flex-start!important}
 body:not(.admin-area) > footer,body.admin-area > footer{
   grid-row:3;grid-column:1;position:relative!important;inset:auto!important;flex-shrink:0;
   align-self:stretch;overflow:visible!important;z-index:999!important;
   padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))!important;
 }
 body > #cookies-box,body > .semusa-install-banner{bottom:calc(var(--semusa-footer-height,90px) + 12px)!important}
}

/* V34: cabecalho fixo com reserva de altura na grade mobile. */
@media screen and (max-width:800px){
 body:has(> header.top > .brand):has(> footer){
   --semusa-header-height:calc(161px + env(safe-area-inset-top,0px));
   grid-template-rows:var(--semusa-header-height) minmax(0,1fr) auto!important;
 }
 body.admin-area:has(> header.top > .brand):has(> footer){--semusa-header-height:64px;}
 body:not(.admin-area) > header.top,body.admin-area > header.top{
   position:fixed!important;inset:0 0 auto 0!important;
   height:var(--semusa-header-height)!important;min-height:var(--semusa-header-height)!important;
   box-sizing:border-box!important;z-index:1000!important;transform:none!important;
   visibility:visible!important;opacity:1!important;
 }
 body:not(.admin-area) > main.main-content,body.admin-area > main.main-content{grid-row:2!important;}
 body > .sidebar{top:var(--semusa-header-height)!important;}
}
