/* NexaOper 8.115.295 — bundle CSS gerado. Fontes efetivas: 22 de 22. */

/* === source: style.css === */

:root{--bg:#f4f7fb;--surface:#fff;--text:#152033;--muted:#718096;--line:#e4e9f1;--primary:#1f5eff;--primary-soft:#edf3ff;--danger:#c63131;--ok:#15905d;--warn:#a26a00;--shadow:0 10px 30px rgba(25,40,72,.08);--radius:18px}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}
.hidden{display:none!important}.muted{color:var(--muted)}.app{max-width:760px;margin:auto;min-height:100vh;background:var(--bg)}
.login{min-height:100vh;display:grid;place-items:center;padding:22px}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:26px;padding:28px}
.brand-title{font-size:24px;font-weight:900;margin:0 0 8px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:13px;font-weight:800}
input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:13px 14px;background:#fff;color:var(--text);outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(31,94,255,.10)}textarea{min-height:110px;resize:vertical}
.btn{border:0;border-radius:14px;padding:12px 16px;font-weight:850;cursor:pointer;background:#e9eef7;color:#20304a}.btn.primary{background:var(--primary);color:#fff}.btn.ghost{background:#fff;border:1px solid var(--line)}.btn.danger{background:var(--danger);color:#fff}.btn:disabled{opacity:.55}
.topbar{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.topbar-in{padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.top-user{font-size:12px;color:var(--muted)}
.content{padding:16px}.section-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:17px;margin-bottom:14px}
.home-hero{padding:8px 2px 14px}.home-hero h1{font-size:25px;margin:0 0 5px}.type-grid{display:grid;grid-template-columns:1fr;gap:12px}
.type-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;display:flex;align-items:center;gap:14px;cursor:pointer;box-shadow:var(--shadow);text-align:left}
.type-icon{width:46px;height:46px;border-radius:14px;background:var(--primary-soft);display:grid;place-items:center;font-size:23px}.type-name{font-size:17px;font-weight:900}.type-sub{font-size:12px;color:var(--muted);margin-top:3px}
.quick-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.quick-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px}.quick-num{font-size:22px;font-weight:900}
.stepper{display:flex;gap:6px;overflow:auto;padding:2px 0 12px}.step-dot{min-width:max-content;padding:7px 10px;border-radius:999px;background:#eef2f7;color:#68768c;font-size:12px;font-weight:800}.step-dot.active{background:var(--primary);color:#fff}.step-dot.done{background:#eaf8f0;color:#167046}
.form-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.form-title h2{margin:0;font-size:20px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}
.photo-inline{margin-top:8px;border:1px dashed #cdd7e5;border-radius:14px;padding:12px;background:#fbfcfe}.photo-inline strong{display:block;font-size:12px;margin-bottom:8px}.preview{display:flex;align-items:center;gap:10px;margin-top:8px;color:var(--muted);font-size:12px}.preview img{width:54px;height:54px;border-radius:10px;object-fit:cover;border:1px solid var(--line)}
.bottom-actions{position:sticky;bottom:0;background:rgba(244,247,251,.96);backdrop-filter:blur(10px);padding:12px 0 4px;display:flex;gap:10px}.bottom-actions .btn{flex:1}
.notice{padding:12px 14px;border-radius:13px;margin-bottom:12px;background:#edf4ff;color:#19499a}.notice.ok{background:#edf9f2;color:#146d45}.notice.err{background:#fff0f0;color:#992020}.notice.warn{background:#fff7e6;color:#835800}
.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf3ff;color:#1f55bb;font-size:11px;font-weight:850}.badge.offline{background:#fff0f0;color:#a12929}
.review-section{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.review-row{display:grid;grid-template-columns:42% 1fr;gap:10px;padding:7px 0;border-bottom:1px solid #f0f3f7;font-size:13px}.review-row b{color:#536179}
.history-item{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:10px}.history-top{display:flex;justify-content:space-between;gap:8px}.history-title{font-weight:900}.history-meta{font-size:12px;color:var(--muted);margin-top:4px}
.tabs{display:flex;gap:8px;margin-bottom:14px}.tab{flex:1;padding:10px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:800}.tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
@media(max-width:620px){.grid{grid-template-columns:1fr}.full{grid-column:auto}.content{padding:12px}.review-row{grid-template-columns:1fr}}

/* V7.1 - correção de formulário no celular */
#stepContent:empty{
  display:none;
}
#stepContent .section-card{
  min-height:0;
}
.form-title{
  margin-bottom:10px;
}
.stepper{
  scrollbar-width:thin;
  padding-bottom:8px;
}
.bottom-actions{
  z-index:8;
  border-top:1px solid rgba(228,233,241,.85);
  padding:10px 0 max(6px,env(safe-area-inset-bottom));
}
@media(max-width:620px){
  #stepContent .section-card{padding:14px}
  .step-dot{font-size:11px;padding:6px 9px}
  .bottom-actions .btn{padding:12px 10px}
}

.locked-team{width:100%;border:1px solid #dbe3ef;background:#f7f9fc;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.locked-team-label{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}
.locked-team strong{font-size:14px;color:var(--text)}

/* V7.5 - câmera + galeria */
.photo-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.photo-btn{
  min-height:46px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 12px;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.photo-btn input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.camera-btn{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.gallery-btn{
  background:#fff;
  color:var(--text);
}
.photo-btn-icon{font-size:17px}
@media(hover:hover) and (pointer:fine){
  .photo-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 15px rgba(25,40,72,.10);
  }
}
@media(max-width:360px){
  .photo-actions{grid-template-columns:1fr}
}

/* V7.6 - histórico de enviadas/não enviadas */
.history-filter{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:14px;
}
.history-filter-btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:13px;
  min-height:44px;
  padding:9px 10px;
  font-weight:850;
  cursor:pointer;
}
.history-filter-btn span{
  display:inline-grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  margin-left:5px;
  border-radius:999px;
  background:#eef2f7;
  font-size:11px;
}
.history-filter-btn.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}
.history-filter-btn.active span{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.pending-card{
  border-color:#f0d7a0;
}
.history-actions{
  margin-top:12px;
  display:flex;
  gap:8px;
}
.history-actions .btn{
  width:100%;
}

/* V7.7 - modal próprio do aplicativo */
.app-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:20px;
}
.app-modal.hidden{display:none!important}
.app-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(3px);
}
.app-modal-card{
  position:relative;
  z-index:1;
  width:min(380px,100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(15,23,42,.28);
  padding:24px;
  text-align:center;
  animation:appModalIn .18s ease-out;
}
.app-modal-icon{
  width:54px;
  height:54px;
  border-radius:999px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  font-size:27px;
  font-weight:950;
  background:#eef2f7;
  color:#334155;
}
.app-modal-icon.success{background:#eaf8f0;color:#167046}
.app-modal-icon.error{background:#fff0f0;color:#b42318}
.app-modal-icon.warning{background:#fff7e6;color:#9a6700}
.app-modal-icon.info{background:#edf4ff;color:#2456a6}
.app-modal-card h3{
  margin:0 0 8px;
  font-size:20px;
}
.app-modal-card p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.45;
  font-size:14px;
  white-space:pre-line;
}
.app-modal-card .btn{
  min-width:130px;
}
@keyframes appModalIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:none}
}

/* V7.13 - mais espaço entre as etapas */
.stepper{
  gap:14px !important;
  padding:8px 4px 16px !important;
  align-items:center;
}
.step-dot{
  padding:9px 14px !important;
  margin:0 2px !important;
  border-radius:999px;
  line-height:1.25;
}
.step-dot + .step-dot{
  margin-left:4px !important;
}
@media(max-width:620px){
  .stepper{
    gap:12px !important;
    padding-bottom:14px !important;
  }
  .step-dot{
    padding:8px 13px !important;
  }
}

/* V7.14 - etapas mais organizadas */
.stepper{
  display:flex !important;
  gap:10px !important;
  overflow-x:auto;
  padding:8px 4px 14px !important;
  margin-bottom:6px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  align-items:stretch;
}
.step-dot{
  scroll-snap-align:center;
  min-width:150px !important;
  min-height:52px;
  padding:8px 12px !important;
  border:1px solid #dfe5ee !important;
  border-radius:14px !important;
  background:#f7f9fc !important;
  color:#667085 !important;
  display:flex !important;
  align-items:center;
  gap:9px;
  text-align:left;
  line-height:1.15 !important;
  box-shadow:none;
  white-space:normal !important;
}
.step-number{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#e9eef5;
  color:#536176;
  font-size:11px;
  font-weight:950;
}
.step-label{
  font-size:11px;
  font-weight:850;
}
.step-dot.active{
  background:#eef4ff !important;
  border-color:var(--primary) !important;
  color:var(--primary) !important;
  box-shadow:0 7px 18px rgba(37,99,235,.12);
}
.step-dot.active .step-number{
  background:var(--primary);
  color:#fff;
}
.step-dot.done{
  background:#f0faf5 !important;
  border-color:#b9e4cc !important;
  color:#167046 !important;
}
.step-dot.done .step-number{
  background:#d7f2e2;
  color:#167046;
}
.step-dot.future{opacity:.78}
@media(max-width:620px){
  .stepper{gap:8px !important;padding-bottom:12px !important}
  .step-dot{min-width:138px !important;min-height:48px;padding:7px 10px !important}
  .step-number{width:25px;height:25px}
  .step-label{font-size:10.5px}
}

.pending-bulk-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 12px;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.pending-bulk-actions.hidden{display:none!important}
.select-all-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
}
.select-all-wrap input,.pending-checkbox{
  width:18px;
  height:18px;
  accent-color:var(--primary);
}
.pending-card{
  position:relative;
  padding-left:46px!important;
}
.pending-select-row{
  position:absolute;
  top:16px;
  left:15px;
}
#sendSelectedBtn{width:auto;min-width:150px}
@media(max-width:520px){
  .pending-bulk-actions{align-items:stretch;flex-direction:column}
  #sendSelectedBtn{width:100%}
}

/* V7.16 - alinhamento dos status Enviada / Não enviada */
.history-summary-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  width:100%;
}

.history-main-info{
  min-width:0;
}

.history-status-wrap{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  align-self:center;
}

.history-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:10.5px;
  line-height:1;
  font-weight:850;
  white-space:nowrap;
  text-align:center;
}

.pending-status{
  background:#fff0f0;
  color:#b42318;
}

.sent-status{
  background:#eaf8f0;
  color:#167046;
}

.saved-status{
  background:#eef2f7;
  color:#536176;
}

.pending-card .history-actions{
  margin-top:14px;
}

.pending-card .history-title{
  margin-bottom:3px;
}

.pending-card .history-meta + .history-meta{
  margin-top:3px;
}

@media(max-width:360px){
  .history-summary-row{
    gap:8px;
  }
  .history-status{
    min-width:78px;
    height:32px;
    padding:0 9px;
    font-size:10px;
  }
}

/* V7.17 - alinhamento definitivo de Enviada / Não enviada */
.history-item{
  position:relative;
  width:100%;
  box-sizing:border-box;
}

.history-summary-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 92px !important;
  align-items:center !important;
  column-gap:14px !important;
  width:100% !important;
}

.history-main-info{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

.history-status-wrap{
  width:92px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  position:static !important;
  margin:0 !important;
}

.history-status{
  min-width:82px !important;
  height:32px !important;
  padding:0 10px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  line-height:1 !important;
  margin:0 !important;
  position:static !important;
  transform:none !important;
}

.sent-card{
  padding:16px !important;
}

.sent-card .history-summary-row{
  min-height:58px;
}

.sent-card .history-title{
  margin:0 0 4px !important;
}

.sent-card .history-meta{
  margin:0 !important;
}

.sent-card .history-meta + .history-meta{
  margin-top:3px !important;
}

@media(max-width:390px){
  .history-summary-row{
    grid-template-columns:minmax(0,1fr) 84px !important;
    column-gap:10px !important;
  }

  .history-status-wrap{
    width:84px !important;
  }

  .history-status{
    min-width:76px !important;
    padding:0 8px !important;
    font-size:10px !important;
  }
}

/* V7.19 - rodapé copyright */
.app-footer{
  width:100%;
  box-sizing:border-box;
  padding:18px 12px calc(18px + env(safe-area-inset-bottom));
  text-align:center;
  color:var(--muted);
  font-size:11px;
  font-weight:750;
  letter-spacing:.01em;
}

/* V7.21 - modal de saída do formulário */
.leave-form-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}

.leave-form-actions .btn{
  width:100%;
  min-height:44px;
}

.leave-form-actions .btn.danger{
  background:#c62f2f;
  color:#fff;
  border-color:#c62f2f;
}

.leave-form-actions .btn.danger:hover{
  background:#ad2727;
}

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

.received-btn{position:relative}.mini-count{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--primary);color:#fff;font-size:10px;font-weight:900;margin-left:6px}.received-order-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;margin-bottom:12px}.received-order-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:12px}.received-order-card .btn{width:100%}

/* V7.24.6 - navegação principal no topo */
.mobile-top-nav{
  position:sticky;
  top:0;
  z-index:40;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  padding:10px 0 12px;
  margin-bottom:10px;
  background:var(--bg);
}

.mobile-top-nav-btn{
  min-height:62px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 10px;
  font-size:12px;
  line-height:1.08;
  font-weight:850;
  text-align:center;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}

.mobile-top-nav-btn.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  box-shadow:0 7px 16px rgba(37,99,235,.15);
}

.top-nav-count{
  display:inline-grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:999px;
  background:#edf2ff;
  color:var(--primary);
  font-size:10px;
  font-weight:950;
}

.mobile-top-nav-btn.active .top-nav-count{
  background:rgba(255,255,255,.18);
  color:#fff;
}

@media(hover:hover) and (pointer:fine){
  .mobile-top-nav-btn:not(.active):hover{
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(15,23,42,.08);
  }
}

@media(max-width:380px){
  .mobile-top-nav{
    gap:6px;
  }
  .mobile-top-nav-btn{
    min-height:58px;
    padding:8px 6px;
    font-size:11px;
  }
}

/* V7.24.7 - cards de atendimento clicáveis */
.type-card{
  cursor:pointer!important;
  pointer-events:auto!important;
  position:relative;
  z-index:1;
}

.type-card:active{
  transform:scale(.995);
}

#typeGrid{
  position:relative;
  z-index:1;
}

.mobile-top-nav{
  z-index:30!important;
}

.license-banner{position:sticky;top:0;z-index:100;background:#fff3cd;color:#795600;border-bottom:1px solid #efd485;padding:9px 12px;text-align:center;font-size:11px;font-weight:850}

.mobile-top-nav-btn.hidden{display:none!important}
.mobile-top-nav:has(.mobile-top-nav-btn.hidden){
  grid-template-columns:repeat(auto-fit,minmax(0,1fr));
}

#mobileLoginControls.hidden{display:none!important}

/* V8.7 - revisão de alinhamento mobile */
.mobile-top-nav-btn,.type-card,.btn{align-items:center!important}.type-card{grid-template-columns:auto minmax(0,1fr)!important}.type-icon{display:grid!important;place-items:center!important}.form-title{align-items:center!important}.app-modal-card{text-align:center}.app-modal-card .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px}.leave-form-actions .btn{display:flex;align-items:center;justify-content:center}


/* V8.15 — botões interativos e modal mobile padronizado */
.btn,.mobile-top-nav-btn,.type-card,.photo-btn{
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
@media(hover:hover) and (pointer:fine){
  .btn:not(:disabled):hover,.photo-btn:not(:disabled):hover,.mobile-top-nav-btn:not(:disabled):hover{
    transform:translateY(-1px)!important;
    box-shadow:0 7px 16px rgba(15,23,42,.10)!important;
  }
  .type-card:hover{transform:none!important;box-shadow:none!important}
}
.btn:active:not(:disabled),.photo-btn:active:not(:disabled),.mobile-top-nav-btn:active:not(:disabled){transform:scale(.985)!important}

.app-modal{padding:18px!important;align-items:center!important}
.app-modal-card{
  width:min(460px,100%)!important;
  border-radius:22px!important;
  padding:24px 22px 22px!important;
  box-shadow:0 28px 80px rgba(8,20,45,.30)!important;
  border:1px solid #e2e8f0!important;
}
.app-modal-icon{margin:0 auto 14px!important}
.app-modal-card h3{margin:0 0 8px!important;font-size:20px!important;line-height:1.25!important}
.app-modal-card p{margin:0 0 18px!important;line-height:1.55!important}
.app-modal-card .btn{min-height:44px!important;min-width:112px!important;padding:10px 16px!important}
.leave-form-actions{gap:10px!important;margin-top:18px!important}
@media(max-width:520px){
  .app-modal{padding:10px!important;align-items:end!important}
  .app-modal-card{width:100%!important;border-radius:20px 20px 0 0!important;padding:22px 16px calc(18px + env(safe-area-inset-bottom))!important}
}

/* V8.22 - loader de autenticação */
.global-login-loader{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;background:rgba(11,20,38,.46);backdrop-filter:blur(3px);padding:18px}
.login-loader-card{width:min(320px,100%);background:#fff;border:1px solid var(--line,#dce4ef);border-radius:18px;padding:24px;display:grid;justify-items:center;gap:9px;text-align:center;box-shadow:0 24px 70px rgba(8,20,44,.22)}
.login-loader-card b{font-size:15px}.login-loader-card span{font-size:12px;color:var(--muted);line-height:1.4}
.login-spinner{width:40px;height:40px;border:4px solid #e5ecf8;border-top-color:var(--primary,#2864ff);border-radius:50%;animation:loginSpin .75s linear infinite}
@keyframes loginSpin{to{transform:rotate(360deg)}}

.received-filter{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 14px}.received-filter-btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 8px;font-weight:800}.received-filter-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.received-filter-btn span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(0,0,0,.06);font-size:10px}.received-filter-btn.active span{background:rgba(255,255,255,.22)}.received-order-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;margin-bottom:10px}
@media(max-width:480px){.received-filter{grid-template-columns:1fr 1fr 1fr}.received-filter-btn{font-size:11px;padding:9px 5px}}

/* V8.33 - resumo da O.S. recebida no celular */
.received-client-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}
.received-client-summary>div{
  min-width:0;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#f8fafc;
  display:grid;
  gap:3px;
}

.received-client-summary span{
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
  color:var(--muted);
}
.received-client-summary b{
  font-size:12px;
  line-height:1.35;
  word-break:break-word;
}
.received-at{margin-top:9px}
@media(max-width:520px){
  .received-client-summary{grid-template-columns:1fr}
  .received-client-summary>div.full{grid-column:auto}
}

/* V8.34 - O.S. recebidas organizadas por bairro */
.received-client-summary>div:nth-child(4){
  background:#f2f7ff;
  border-color:#dce8ff;
}


/* V8.36 - card de O.S. recebida mais organizado */
.received-order-card{
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
.received-order-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.received-order-header-text{
  min-width:0;
  display:grid;
  gap:4px;
}
.received-order-header .history-title{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.received-at-inline{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.received-order-header .history-status{
  flex:0 0 auto;
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.received-client-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:0;
}
.received-client-summary>div{
  min-width:0;
  padding:11px 12px;
  border:1px solid #dde6f2;
  border-radius:14px;
  background:#f9fbff;
  display:grid;
  gap:4px;
}
.received-client-summary>div.full{grid-column:1/-1}
.received-client-summary span{
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
}
.received-client-summary b{
  font-size:14px;
  line-height:1.35;
  color:#0f172a;
  word-break:break-word;
}
.received-client-summary>div:nth-child(4){
  background:#f3f7ff;
  border-color:#dbe7ff;
}
.received-client-summary>div:nth-child(4) span{
  color:#2458d3;
}
.received-order-actions{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.received-order-actions .btn{
  width:100%;
  min-height:44px;
  font-size:17px;
  font-weight:800;
  border-radius:14px;
}
@media(max-width:520px){
  .received-order-card{padding:12px}
  .received-order-header{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .received-order-header .history-status{
    align-self:flex-start;
  }
  .received-client-summary{
    grid-template-columns:1fr;
  }
  .received-client-summary>div.full{
    grid-column:auto;
  }
}

/* V8.37 - modal de resultado obrigatório */
.finish-outcome-overlay{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;padding:16px;background:rgba(15,23,42,.52);backdrop-filter:blur(4px)}
.finish-outcome-modal{width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 28px 80px rgba(15,23,42,.25)}
.finish-outcome-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.finish-outcome-header small{color:var(--muted);font-weight:700}.finish-outcome-header h3{margin:3px 0 0;font-size:22px}
.finish-outcome-close{width:40px;height:40px;padding:0;border-radius:12px;font-size:25px;line-height:1}
.finish-outcome-help{margin:14px 0;color:var(--muted);font-size:13px}
.finish-outcome-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.finish-result{text-align:left;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff;display:grid;gap:5px;min-height:88px}
.finish-result b{font-size:14px}.finish-result span{font-size:11px;color:var(--muted);line-height:1.35}
.finish-result.selected{outline:3px solid rgba(37,99,235,.15);border-color:#2864ff;background:#f5f8ff}
.finish-result.success.selected{border-color:#16a34a;background:#f2fff6}.finish-result.warning.selected{border-color:#d97706;background:#fff9ec}.finish-result.danger.selected{border-color:#dc2626;background:#fff5f5}.finish-result.info.selected{border-color:#2563eb;background:#f3f7ff}
.finish-reschedule-fields{display:grid;gap:12px;margin-top:14px;padding:14px;border-radius:15px;background:#f8fafc;border:1px solid var(--line)}
.finish-reschedule-fields label{display:grid;gap:6px;font-weight:750;font-size:12px}
.finish-outcome-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.finish-outcome-actions .btn{min-width:140px}
.system-counter-field{opacity:.6;pointer-events:none}
@media(max-width:520px){.finish-outcome-options{grid-template-columns:1fr}.finish-outcome-actions{display:grid;grid-template-columns:1fr}.finish-outcome-actions .btn{width:100%}}

/* V8.40 - O.S. recebida compacta + detalhes em modal */
.compact-received-card{
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
@media(hover:hover) and (pointer:fine){
  .compact-received-card:hover{
    border-color:#c9d8f5;
    box-shadow:0 9px 24px rgba(15,23,42,.08);
  }
}
.compact-received-card:active{transform:scale(.995)}
.received-compact-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.received-compact-info>div{
  min-width:0;
  padding:11px 12px;
  border:1px solid #dfe7f1;
  border-radius:13px;
  background:#f9fbfd;
  display:grid;
  gap:4px;
}
.received-compact-info>div:first-child{grid-column:1/-1}
.received-compact-info span{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:850;
  color:#64748b;
}
.received-compact-info b{
  font-size:13px;
  line-height:1.35;
  color:#0f172a;
  word-break:break-word;
}
.received-compact-info .received-neighborhood{
  background:#f2f7ff;
  border-color:#d9e5ff;
}
.received-compact-info .received-neighborhood span{color:#2458d3}
.received-card-hint{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  padding:8px 2px 0;
  border-top:1px solid #edf1f6;
  color:#64748b;
  font-size:10px;
  font-weight:700;
}
.received-card-hint span:last-child{
  font-size:22px;
  color:#2563eb;
  line-height:1;
}
.os-detail-overlay{
  position:fixed;
  inset:0;
  z-index:16000;
  display:grid;
  place-items:center;
  padding:16px;
  background:rgba(15,23,42,.54);
  backdrop-filter:blur(4px);
}
.os-detail-modal{
  width:min(620px,100%);
  max-height:calc(100vh - 32px);
  overflow:auto;
  background:#fff;
  border:1px solid #dfe7f1;
  border-radius:22px;
  box-shadow:0 30px 90px rgba(15,23,42,.30);
}
.os-detail-header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 14px;
  background:#fff;
  border-bottom:1px solid #e7edf5;
}
.os-detail-header small{
  display:block;
  color:#64748b;
  font-size:10px;
  font-weight:800;
  margin-bottom:3px;
}
.os-detail-header h3{
  margin:0;
  font-size:20px;
  line-height:1.25;
}
.os-detail-close{
  flex:0 0 auto;
  width:40px;
  height:40px;
  border:1px solid #dfe7f1;
  border-radius:12px;
  background:#f5f7fb;
  font-size:25px;
  line-height:1;
  display:grid;
  place-items:center;
}
.os-detail-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 18px 0;
  color:#64748b;
  font-size:11px;
}
.os-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:14px 18px 18px;
}
.os-detail-item{
  min-width:0;
  padding:11px 12px;
  border:1px solid #e1e8f1;
  border-radius:13px;
  background:#f9fbfd;
  display:grid;
  gap:5px;
}
.os-detail-item>span{
  font-size:9px;
  font-weight:850;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.os-detail-value-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.os-detail-value-row b{
  min-width:0;
  font-size:13px;
  line-height:1.4;
  word-break:break-word;
}
.os-detail-reference{
  grid-column:1/-1;
  background:#f2f7ff;
  border-color:#d9e5ff;
}
.os-detail-reference>span{color:#2458d3}
.os-detail-reference .os-detail-value-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}
.os-detail-reference .os-detail-value-row b{
  width:100%;
  text-align:left;
}
.copy-reference-btn{
  flex:0 0 180px;
  width:180px;
  min-width:180px;
  max-width:180px;
  height:38px;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  border:1px solid #c9d9ff;
  border-radius:10px;
  background:#fff;
  color:#2458d3;
  font-size:10px;
  font-weight:850;
  padding:0 12px;
  white-space:nowrap;
}
.copy-reference-btn.copied{
  background:#e9f8ef;
  border-color:#bfe8cd;
  color:#167143;
}
.os-detail-actions{
  position:sticky;
  bottom:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
  padding:14px 18px calc(24px + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1px solid #e7edf5;
}
.os-detail-actions .btn{width:100%;min-height:44px;margin:0}
@media(max-width:520px){
  .received-compact-info{grid-template-columns:1fr}
  .received-compact-info>div:first-child{grid-column:auto}
  .os-detail-overlay{
    align-items:end;
    padding:0;
  }
  .os-detail-modal{
    width:100%;
    max-height:92vh;
    border-radius:22px 22px 0 0;
  }
  .os-detail-grid{grid-template-columns:1fr}
  .os-detail-reference{grid-column:auto}
  .os-detail-value-row{display:grid}
  .copy-reference-btn{width:180px;min-width:180px;max-width:180px}
}

/* V8.43 - tipo do atendimento + abertura confiável do modal */
.received-service-type{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:3px;
}
.received-service-type span{
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  color:#64748b;
}
.received-service-type b{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#eef4ff;
  color:#2458d3;
  font-size:10px;
  font-weight:850;
}
.compact-received-card:focus-visible{
  outline:3px solid rgba(37,99,235,.22);
  outline-offset:2px;
}

/* V8.47 - modal de detalhes centralizado */
.os-detail-overlay{
  align-items:center !important;
  justify-items:center !important;
  padding:18px !important;
}
.os-detail-modal{
  width:min(520px,100%) !important;
  max-height:min(82vh,720px) !important;
  border-radius:22px !important;
}
.os-detail-header{
  border-radius:22px 22px 0 0;
}
.os-detail-header h3{
  font-size:21px;
}
.os-detail-header small{
  display:none !important;
}
.os-detail-actions{
  border-radius:0 0 22px 22px;
}
@media(max-width:520px){
  .os-detail-overlay{
    align-items:center !important;
    padding:16px !important;
  }
  .os-detail-modal{
    width:100% !important;
    max-height:82vh !important;
    border-radius:20px !important;
  }
  .os-detail-actions{
    border-radius:0 0 20px 20px;
  }
}

/* V8.49 - todos os modais centralizados */
.modal,
.app-modal,
.confirm-modal,
.success-modal,
.error-modal,
.finish-outcome-overlay,
.os-detail-overlay,
.global-login-loader{
  align-items:center !important;
  justify-items:center !important;
  place-items:center !important;
}
.modal,
.app-modal,
.confirm-modal,
.success-modal,
.error-modal{
  position:fixed !important;
  inset:0 !important;
  z-index:15000 !important;
  display:grid !important;
  padding:16px !important;
}
.modal.hidden,
.app-modal.hidden,
.confirm-modal.hidden,
.success-modal.hidden,
.error-modal.hidden{
  display:none !important;
}
.modal-box,
.app-modal-box,
.confirm-modal-box,
.success-modal-box,
.error-modal-box,
.finish-outcome-modal,
.os-detail-modal{
  margin:auto !important;
  max-height:calc(100vh - 32px) !important;
  border-radius:20px !important;
}
@media(max-width:520px){
  .modal,
  .app-modal,
  .confirm-modal,
  .success-modal,
  .error-modal,
  .finish-outcome-overlay,
  .os-detail-overlay{
    align-items:center !important;
    padding:16px !important;
  }
  .modal-box,
  .app-modal-box,
  .confirm-modal-box,
  .success-modal-box,
  .error-modal-box,
  .finish-outcome-modal,
  .os-detail-modal{
    width:min(92vw,520px) !important;
    max-height:82vh !important;
    border-radius:20px !important;
  }
}

/* V8.51 - correção definitiva dos modais no celular */
html,body{
  min-height:100%;
}

/* Todos os overlays permanecem realmente centralizados. */
.app-modal,
.finish-outcome-overlay,
.os-detail-overlay,
.global-login-loader{
  position:fixed !important;
  inset:0 !important;
  display:grid !important;
  place-items:center !important;
  align-items:center !important;
  justify-items:center !important;
  padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom)) !important;
  overflow:auto !important;
}
.app-modal.hidden{
  display:none !important;
}

/* Card do modal comum: era ele que ainda herdava o modo "bottom sheet". */
.app-modal-card{
  position:relative !important;
  width:min(430px,calc(100vw - 28px)) !important;
  max-width:430px !important;
  max-height:calc(100dvh - 36px) !important;
  margin:auto !important;
  padding:22px 18px 18px !important;
  border-radius:20px !important;
  overflow:auto !important;
  overscroll-behavior:contain;
  box-sizing:border-box !important;
}

/* Modal de finalização e modal de detalhes. */
.finish-outcome-modal,
.os-detail-modal{
  position:relative !important;
  width:min(520px,calc(100vw - 28px)) !important;
  max-height:calc(100dvh - 36px) !important;
  margin:auto !important;
  border-radius:20px !important;
  box-sizing:border-box !important;
  overflow:auto !important;
  overscroll-behavior:contain;
}

/* Cabeçalho não deixa o X ser espremido. */
.finish-outcome-header,
.os-detail-header{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 40px !important;
  align-items:start !important;
  gap:12px !important;
}
.finish-outcome-header>div,
.os-detail-header>div{
  min-width:0 !important;
}

/* X totalmente centralizado e sem herdar padding/line-height de botões gerais. */
.finish-outcome-close,
.os-detail-close{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  padding:0 !important;
  margin:0 !important;
  display:grid !important;
  place-items:center !important;
  justify-content:center !important;
  align-items:center !important;
  align-self:start !important;
  border:1px solid #d7dee9 !important;
  border-radius:12px !important;
  background:#f7f9fc !important;
  color:#172033 !important;
  font-family:Arial,sans-serif !important;
  font-size:25px !important;
  font-weight:400 !important;
  line-height:1 !important;
  text-align:center !important;
  text-indent:0 !important;
}

/* Ações nunca ficam cortadas na parte inferior. */
.leave-form-actions,
.finish-outcome-actions,
.os-detail-actions{
  position:relative !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding-bottom:max(0px,env(safe-area-inset-bottom)) !important;
}
.leave-form-actions{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  margin:18px 0 0 !important;
}
.leave-form-actions .btn,
.finish-outcome-actions .btn,
.os-detail-actions .btn{
  width:100% !important;
  box-sizing:border-box !important;
  min-height:46px !important;
}

/* Evita o fundo branco "quebrado" abaixo do botão no modal simples. */
.app-modal-card::after{
  content:none !important;
}
.app-modal-card>*:last-child{
  margin-bottom:0 !important;
}

/* Em telas muito baixas, o card continua central e passa a rolar por dentro. */
@media(max-width:520px){
  .app-modal,
  .finish-outcome-overlay,
  .os-detail-overlay{
    align-items:center !important;
    justify-items:center !important;
    padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)) !important;
  }
  .app-modal-card,
  .finish-outcome-modal,
  .os-detail-modal{
    width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
    border-radius:20px !important;
  }
}


/* V8.56 - correção do loader infinito de login/restauração
   A regra abaixo precisa ficar DEPOIS das regras de centralização. */
.global-login-loader.hidden{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}


/* V8.63 - respiro no rodapé do modal de detalhes */
.os-detail-modal{padding-bottom:0 !important}
.os-detail-actions{box-sizing:border-box !important}
@media(max-width:520px){
  .os-detail-modal{max-height:min(84vh,760px) !important;}
  .os-detail-actions{
    padding:14px 14px calc(26px + env(safe-area-inset-bottom)) !important;
  }
}


/* V8.65 - mais respiro e padronização nos modais */
.app-modal-card,
.finish-outcome-modal,
.os-detail-modal{
  box-sizing:border-box !important;
}
.leave-form-actions,
.finish-outcome-actions,
.os-detail-actions{
  gap:12px !important;
  margin-top:12px !important;
  padding:18px 18px calc(32px + env(safe-area-inset-bottom)) !important;
  background:#fff !important;
  border-top:1px solid #e7edf5 !important;
}
.leave-form-actions .btn,
.finish-outcome-actions .btn,
.os-detail-actions .btn{
  min-height:48px !important;
  border-radius:14px !important;
}
.os-detail-modal .os-detail-grid{
  padding-bottom:10px !important;
}
@media(max-width:520px){
  .app-modal-card,
  .finish-outcome-modal,
  .os-detail-modal{
    width:min(94vw,520px) !important;
    max-height:min(86vh,760px) !important;
  }
  .leave-form-actions,
  .finish-outcome-actions,
  .os-detail-actions{
    padding:16px 16px calc(36px + env(safe-area-inset-bottom)) !important;
    margin-top:14px !important;
  }
}


/* V8.71 - status Telegram sem quebra e cards responsivos */
.history-summary-row{
  grid-template-columns:minmax(0,1fr) max-content !important;
}
.history-status-wrap{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
}
.history-status{
  width:auto !important;
  min-width:82px !important;
  max-width:none !important;
  white-space:nowrap !important;
  padding:0 11px !important;
}
.telegram-wait-status{
  min-width:126px !important;
  font-size:9.5px !important;
  padding:0 10px !important;
}
@media(max-width:390px){
  .history-summary-row{
    grid-template-columns:minmax(0,1fr) max-content !important;
    column-gap:8px !important;
  }
  .telegram-wait-status{
    min-width:118px !important;
    font-size:9px !important;
    padding:0 8px !important;
  }
}


/* V8.71 - respiro extra no rodapé dos modais */
.modal-actions,
.app-modal-card .leave-form-actions,
.finish-outcome-actions{
  padding-bottom:max(4px, env(safe-area-inset-bottom)) !important;
}


/* V8.71 - padrão definitivo de todos os modais mobile */
.app-modal,
.finish-outcome-overlay,
.os-detail-overlay,
.global-login-loader,
.system-update-overlay{
  position:fixed !important;inset:0 !important;
  display:grid !important;place-items:center !important;
  align-items:center !important;justify-items:center !important;
  padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)) !important;
  overflow:hidden !important;
}
.app-modal.hidden,.global-login-loader.hidden,.system-update-overlay.hidden{display:none !important}
.app-modal-card,
.finish-outcome-modal,
.os-detail-modal{
  width:min(520px,calc(100vw - 24px)) !important;
  max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom))) !important;
  margin:auto !important;border:1px solid #dfe7f1 !important;border-radius:22px !important;background:#fff !important;
  box-sizing:border-box !important;box-shadow:0 28px 85px rgba(15,23,42,.30) !important;overscroll-behavior:contain !important;
}
.app-modal-card{
  width:min(410px,calc(100vw - 24px)) !important;
  overflow:auto !important;padding:24px 20px 26px !important;text-align:center !important;
}
.app-modal-card .btn{min-height:48px !important;border-radius:14px !important;margin:0 !important}
.app-modal-card .leave-form-actions{
  margin:20px 0 0 !important;padding:16px 0 0 !important;border-top:1px solid #e7edf5 !important;background:transparent !important;gap:10px !important;
}
.finish-outcome-modal,
.os-detail-modal{display:flex !important;flex-direction:column !important;overflow:hidden !important;padding:0 !important}
.finish-outcome-header,
.os-detail-header{
  position:relative !important;top:auto !important;flex:0 0 auto !important;
  display:grid !important;grid-template-columns:minmax(0,1fr) 40px !important;align-items:start !important;gap:12px !important;
  margin:0 !important;padding:16px 16px 14px !important;border-bottom:1px solid #e7edf5 !important;background:#fff !important;
}
.finish-outcome-close,.os-detail-close{
  appearance:none !important;-webkit-appearance:none !important;
  width:40px !important;height:40px !important;min-width:40px !important;min-height:40px !important;max-width:40px !important;max-height:40px !important;
  margin:0 !important;padding:0 !important;display:grid !important;place-items:center !important;
  border:1px solid #d7dee9 !important;border-radius:12px !important;background:#f7f9fc !important;color:#172033 !important;
  font:400 24px/1 Arial,sans-serif !important;text-align:center !important;box-shadow:none !important;transform:none !important;
}
.finish-outcome-help{flex:0 0 auto !important;margin:0 !important;padding:12px 16px 10px !important}
.finish-outcome-options{flex:1 1 auto !important;min-height:0 !important;overflow:auto !important;padding:4px 16px 14px !important}
.finish-reschedule-fields{flex:0 0 auto !important;margin:0 16px 12px !important}
.os-detail-meta{flex:0 0 auto !important;padding:12px 16px 0 !important}
.os-detail-grid{flex:1 1 auto !important;min-height:0 !important;overflow:auto !important;padding:14px 16px 16px !important}
.finish-outcome-actions,
.os-detail-actions{
  position:relative !important;bottom:auto !important;flex:0 0 auto !important;
  width:100% !important;margin:0 !important;padding:14px 16px calc(20px + env(safe-area-inset-bottom)) !important;
  display:flex !important;gap:10px !important;align-items:center !important;
  border-top:1px solid #e7edf5 !important;background:#fff !important;box-shadow:0 -8px 22px rgba(15,23,42,.035) !important;
  border-radius:0 0 22px 22px !important;
}
.finish-outcome-actions .btn,.os-detail-actions .btn{min-height:48px !important;margin:0 !important;border-radius:14px !important;flex:1 1 0 !important}
.login-loader-card,.system-update-card{border-radius:22px !important;padding:24px !important}
@media(max-width:520px){
  .app-modal-card,.finish-outcome-modal,.os-detail-modal{width:calc(100vw - 24px) !important;max-height:calc(100dvh - 24px) !important;border-radius:20px !important}
  .app-modal-card{padding:22px 16px calc(24px + env(safe-area-inset-bottom)) !important}
  .finish-outcome-header,.os-detail-header{padding:14px 14px 12px !important}
  .finish-outcome-help{padding:10px 14px !important}
  .finish-outcome-options{padding:4px 14px 12px !important}
  .finish-reschedule-fields{margin:0 14px 12px !important}
  .os-detail-meta{padding:10px 14px 0 !important}
  .os-detail-grid{padding:12px 14px 14px !important}
  .finish-outcome-actions,.os-detail-actions{padding:12px 14px calc(18px + env(safe-area-inset-bottom)) !important;gap:8px !important}
}

/* V8.74 - Minha ficha de materiais */
.mobile-top-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}.material-period,.material-actions{display:flex;gap:8px;margin-bottom:10px}.material-period input{min-width:0}.material-period .btn{flex:0 0 auto}.material-actions .btn{flex:1}.material-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.material-summary>div{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;display:grid;gap:4px}.material-summary span{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800}.material-summary b{font-size:18px;line-height:1.2}.material-rows{display:grid;gap:10px}.material-row{padding:13px;border:1px solid var(--line);border-radius:15px;background:#fff}.material-row-head{display:flex;justify-content:space-between;gap:10px}.material-row small{display:block;color:var(--muted);margin:5px 0 9px}.material-row-values{display:flex;gap:6px;flex-wrap:wrap}.material-row-values span{padding:6px 8px;border-radius:9px;background:#f2f6fc;font-size:10px}.sheet-status{padding:10px 12px;border-radius:12px;margin:10px 0;font-size:11px}.sheet-status.pending{background:#fff6dc;color:#805700}.sheet-status.approved{background:#eaf8f0;color:#166b40}.sheet-status.correction{background:#fff0f0;color:#a52222}@media(max-width:430px){.mobile-top-nav-btn{padding:10px 4px!important;font-size:11px!important}.material-period{display:grid;grid-template-columns:1fr 1fr}.material-period .btn{grid-column:1/-1}.material-actions{flex-direction:column}.material-summary{grid-template-columns:1fr}}


/* V8.74 - preferência local de fotos */
.local-photo-pref{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 18px;padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:#fff}
.local-photo-pref>div{display:grid;gap:4px;min-width:0}.local-photo-pref b{font-size:12px}.local-photo-pref small{color:var(--muted);font-size:10px;line-height:1.45;max-width:640px}
.local-photo-switch{display:flex;align-items:center;gap:8px;flex:0 0 auto;font-size:11px;font-weight:800;cursor:pointer}.local-photo-switch input{width:18px;height:18px;margin:0}
@media(max-width:620px){.local-photo-pref{align-items:stretch;flex-direction:column}.local-photo-switch{padding-top:4px}}


/* V8.91 - seleção prática do estoque no formulário */
.stock-field-help{margin-top:6px;padding:7px 9px;border-radius:9px;background:#f4f7fb;color:#66758a!important}.field select[name="idBobinaDrop"],.field select[name="idBobinaUtp"],.field select[name="macRot"],.field select[name="macOnu"]{font-weight:750}.material-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}

.my-assigned-stock{margin:10px 0 12px}.my-assigned-stock-card{padding:13px;border:1px solid var(--line);border-radius:15px;background:#f8fafc}.my-assigned-stock-card>div:first-child{display:grid;gap:3px}.my-assigned-stock-card small{color:var(--muted);font-size:10px;line-height:1.4}.my-assigned-stock-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.my-assigned-stock-list span{padding:6px 8px;border-radius:9px;background:#fff;border:1px solid var(--line);font-size:10px;font-weight:700}.my-assigned-stock-list em{font-size:11px;color:var(--muted);font-style:normal}


/* V8.91 - camada superior para mensagens e avisos */
.toast-wrap,#toast,.mobile-toast-wrap{
  position:fixed !important;
  z-index:60000 !important;
  pointer-events:none !important;
}
.toast-wrap .toast,#toast .toast,.mobile-toast-wrap .toast{pointer-events:auto !important}


/* V8.91 - Material e Ficha + modal do estoque individual */
.my-assigned-stock{margin:12px 0 14px!important}
.my-assigned-stock-card.my-assigned-stock-open{
  width:100%;border:1px solid #d7e2f2;background:linear-gradient(145deg,#fff 0%,#f5f8ff 100%);border-radius:18px;padding:15px;
  display:grid;gap:13px;text-align:left;color:var(--text);box-shadow:0 8px 22px rgba(15,40,90,.05);cursor:pointer;
}
.my-assigned-stock-card.my-assigned-stock-open:active{transform:scale(.99)}
.my-assigned-stock-main{display:flex;align-items:center;gap:11px;min-width:0}.my-assigned-stock-main>div{display:grid;gap:3px;min-width:0}
.my-assigned-stock-main b{font-size:14px}.my-assigned-stock-main small{color:var(--muted);font-size:10px;line-height:1.4;font-weight:500}
.my-assigned-stock-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:#245eff;color:#fff;font-weight:950;font-size:15px}
.my-assigned-stock-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.my-assigned-stock-stats>span{padding:9px 8px;border:1px solid #e0e8f4;border-radius:11px;background:#fff;display:grid;gap:2px}.my-assigned-stock-stats b{font-size:12px;white-space:nowrap}.my-assigned-stock-stats small{font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:800}
.my-assigned-stock-action{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e4ebf5;padding-top:10px;color:#245eff;font-size:11px;font-weight:850}.my-assigned-stock-action b{font-size:19px;line-height:1}
body.inventory-modal-open{overflow:hidden!important}
.inventory-modal{position:fixed;inset:0;z-index:12050;display:grid;place-items:center;padding:16px}.inventory-modal.hidden{display:none!important}.inventory-modal-backdrop{position:absolute;inset:0;background:rgba(8,18,38,.58);backdrop-filter:blur(4px)}
.inventory-modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:#f7f9fc;border:1px solid #dce4ef;border-radius:24px;overflow:hidden;box-shadow:0 28px 90px rgba(4,18,45,.34)}
.inventory-modal-head{flex:0 0 auto;padding:18px 18px 15px;background:#fff;border-bottom:1px solid #e3e9f1;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.inventory-modal-head>div{min-width:0}.inventory-modal-eyebrow{display:inline-block;margin-bottom:5px;color:#245eff;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.inventory-modal-head h3{margin:0;font-size:19px;line-height:1.2}.inventory-modal-head p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.inventory-modal-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #dce4ef;border-radius:12px;background:#f7f9fc;color:#17233b;font-size:24px;line-height:1;display:grid;place-items:center;padding:0}
.inventory-modal-summary{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px 16px 4px}.inventory-modal-summary>div{background:#fff;border:1px solid #e1e8f2;border-radius:12px;padding:9px;display:grid;gap:2px}.inventory-modal-summary span{font-size:8px;color:var(--muted);text-transform:uppercase;font-weight:850}.inventory-modal-summary b{font-size:13px;white-space:nowrap}
.inventory-modal-body{flex:1 1 auto;min-height:0;overflow:auto;padding:10px 16px 16px;display:grid;gap:12px}.inventory-group{background:#fff;border:1px solid #dfe6f0;border-radius:16px;overflow:hidden}.inventory-group-title{padding:11px 12px;border-bottom:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between;gap:8px}.inventory-group-title span{font-size:11px;font-weight:900}.inventory-group-title b{font-size:10px;color:#245eff}.inventory-list{display:grid}.inventory-item{padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f6}.inventory-item:last-child{border-bottom:0}.inventory-item>div{display:grid;gap:3px;min-width:0}.inventory-item strong{font-size:12px}.inventory-item small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-qty{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#edf4ff;color:#2458d3;font-size:10px;font-weight:900;white-space:nowrap}
.inventory-equipment-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.inventory-equipment{padding:11px;border:1px solid #e2e8f1;border-radius:12px;background:#f9fbfd;display:grid;gap:3px}.inventory-equipment span{font-size:8px;color:#245eff;font-weight:900}.inventory-equipment strong{font-size:15px;letter-spacing:.04em}.inventory-equipment small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inventory-empty{padding:38px 18px;text-align:center;display:grid;justify-items:center;gap:7px;color:var(--muted)}.inventory-empty>div{width:44px;height:44px;border-radius:14px;background:#edf4ff;color:#245eff;display:grid;place-items:center;font-weight:950}.inventory-empty b{color:var(--text);font-size:14px}.inventory-empty span{max-width:330px;font-size:10px;line-height:1.45}
.inventory-modal-footer{flex:0 0 auto;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e1e8f1;display:flex;justify-content:flex-end}.inventory-modal-footer .btn{min-width:120px}
@media(max-width:520px){.inventory-modal{padding:10px;align-items:center;justify-items:center}.inventory-modal-card{width:min(94vw,620px);max-height:92dvh;border-radius:22px}.inventory-modal-summary{grid-template-columns:1fr 1fr}.inventory-equipment-grid{grid-template-columns:1fr}.inventory-modal-footer .btn{width:100%}}


/* V8.91 - contadores sempre abaixo do nome */
.mobile-top-nav-btn{
  flex-direction:column !important;
  gap:6px !important;
  line-height:1.12 !important;
}
.mobile-top-nav-btn>span:first-child{
  display:block;
  min-height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.top-nav-count{
  margin:0 !important;
  flex:0 0 auto;
}
.received-filter-btn,
.history-filter-btn{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-height:58px !important;
  line-height:1.15 !important;
  text-align:center !important;
}
.received-filter-btn span,
.history-filter-btn span{
  margin:0 !important;
  flex:0 0 auto;
}
@media(max-width:480px){
  .received-filter-btn{min-height:60px !important;padding:8px 4px !important}
  .history-filter-btn{min-height:58px !important}
}


/* V8.91 - modal Material e Ficha sem cortes */
.inventory-modal-body{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:12px !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
}
.inventory-group{
  flex:0 0 auto !important;
  min-height:max-content !important;
  height:auto !important;
  overflow:visible !important;
}
.inventory-group-title{
  min-height:42px;
  border-radius:16px 16px 0 0;
}
.inventory-list,
.inventory-equipment-grid{
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
}
.inventory-item,
.inventory-equipment{
  min-height:0 !important;
  height:auto !important;
}
.inventory-equipment-grid{
  align-items:stretch !important;
}
.inventory-equipment{
  min-width:0;
}
@media(max-width:520px){
  .inventory-modal-body{padding-bottom:18px !important}
  .inventory-group{border-radius:15px !important}
  .inventory-item{padding:10px 11px !important}
  .inventory-equipment-grid{padding:9px !important;gap:7px !important}
  .inventory-equipment{padding:10px 11px !important}
}


/* V8.95 - Material e Ficha com ID e saldo em blocos organizados */
.inventory-item-detailed{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:9px !important;
  align-items:stretch !important;
  padding:11px 12px 12px !important;
}
.inventory-item-title{
  display:grid !important;
  gap:2px !important;
  min-width:0;
}
.inventory-item-title strong{
  font-size:13px !important;
  line-height:1.2;
  color:var(--text);
}
.inventory-item-title small{
  font-size:8px !important;
  color:var(--muted) !important;
  font-weight:650;
}
.inventory-item-details{
  display:flex !important;
  align-items:stretch;
  gap:6px;
  flex-wrap:wrap;
}
.inventory-item-details>span{
  min-width:72px;
  flex:1 1 72px;
  padding:7px 8px;
  border:1px solid #e3eaf4;
  border-radius:10px;
  background:#f8fafd;
  display:grid;
  gap:2px;
}
.inventory-item-details small{
  font-size:7px !important;
  line-height:1;
  color:var(--muted) !important;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:850;
  white-space:normal !important;
  overflow:visible !important;
}
.inventory-item-details b{
  font-size:10px;
  line-height:1.2;
  color:#1d2b49;
  word-break:break-word;
}
.inventory-item-details .inventory-detail-balance{
  background:#edf4ff;
  border-color:#d9e6ff;
}
.inventory-item-details .inventory-detail-balance b{
  color:#2458d3;
  font-size:11px;
}
@media(max-width:380px){
  .inventory-item-details>span{min-width:64px;flex-basis:64px}
}

/* V8.95 - quatro fichas separadas de materiais */
.my-sheet-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.my-sheet-tab{border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px;text-align:left;display:grid;gap:3px;min-height:68px;color:var(--text);box-shadow:0 6px 18px rgba(15,23,42,.04)}
.my-sheet-tab span{font-size:13px;font-weight:850;line-height:1.15}.my-sheet-tab small{font-size:10px;color:var(--muted)}
.my-sheet-tab.active{border-color:#9db8ff;background:#eef4ff;box-shadow:0 8px 22px rgba(36,99,235,.10)}.my-sheet-tab.active span{color:#2456a6}
.material-sheet-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;display:grid;gap:11px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.material-sheet-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.material-sheet-card-head>div{display:grid;gap:3px}.material-sheet-kind{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#66758a}.material-sheet-card-head b{font-size:13px}.material-sheet-card-head>strong{font-size:16px;color:#2458d3;white-space:nowrap}
.material-sheet-auto{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.material-sheet-auto span{padding:8px 9px;border-radius:11px;background:#f6f8fc;min-width:0}.material-sheet-auto small,.material-sheet-address small{display:block;font-size:8px;text-transform:uppercase;color:var(--muted);font-weight:800;letter-spacing:.035em}.material-sheet-auto b{display:block;margin-top:2px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.material-sheet-meta{padding:8px 10px;border-radius:10px;background:#eef4ff;color:#2458d3;font-size:10px;font-weight:800}.material-sheet-address{display:grid;gap:3px;padding-top:9px;border-top:1px solid #edf1f6}.material-sheet-address b{font-size:11px;line-height:1.35}
@media(max-width:430px){.my-sheet-tabs{grid-template-columns:1fr 1fr;gap:8px}.my-sheet-tab{padding:11px;min-height:64px}.material-sheet-auto{grid-template-columns:1fr 1fr}.material-sheet-auto span:last-child{grid-column:1/-1}}


/* V8.97 - modal centralizado e resumos simplificados */
.custom-attendance-modal{z-index:14000!important}.custom-attendance-card{text-align:left!important;width:min(430px,100%)!important}.custom-attendance-card .app-modal-icon{margin-left:0!important}.custom-attendance-card h3,.custom-attendance-card p{text-align:left!important}.custom-attendance-input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font-size:16px;margin:2px 0 16px}.custom-attendance-input.invalid{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.08)}.custom-attendance-actions{display:flex;justify-content:flex-end;gap:8px}.custom-attendance-actions .btn{min-width:110px}@media(max-width:520px){.custom-attendance-actions{display:grid;grid-template-columns:1fr 1fr}.custom-attendance-actions .btn{width:100%;min-width:0}}


/* V8.115.3 - identidade operacional fixa + senha operacional simplificada */
.topbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.account-password-btn{white-space:nowrap}
.locked-team small{font-size:11px;color:var(--muted);line-height:1.35;margin-top:2px}
.account-password-card{text-align:left!important;max-width:460px!important}
.account-password-card .app-modal-icon{margin-left:0!important}
.account-password-card h3,.account-password-card p{text-align:left!important}
.account-password-fields{display:grid;gap:12px;margin:4px 0 18px}
.account-password-fields small{font-size:11px;color:var(--muted);line-height:1.4}
.account-password-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:560px){
  .topbar-in{align-items:flex-start}
  .topbar-actions{gap:6px}
  .topbar-actions .btn{padding:9px 10px;font-size:12px}
  .account-password-btn{order:3}
  .account-password-actions{display:grid;grid-template-columns:1fr 1fr}
  .account-password-actions .btn{width:100%;min-width:0!important}
}


/* V8.115.3 - salvar senha no dispositivo */
.remember-login{display:flex;align-items:center;gap:9px;margin:12px 0 4px;cursor:pointer;font-size:13px;font-weight:800;color:var(--text)}
.remember-login input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px!important;margin:0!important;padding:0!important;accent-color:var(--primary);flex:0 0 18px}
.remember-login-help{display:block;margin:0 0 3px 27px;color:var(--muted);font-size:10px;line-height:1.35}


/* V8.115.20 - requisitos de senha em tempo real */
.credential-guide{display:grid;gap:6px;margin-top:8px;padding:9px 10px;border:1px solid var(--line,#dce4ef);border-radius:11px;background:#f8fafc}.credential-rule{display:flex;align-items:flex-start;gap:7px;color:#9a6700;font-size:10px;line-height:1.35;font-weight:750}.credential-rule.pending{color:var(--muted,#64748b)}.credential-rule.met{color:#15803d}.credential-rule-icon{display:grid;place-items:center;width:16px;height:16px;min-width:16px;border:1px solid currentColor;border-radius:50%;font-size:10px}.credential-rule.met .credential-rule-icon{background:#dcfce7;border-color:#86efac}.credential-valid{border-color:#86c99a!important;box-shadow:0 0 0 3px rgba(34,197,94,.08)!important}.credential-incomplete{border-color:#e6bd67!important;box-shadow:0 0 0 3px rgba(245,158,11,.07)!important}


/* V8.115.20 - material removido / equipamento danificado */
.removed-materials-box{margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.removed-materials-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.removed-materials-title h3{margin:0 0 4px}.removed-materials-title p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}
.removed-material-card{padding:13px;border:1px solid var(--border);border-radius:14px;background:var(--surface,#fff);margin-top:10px}.removed-material-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.removed-material-card-head small{display:block;color:var(--muted);margin-top:2px}.removed-material-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.removed-material-grid .full{grid-column:1/-1}.removed-material-required{display:block;color:#b45309;margin:4px 0 8px}.removed-material-empty{padding:14px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);text-align:center}.removed-material-delete{padding:6px 9px!important}
@media(max-width:640px){.removed-materials-title{flex-direction:column}.removed-materials-title .btn{width:100%}.removed-material-grid{grid-template-columns:1fr}.removed-material-grid .full{grid-column:auto}}

/* V8.115.20 - regras condicionais de fotos e justificativa */
.photo-rule-help{display:block;margin:-2px 0 8px;color:var(--muted);font-size:11px;line-height:1.4}
.photo-rule-status{margin-top:9px;padding:8px 10px;border-radius:10px;font-size:11px;font-weight:800;line-height:1.35}
.photo-rule-status.idle{background:#f3f6fa;color:#65758a}
.photo-rule-status.warn{background:#fff6df;color:#8a5d00;border:1px solid #f3d892}
.photo-rule-status.ok{background:#ecf9f1;color:#167046;border:1px solid #bce5cc}
.photo-rule-active{border-style:solid;border-color:#edc86a;background:#fffdf7}
.photo-rule-active.photo-has-file{border-color:#bce5cc;background:#f9fffb}
.photo-exception{margin-top:9px;padding:10px;border-radius:11px;background:#fff8e9;border:1px solid #efd69c}
.photo-exception label{display:block;font-size:11px;font-weight:900;color:#76520b;margin-bottom:6px}
.photo-exception textarea{min-height:76px;background:#fff}
.photo-exception small{display:block;margin-top:6px;color:#806d48;font-size:10.5px;line-height:1.35}

/* V8.115.20 - equipamentos recolhidos pendentes de devolução */
.my-pending-returns{margin:0 0 14px}.pending-return-panel{border:1px solid rgba(180,35,24,.28);background:rgba(180,35,24,.035);border-radius:16px;padding:13px;display:grid;gap:11px}.pending-return-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.pending-return-head>div{display:grid;gap:2px}.pending-return-head span{font-size:10px;font-weight:900;text-transform:uppercase;color:#b42318}.pending-return-head b{font-size:13px}.pending-return-head small{max-width:230px;text-align:right;color:var(--muted);font-size:9px;line-height:1.4}.pending-return-list{display:grid;gap:10px}.pending-return-item{background:#fff;border:1px solid rgba(180,35,24,.2);border-radius:12px;padding:11px 12px;display:grid;gap:3px}.pending-return-item>span{width:max-content;padding:3px 6px;border-radius:999px;background:#eef4ff;color:#2458d3;font-size:8px;font-weight:900}.pending-return-item>b{font-size:13px}.pending-return-item small,.pending-return-item em{font-size:9px;color:var(--muted);font-style:normal}.pending-return-item em:last-child{color:#b42318;font-weight:800}.inventory-return-group{border-color:rgba(180,35,24,.25)}.inventory-equipment-return{border-color:rgba(180,35,24,.2);background:rgba(180,35,24,.025)}.inventory-equipment-return em{font-size:9px;color:var(--muted);font-style:normal}
@media(max-width:520px){.pending-return-head{display:grid}.pending-return-head small{text-align:left;max-width:none}}

/* NexaOper Design System — V8.115.30
   Referência visual aprovada: interface branca, azul, cartões arredondados e sombras leves.
   O logotipo gráfico não é aplicado nesta versão; somente o wordmark NexaOper. */
:root{
  --bg:#f4f7fd;
  --surface:#ffffff;
  --surface-soft:#f8faff;
  --text:#0e2345;
  --muted:#71809a;
  --line:#e5ebf5;
  --primary:#286cff;
  --primary-2:#1f5bea;
  --primary-soft:#edf4ff;
  --danger:#c93434;
  --ok:#17a36b;
  --warn:#a66b00;
  --shadow:0 10px 28px rgba(30,64,130,.075);
  --shadow-lg:0 20px 55px rgba(30,64,130,.12);
  --radius:20px;
}
html{background:#eaf0fa}
body{
  background:
    radial-gradient(circle at 15% 0%,rgba(70,126,255,.08),transparent 30%),
    linear-gradient(180deg,#f8faff 0,#f3f7fd 100%);
  color:var(--text);
}
.app{
  max-width:820px;
  background:linear-gradient(180deg,#fbfdff 0,#f5f8fe 100%);
  box-shadow:0 0 0 1px rgba(207,218,236,.45),0 22px 70px rgba(31,60,111,.08);
}
.brand-nexa{color:#0d2b58}
.brand-oper{color:var(--primary)}
.brand-title,.brand-wordmark{
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1;
}
.brand-title{font-size:31px;margin:0 0 10px}
.brand-wordmark{font-size:30px;white-space:nowrap}
.login{
  background:
    radial-gradient(circle at 50% 8%,rgba(54,112,255,.14),transparent 30%),
    linear-gradient(180deg,#f7faff,#eef4fc);
}
.login-card{
  border:1px solid rgba(218,227,241,.9);
  border-radius:30px;
  padding:32px;
  box-shadow:0 26px 70px rgba(31,61,112,.12);
}
.login-card .muted{margin:0 0 22px;line-height:1.55}
input,select,textarea{
  border-color:#e1e8f3;
  border-radius:15px;
  min-height:48px;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(15,35,70,.02);
}
textarea{min-height:118px}
input:focus,select:focus,textarea:focus{
  border-color:#79a5ff;
  box-shadow:0 0 0 4px rgba(40,108,255,.10);
}
.btn{
  min-height:44px;
  border-radius:14px;
  padding:11px 16px;
  background:#f0f4fa;
  color:#183155;
  box-shadow:none;
}
.btn.primary{
  background:linear-gradient(135deg,var(--primary) 0%,#1e5cea 100%);
  box-shadow:0 9px 22px rgba(40,108,255,.18);
}
.btn.ghost{background:#fff;border-color:#e2e9f4}
.btn.danger{background:linear-gradient(135deg,#d54848,#bd2929)}
.topbar{
  position:sticky;
  top:0;
  z-index:45;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid #e6edf7;
  box-shadow:0 5px 20px rgba(30,61,111,.035);
}
.brand-strip{
  padding:18px 20px 15px;
  border-bottom:1px solid #edf1f7;
}
.topbar-in{
  min-height:96px;
  padding:14px 20px 16px;
  align-items:center;
}
.user-identity{display:flex;align-items:center;gap:11px;min-width:0}
.user-avatar{
  width:42px;height:42px;flex:0 0 42px;border-radius:999px;
  display:grid;place-items:center;background:#f1f6ff;color:var(--primary);
  border:1px solid #e5edfb;
}
.user-avatar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.top-user{font-size:15px;font-weight:900;color:var(--text);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.top-user-label{display:block;margin-top:4px;color:#8a97aa;font-size:10px;font-weight:700}
.topbar-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
.topbar-actions .badge{min-height:36px;align-items:center;padding:7px 12px;background:#eef5ff;color:#1f64e9}
.topbar-actions .badge:not(.offline)::before{content:"";width:7px;height:7px;border-radius:50%;background:#13c57a;margin-right:6px;box-shadow:0 0 0 3px rgba(19,197,122,.10)}
.topbar-actions .badge.offline::before{content:"";width:7px;height:7px;border-radius:50%;background:#e64b4b;margin-right:6px}
.account-password-btn{gap:6px}.account-password-btn>span{font-size:11px;color:#52647e}
.logout-btn{min-width:64px}
.content{padding:20px}
.mobile-top-nav{
  position:relative!important;
  top:auto!important;
  z-index:5!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  padding:0!important;
  margin:0 0 22px!important;
  background:transparent!important;
  overflow:visible;
}
.mobile-top-nav-btn{
  min-width:0!important;
  min-height:174px!important;
  border:1px solid #e4ebf5!important;
  border-radius:22px!important;
  background:#fff!important;
  color:var(--text)!important;
  padding:18px!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  grid-template-rows:auto 1fr auto!important;
  align-items:start!important;
  justify-items:start!important;
  gap:12px 10px!important;
  text-align:left!important;
  box-shadow:0 10px 27px rgba(31,61,112,.07)!important;
  overflow:hidden;
}
.mobile-top-nav-btn.active{
  background:linear-gradient(145deg,#3478ff 0%,#1760ee 100%)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 16px 34px rgba(37,103,244,.25)!important;
}
.nav-card-icon{
  grid-column:1/-1;
  width:42px;height:42px;border-radius:13px;
  display:grid;place-items:center;
  background:#f0f5ff;color:var(--primary);
}
.nav-card-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-top-nav-btn.active .nav-card-icon{background:rgba(255,255,255,.16);color:#fff}
.nav-card-copy{grid-column:1/-1;display:grid;align-content:start;gap:7px;min-width:0}
.nav-card-copy strong{font-size:16px;line-height:1.2;font-weight:900;letter-spacing:-.02em}
.nav-card-copy small{font-size:11px;line-height:1.45;color:#71809a;font-weight:600}
.mobile-top-nav-btn.active .nav-card-copy small{color:rgba(255,255,255,.78)}
.nav-card-arrow{
  align-self:end;justify-self:end;
  width:32px;height:32px;border-radius:999px;
  display:grid;place-items:center;
  border:1px solid #e2e9f4;background:#fff;color:#51627b;font-size:17px;
}
.mobile-top-nav-btn.active>.nav-card-arrow,.mobile-top-nav-btn.active .nav-card-arrow{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff}
.nav-card-footer{grid-column:1/-1;width:100%;display:flex;align-items:end;justify-content:space-between;gap:10px}
.top-nav-count{background:#eef4ff!important;color:var(--primary)!important;min-width:29px;height:25px;padding:0 9px}
.mobile-top-nav-btn.active .top-nav-count{background:rgba(255,255,255,.16)!important;color:#fff!important}
.home-hero{
  padding:5px 2px 10px;
  margin-top:2px;
}
.home-hero h1{font-size:22px;letter-spacing:-.025em;color:#102848}
.home-hero p{line-height:1.5}
.quick-row{gap:12px;margin:12px 0 16px}
.quick-card,.section-card,.history-item,.received-order-card,.material-sheet-card,.type-card,.local-photo-pref,.my-assigned-stock,.my-pending-returns{
  border-color:#e5ecf6!important;
  border-radius:20px!important;
  box-shadow:0 9px 25px rgba(31,61,112,.055)!important;
}
.quick-card{padding:15px 16px;background:#fff}
.quick-num{color:#1458d5;font-size:24px}
.type-grid{gap:12px}
.type-card{padding:17px 18px;background:#fff}
.type-card:hover{border-color:#cddcff!important;box-shadow:0 12px 28px rgba(31,61,112,.08)!important}
.type-icon{background:#eef4ff;color:#246cff;border-radius:13px}
.type-name{letter-spacing:-.015em;color:#102848}
.section-card{padding:19px}
.form-title{margin-bottom:15px}.form-title h2{font-size:21px;letter-spacing:-.02em}
.step-dot{border-radius:15px!important;background:#fff!important;border-color:#e5ebf4!important}
.step-dot.active{background:#eef4ff!important;border-color:#8fb1ff!important;box-shadow:0 8px 20px rgba(40,108,255,.10)!important}
.bottom-actions{background:rgba(247,250,255,.96)!important;border-top:1px solid #e7edf6!important;padding-top:12px!important}
.photo-inline{background:#fbfdff;border-color:#d8e3f2;border-radius:17px}
.photo-btn{border-radius:13px}.camera-btn{background:linear-gradient(135deg,#3276ff,#1f5bea)}
.notice{border:1px solid transparent;border-radius:15px}
.notice.ok{border-color:#d3efdf}.notice.err{border-color:#ffd6d6}.notice.warn{border-color:#f5dfb3}
.history-filter,.received-filter{gap:10px}
.history-filter-btn,.received-filter-btn,.my-sheet-tab{border-radius:15px!important;border-color:#e4ebf5!important;box-shadow:0 5px 14px rgba(31,61,112,.035)}
.history-filter-btn.active,.received-filter-btn.active{background:linear-gradient(135deg,#3478ff,#1f5bea)!important}
.app-modal-card,.inventory-modal-card{border-radius:25px!important;border-color:#e4ebf5!important;box-shadow:0 28px 80px rgba(17,41,83,.24)!important}
.login-loader-card{border-radius:22px!important;box-shadow:0 25px 65px rgba(17,41,83,.20)!important}

@media(min-width:680px){
  .mobile-top-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .mobile-top-nav-btn{min-height:178px!important}
}
@media(max-width:620px){
  .content{padding:16px}
  .brand-strip{padding:16px 16px 13px}
  .brand-wordmark{font-size:27px}
  .topbar-in{padding:12px 16px 14px;min-height:100px;align-items:flex-start}
  .topbar-actions{max-width:220px}
  .topbar-actions .btn{min-height:38px;padding:9px 12px;font-size:11px}
  .account-password-btn{order:3}
  .mobile-top-nav{gap:12px!important}
  .mobile-top-nav-btn{min-height:162px!important;padding:15px!important;border-radius:20px!important}
  .nav-card-copy strong{font-size:14px}.nav-card-copy small{font-size:10px}
  .nav-card-icon{width:38px;height:38px}
  .quick-row{grid-template-columns:1fr 1fr}
}
@media(max-width:390px){
  .topbar-in{display:grid;grid-template-columns:1fr;gap:12px}
  .topbar-actions{max-width:none;justify-content:flex-start}
  .account-password-btn{order:0}
  .mobile-top-nav{gap:10px!important}
  .mobile-top-nav-btn{min-height:155px!important;padding:14px!important}
  .nav-card-copy small{display:none}
  .nav-card-copy strong{font-size:13px}
  .content{padding:13px}
}

/* NexaOper V8.115.20 — fluxo de O.S. em modal, temas e correções de interação */
:root{--border:var(--line);--card:var(--surface)}
.company-name{font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.075em;text-transform:uppercase;color:#8190a7;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.company-name.placeholder{opacity:.62}
.btn-inline-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.account-password-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}
.account-password-btn>span{font-size:inherit!important;color:inherit!important}

.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.theme-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-moon{display:none}
html[data-theme="dark"] .theme-toggle .theme-sun{display:none}
html[data-theme="dark"] .theme-toggle .theme-moon{display:block}
.theme-toggle.compact{min-width:42px}
.theme-toggle-floating{position:fixed;top:max(14px,env(safe-area-inset-top));right:14px;z-index:80;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:9px 12px;font-size:11px;font-weight:850;box-shadow:0 8px 24px rgba(31,61,112,.10)}

/* O formulário deixa de disputar espaço com o dashboard: abre em uma camada própria. */
body.attendance-flow-open{overflow:hidden}
.attendance-flow-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:18px;isolation:isolate}
.attendance-flow-modal.hidden{display:none!important}
.attendance-flow-backdrop{position:absolute;inset:0;background:rgba(8,20,43,.58);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.attendance-flow-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:25px;box-shadow:0 34px 100px rgba(8,20,45,.32)}
.attendance-flow-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:20px 21px 17px;border-bottom:1px solid var(--line);background:var(--surface)}
.attendance-flow-head>div{min-width:0}.attendance-flow-head h2{margin:6px 0 3px;font-size:21px;line-height:1.2;letter-spacing:-.02em}.attendance-flow-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.attendance-close-btn{flex:0 0 auto}
.attendance-flow-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:17px 20px 0;background:var(--bg)}
.attendance-flow-body .stepper{position:sticky;top:-17px;z-index:7;margin:0 -20px 13px;padding:13px 20px 11px;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent)}
.attendance-flow-body .bottom-actions{position:sticky;bottom:0;z-index:9;margin:0 -20px;padding:13px 20px max(13px,env(safe-area-inset-bottom));background:color-mix(in srgb,var(--bg) 96%,transparent);border-top:1px solid var(--line)!important}

/* Interação sem flash branco: o fundo azul nunca transita para a cor-base do botão. */
button,.btn,.photo-btn,.mobile-top-nav-btn,.type-card{transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,color .12s ease!important}
.btn.primary,.btn.primary:hover,.btn.primary:focus-visible,.btn.primary:active,
.camera-btn,.camera-btn:hover,.camera-btn:focus-visible,.camera-btn:active,
.history-filter-btn.active,.history-filter-btn.active:hover,.history-filter-btn.active:focus-visible,.history-filter-btn.active:active,
.received-filter-btn.active,.received-filter-btn.active:hover,.received-filter-btn.active:focus-visible,.received-filter-btn.active:active{
  background:linear-gradient(135deg,#3478ff 0%,#1e5cea 100%)!important;border-color:transparent!important;color:#fff!important;
}
.mobile-top-nav-btn.active,.mobile-top-nav-btn.active:hover,.mobile-top-nav-btn.active:focus-visible,.mobile-top-nav-btn.active:active{
  background:linear-gradient(145deg,#3478ff 0%,#1760ee 100%)!important;border-color:transparent!important;color:#fff!important;
}
.my-sheet-tab.active,.my-sheet-tab.active:hover,.my-sheet-tab.active:focus-visible,.my-sheet-tab.active:active{background:#edf4ff!important;border-color:#9cbaff!important;color:#1f5ed8!important}
@media(hover:hover) and (pointer:fine){
  .btn.primary:not(:disabled):hover,.camera-btn:not(:disabled):hover{filter:brightness(.97);box-shadow:0 10px 23px rgba(40,108,255,.23)!important}
  .mobile-top-nav-btn.active:not(:disabled):hover{filter:brightness(.98);box-shadow:0 17px 35px rgba(37,103,244,.27)!important}
}

/* Tema escuro completo do aplicativo mobile/PWA. */
html[data-theme="dark"]{color-scheme:dark;--bg:#08111f;--surface:#0f1b2d;--card:#0f1b2d;--text:#e9f1ff;--muted:#9aaac0;--line:#25344b;--border:#25344b;--primary:#5b8fff;--primary-soft:#142a4c;--danger:#df5555;--ok:#36c98a;--warn:#e4ad49;--shadow:0 14px 36px rgba(0,0,0,.28)}
html[data-theme="dark"] body{background:linear-gradient(180deg,#08111f,#0a1423);color:var(--text)}
html[data-theme="dark"] .app,html[data-theme="dark"] .content,html[data-theme="dark"] .attendance-flow-body{background:var(--bg)}
html[data-theme="dark"] .login{background:radial-gradient(circle at 50% 4%,rgba(79,134,255,.15),transparent 29%),linear-gradient(180deg,#091422,#07101d)}
html[data-theme="dark"] .login-card,html[data-theme="dark"] .topbar,html[data-theme="dark"] .brand-strip,html[data-theme="dark"] .topbar-in,
html[data-theme="dark"] .quick-card,html[data-theme="dark"] .section-card,html[data-theme="dark"] .history-item,html[data-theme="dark"] .received-order-card,
html[data-theme="dark"] .material-sheet-card,html[data-theme="dark"] .type-card,html[data-theme="dark"] .local-photo-pref,html[data-theme="dark"] .my-assigned-stock-card,
html[data-theme="dark"] .my-pending-returns,html[data-theme="dark"] .material-row,html[data-theme="dark"] .material-summary>div,html[data-theme="dark"] .inventory-group,
html[data-theme="dark"] .inventory-modal-head,html[data-theme="dark"] .inventory-modal-footer,html[data-theme="dark"] .inventory-modal-summary>div,
html[data-theme="dark"] .app-modal-card,html[data-theme="dark"] .attendance-flow-dialog,html[data-theme="dark"] .attendance-flow-head,
html[data-theme="dark"] .removed-material-card,html[data-theme="dark"] .removed-materials-box{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme="dark"] .topbar{background:rgba(15,27,45,.96)!important;box-shadow:0 5px 22px rgba(0,0,0,.18)}
html[data-theme="dark"] .brand-strip{border-color:var(--line)}
html[data-theme="dark"] .brand-nexa,html[data-theme="dark"] .top-user,html[data-theme="dark"] .home-hero h1,html[data-theme="dark"] .type-name{color:#edf4ff!important}
html[data-theme="dark"] .brand-oper{color:#6a9aff!important}
html[data-theme="dark"] .company-name{color:#9cadc5}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,
html[data-theme="dark"] .btn:not(.primary):not(.danger),html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .photo-btn:not(.camera-btn),
html[data-theme="dark"] .history-filter-btn:not(.active),html[data-theme="dark"] .received-filter-btn:not(.active),html[data-theme="dark"] .my-sheet-tab,
html[data-theme="dark"] .custom-attendance-input,html[data-theme="dark"] .inventory-modal-close{background:#101f33!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#73859e}
html[data-theme="dark"] .mobile-top-nav-btn:not(.active){background:#0f1b2d!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:0 10px 27px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .nav-card-copy small,html[data-theme="dark"] .muted,html[data-theme="dark"] .top-user-label{color:var(--muted)!important}
html[data-theme="dark"] .nav-card-icon,html[data-theme="dark"] .type-icon,html[data-theme="dark"] .user-avatar{background:#132844!important;color:#6d9cff!important;border-color:#203754!important}
html[data-theme="dark"] .nav-card-arrow{background:#102036!important;border-color:#2a3c55!important;color:#bdcbe0!important}
html[data-theme="dark"] .top-nav-count,html[data-theme="dark"] .badge{background:#142946!important;color:#7da6ff!important}
html[data-theme="dark"] .topbar-actions .badge{background:#10283a!important;color:#66d6a6!important}
html[data-theme="dark"] .quick-num{color:#76a1ff}
html[data-theme="dark"] .step-dot{background:#101e31!important;border-color:var(--line)!important;color:#9fb0c7!important}
html[data-theme="dark"] .step-dot.active{background:#17325a!important;border-color:#477dd9!important;color:#eaf2ff!important}
html[data-theme="dark"] .step-dot.done{background:#123828!important;border-color:#236344!important;color:#75d9a7!important}
html[data-theme="dark"] .photo-inline,html[data-theme="dark"] .credential-guide,html[data-theme="dark"] .locked-team{background:#0c192a!important;border-color:var(--line)!important}
html[data-theme="dark"] .review-row{border-color:#203049}
html[data-theme="dark"] .material-row-values span,html[data-theme="dark"] .my-assigned-stock-list span{background:#13233a!important;border-color:#263851!important;color:#dce8fa!important}
html[data-theme="dark"] .inventory-modal-card{background:#0a1626!important;border-color:var(--line)!important}
html[data-theme="dark"] .inventory-item{border-color:#203049!important}
html[data-theme="dark"] .inventory-qty{background:#153052!important;color:#8cb1ff!important}
html[data-theme="dark"] .bottom-actions{background:rgba(8,17,31,.96)!important;border-color:var(--line)!important}
html[data-theme="dark"] .attendance-flow-body .stepper,html[data-theme="dark"] .attendance-flow-body .bottom-actions{background:rgba(8,17,31,.96)!important;border-color:var(--line)!important}
html[data-theme="dark"] .theme-toggle-floating{background:#101f33;border-color:var(--line);color:var(--text);box-shadow:0 8px 24px rgba(0,0,0,.25)}
html[data-theme="dark"] .notice{border-color:#28405e}.notice.err{}
html[data-theme="dark"] .notice{background:#10233d;color:#aac8ff}html[data-theme="dark"] .notice.ok{background:#102f25;color:#8ae0b5}html[data-theme="dark"] .notice.err{background:#371b24;color:#ffb4bc}html[data-theme="dark"] .notice.warn{background:#342b18;color:#f0cf84}

@media(max-width:620px){
  .theme-toggle.compact .theme-toggle-label{display:none}
  .theme-toggle.compact{padding:9px 10px!important}
  .attendance-flow-modal{padding:8px;align-items:center}
  .attendance-flow-dialog{width:100%;height:calc(100dvh - 16px);max-height:none;border-radius:22px}
  .attendance-flow-head{padding:15px 15px 13px}.attendance-flow-head h2{font-size:19px}.attendance-flow-head p{display:none}
  .attendance-flow-body{padding:14px 14px 0}.attendance-flow-body .stepper{top:-14px;margin:0 -14px 11px;padding:11px 14px 10px}.attendance-flow-body .bottom-actions{margin:0 -14px;padding:11px 14px max(11px,env(safe-area-inset-bottom))}
}
@media(max-width:390px){.theme-toggle-floating .theme-toggle-label{display:none}.theme-toggle-floating{width:42px;height:42px;padding:0}.topbar-actions .theme-toggle{order:4}.attendance-close-btn{padding:9px 10px;font-size:11px}}
/* V8.115.20 — cobertura adicional do tema escuro em fluxos secundários */
html[data-theme="dark"] .tab:not(.active),html[data-theme="dark"] .pending-bulk-actions,html[data-theme="dark"] .received-client-summary>div,
html[data-theme="dark"] .finish-outcome-modal,html[data-theme="dark"] .finish-result,html[data-theme="dark"] .finish-reschedule-fields,
html[data-theme="dark"] .os-detail-modal,html[data-theme="dark"] .os-detail-header,html[data-theme="dark"] .os-detail-actions,
html[data-theme="dark"] .copy-reference-btn,html[data-theme="dark"] .finish-outcome-close,html[data-theme="dark"] .os-detail-close,
html[data-theme="dark"] .leave-form-actions,html[data-theme="dark"] .finish-outcome-actions,html[data-theme="dark"] .pending-return-item,
html[data-theme="dark"] .photo-rule-active,html[data-theme="dark"] .photo-exception,html[data-theme="dark"] .photo-exception textarea,
html[data-theme="dark"] .my-assigned-stock-stats>span{background:#101f33!important;border-color:var(--line)!important;color:var(--text)!important}
html[data-theme="dark"] .finish-outcome-header{background:#0f1b2d!important;border-color:var(--line)!important}
html[data-theme="dark"] .finish-result.selected{background:#142846!important;border-color:#497bd1!important}
html[data-theme="dark"] .finish-result.success.selected{background:#103225!important;border-color:#2d8b5b!important}
html[data-theme="dark"] .finish-result.warning.selected{background:#332815!important;border-color:#a9782f!important}
html[data-theme="dark"] .finish-result.danger.selected{background:#361b24!important;border-color:#a94a58!important}
html[data-theme="dark"] .finish-result.info.selected{background:#142846!important;border-color:#497bd1!important}
html[data-theme="dark"] .sheet-status.pending,html[data-theme="dark"] .photo-rule-status.warn{background:#332815!important;color:#e7c57a!important}
html[data-theme="dark"] .sheet-status.approved{background:#103225!important;color:#86deb1!important}
html[data-theme="dark"] .sheet-status.correction,html[data-theme="dark"] .pending-status{background:#361b24!important;color:#ffb0ba!important}
html[data-theme="dark"] .license-banner{background:#332815!important;border-color:#5d4824!important;color:#f0d08b!important}
html[data-theme="dark"] .login-loader-card{background:#0f1b2d!important;border-color:var(--line)!important;color:var(--text)!important}


/* NexaOper V8.115.20 — contraste final do tema escuro no mobile/PWA */
html[data-theme="dark"] .history-title,html[data-theme="dark"] .form-title h2,html[data-theme="dark"] .material-sheet-card h2,
html[data-theme="dark"] .material-sheet-card h3,html[data-theme="dark"] .received-order-card b,html[data-theme="dark"] .my-assigned-stock-card b,
html[data-theme="dark"] .pending-return-item b{color:#f0f5ff!important}
html[data-theme="dark"] .history-meta,html[data-theme="dark"] .preview,html[data-theme="dark"] .type-sub,html[data-theme="dark"] .field-help,
html[data-theme="dark"] .app-modal-card p{color:#9cadc4!important}
html[data-theme="dark"] .tabs,html[data-theme="dark"] .history-filter,html[data-theme="dark"] .received-filter{border-color:#25344b!important}
html[data-theme="dark"] .tab.active,html[data-theme="dark"] .history-filter-btn.active,html[data-theme="dark"] .received-filter-btn.active{color:#fff!important}


/* V8.115.21 — ajustes finais do mobile/PWA */
.brand-strip{gap:8px}
.brand-wordmark{font-size:33px !important;line-height:.97 !important;letter-spacing:-.055em !important}
@media(max-width:520px){.brand-wordmark{font-size:29px !important}}

.history-filter-btn span,
.received-filter-btn span{
  font-weight:900 !important;
}
html[data-theme="dark"] .history-filter-btn span,
html[data-theme="dark"] .received-filter-btn span{
  background:#17325a !important;
  color:#dce9ff !important;
}
html[data-theme="dark"] .history-filter-btn.active span,
html[data-theme="dark"] .received-filter-btn.active span{
  background:rgba(255,255,255,.18) !important;
  color:#fff !important;
}
html[data-theme="dark"] .mobile-top-nav-btn strong,
html[data-theme="dark"] .nav-card-copy strong,
html[data-theme="dark"] .history-filter-btn,
html[data-theme="dark"] .received-filter-btn,
html[data-theme="dark"] .my-sheet-tab,
html[data-theme="dark"] .brand-wordmark,
html[data-theme="dark"] .brand-strip .brand-nexa{
  color:#f0f5ff !important;
}
html[data-theme="dark"] .brand-strip .brand-oper{color:#6a9aff !important}
html[data-theme="dark"] .nav-card-copy small,
html[data-theme="dark"] .received-order-card small,
html[data-theme="dark"] .my-assigned-stock-card small,
html[data-theme="dark"] .history-item small,
html[data-theme="dark"] .history-meta,
html[data-theme="dark"] .company-name{
  color:#9cadc4 !important;
}
html[data-theme="dark"] .quick-card .muted,
html[data-theme="dark"] .home-hero p,
html[data-theme="dark"] .form-title .badge + h2,
html[data-theme="dark"] .form-title h2{
  color:#f0f5ff !important;
}
html[data-theme="dark"] .quick-num,
html[data-theme="dark"] #todayCount,
html[data-theme="dark"] #monthCount,
html[data-theme="dark"] #pendingCount,
html[data-theme="dark"] #successMonth,
html[data-theme="dark"] #historyPendingBadge,
html[data-theme="dark"] #historySentBadge,
html[data-theme="dark"] #receivedPendingBadge,
html[data-theme="dark"] #receivedAcceptedBadge,
html[data-theme="dark"] #receivedCompletedBadge{
  color:inherit !important;
}


/* V8.115.26 — hierarquia da marca no cabeçalho mobile */
.brand-strip{
  display:grid !important;
  gap:4px !important;
  align-content:center;
}
.mobile-product-wordmark{
  display:inline-flex;
  align-items:baseline;
  width:max-content;
  font-size:34px !important;
  line-height:.96 !important;
  letter-spacing:-.055em !important;
  margin:1px 0 2px;
}
.mobile-app-subtitle{
  color:#536681;
  font-size:20px;
  line-height:1.16;
  font-weight:850;
  letter-spacing:-.025em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
@media(max-width:520px){
  .mobile-product-wordmark{font-size:30px !important}
  .mobile-app-subtitle{font-size:18px}
}
@media(max-width:380px){
  .mobile-product-wordmark{font-size:28px !important}
  .mobile-app-subtitle{font-size:17px}
}
html[data-theme="dark"] .mobile-product-wordmark .brand-nexa{color:#f2f6ff !important}
html[data-theme="dark"] .mobile-product-wordmark .brand-oper{color:#6a9aff !important}
html[data-theme="dark"] .mobile-app-subtitle{color:#dbe7f7 !important}


/* V8.115.27 — ordem do cabeçalho do mobile */
.brand-strip{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.company-name{order:2;margin-bottom:0;max-width:100%}
.mobile-product-wordmark{order:1}
.mobile-app-subtitle{order:3;font-size:14px;line-height:1.1;font-weight:800;letter-spacing:-.015em;color:#5f718d}
html[data-theme="dark"] .mobile-app-subtitle{color:#aab8cb !important}

/* V8.115.43 — seletor de tema somente com ícones em todo o projeto */
.theme-toggle{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  flex:0 0 42px!important;
  padding:0!important;
  gap:0!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
}
.theme-toggle svg{
  width:18px!important;
  height:18px!important;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
/* No claro, a lua indica a ação de entrar no escuro; no escuro, o sol indica voltar ao claro. */
.theme-toggle .theme-sun{display:none!important}
.theme-toggle .theme-moon{display:block!important}
html[data-theme="dark"] .theme-toggle .theme-moon{display:none!important}
html[data-theme="dark"] .theme-toggle .theme-sun{display:block!important}
.theme-toggle-floating{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  flex-basis:44px!important;
  padding:0!important;
  border-radius:50%!important;
}
@media(hover:hover) and (pointer:fine){
  .theme-toggle:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(31,61,112,.15)!important}
  html[data-theme="dark"] .theme-toggle:hover{box-shadow:0 10px 24px rgba(0,0,0,.28)!important}
}

/* V8.115.45 — responsividade definitiva do aplicativo/PWA
   Usa toda a largura disponível no PC e reorganiza a interface no celular. */
html,body{
  width:100%;
  min-width:0;
  max-width:none;
}
body{overflow-x:hidden}
img,video,canvas{max-width:100%;height:auto}
input,select,textarea{max-width:100%}

.app{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
}
.content{
  width:100%;
  max-width:none;
  min-width:0;
  padding:clamp(14px,2vw,28px) !important;
}
.app,
.content,
.section-card,
.history-item,
.received-order-card,
.material-sheet-card,
.type-card,
.local-photo-pref,
.my-assigned-stock-card,
.my-pending-returns,
.topbar,
.topbar-in,
.brand-strip,
.mobile-top-nav{
  min-width:0;
  max-width:100%;
}
.topbar,
.brand-strip,
.topbar-in{width:100%}
.mobile-top-nav{width:100%}

@media(min-width:1100px){
  .mobile-top-nav{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  .mobile-top-nav-btn{
    min-height:160px !important;
  }
  .quick-row{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  .type-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:620px){
  .app{
    width:100% !important;
    max-width:none !important;
  }
  .topbar{
    position:sticky !important;
    top:0 !important;
    width:100% !important;
  }
  .brand-strip{
    width:100% !important;
    padding:calc(12px + env(safe-area-inset-top)) 14px 10px !important;
  }
  .mobile-product-wordmark{font-size:27px !important}
  .mobile-app-subtitle{
    font-size:13px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  .topbar-in{
    width:100% !important;
    min-height:0 !important;
    padding:10px 14px 12px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:10px !important;
  }
  .user-identity{min-width:0 !important}
  .top-user{
    max-width:100% !important;
    min-width:0 !important;
    font-size:13px !important;
  }
  .topbar-actions{
    max-width:none !important;
    min-width:0 !important;
    display:flex !important;
    justify-content:flex-end !important;
    gap:6px !important;
    flex-wrap:wrap !important;
  }
  .topbar-actions .badge{
    min-height:34px !important;
    padding:6px 9px !important;
    font-size:10px !important;
  }
  .topbar-actions .btn{
    min-height:38px !important;
    padding:8px 10px !important;
    font-size:10px !important;
  }
  
  .account-password-btn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    padding:0 !important;
  }
  .logout-btn{
    min-width:52px !important;
    padding-left:9px !important;
    padding-right:9px !important;
  }

  .content{
    width:100% !important;
    max-width:none !important;
    padding:12px !important;
    padding-bottom:calc(14px + env(safe-area-inset-bottom)) !important;
  }
  .mobile-top-nav{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    margin-bottom:16px !important;
  }
  .mobile-top-nav-btn{
    min-width:0 !important;
    min-height:136px !important;
    padding:13px !important;
    border-radius:18px !important;
    gap:8px !important;
  }
  .nav-card-copy strong{font-size:13px !important}
  .nav-card-copy small{
    font-size:9px !important;
    line-height:1.35 !important;
  }
  .nav-card-icon{
    width:36px !important;
    height:36px !important;
  }
  .nav-card-icon svg{
    width:19px !important;
    height:19px !important;
  }
  .nav-card-arrow{
    width:29px !important;
    height:29px !important;
  }

  .quick-row,
  .material-summary,
  .my-assigned-stock-stats,
  .inventory-modal-summary{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .grid,
  .review-row,
  .received-client-summary,
  .received-compact-info,
  .os-detail-grid,
  .removed-material-grid,
  .inventory-equipment-grid{
    grid-template-columns:1fr !important;
  }
  .section-card{
    width:100% !important;
    padding:14px !important;
    border-radius:16px !important;
  }
  .form-title{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
  .bottom-actions{gap:8px !important}
  .bottom-actions .btn{
    min-width:0 !important;
    padding:11px 8px !important;
    font-size:11px !important;
  }

  .app-modal,
  .inventory-modal,
  .attendance-flow-modal,
  .finish-outcome-overlay{
    padding:8px !important;
  }
  .app-modal-card,
  .inventory-modal-card,
  .attendance-flow-dialog,
  .finish-outcome-modal,
  .os-detail-modal{
    width:100% !important;
    max-width:100% !important;
    max-height:calc(100dvh - 16px) !important;
  }
}

@media(max-width:420px){
  .topbar-in{
    grid-template-columns:1fr !important;
    align-items:stretch !important;
  }
  .topbar-actions{
    width:100% !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px 52px !important;
    align-items:center !important;
    justify-content:stretch !important;
  }
  .topbar-actions .badge{
    min-width:0 !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .topbar-actions .theme-toggle{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
  }
  .topbar-actions .logout-btn{
    width:52px !important;
    min-width:52px !important;
    max-width:52px !important;
  }
  .mobile-top-nav{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .mobile-top-nav-btn{
    min-height:120px !important;
    padding:11px !important;
  }
  .nav-card-copy small{display:none !important}
  .quick-row,
  .material-summary,
  .my-assigned-stock-stats,
  .inventory-modal-summary,
  .history-summary-row,
  .material-sheet-auto{
    grid-template-columns:1fr !important;
  }
  .history-filter,.received-filter{grid-template-columns:1fr !important}
  .photo-actions,
  .account-password-actions,
  .custom-attendance-actions,
  .finish-outcome-actions,
  .leave-form-actions{
    grid-template-columns:1fr !important;
  }
  .bottom-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
  }
  .bottom-actions .btn:last-child:nth-child(3){grid-column:1/-1 !important}
}

@media(max-width:340px){
  .topbar-actions{
    grid-template-columns:1fr 42px !important;
  }
  .topbar-actions .badge{grid-column:1/-1}
  .topbar-actions .logout-btn{
    width:auto !important;
    max-width:none !important;
  }
  .mobile-top-nav{grid-template-columns:1fr !important}
  .mobile-top-nav-btn{min-height:108px !important}
  .quick-row{grid-template-columns:1fr !important}
}

/* V8.115.107 — histórico mobile 2 colunas, indicadores 2x2 e checkbox unificado */
input[type="checkbox"]{
  -webkit-appearance:none !important;
  appearance:none !important;
  box-sizing:border-box !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  min-height:18px !important;
  max-height:18px !important;
  flex:0 0 18px !important;
  display:inline-block !important;
  align-self:center !important;
  margin:0 !important;
  padding:0 !important;
  border:1.5px solid #93a4bb !important;
  border-radius:5px !important;
  background-color:#fff !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  background-size:12px 12px !important;
  box-shadow:none !important;
  outline:none !important;
  vertical-align:middle !important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
input[type="checkbox"]:checked{
  border-color:var(--primary) !important;
  background-color:var(--primary) !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2 6.5 11.3 12.8 4.9' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
input[type="checkbox"]:indeterminate{
  border-color:var(--primary) !important;
  background-color:var(--primary) !important;
  background-image:linear-gradient(#fff,#fff) !important;
  background-size:9px 2px !important;
}
input[type="checkbox"]:focus{
  outline:none !important;
  box-shadow:none !important;
}
input[type="checkbox"]:focus-visible{
  outline:none !important;
  box-shadow:0 0 0 2px rgba(47,107,255,.14) !important;
}
html[data-theme="dark"] input[type="checkbox"]{
  border-color:#526783 !important;
  background-color:#0d1a2c !important;
}
html[data-theme="dark"] input[type="checkbox"]:checked,
html[data-theme="dark"] input[type="checkbox"]:indeterminate{
  border-color:#4f83ff !important;
  background-color:#3478ff !important;
}

/* As duas abas pertencem ao mesmo controle e permanecem lado a lado no celular. */
.history-filter{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
}
.history-filter-btn{
  min-width:0 !important;
  width:100% !important;
  min-height:58px !important;
  padding:8px 6px !important;
  font-size:12px !important;
  overflow:hidden;
}
.history-filter-btn span{
  min-width:20px !important;
  height:20px !important;
  padding:0 5px !important;
  font-size:10px !important;
}

/* Painel de indicadores: 4 cartões em 2x2 no celular e 4 colunas em telas largas. */
.quick-row{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
}
.quick-card{
  min-width:0 !important;
  min-height:86px;
  padding:12px !important;
  display:grid;
  align-content:start;
  gap:4px;
}
.quick-card .quick-num{
  font-size:21px !important;
  line-height:1 !important;
}
.quick-card .muted{
  min-width:0;
  font-size:10.5px !important;
  line-height:1.28 !important;
  overflow-wrap:anywhere;
}

@media(min-width:900px){
  .quick-row{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}

@media(max-width:420px){
  .history-filter{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .quick-row{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .quick-card{min-height:82px;padding:11px !important}
  .history-filter-btn{font-size:11px !important}
}

@media(max-width:340px){
  .quick-row{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .history-filter{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .quick-card{padding:10px !important}
  .quick-card .muted{font-size:9.5px !important}
  .history-filter-btn{padding:7px 4px !important;font-size:10.5px !important}
}

/* Somente viewports excepcionalmente estreitos abandonam o 2x2 para evitar corte real. */
@media(max-width:270px){
  .quick-row{grid-template-columns:1fr !important}
  .history-filter{grid-template-columns:1fr !important}
}

/* V8.115.107 — cabeçalho operacional sem quebra causada pelo badge Online */
@media(max-width:620px){
  .topbar-in{
    display:grid !important;
    grid-template-columns:1fr !important;
    align-items:stretch !important;
    gap:9px !important;
  }
  .topbar-actions{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(72px,1fr) 42px 42px 54px !important;
    align-items:center !important;
    gap:6px !important;
    justify-content:stretch !important;
  }
  .topbar-actions .badge{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:38px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .topbar-actions .theme-toggle,
  .topbar-actions .account-password-btn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 !important;
  }
  .topbar-actions .logout-btn{
    width:54px !important;
    min-width:54px !important;
    max-width:54px !important;
    min-height:38px !important;
    padding:0 8px !important;
  }
}
@media(max-width:300px){
  .topbar-actions{
    grid-template-columns:minmax(58px,1fr) 38px 38px 48px !important;
    gap:4px !important;
  }
  .topbar-actions .theme-toggle,
  .topbar-actions .account-password-btn{
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
  }
  .topbar-actions .logout-btn{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    font-size:9px !important;
  }
}

/* V8.115.107 — cabeçalho mobile com ações no topo direito e Online abaixo */
.topbar-action-buttons{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.topbar-status-row{
  display:flex;
  justify-content:flex-end;
  width:100%;
}
.topbar-status-row .badge{
  min-height:32px !important;
  padding:5px 10px !important;
  font-size:10.5px !important;
  box-shadow:none !important;
  border-radius:999px !important;
}
.topbar-status-row .badge:not(.offline)::before{
  width:6px !important;
  height:6px !important;
  margin-right:6px !important;
  box-shadow:0 0 0 2px rgba(19,197,122,.08) !important;
}
.topbar-status-row .badge.offline::before{
  width:6px !important;
  height:6px !important;
  margin-right:6px !important;
}
@media(max-width:620px){
  .topbar-in{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "identity actions"
      "status status" !important;
    align-items:start !important;
    gap:8px 10px !important;
  }
  .user-identity{grid-area:identity !important}
  
  .topbar-action-buttons{
    grid-area:actions !important;
    display:grid !important;
    grid-template-columns:42px 42px 54px !important;
    justify-content:end !important;
    align-items:center !important;
    gap:6px !important;
  }
  .topbar-status-row{
    grid-area:status !important;
    justify-content:flex-start !important;
  }
  .topbar-status-row .badge{
    min-width:116px !important;
    width:auto !important;
    max-width:100% !important;
    background:#eef4ff !important;
  }
  .account-password-btn>span{display:none !important}
  .topbar-action-buttons .account-password-btn,
  .topbar-action-buttons .theme-toggle{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 !important;
  }
  .topbar-action-buttons .logout-btn{
    width:54px !important;
    min-width:54px !important;
    max-width:54px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 8px !important;
  }
}
@media(max-width:360px){
  .topbar-action-buttons{
    grid-template-columns:38px 38px 48px !important;
    gap:5px !important;
  }
  .topbar-action-buttons .account-password-btn,
  .topbar-action-buttons .theme-toggle{
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
  }
  .topbar-action-buttons .logout-btn{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    font-size:9.5px !important;
  }
  .topbar-status-row .badge{
    min-height:30px !important;
    padding:4px 9px !important;
    font-size:10px !important;
  }
}
html[data-theme="dark"] .topbar-status-row .badge{
  background:#10283a !important;
  color:#66d6a6 !important;
}

/* V8.115.107 — cabeçalho mobile compacto, sem overflow e Online proporcional */
@media(max-width:620px){
  .topbar,
  .topbar-in,
  .brand-strip{
    max-width:100% !important;
    min-width:0 !important;
  }
  .topbar-in{
    width:100% !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "identity actions"
      "status status" !important;
    column-gap:8px !important;
    row-gap:6px !important;
    padding:9px 12px 10px !important;
    overflow-x:clip !important;
  }
  .user-identity{
    grid-area:identity !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  .user-identity>div{
    min-width:0 !important;
    overflow:hidden !important;
  }
  .top-user{
    max-width:100% !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .topbar-actions{display:contents !important}
  .topbar-action-buttons{
    grid-area:actions !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    align-items:flex-start !important;
    gap:5px !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  /* Corrige regra legada que empurrava o botão de tema para o fim. */
  .topbar-action-buttons .account-password-btn{order:1 !important}
  .topbar-action-buttons .theme-toggle{order:2 !important}
  .topbar-action-buttons .logout-btn{order:3 !important}
  .topbar-action-buttons .account-password-btn,
  .topbar-action-buttons .theme-toggle{
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    padding:0 !important;
    border-radius:12px !important;
    box-shadow:none !important;
  }
  .topbar-action-buttons .logout-btn{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    padding:0 7px !important;
    border-radius:12px !important;
    box-shadow:none !important;
    font-size:9.5px !important;
  }
  .topbar-status-row{
    grid-area:status !important;
    width:auto !important;
    min-width:0 !important;
    justify-content:flex-start !important;
    align-items:center !important;
  }
  .topbar-status-row .badge{
    width:max-content !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:24px !important;
    height:24px !important;
    padding:3px 8px !important;
    border-radius:999px !important;
    font-size:9.5px !important;
    line-height:1 !important;
    box-shadow:none !important;
    background:#eef4ff !important;
  }
  .topbar-status-row .badge::before,
  .topbar-status-row .badge:not(.offline)::before,
  .topbar-status-row .badge.offline::before{
    width:5px !important;
    height:5px !important;
    margin-right:5px !important;
    box-shadow:none !important;
  }
}
@media(max-width:340px){
  .topbar-in{
    padding-left:10px !important;
    padding-right:10px !important;
    column-gap:5px !important;
  }
  .user-avatar{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
  }
  .user-identity{gap:8px !important}
  .topbar-action-buttons{gap:4px !important}
  .topbar-action-buttons .account-password-btn,
  .topbar-action-buttons .theme-toggle{
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
  }
  .topbar-action-buttons .logout-btn{
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    font-size:9px !important;
  }
  .topbar-status-row .badge{
    height:22px !important;
    min-height:22px !important;
    padding:2px 7px !important;
    font-size:9px !important;
  }
}
html[data-theme="dark"] .topbar-status-row .badge{
  background:#10283a !important;
  box-shadow:none !important;
}

/* V8.115.107 — ações finais do formulário sempre na mesma linha no celular */
@media(max-width:620px){
  .attendance-flow-body .bottom-actions,
  #formBaixa .bottom-actions,
  .bottom-actions{
    display:grid !important;
    grid-template-columns:minmax(0,.78fr) minmax(0,1.35fr) !important;
    align-items:stretch !important;
    gap:8px !important;
  }
  .bottom-actions #prevBtn,
  .bottom-actions #nextBtn,
  .bottom-actions #sendBtn{
    grid-column:auto !important;
    min-width:0 !important;
    width:100% !important;
    margin:0 !important;
  }
  /* A regra antiga fazia o terceiro botão ocupar uma linha inteira. */
  .bottom-actions .btn:last-child:nth-child(3),
  .bottom-actions #sendBtn:last-child{
    grid-column:auto !important;
  }
  .bottom-actions #prevBtn{
    grid-column:1 !important;
  }
  .bottom-actions #nextBtn:not(.hidden),
  .bottom-actions #sendBtn:not(.hidden){
    grid-column:2 !important;
  }
}
@media(max-width:300px){
  .attendance-flow-body .bottom-actions,
  #formBaixa .bottom-actions,
  .bottom-actions{
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr) !important;
    gap:6px !important;
  }
  .bottom-actions .btn{
    padding-left:6px !important;
    padding-right:6px !important;
    font-size:10px !important;
  }
}

/* V8.115.107 — card de histórico com status ao lado do título e botão centralizado */
.history-summary-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:6px !important;
}
.history-top-line{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  width:100% !important;
}
.history-top-line .history-title{
  margin:0 !important;
  min-width:0 !important;
  flex:1 1 auto !important;
}
.history-top-line .history-status-wrap{
  flex:0 0 auto !important;
  align-self:center !important;
  justify-content:flex-end !important;
}
.history-summary-row .history-main-info{
  display:grid !important;
  gap:2px !important;
}
.pending-card .history-actions,
.history-actions.centered{
  justify-content:center !important;
}
.pending-card .history-actions .btn,
.history-actions.centered .btn{
  width:min(270px,100%) !important;
  margin-inline:auto !important;
}
@media(max-width:390px){
  .history-top-line{
    gap:8px !important;
  }
  .history-top-line .telegram-wait-status{
    min-width:112px !important;
    font-size:8.8px !important;
    padding:0 8px !important;
  }
}

/* V8.115.107 — card aguardando Telegram mais organizado + Offline vermelho */
.pending-card .history-summary-row{
  grid-template-columns:minmax(0,1fr) max-content !important;
  align-items:start !important;
  column-gap:10px !important;
}
.pending-card .history-status-wrap{
  align-self:start !important;
  justify-self:end !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}
.pending-card .telegram-wait-status{
  min-width:0 !important;
  height:28px !important;
  padding:0 10px !important;
  font-size:9px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.pending-card .history-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:100% !important;
  margin-top:14px !important;
}
.pending-card .history-actions .btn{
  width:min(100%,280px) !important;
  max-width:280px !important;
  margin-inline:auto !important;
}
@media(max-width:420px){
  .pending-card .history-summary-row{
    grid-template-columns:minmax(0,1fr) max-content !important;
    align-items:start !important;
  }
  .pending-card .telegram-wait-status{
    height:26px !important;
    padding:0 8px !important;
    font-size:8.5px !important;
  }
  .pending-card .history-actions .btn{
    width:min(100%,260px) !important;
    max-width:260px !important;
  }
}

/* Status de conexão: Offline deve ser vermelho, inclusive no tema escuro. */
#netBadge.offline,
.topbar-status-row .badge.offline,
.topbar-actions .badge.offline{
  background:#fff0f1 !important;
  color:#c92f43 !important;
  border-color:#f1c7cd !important;
  box-shadow:none !important;
}
#netBadge.offline::before,
.topbar-status-row .badge.offline::before,
.topbar-actions .badge.offline::before{
  background:#e5485b !important;
  box-shadow:none !important;
}
html[data-theme="dark"] #netBadge.offline,
html[data-theme="dark"] .topbar-status-row .badge.offline,
html[data-theme="dark"] .topbar-actions .badge.offline{
  background:#341820 !important;
  color:#ff8d9c !important;
  border-color:#61303b !important;
  box-shadow:none !important;
}
html[data-theme="dark"] #netBadge.offline::before,
html[data-theme="dark"] .topbar-status-row .badge.offline::before,
html[data-theme="dark"] .topbar-actions .badge.offline::before{
  background:#ff5f70 !important;
  box-shadow:none !important;
}

/* V8.115.107 — card do histórico mais organizado e status Offline vermelho */
.history-summary-row{
  align-items:start !important;
}
.history-main-info{
  padding-right:6px !important;
}
.history-status-wrap{
  align-self:start !important;
  justify-content:flex-end !important;
  padding-top:1px !important;
}
.pending-card .history-title,
.sent-card .history-title,
.history-item .history-title{
  line-height:1.2 !important;
}
.pending-card .history-actions,
.history-item .history-actions{
  width:100% !important;
  justify-content:center !important;
  align-items:center !important;
}
.pending-card .history-actions .btn,
.history-item .history-actions .btn{
  width:min(100%,240px) !important;
  min-width:0 !important;
  margin:0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
@media(max-width:390px){
  .history-summary-row{
    grid-template-columns:minmax(0,1fr) max-content !important;
    column-gap:10px !important;
  }
  .history-status-wrap{
    width:auto !important;
    min-width:0 !important;
  }
  .telegram-wait-status{
    min-width:114px !important;
    font-size:9px !important;
  }
}
.topbar-status-row .badge.offline{
  background:#fff0f0 !important;
  color:#b42318 !important;
}
.topbar-status-row .badge.offline::before{
  background:#e04a4a !important;
}
html[data-theme="dark"] .topbar-status-row .badge.offline{
  background:#351a1f !important;
  color:#ff9f9f !important;
}
html[data-theme="dark"] .topbar-status-row .badge.offline::before{
  background:#ff6666 !important;
}

/* V8.115.107 — tema escuro no padrão para O.S. recebidas e modal de detalhes */
html[data-theme="dark"] .received-service-type b{
  background:#142846 !important;
  border:1px solid #29456c !important;
  color:#d9e7ff !important;
}
html[data-theme="dark"] .received-compact-info > div,
html[data-theme="dark"] .received-compact-info .received-neighborhood,
html[data-theme="dark"] .os-detail-item,
html[data-theme="dark"] .os-detail-reference{
  background:#101f33 !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .received-compact-info span,
html[data-theme="dark"] .os-detail-item > span,
html[data-theme="dark"] .received-card-hint,
html[data-theme="dark"] .os-detail-meta{
  color:#9cadc4 !important;
}
html[data-theme="dark"] .received-compact-info b,
html[data-theme="dark"] .os-detail-value-row b{
  color:#f0f5ff !important;
}
html[data-theme="dark"] .received-compact-info .received-neighborhood span,
html[data-theme="dark"] .os-detail-reference > span,
html[data-theme="dark"] .received-card-hint span:last-child{
  color:#7da6ff !important;
}
html[data-theme="dark"] .received-card-hint{
  border-top-color:var(--line) !important;
}
html[data-theme="dark"] .copy-reference-btn{
  background:#142846 !important;
  border-color:#2d4d77 !important;
  color:#d6e4ff !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .copy-reference-btn.copied{
  background:#103225 !important;
  border-color:#2d8b5b !important;
  color:#8ae0b5 !important;
}

/* V8.115.107 — ajustes finais de contadores, contraste, preview de foto e setas */
.preview{
  align-items:flex-start !important;
}
.preview span{
  min-width:0 !important;
  flex:1 1 auto !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
  line-height:1.35 !important;
}
.preview b,
.preview small{
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
}
.nav-card-arrow{
  align-self:center !important;
  justify-self:end !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
}
.nav-card-footer{
  align-items:center !important;
}
html[data-theme="dark"] .stock-field-help,
html[data-theme="dark"] .field-help.stock-field-help{
  background:#101f33 !important;
  border:1px solid var(--line) !important;
  color:#9cadc4 !important;
}
html[data-theme="dark"] .preview{
  color:#9cadc4 !important;
}
html[data-theme="dark"] .preview b{
  color:#f0f5ff !important;
}

/* V8.115.107 — meu estoque no padrão dark e status de regra oculta quando inativa */
.photo-rule-status.hidden{
  display:none !important;
}
html[data-theme="dark"] .inventory-item-title strong,
html[data-theme="dark"] .inventory-empty b,
html[data-theme="dark"] .inventory-group-title span,
html[data-theme="dark"] .inventory-equipment strong{
  color:#eef4ff !important;
}
html[data-theme="dark"] .inventory-item-title small,
html[data-theme="dark"] .inventory-empty span,
html[data-theme="dark"] .inventory-equipment small{
  color:#9cadc4 !important;
}
html[data-theme="dark"] .inventory-item-details > span,
html[data-theme="dark"] .inventory-equipment,
html[data-theme="dark"] .inventory-empty > div{
  background:#101f33 !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] .inventory-item-details small{
  color:#9cadc4 !important;
}
html[data-theme="dark"] .inventory-item-details b{
  color:#eef4ff !important;
}
html[data-theme="dark"] .inventory-item-details .inventory-detail-balance,
html[data-theme="dark"] .inventory-qty{
  background:#17325a !important;
  border-color:#416aa4 !important;
  color:#dce9ff !important;
}
html[data-theme="dark"] .inventory-item-details .inventory-detail-balance b,
html[data-theme="dark"] .inventory-qty,
html[data-theme="dark"] .inventory-group-title b,
html[data-theme="dark"] .inventory-equipment span,
html[data-theme="dark"] .inventory-empty > div{
  color:#7da6ff !important;
}

/* V8.115.107 — card de Telegram pendente alinhado no mobile */
.pending-history-card{
  padding:13px 13px 14px !important;
}
.pending-history-card .history-pending-grid{
  display:grid !important;
  grid-template-columns:20px minmax(0,1fr) max-content !important;
  align-items:start !important;
  column-gap:9px !important;
  row-gap:3px !important;
  width:100% !important;
}
.pending-history-card .history-pending-check{
  width:20px !important;
  min-width:20px !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  padding-top:2px !important;
}

.pending-history-card .history-pending-copy{
  min-width:0 !important;
  display:grid !important;
  gap:3px !important;
  padding-top:0 !important;
}
.pending-history-card .history-title{
  margin:0 !important;
  font-size:14px !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  overflow-wrap:anywhere !important;
}
.pending-history-card .history-meta{
  margin:0 !important;
  font-size:9.5px !important;
  line-height:1.25 !important;
  min-width:0 !important;
  overflow-wrap:anywhere !important;
}
.pending-history-card .history-pending-status{
  align-self:start !important;
  justify-self:end !important;
  width:auto !important;
  min-width:0 !important;
  height:25px !important;
  padding:0 8px !important;
  margin:0 !important;
  font-size:8px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.pending-history-card .history-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin:12px 0 0 !important;
  padding:0 !important;
  width:100% !important;
}
.pending-history-card .history-actions .btn{
  width:min(220px,100%) !important;
  max-width:220px !important;
  min-height:44px !important;
  margin:0 auto !important;
  padding:10px 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  line-height:1.2 !important;
}
@media(max-width:360px){
  .pending-history-card{
    padding:12px !important;
  }
  .pending-history-card .history-pending-grid{
    grid-template-columns:18px minmax(0,1fr) max-content !important;
    column-gap:7px !important;
  }
  .pending-history-card .history-pending-check{
    width:18px !important;
    min-width:18px !important;
  }
  .pending-history-card .history-pending-check input{
    width:16px !important;
    height:16px !important;
    min-width:16px !important;
  }
  .pending-history-card .history-title{font-size:13px !important}
  .pending-history-card .history-meta{font-size:9px !important}
  .pending-history-card .history-pending-status{
    height:24px !important;
    padding:0 7px !important;
    font-size:7.5px !important;
  }
  .pending-history-card .history-actions .btn{
    width:min(210px,100%) !important;
    max-width:210px !important;
  }
}

/* V8.115.107 — card aguardando Telegram no layout solicitado */
.pending-history-card{
  padding:14px 14px 15px !important;
}
.pending-history-card .history-pending-grid{
  display:grid !important;
  grid-template-columns:20px minmax(0,1fr) !important;
  align-items:start !important;
  column-gap:10px !important;
  row-gap:0 !important;
  width:100% !important;
}
.pending-history-card .history-pending-check{
  width:20px !important;
  min-width:20px !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  padding-top:3px !important;
}
.pending-history-card .history-pending-check input{
  width:17px !important;
  height:17px !important;
  min-width:17px !important;
  margin:0 !important;
}
.pending-history-card .history-pending-content{
  min-width:0 !important;
  display:grid !important;
  gap:4px !important;
}
.pending-history-card .history-top-line{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) max-content !important;
  align-items:center !important;
  column-gap:10px !important;
}
.pending-history-card .history-title{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.18 !important;
  font-weight:900 !important;
  overflow-wrap:anywhere !important;
}
.pending-history-card .history-login-line,
.pending-history-card .history-date-line{
  margin:0 !important;
  font-size:10px !important;
  line-height:1.3 !important;
  color:#9cadc4 !important;
  overflow-wrap:anywhere !important;
}
.pending-history-card .history-pending-status{
  align-self:center !important;
  justify-self:end !important;
  width:auto !important;
  min-width:112px !important;
  height:26px !important;
  padding:0 10px !important;
  margin:0 !important;
  font-size:8.5px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.pending-history-card .history-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin:14px 0 0 !important;
  padding:0 !important;
  width:100% !important;
}
.pending-history-card .history-actions .btn{
  width:min(100%,220px) !important;
  max-width:220px !important;
  min-height:44px !important;
  margin:0 auto !important;
  padding:10px 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  line-height:1.2 !important;
}
@media(max-width:360px){
  .pending-history-card .history-top-line{
    column-gap:8px !important;
  }
  .pending-history-card .history-title{font-size:12.5px !important}
  .pending-history-card .history-login-line,
  .pending-history-card .history-date-line{font-size:9.5px !important}
  .pending-history-card .history-pending-status{
    min-width:102px !important;
    font-size:7.8px !important;
    padding:0 8px !important;
  }
  .pending-history-card .history-actions .btn{
    max-width:210px !important;
  }
}

/* V8.115.107 — card de histórico mobile mais compacto e alinhado */
.pending-history-card .history-actions .btn{
  width:min(100%,190px) !important;
  max-width:190px !important;
  min-height:40px !important;
  padding:9px 12px !important;
  font-size:11px !important;
}
.sent-card{
  padding:14px 14px 14px 12px !important;
}
.sent-card .history-summary-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) max-content !important;
  align-items:start !important;
  column-gap:10px !important;
  width:100% !important;
}
.sent-card .history-main-info{
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  gap:3px !important;
  justify-items:start !important;
  align-items:start !important;
  text-align:left !important;
}
.sent-card .history-title,
.sent-card .history-meta{
  width:100% !important;
  margin:0 !important;
  text-align:left !important;
}
.sent-card .history-status-wrap{
  width:auto !important;
  min-width:82px !important;
  align-self:start !important;
  justify-content:flex-end !important;
  padding-top:1px !important;
}
@media(max-width:360px){
  .pending-history-card .history-actions .btn{
    width:min(100%,178px) !important;
    max-width:178px !important;
    font-size:10.5px !important;
  }
  .sent-card{
    padding:13px 12px 13px 10px !important;
  }
}

/* V8.115.107 — ativação/reativação acessível diretamente no login mobile */
.mobile-license-state,
.mobile-license-activation{
  margin:16px 0 18px;
  padding:15px;
  border:1px solid #d9e3f2;
  border-radius:16px;
  background:#f8fbff;
  display:grid;
  gap:12px;
}
.mobile-license-state.blocked{border-color:#f0d6d6;background:#fffafa}
.mobile-license-state-copy,
.mobile-license-activation-head{display:grid;gap:4px}
.mobile-license-state-copy b,
.mobile-license-activation-head b{font-size:15px;font-weight:850;line-height:1.3;color:var(--text)}
.mobile-license-state-copy span,
.mobile-license-activation-head span{font-size:12px;line-height:1.45;color:var(--muted)}
.mobile-license-action{width:100%;min-height:44px}
.mobile-license-admin-link{
  display:block;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  padding:2px 0;
}
.mobile-license-admin-link:active{color:var(--primary)}
.mobile-license-activation .field{gap:6px}
.mobile-license-activation .field label{font-size:12px}
.mobile-license-activation .field input{min-height:46px}
.mobile-license-activation-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mobile-license-activation-actions .btn{min-height:44px;width:100%}
html[data-theme="dark"] .mobile-license-state,
html[data-theme="dark"] .mobile-license-activation{background:#101f33;border-color:var(--line)}
html[data-theme="dark"] .mobile-license-state.blocked{background:#211923;border-color:#5b3542}
html[data-theme="dark"] .mobile-license-admin-link{color:#9fb1cc}
@media(max-width:360px){
  .mobile-license-activation-actions{grid-template-columns:1fr}
}

/* V8.115.108 — tipografia mobile um pouco maior sem quebrar o layout */
@media(max-width:620px){
  .mobile-top-nav-btn .nav-card-copy strong{
    font-size:14.5px !important;
    line-height:1.22 !important;
  }
  .bottom-actions .btn{
    min-height:46px !important;
    padding:12px 10px !important;
    font-size:12.5px !important;
    line-height:1.15 !important;
  }
}
@media(max-width:360px){
  .mobile-top-nav-btn .nav-card-copy strong{
    font-size:14px !important;
  }
  .bottom-actions .btn{
    min-height:44px !important;
    padding:11px 7px !important;
    font-size:12px !important;
  }
}


/* V8.115.114 — histórico pendente: status dentro do conteúdo, sem escapar do card */
.pending-history-card .history-pending-grid{
  grid-template-columns:20px minmax(0,1fr) !important;
  overflow:hidden !important;
}
.pending-history-card .history-pending-content{
  min-width:0 !important;
  width:100% !important;
}
.pending-history-card .history-top-line{
  grid-template-columns:minmax(0,1fr) max-content !important;
  min-width:0 !important;
}
.pending-history-card .history-pending-status{
  min-width:0 !important;
  max-width:118px !important;
  padding:0 9px !important;
}
.pending-history-card .history-actions .btn{
  width:min(100%,210px) !important;
  max-width:210px !important;
  min-height:42px !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
@media(max-width:360px){
  .pending-history-card .history-pending-grid{grid-template-columns:18px minmax(0,1fr) !important;column-gap:8px !important}
  .pending-history-card .history-top-line{column-gap:7px !important}
  .pending-history-card .history-pending-status{max-width:104px !important;padding:0 7px !important;font-size:7.7px !important}
  .pending-history-card .history-actions .btn{max-width:198px !important;font-size:10.5px !important}
}


/* V8.115.116 — cards Enviadas mais alinhados à esquerda no histórico mobile */
.sent-card{
  padding:12px 14px 12px 10px !important;
}
.sent-card .history-summary-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:start !important;
  column-gap:12px !important;
  width:100% !important;
}
.sent-card .history-main-info{
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  gap:3px !important;
  justify-items:start !important;
  align-items:start !important;
  text-align:left !important;
}
.sent-card .history-title,
.sent-card .history-meta{
  width:100% !important;
  margin:0 !important;
  padding-left:0 !important;
  text-align:left !important;
}
.sent-card .history-title{
  font-size:13.5px !important;
  line-height:1.16 !important;
}
.sent-card .history-meta{
  font-size:10px !important;
  line-height:1.28 !important;
}
.sent-card .history-status-wrap{
  width:auto !important;
  min-width:84px !important;
  padding-top:0 !important;
  margin-left:8px !important;
  align-self:start !important;
  justify-content:flex-end !important;
}
.sent-card .history-status{
  min-width:78px !important;
  height:28px !important;
  padding:0 10px !important;
  font-size:10px !important;
}
@media(max-width:390px){
  .sent-card{
    padding:11px 12px 11px 9px !important;
  }
  .sent-card .history-summary-row{
    column-gap:9px !important;
  }
  .sent-card .history-title{
    font-size:13px !important;
  }
  .sent-card .history-meta{
    font-size:9.6px !important;
  }
  .sent-card .history-status-wrap{
    min-width:78px !important;
    margin-left:6px !important;
  }
  .sent-card .history-status{
    min-width:72px !important;
    height:27px !important;
    padding:0 8px !important;
    font-size:9.6px !important;
  }
}


/* V8.115.117 — redesign definitivo dos cards Enviadas no histórico mobile
   Conteúdo realmente encostado à esquerda; selo fica independente no canto direito. */
.sent-card{
  position:relative !important;
  display:block !important;
  min-height:82px !important;
  padding:14px 106px 14px 18px !important;
  overflow:hidden !important;
}
.sent-card::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:3px;
  border-radius:0 999px 999px 0;
  background:#36b37e;
  opacity:.8;
}
.sent-card .history-summary-row{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
}
.sent-card .history-main-info{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
}
.sent-card .history-title{
  display:block !important;
  width:100% !important;
  margin:0 0 5px !important;
  padding:0 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  text-align:left !important;
  overflow-wrap:anywhere !important;
}
.sent-card .history-meta{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  font-size:10.5px !important;
  line-height:1.32 !important;
  text-align:left !important;
  overflow-wrap:anywhere !important;
}
.sent-card .history-status-wrap{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  left:auto !important;
  width:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  transform:none !important;
}
.sent-card .sent-status{
  min-width:78px !important;
  height:29px !important;
  padding:0 11px !important;
  margin:0 !important;
  font-size:10px !important;
  font-weight:850 !important;
  box-shadow:0 4px 12px rgba(22,112,70,.08) !important;
}
html[data-theme="dark"] .sent-card::before{
  background:#58d39a;
  opacity:.72;
}
@media(max-width:390px){
  .sent-card{
    min-height:80px !important;
    padding:13px 96px 13px 16px !important;
  }
  .sent-card .history-title{
    font-size:13.5px !important;
  }
  .sent-card .history-meta{
    font-size:10px !important;
  }
  .sent-card .history-status-wrap{
    top:13px !important;
    right:12px !important;
  }
  .sent-card .sent-status{
    min-width:72px !important;
    height:28px !important;
    padding:0 9px !important;
    font-size:9.7px !important;
  }
}
@media(max-width:340px){
  .sent-card{
    padding-right:88px !important;
    padding-left:15px !important;
  }
  .sent-card .sent-status{
    min-width:66px !important;
    padding:0 8px !important;
    font-size:9.2px !important;
  }
}


/* V8.115.129 — contato de suporte também na tela de login mobile */
.nexa-support-contact{margin-top:16px;padding:12px 14px;display:grid;gap:7px;border:1px solid #d9e2f0;border-radius:14px;background:#f8fafc;color:var(--text)}
.nexa-support-contact>small{margin:0;color:var(--muted);font-size:11px;font-weight:700;line-height:1.35}.nexa-support-actions{min-width:0;display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
.nexa-support-link{min-width:0;padding:0;display:inline-flex;align-items:baseline;gap:5px;border:0;background:transparent;color:inherit;text-decoration:none;box-shadow:none}.nexa-support-link strong{font-size:12px;font-weight:700;line-height:1.4;color:var(--text)}.nexa-support-link span{font-size:12px;font-weight:500;line-height:1.4;color:var(--muted);white-space:nowrap}
@media(hover:hover) and (pointer:fine){.nexa-support-link:hover strong,.nexa-support-link:hover span{color:var(--primary)}}
html[data-theme="dark"] .nexa-support-contact{background:#101f33;border-color:var(--line)}html[data-theme="dark"] .nexa-support-contact>small{color:#9cadc4}html[data-theme="dark"] .nexa-support-link strong{color:#eef4ff}html[data-theme="dark"] .nexa-support-link span{color:#9cadc4}
@media(max-width:560px){.nexa-support-actions{display:grid;grid-template-columns:1fr;gap:5px}.nexa-support-link{width:100%}}


/* V8.115.141 — termo de ciência na ativação mobile */
.mobile-license-terms{display:grid;gap:7px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--card-soft,#f8fafc)}.mobile-license-terms>b{font-size:12px}.mobile-license-terms p{margin:0;font-size:10.5px;line-height:1.45;color:var(--muted)}.mobile-license-terms label{display:flex;align-items:flex-start;gap:8px;font-size:10.5px;line-height:1.4}.mobile-license-terms input{width:17px!important;height:17px!important;min-height:0!important;flex:0 0 auto;margin-top:1px}.mobile-license-terms small{font-size:9px;color:var(--muted)}


/* V8.115.157 — ícone + unificado e geometricamente centralizado em todos os botões */
button.btn-plus,.btn.btn-plus{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}
.btn-plus-icon{
  position:relative !important;
  display:inline-block !important;
  width:14px !important;
  height:14px !important;
  min-width:14px !important;
  flex:0 0 14px !important;
  line-height:0 !important;
  align-self:center !important;
  transform:none !important;
}
.btn-plus-icon::before,.btn-plus-icon::after{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  background:currentColor !important;
  border-radius:999px !important;
  transform:translate(-50%,-50%) !important;
  pointer-events:none !important;
}
.btn-plus-icon::before{width:12px !important;height:2px !important}
.btn-plus-icon::after{width:2px !important;height:12px !important}
.btn-plus>span:not(.btn-plus-icon){
  display:inline-flex !important;
  align-items:center !important;
  line-height:1.15 !important;
}

/* V8.115.188 — Material removido segue a ordem configurada do formulário */
.removed-material-configured-field{grid-column:1/-1!important;margin-top:2px}
.removed-material-configured-field .removed-materials-box{margin-top:0}

/* NexaOper V8.115.188 — auditoria responsiva final do aplicativo operacional */
html,body,.app,.content,.topbar,.topbar-in,.brand-strip{max-width:100%;min-width:0}
img,svg,canvas,video{max-width:100%}
.content>section,.home-hero,.quick-row,.type-grid,.mobile-top-nav,.material-sheet-card,.received-order-card,.history-item{min-width:0;max-width:100%}
@media(max-width:620px){
  .content{width:100%;max-width:100%;padding-left:10px!important;padding-right:10px!important}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px}
  .app-modal{padding:8px!important}
  .app-modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important}
}


/* NexaOper V8.115.188 — descrição da O.S. recebida e campo somente leitura */
.os-detail-description{grid-column:1/-1}
.os-description-readonly{background:var(--surface-soft,#f7f9fc);cursor:default;resize:vertical;min-height:88px}
html[data-theme="dark"] .os-description-readonly{background:#111b2d;color:#eef4ff;border-color:#334155}

/* NexaOper V8.115.188 — ficha de materiais coerente no tema escuro */
html[data-theme="dark"] .my-sheet-tab{
  background:#0f1b2d!important;
  border-color:#25344b!important;
  color:#e9f1ff!important;
  box-shadow:0 6px 18px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .my-sheet-tab span{color:#e9f1ff!important}
html[data-theme="dark"] .my-sheet-tab small{color:#9aaac0!important}
html[data-theme="dark"] .my-sheet-tab.active,
html[data-theme="dark"] .my-sheet-tab.active:hover,
html[data-theme="dark"] .my-sheet-tab.active:focus-visible,
html[data-theme="dark"] .my-sheet-tab.active:active{
  background:#17325a!important;
  border-color:#5b8fff!important;
  color:#eef4ff!important;
  box-shadow:0 8px 22px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .my-sheet-tab.active span{color:#f2f6ff!important}
html[data-theme="dark"] .my-sheet-tab.active small{color:#b9c9e2!important}
html[data-theme="dark"] .material-sheet-card{
  background:#0f1b2d!important;
  border-color:#25344b!important;
  color:#e9f1ff!important;
  box-shadow:0 8px 22px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .material-sheet-kind{color:#9aaac0!important}
html[data-theme="dark"] .material-sheet-card-head b,
html[data-theme="dark"] .material-sheet-address b{color:#eef4ff!important}
html[data-theme="dark"] .material-sheet-card-head>strong{color:#7da6ff!important}
html[data-theme="dark"] .material-sheet-auto span{
  background:#101f33!important;
  border:1px solid #25344b!important;
  color:#e9f1ff!important;
}
html[data-theme="dark"] .material-sheet-auto small,
html[data-theme="dark"] .material-sheet-address small{color:#9aaac0!important}
html[data-theme="dark"] .material-sheet-auto b{color:#eef4ff!important}
html[data-theme="dark"] .material-sheet-meta{
  background:#142846!important;
  border:1px solid #31527d!important;
  color:#9bb9ff!important;
}
html[data-theme="dark"] .material-sheet-address{border-top-color:#25344b!important}

/* NexaOper V8.115.188 — seletor de tema compacto no app operacional. */
@media(max-width:900px){
  .theme-toggle,
  .theme-toggle-floating,
  .topbar-action-buttons .theme-toggle,
  .topbar-actions .theme-toggle{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    max-height:38px!important;
    flex:0 0 38px!important;
    padding:0!important;
  }
  .theme-toggle svg,
  .topbar-action-buttons .theme-toggle svg,
  .topbar-actions .theme-toggle svg{
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
    max-width:17px!important;
    max-height:17px!important;
    transform:none!important;
    stroke-width:1.9!important;
  }
}

/* === source: release-195.css === */
/* NexaOper V8.115.195 — acabamento visual final do Mobile/PWA */
:root{--nexa-control-h:46px}
html{font-size:16px;scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.45}
.content{padding:14px!important}
.home-hero h1{font-size:24px!important;line-height:1.2!important}.home-hero p{font-size:13px!important;line-height:1.5!important}
.section-card{padding:16px!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(25,40,72,.06)!important}
.form-title h2{font-size:19px!important;line-height:1.25!important}.field label{font-size:13px!important;line-height:1.35!important}
input,select{min-height:var(--nexa-control-h)!important;padding:12px 13px!important;font-size:14px!important}
textarea{padding:12px 13px!important;font-size:14px!important;line-height:1.45!important;min-height:112px!important}
.btn,.history-filter-btn,.received-filter-btn,.tab{min-height:44px!important;border-radius:13px!important;font-size:13px!important;line-height:1.2!important}
.btn{padding:11px 14px!important}.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid rgba(31,94,255,.22)!important;outline-offset:2px!important}
/* Controles do topo compactos e consistentes. */
.topbar .theme-toggle.compact{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important}
.topbar .theme-toggle.compact svg{width:17px!important;height:17px!important}
.topbar-in{padding:11px 13px!important}.top-user{font-size:12px!important;line-height:1.35!important}.topbar-action-buttons{gap:7px!important}
.badge{font-size:10.5px!important;line-height:1.15!important;padding:5px 8px!important}
.quick-card{padding:13px!important;border-radius:15px!important}.quick-num{font-size:23px!important}.quick-card .muted{font-size:11.5px!important}
.type-card{padding:16px!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(25,40,72,.06)!important}.type-name{font-size:16px!important}.type-sub{font-size:12px!important;line-height:1.4!important}
.stepper{gap:9px!important;padding:6px 2px 12px!important}.step-dot{font-size:11px!important;padding:7px 10px!important}
.notice{font-size:12.5px!important;line-height:1.45!important;padding:11px 13px!important}
.history-item{padding:14px!important;border-radius:15px!important}.history-title{font-size:14px!important}.history-meta{font-size:12px!important;line-height:1.4!important}
.review-row{font-size:13px!important;line-height:1.4!important}
.photo-inline{padding:12px!important}.photo-inline strong{font-size:12px!important}.photo-btn{min-height:44px!important;font-size:12px!important}
.bottom-actions{gap:8px!important;padding-top:10px!important}.bottom-actions .btn{min-height:46px!important}
.app-modal-card{border-radius:20px!important;padding:22px!important}.app-modal-card h3{font-size:19px!important}.app-modal-card p{font-size:13.5px!important;line-height:1.5!important}
@media(max-width:620px){.content{padding:12px!important}.section-card{padding:14px!important}.topbar-in{padding:10px 12px!important}.form-title h2{font-size:18px!important}.quick-row{gap:8px!important}.bottom-actions .btn{padding:11px 8px!important;font-size:12.5px!important}}
@media(max-width:380px){.topbar-action-buttons .account-password-btn span{display:none}.topbar-action-buttons .account-password-btn{width:38px!important;min-width:38px!important;padding:0!important}.quick-card{padding:11px!important}}
html[data-theme="dark"] .section-card,html[data-theme="dark"] .type-card{box-shadow:0 8px 24px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .btn:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible{outline-color:rgba(91,143,255,.32)!important}

/* === source: release-196.css === */
/* NexaOper V8.115.196 — técnico não recebe aviso comercial de vencimento */
#mobileLicenseBanner.license-banner{display:none!important}

/* === source: release-197.css === */
/* NexaOper V8.115.197 — base histórica da navegação de retorno interno. O feedback visual de saída foi removido na V8.115.198. */

/* === source: release-198.css === */
/* NexaOper V8.115.198 — splash profissional e saída dupla silenciosa */
.mobile-exit-hint{display:none!important}
.mobile-splash{
  position:fixed;inset:0;z-index:1000000;
  display:grid;place-items:center;
  padding:24px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  background:radial-gradient(circle at 50% 34%,#17345d 0%,#0b1b31 38%,#071321 100%);
  color:#f8fbff;opacity:1;visibility:visible;
  transition:opacity .28s ease,visibility .28s ease;
}
.mobile-splash.is-done{opacity:0;visibility:hidden;pointer-events:none}
.mobile-splash-card{
  width:min(330px,88vw);display:grid;justify-items:center;text-align:center;
  gap:12px;padding:26px 24px 23px;border:1px solid rgba(143,184,255,.22);
  border-radius:28px;background:rgba(11,29,52,.7);backdrop-filter:blur(12px);
  box-shadow:0 28px 70px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06);
}
.mobile-splash-icon{
  width:92px;height:92px;display:block;object-fit:contain;border-radius:22px;
  filter:drop-shadow(0 12px 24px rgba(0,0,0,.25));
}
.mobile-splash-brand{font-size:28px;font-weight:900;letter-spacing:-.7px;line-height:1}
.mobile-splash .brand-nexa{color:#f7fbff!important}
.mobile-splash .brand-oper{color:#4d8dff!important}
.mobile-splash-version{font-size:12px;color:#a9bad1;letter-spacing:.02em}
.mobile-splash-version strong{color:#dce9fb;font-weight:800}
.mobile-splash-progress{
  width:100%;height:7px;margin-top:6px;border-radius:999px;overflow:hidden;
  background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
.mobile-splash-progress>span{
  display:block;width:4%;height:100%;border-radius:inherit;
  background:linear-gradient(90deg,#2d72ff,#72a6ff);
  box-shadow:0 0 16px rgba(73,135,255,.5);
  transition:width .34s cubic-bezier(.22,.8,.28,1);
}
.mobile-splash-card>small{min-height:16px;color:#8fa5c1;font-size:11px;font-weight:650}
@media(max-width:420px){
  .mobile-splash-card{width:min(300px,90vw);padding:23px 20px 21px;border-radius:24px}
  .mobile-splash-icon{width:82px;height:82px;border-radius:20px}
  .mobile-splash-brand{font-size:26px}
}
@media(prefers-reduced-motion:reduce){
  .mobile-splash,.mobile-splash-progress>span{transition:none!important}
}

/* === source: release-199.css === */
/* NexaOper V8.115.200 — splash adaptativa ao tema com fallback claro */
.mobile-splash{
  background:radial-gradient(circle at 50% 34%,#ffffff 0%,#f4f7fd 48%,#eef3fa 100%);
  color:#10233f;
}
.mobile-splash-card{
  border-color:#d7e2f1;
  background:rgba(255,255,255,.92);
  box-shadow:0 28px 70px rgba(31,65,115,.14),inset 0 1px 0 rgba(255,255,255,.92);
}
.mobile-splash .brand-nexa{color:#10233f!important}
.mobile-splash .brand-oper{color:#2d72ff!important}
.mobile-splash-version{color:#6f819b}
.mobile-splash-version strong{color:#36547a}
.mobile-splash-progress{
  background:#e5ebf4;
  box-shadow:inset 0 0 0 1px rgba(45,76,120,.06);
}
.mobile-splash-card>small{color:#71839c}

html[data-theme="dark"] .mobile-splash{
  background:radial-gradient(circle at 50% 34%,#17345d 0%,#0b1b31 38%,#071321 100%);
  color:#f8fbff;
}
html[data-theme="dark"] .mobile-splash-card{
  border-color:rgba(143,184,255,.22);
  background:rgba(11,29,52,.7);
  box-shadow:0 28px 70px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="dark"] .mobile-splash .brand-nexa{color:#f7fbff!important}
html[data-theme="dark"] .mobile-splash .brand-oper{color:#4d8dff!important}
html[data-theme="dark"] .mobile-splash-version{color:#a9bad1}
html[data-theme="dark"] .mobile-splash-version strong{color:#dce9fb}
html[data-theme="dark"] .mobile-splash-progress{
  background:rgba(255,255,255,.1);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
html[data-theme="dark"] .mobile-splash-card>small{color:#8fa5c1}

/* Fallback quando o bootstrap de tema não puder executar. */
@media (prefers-color-scheme:dark){
  html:not([data-theme]) .mobile-splash{
    background:radial-gradient(circle at 50% 34%,#17345d 0%,#0b1b31 38%,#071321 100%);
    color:#f8fbff;
  }
  html:not([data-theme]) .mobile-splash-card{border-color:rgba(143,184,255,.22);background:rgba(11,29,52,.7)}
  html:not([data-theme]) .mobile-splash .brand-nexa{color:#f7fbff!important}
  html:not([data-theme]) .mobile-splash-version{color:#a9bad1}
  html:not([data-theme]) .mobile-splash-version strong{color:#dce9fb}
  html:not([data-theme]) .mobile-splash-progress{background:rgba(255,255,255,.1)}
  html:not([data-theme]) .mobile-splash-card>small{color:#8fa5c1}
}

/* === source: release-200.css === */
/* NexaOper V8.115.200 — portabilidade universal AWS / Oracle / Hostinger / VPS genérico. */

/* === source: release-234.css === */
/* V8.115.234 — ícones globais + aviso de ativação recolhível */
.ui-icon{width:17px;height:17px;display:inline-grid;place-items:center;flex:0 0 17px;color:currentColor;opacity:.92;vertical-align:-3px}
.ui-icon svg{width:100%;height:100%;display:block}
.ui-iconized:is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px}
.titlebar>b.ui-iconized,.page-head h1.ui-iconized,.form-title h2.ui-iconized,.card-title.ui-iconized,.section-title.ui-iconized{display:inline-flex;align-items:center;gap:8px}
.field>label.ui-iconized{display:flex;align-items:center;gap:7px}.field>label.ui-iconized>.ui-icon{color:var(--primary,#477df5)}
.quick-card>.muted.ui-iconized{display:flex;align-items:center;justify-content:center;gap:5px}
.mobile-license-activation-head>b.ui-iconized{display:flex;align-items:center;gap:8px}
.mobile-license-terms{padding:0!important;gap:0!important;overflow:hidden;background:var(--card)!important;border-color:var(--border)!important}
.mobile-license-risk-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px;user-select:none}
.mobile-license-risk-details>summary::-webkit-details-marker{display:none}
.mobile-license-risk-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--primary) 14%,transparent);color:var(--primary);flex:0 0 auto}
.mobile-license-risk-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mobile-license-risk-copy{display:grid;gap:2px;min-width:0;flex:1}.mobile-license-risk-copy b{font-size:12px}.mobile-license-risk-copy small{font-size:10px;line-height:1.35;color:var(--muted)}
.mobile-license-chevron{width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease;color:var(--muted);margin-right:3px}
.mobile-license-risk-details[open] .mobile-license-chevron{transform:rotate(225deg)}
.mobile-license-risk-expanded{padding:0 12px 11px 58px}.mobile-license-risk-expanded p{font-size:10.5px!important;line-height:1.5!important;color:var(--muted)!important}
.mobile-license-consents{display:grid;gap:8px;padding:11px 12px;border-top:1px solid var(--border)}
.mobile-license-consents label{font-size:10.5px;line-height:1.4;display:flex;align-items:flex-start;gap:8px}.mobile-license-consents input{width:17px!important;height:17px!important;min-height:0!important;flex:0 0 auto;margin-top:1px}
.mobile-license-term-version{display:block;padding:0 12px 11px;color:var(--muted);font-size:9px!important}
html[data-theme="dark"] .mobile-license-terms{background:#0f1f32!important;border-color:#2b415d!important;color:#edf4ff!important}
html[data-theme="dark"] .mobile-license-risk-icon{background:#15335e;color:#73a7ff}
html[data-theme="dark"] .mobile-license-consents{border-top-color:#2b415d!important}
html[data-theme="dark"] .mobile-license-risk-copy small,html[data-theme="dark"] .mobile-license-term-version{color:#91a8c5!important}
@media(max-width:520px){.ui-icon{width:16px;height:16px;flex-basis:16px}.mobile-license-risk-expanded{padding-left:12px}}

/* === source: release-235.css === */
/* V8.115.235 — ícones globais sem duplicação em alvos aninhados */
.dashboard-kpi-card>.ui-icon{display:none!important}.ui-iconized>.ui-icon{margin:0!important}

/* === source: release-236.css === */
/* V8.115.250 — ícones globais sem duplicação em alvos aninhados */
.dashboard-kpi-card>.ui-icon{display:none!important}.ui-iconized>.ui-icon{margin:0!important}

/* V8.115.250: readiness real pelo Caddy; sem alterações visuais adicionais. */

/* === source: release-238.css === */
/* NexaOper V8.115.250 — saída alinhada e ícones sem azul fixo. */
.ui-icon,.field>label.ui-iconized>.ui-icon{color:currentColor!important}
.topbar-action-buttons .logout-btn.ui-iconized{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;white-space:nowrap!important;width:auto!important;min-width:72px!important;max-width:none!important;padding:0 10px!important;line-height:1!important}
.topbar-action-buttons .logout-btn.ui-iconized .ui-icon{width:15px!important;height:15px!important;flex:0 0 15px!important;margin:0!important}
@media(max-width:420px){.topbar-action-buttons .logout-btn.ui-iconized{min-width:68px!important;padding:0 8px!important;font-size:9.5px!important;gap:4px!important}.topbar-action-buttons .logout-btn.ui-iconized .ui-icon{width:14px!important;height:14px!important;flex-basis:14px!important}}

/* === source: release-248.css === */
/* NexaOper V8.115.250 — alinhamento fino do Mobile. */

/* Ações do fluxo: Retornar à esquerda; Avançar/Finalizar com o ícone no extremo direito. */
.bottom-actions #prevBtn,
.bottom-actions #nextBtn,
.bottom-actions #sendBtn{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
.bottom-actions #prevBtn{justify-content:flex-start!important;gap:9px!important}
.bottom-actions #nextBtn,
.bottom-actions #sendBtn{
  justify-content:center!important;
  position:relative!important;
  padding-left:40px!important;
  padding-right:46px!important;
}
.bottom-actions #nextBtn>.ui-icon,
.bottom-actions #sendBtn>.ui-icon{
  order:9!important;
  position:absolute!important;
  right:16px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.bottom-actions #prevBtn>.ui-icon{
  position:static!important;
  transform:none!important;
  margin:0!important;
}

/* Suporte do login: todos os ícones usam uma coluna fixa e ficam centralizados com o texto. */
.login-support-contact .nexa-support-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  align-items:stretch!important;
}
.login-support-contact .nexa-support-link{
  width:100%!important;
  display:grid!important;
  grid-template-columns:22px max-content minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:8px!important;
  line-height:1.35!important;
}
.login-support-contact .nexa-support-link>.ui-icon{
  width:19px!important;
  height:19px!important;
  flex-basis:19px!important;
  margin:0!important;
  align-self:center!important;
  justify-self:center!important;
  vertical-align:0!important;
}
.login-support-contact .nexa-support-link strong,
.login-support-contact .nexa-support-link span{
  line-height:1.35!important;
  align-self:center!important;
}

/* Cabeçalhos internos: badge + ícone/título partem da mesma linha-base. */
#receivedView>.form-title,
#historyView>.form-title,
#materialsView>.form-title{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin:0 0 14px!important;
  min-height:38px!important;
}
#receivedView>.form-title>div,
#historyView>.form-title>div,
#materialsView>.form-title>div{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
}
#receivedView>.form-title .badge,
#historyView>.form-title .badge,
#materialsView>.form-title .badge{
  margin:0!important;
  flex:0 0 auto!important;
  align-self:center!important;
}
#receivedView>.form-title h2,
#historyView>.form-title h2,
#materialsView>.form-title h2{
  margin:0!important;
  min-width:0!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  line-height:1.2!important;
}
#receivedView>.form-title h2>.ui-icon,
#historyView>.form-title h2>.ui-icon,
#materialsView>.form-title h2>.ui-icon{
  width:20px!important;
  height:20px!important;
  flex-basis:20px!important;
  margin:0!important;
  align-self:center!important;
}

/* Cards principais: ícone, título e seta usam as mesmas âncoras em todos os cards. */
.mobile-top-nav-btn{
  align-content:stretch!important;
}
.mobile-top-nav-btn>.nav-card-icon{
  align-self:start!important;
  justify-self:start!important;
}
.mobile-top-nav-btn>.nav-card-copy{
  align-self:start!important;
  justify-self:stretch!important;
}
.mobile-top-nav-btn>.nav-card-arrow,
.mobile-top-nav-btn>.nav-card-footer{
  align-self:end!important;
}

@media(max-width:620px){
  .bottom-actions #nextBtn,
  .bottom-actions #sendBtn{
    padding-left:34px!important;
    padding-right:40px!important;
  }
  .bottom-actions #nextBtn>.ui-icon,
  .bottom-actions #sendBtn>.ui-icon{right:13px!important}
  #receivedView>.form-title,
  #historyView>.form-title,
  #materialsView>.form-title{min-height:34px!important}
  #receivedView>.form-title>div,
  #historyView>.form-title>div,
  #materialsView>.form-title>div{gap:7px!important}
  #receivedView>.form-title h2,
  #historyView>.form-title h2,
  #materialsView>.form-title h2{font-size:18px!important}
  .login-support-contact .nexa-support-link{
    grid-template-columns:21px max-content minmax(0,1fr)!important;
    column-gap:7px!important;
  }
}

/* === source: release-249.css === */
/* NexaOper V8.115.250 — fluxo final do formulário e ícones mobile consistentes. */

/* A regra visual nunca pode vencer o estado .hidden. */
.bottom-actions #nextBtn.hidden,
.bottom-actions #sendBtn.hidden{display:none!important}

.bottom-actions #prevBtn,
.bottom-actions #nextBtn:not(.hidden),
.bottom-actions #sendBtn:not(.hidden){
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  margin:0!important;
}
.bottom-actions #prevBtn{
  grid-column:1!important;
  justify-content:flex-start!important;
  gap:9px!important;
}
.bottom-actions #nextBtn:not(.hidden),
.bottom-actions #sendBtn:not(.hidden){
  grid-column:2!important;
  justify-content:center!important;
  position:relative!important;
  padding-left:42px!important;
  padding-right:50px!important;
}
.bottom-actions #nextBtn:not(.hidden)>.ui-icon,
.bottom-actions #sendBtn:not(.hidden)>.ui-icon{
  position:absolute!important;
  right:17px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
}
.bottom-actions #prevBtn>.ui-icon{position:static!important;transform:none!important;margin:0!important}

/* Títulos do formulário e das abas usam uma geometria única. */
.section-card>.form-title,
#receivedView>.form-title,
#historyView>.form-title,
#materialsView>.form-title{align-items:center!important}
.section-card>.form-title h2.ui-iconized,
#receivedView>.form-title h2.ui-iconized,
#historyView>.form-title h2.ui-iconized,
#materialsView>.form-title h2.ui-iconized{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  line-height:1.2!important;
  margin:0!important;
}
.section-card>.form-title h2>.ui-icon,
#receivedView>.form-title h2>.ui-icon,
#historyView>.form-title h2>.ui-icon,
#materialsView>.form-title h2>.ui-icon{
  width:20px!important;height:20px!important;flex:0 0 20px!important;margin:0!important
}

/* Ícones de campos: mesma coluna e alinhamento, inclusive labels longas. */
#stepContent .field>label.ui-iconized{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  line-height:1.25!important;
}
#stepContent .field>label.ui-iconized>.ui-icon{
  width:17px!important;height:17px!important;flex:0 0 17px!important;margin:0!important
}

/* Login: ícones sem deslocamento e botão Entrar com símbolo de entrada correto. */
#loginView .field>label.ui-iconized{display:flex!important;align-items:center!important;gap:9px!important}
#loginView .field>label.ui-iconized>.ui-icon{width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important}
#loginView #mobileLoginControls>.btn.ui-iconized{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important}
#loginView #mobileLoginControls>.btn.ui-iconized>.ui-icon{width:18px!important;height:18px!important;flex:0 0 18px!important;margin:0!important}

@media(max-width:620px){
  .attendance-flow-body .bottom-actions,
  #formBaixa .bottom-actions,
  .bottom-actions{
    display:grid!important;
    grid-template-columns:minmax(0,.78fr) minmax(0,1.35fr)!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  .bottom-actions #nextBtn:not(.hidden),
  .bottom-actions #sendBtn:not(.hidden){padding-left:36px!important;padding-right:44px!important}
  .bottom-actions #nextBtn:not(.hidden)>.ui-icon,
  .bottom-actions #sendBtn:not(.hidden)>.ui-icon{right:14px!important}
}

/* === source: release-254.css === */
/* NexaOper V8.115.260 — ícones da ficha de materiais alinhados. */
.my-sheet-tab.ui-iconized{
  grid-template-columns:22px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:9px!important;
  row-gap:3px!important;
  align-items:center!important;
}
.my-sheet-tab.ui-iconized>.ui-icon{
  grid-column:1!important;
  grid-row:1 / 3!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  align-self:center!important;
  justify-self:center!important;
  color:currentColor!important;
}
.my-sheet-tab.ui-iconized>span:not(.ui-icon){
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  min-width:0!important;
}
.my-sheet-tab.ui-iconized>small{
  grid-column:2!important;
  grid-row:2!important;
  margin:0!important;
  min-width:0!important;
}

/* === source: release-255.css === */
/* NexaOper V8.115.260 — cards de Material e Ficha sem subtítulos e sem quebra dos nomes. */
.my-sheet-tab.ui-iconized{
  grid-template-columns:20px minmax(0,1fr)!important;
  grid-template-rows:1fr!important;
  column-gap:8px!important;
  row-gap:0!important;
  align-items:center!important;
  min-height:64px!important;
}
.my-sheet-tab.ui-iconized>.ui-icon{
  grid-column:1!important;
  grid-row:1!important;
  width:19px!important;
  height:19px!important;
  margin:0!important;
  align-self:center!important;
  justify-self:center!important;
  color:currentColor!important;
}
.my-sheet-tab.ui-iconized>span:not(.ui-icon){
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  min-width:0!important;
  align-self:center!important;
  font-size:13px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.my-sheet-tab.ui-iconized>small{display:none!important}
@media(max-width:380px){
  .my-sheet-tabs{gap:7px!important}
  .my-sheet-tab{padding:10px 9px!important}
  .my-sheet-tab.ui-iconized{grid-template-columns:18px minmax(0,1fr)!important;column-gap:6px!important}
  .my-sheet-tab.ui-iconized>.ui-icon{width:18px!important;height:18px!important}
  .my-sheet-tab.ui-iconized>span:not(.ui-icon){font-size:10.5px!important;letter-spacing:-.12px!important}
}

/* === source: release-257.css === */
/* NexaOper V8.115.260 — Meu desempenho sem alterar o layout existente. */
.performance-entry-card{width:100%;display:grid;grid-template-columns:46px minmax(0,1fr) 34px;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px;margin:0 0 14px;color:var(--text);box-shadow:var(--shadow);cursor:pointer;font:inherit}
.performance-entry-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#eaf2ff;color:#2567f4}.performance-entry-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.performance-entry-copy{display:grid;gap:3px;min-width:0}.performance-entry-copy strong{font-size:14px;line-height:1.2}.performance-entry-copy small{font-size:11px;color:var(--muted);line-height:1.25}.performance-entry-arrow{width:30px;height:30px;border-radius:10px;background:#f2f6fc;display:grid;place-items:center;color:#2567f4;font-weight:900}
.performance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.performance-toolbar label{font-size:12px;font-weight:800}.performance-toolbar select{width:auto;min-width:112px;height:42px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--text);padding:0 12px;font:inherit;font-weight:800}
.performance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.performance-stat{min-width:0;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fff;display:grid;gap:4px}.performance-stat span{font-size:10px;color:var(--muted);font-weight:800}.performance-stat strong{font-size:22px;line-height:1;color:var(--text)}.performance-stat.instalacoes{background:#f1fbf5}.performance-stat.migracoes{background:#eef6ff}.performance-stat.reativacoes{background:#fff6ee}
.performance-months-head{margin:4px 0 9px}.performance-months-head>div{display:grid;gap:2px}.performance-months-head strong{font-size:14px}.performance-months-head small{font-size:10.5px;color:var(--muted)}.performance-months{display:grid;gap:9px}.performance-month-row{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 13px}.performance-month-main{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid var(--line)}.performance-month-main>strong{font-size:13px}.performance-month-main>span{font-size:11px;color:var(--muted)}.performance-month-main b{font-size:16px;color:var(--text)}.performance-month-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-top:9px}.performance-month-detail>span{display:grid;gap:2px;min-width:0}.performance-month-detail small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.performance-month-detail b{font-size:14px}.performance-loading,.performance-error{grid-column:1/-1;padding:18px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--muted);text-align:center}.performance-error{color:#b42318;background:#fff5f4}
html[data-theme="dark"] .performance-entry-card,html[data-theme="dark"] .performance-toolbar select,html[data-theme="dark"] .performance-stat,html[data-theme="dark"] .performance-month-row,html[data-theme="dark"] .performance-loading{background:#0f1b2d;color:var(--text);border-color:var(--line)}html[data-theme="dark"] .performance-entry-icon{background:rgba(37,103,244,.16)}html[data-theme="dark"] .performance-entry-arrow{background:rgba(255,255,255,.06)}html[data-theme="dark"] .performance-stat.instalacoes{background:rgba(31,157,93,.10)}html[data-theme="dark"] .performance-stat.migracoes{background:rgba(37,103,244,.10)}html[data-theme="dark"] .performance-stat.reativacoes{background:rgba(236,125,33,.10)}
@media(max-width:360px){.performance-month-detail{grid-template-columns:1fr}.performance-month-detail>span{grid-template-columns:1fr auto;align-items:center}.performance-summary{grid-template-columns:1fr 1fr}.performance-entry-card{grid-template-columns:40px minmax(0,1fr) 30px;padding:12px}.performance-entry-icon{width:38px;height:38px}}

/* === source: release-258.css === */
/* NexaOper V8.115.260 — Meu desempenho por ano/mês, acesso mais alto e texto de fotos simplificado. */
.performance-entry-card{margin:0 0 12px}
.performance-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;margin:12px 0 10px}
.performance-filter{display:grid;gap:6px;min-width:0}.performance-filter label{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.performance-filter select{width:100%;min-width:0;height:42px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--text);padding:0 12px;font:inherit;font-weight:800}
.performance-period-label{min-height:18px;margin:2px 0 10px;font-size:12px;font-weight:900;color:var(--text)}
html[data-theme="dark"] .performance-filter select{background:#0f1b2d;color:var(--text);border-color:var(--line)}
@media(max-width:360px){.performance-toolbar{grid-template-columns:1fr 1fr;gap:8px}.performance-filter select{padding:0 9px;font-size:12px}}

/* === source: release-259.css === */
/* NexaOper V8.115.260 — Meu desempenho modal, alinhado, por cargo e com controle comercial/usuário. */
.performance-entry-card{margin:0 0 12px;display:grid;grid-template-columns:42px minmax(0,1fr) 30px;align-items:center;gap:12px;min-height:68px;padding:12px 14px}.performance-entry-icon{width:42px;height:42px;margin:0;align-self:center}.performance-entry-copy{align-self:center;justify-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:3px}.performance-entry-copy strong,.performance-entry-copy small{margin:0}.performance-entry-arrow{align-self:center;justify-self:end}
.performance-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:14px}.performance-modal.hidden{display:none}.performance-modal-backdrop{position:absolute;inset:0;background:rgba(6,14,28,.62);backdrop-filter:blur(5px)}.performance-modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:min(88vh,760px);display:flex;flex-direction:column;background:var(--card,#fff);border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 80px rgba(4,15,35,.28);overflow:hidden}.performance-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 14px;border-bottom:1px solid var(--line)}.performance-modal-head>div{min-width:0}.performance-modal-eyebrow{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#2567f4;margin-bottom:4px}.performance-modal-head h3{font-size:20px;line-height:1.2;margin:0;color:var(--text)}.performance-modal-head p{font-size:11px;line-height:1.35;color:var(--muted);margin:5px 0 0}.performance-modal-close{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--text);font-size:24px;line-height:1;display:grid;place-items:center;cursor:pointer}.performance-modal-body{padding:16px 18px;overflow:auto}.performance-modal-footer{padding:12px 18px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end}.performance-modal-footer .btn{min-width:110px}.performance-modal-open{overflow:hidden}
.performance-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;margin:0 0 10px}.performance-filter{display:grid;gap:6px;min-width:0}.performance-filter label{font-size:10px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.performance-filter select{width:100%;min-width:0;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--card,#fff);color:var(--text);padding:0 12px;font:inherit;font-weight:800}.performance-period-label{min-height:18px;margin:2px 0 10px;font-size:12px;font-weight:900;color:var(--text)}
.performance-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}.performance-primary>.performance-stat:last-child:nth-child(odd){grid-column:1/-1}.performance-stat{min-width:0;padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--card,#fff);display:grid;gap:5px}.performance-stat span{font-size:10px;color:var(--muted);font-weight:800;line-height:1.25}.performance-stat strong{font-size:23px;line-height:1;color:var(--text)}.performance-stat.success{background:#effaf3}.performance-stat.danger{background:#fff2f1}.performance-stat.warning{background:#fff8ea}.performance-stat.instalacoes{background:#effaf3}.performance-stat.reativacoes{background:#fff6ee}.performance-stat.migracoes{background:#eef6ff}.performance-stat.address{background:#f5f1ff}
.performance-detail-section{border-top:1px solid var(--line);padding-top:14px}.performance-section-head{display:grid;gap:2px;margin-bottom:10px}.performance-section-head strong{font-size:13px;color:var(--text)}.performance-section-head small{font-size:10.5px;color:var(--muted);line-height:1.35}.performance-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.performance-detail-item{min-width:0;border:1px solid var(--line);border-radius:13px;padding:11px 12px;background:var(--card,#fff);display:flex;align-items:center;justify-content:space-between;gap:10px}.performance-detail-item span{font-size:10.5px;color:var(--muted);font-weight:800;line-height:1.25}.performance-detail-item b{font-size:16px;color:var(--text)}.performance-detail-item:last-child:nth-child(odd){grid-column:1/-1}.performance-loading,.performance-error{grid-column:1/-1;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--card,#fff);color:var(--muted);text-align:center}.performance-error{color:#b42318;background:#fff5f4}
html[data-theme="dark"] .performance-modal-card,html[data-theme="dark"] .performance-filter select,html[data-theme="dark"] .performance-stat,html[data-theme="dark"] .performance-detail-item,html[data-theme="dark"] .performance-loading{background:#0f1b2d;color:var(--text);border-color:var(--line)}html[data-theme="dark"] .performance-stat.success,html[data-theme="dark"] .performance-stat.instalacoes{background:rgba(22,163,74,.10)}html[data-theme="dark"] .performance-stat.danger{background:rgba(220,38,38,.10)}html[data-theme="dark"] .performance-stat.warning,html[data-theme="dark"] .performance-stat.reativacoes{background:rgba(245,158,11,.10)}html[data-theme="dark"] .performance-stat.migracoes{background:rgba(37,103,244,.11)}html[data-theme="dark"] .performance-stat.address{background:rgba(124,58,237,.11)}
@media(max-width:420px){.performance-modal{padding:8px}.performance-modal-card{max-height:92vh;border-radius:18px}.performance-modal-head{padding:15px 14px 12px}.performance-modal-body{padding:14px}.performance-modal-footer{padding:10px 14px 14px}.performance-toolbar{gap:8px}.performance-filter select{padding:0 9px;font-size:12px}.performance-detail-grid{grid-template-columns:1fr}.performance-detail-item:last-child:nth-child(odd){grid-column:auto}}

/* === source: release-260.css === */
/* NexaOper V8.115.260 — ajuste final do Meu desempenho. */
.performance-entry-card{
  grid-template-columns:42px minmax(0,1fr) 32px;
}
.performance-entry-copy{min-width:0}
.performance-entry-arrow{
  width:32px;
  height:32px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid #e2e9f4;
  background:#fff;
  color:#51627b;
  font-size:17px;
  font-weight:900;
  align-self:center;
  justify-self:end;
}
.performance-modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
html[data-theme="dark"] .performance-entry-arrow{
  background:#102036;
  border-color:#2a3c55;
  color:#bdcbe0;
}
@media(max-width:360px){
  .performance-entry-card{grid-template-columns:40px minmax(0,1fr) 32px}
}

/* === source: release-277.css === */
/* NexaOper V8.115.295 — loading ao abrir O.S. no Mobile. */
.mobile-workorder-loading{
  position:fixed;
  inset:0;
  z-index:50000;
  display:grid;
  place-items:center;
  padding:18px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  isolation:isolate;
}
.mobile-workorder-loading.hidden{display:none!important}
.mobile-workorder-loading-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,18,36,.48);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.mobile-workorder-loading-card{
  position:relative;
  z-index:1;
  width:min(360px,calc(100vw - 32px));
  display:grid;
  justify-items:center;
  gap:13px;
  padding:25px 22px 21px;
  border:1px solid var(--line,#dce5f2);
  border-radius:24px;
  background:var(--card,#fff);
  color:var(--text,#13233b);
  text-align:center;
  box-shadow:0 26px 70px rgba(8,25,54,.24);
}
.mobile-workorder-loading-spinner{
  width:48px;
  height:48px;
  border:4px solid rgba(37,103,244,.16);
  border-top-color:var(--primary,#2864ff);
  border-radius:50%;
  animation:mobileWorkOrderSpin .72s linear infinite;
}
.mobile-workorder-loading-copy{display:grid;gap:5px;justify-items:center}
.mobile-workorder-loading-copy b{font-size:17px;line-height:1.25;color:var(--text,#13233b)}
.mobile-workorder-loading-copy span{max-width:290px;font-size:11.5px;line-height:1.45;color:var(--muted,#66758a)}
.mobile-workorder-loading-progress{
  width:min(230px,78%);
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(37,103,244,.10);
}
.mobile-workorder-loading-progress>span{
  display:block;
  width:42%;
  height:100%;
  border-radius:inherit;
  background:var(--primary,#2864ff);
  animation:mobileWorkOrderProgress 1.05s ease-in-out infinite;
}
.mobile-workorder-loading-open{overflow:hidden!important}
html[data-theme="dark"] .mobile-workorder-loading-backdrop{background:rgba(2,8,18,.68)}
html[data-theme="dark"] .mobile-workorder-loading-card{background:#0f1b2d;border-color:#273751;box-shadow:0 26px 70px rgba(0,0,0,.4)}
html[data-theme="dark"] .mobile-workorder-loading-spinner{border-color:rgba(98,149,255,.18);border-top-color:#5b91ff}
html[data-theme="dark"] .mobile-workorder-loading-progress{background:rgba(91,145,255,.14)}
@keyframes mobileWorkOrderSpin{to{transform:rotate(360deg)}}
@keyframes mobileWorkOrderProgress{0%{transform:translateX(-115%)}50%{transform:translateX(70%)}100%{transform:translateX(245%)}}
@media(max-width:420px){
  .mobile-workorder-loading-card{width:min(330px,calc(100vw - 24px));padding:23px 18px 20px;border-radius:22px}
  .mobile-workorder-loading-spinner{width:44px;height:44px}
  .mobile-workorder-loading-copy b{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .mobile-workorder-loading-spinner,.mobile-workorder-loading-progress>span{animation-duration:1.6s}
}

/* === source: release-280.css === */
/* NexaOper V8.115.295 — ordem cronológica das O.S. e atenção para atrasadas */
.received-filter{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.received-overdue-tab:not(.active){
  color:#a64617;
  border-color:#f0c6ac !important;
  background:#fff8f2 !important;
}
.received-overdue-tab:not(.active) span{
  background:#ffe2d1 !important;
  color:#9a3c10 !important;
}
.received-overdue-tab.active,
.received-overdue-tab.active:hover,
.received-overdue-tab.active:focus-visible,
.received-overdue-tab.active:active{
  background:linear-gradient(135deg,#e9682f,#c9471d) !important;
  border-color:transparent !important;
  color:#fff !important;
}
.received-order-overdue{
  border-color:#efb08f !important;
  box-shadow:0 8px 22px rgba(183,72,27,.10) !important;
}
.received-order-overdue .received-order-header{
  margin-bottom:10px;
}
.received-overdue-alert{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 8px;
  width:max-content;
  max-width:100%;
  margin-top:4px;
  padding:6px 9px;
  border-radius:9px;
  border:1px solid #f2c3aa;
  background:#fff4ec;
  color:#9d3f16;
  font-size:10px;
  line-height:1.25;
}
.received-overdue-alert b{font-size:10px!important;color:inherit!important}
.received-overdue-alert span{font-weight:700}
.history-status.overdue-status{
  background:#fff0e7 !important;
  color:#b84418 !important;
  border:1px solid #efb08f !important;
}
@media(max-width:620px){
  .received-filter{grid-template-columns:1fr 1fr !important}
  .received-filter-btn{min-height:52px !important}
}
html[data-theme="dark"] .received-overdue-tab:not(.active){
  color:#ffc09d !important;
  border-color:#68412f !important;
  background:#2c1b15 !important;
}
html[data-theme="dark"] .received-overdue-tab:not(.active) span{
  background:#4a281c !important;
  color:#ffc09d !important;
}
html[data-theme="dark"] .received-order-overdue{
  border-color:#6b4430 !important;
  box-shadow:0 8px 22px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] .received-overdue-alert{
  background:#321d15 !important;
  border-color:#6b4430 !important;
  color:#ffc09d !important;
}
html[data-theme="dark"] .history-status.overdue-status{
  background:#3a2017 !important;
  color:#ffc09d !important;
  border-color:#6b4430 !important;
}

/* === source: release-284.css === */
/* NexaOper V8.115.295 — botão Copiar referência compacto e padronizado */
.os-detail-reference .os-detail-value-row{
  gap:7px!important;
}
.copy-reference-btn{
  flex:0 0 auto!important;
  width:132px!important;
  min-width:132px!important;
  max-width:132px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 9px!important;
  border-radius:8px!important;
  font-size:9.5px!important;
  line-height:1!important;
  align-self:center!important;
}
.copy-reference-btn.copied{
  width:132px!important;
  min-width:132px!important;
  max-width:132px!important;
  height:32px!important;
  min-height:32px!important;
}
@media(max-width:520px){
  .copy-reference-btn{
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;
  }
}
