/* Gestor All In Tech 5.20.5 — Central de módulos e Cadastros organizados */
.global-search[hidden]{display:none!important}

/* Uma identidade visual por módulo. */
#home .launcher-card.green{background:linear-gradient(135deg,#12804d,#27b875)}
#home .launcher-card.reports{background:linear-gradient(135deg,#17638e,#4096c5)}
#home .launcher-card.contracts{background:linear-gradient(135deg,#3546a1,#6271d2)}
#home .launcher-card.nfse{background:linear-gradient(135deg,#6930a5,#a05bd8)}
#home .launcher-card.blue{background:linear-gradient(135deg,#087ca6,#35a9d8)}
#home .launcher-card.purple{background:linear-gradient(135deg,#a05b10,#dc982c)}
#home .launcher-card.service-orders-card{background:linear-gradient(135deg,#c64f24,#ef8534)}
#home .launcher-card.teal{background:linear-gradient(135deg,#08706f,#2aa6a0)}
#home .launcher-card.users-v52{background:linear-gradient(135deg,#a23868,#d06496)}
#home .launcher-card.dark{background:linear-gradient(135deg,#33414b,#657581)}
html[data-theme="dark"] #home .launcher-card.green{background:linear-gradient(135deg,#12804d,#27b875)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.reports{background:linear-gradient(135deg,#17638e,#4096c5)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.contracts{background:linear-gradient(135deg,#3546a1,#6271d2)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.nfse{background:linear-gradient(135deg,#6930a5,#a05bd8)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.blue{background:linear-gradient(135deg,#087ca6,#35a9d8)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.purple{background:linear-gradient(135deg,#a05b10,#dc982c)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.service-orders-card{background:linear-gradient(135deg,#c64f24,#ef8534)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.teal{background:linear-gradient(135deg,#08706f,#2aa6a0)!important;color:#fff!important}
html[data-theme="dark"] #home .launcher-card.users-v52{background:linear-gradient(135deg,#a23868,#d06496)!important;color:#fff!important}

/* Todas as ações de cadastro seguem o padrão compacto já usado em Clientes. */
.catalog-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:nowrap}
.catalog-row-actions .inline-action{margin:0}
.catalog-row-actions .customer-action{width:38px;height:38px;min-width:38px;padding:0;display:grid;place-items:center;border-radius:10px}
.catalog-row-actions .customer-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.catalog-row-actions .customer-action:disabled{opacity:.42;cursor:not-allowed}
.catalog-item{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.catalog-item:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--p,#25a76a) 32%,var(--line,#dbe4de));box-shadow:0 8px 22px rgba(19,64,40,.07)}
.catalog-item .tag{transition:transform .18s ease,filter .18s ease}
.catalog-item:hover .tag{transform:translateY(-1px);filter:saturate(1.08)}

/* Pulso discreto correndo dentro das barras da Visão Executiva. */
#dashboard .dash-bar-track{position:relative;isolation:isolate}
#dashboard .dash-bar-fill{position:relative;overflow:hidden;isolation:isolate}
#dashboard .dash-bar-fill::after{content:"";position:absolute;inset:-1px auto -1px -34%;width:28%;border-radius:inherit;background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),rgba(255,255,255,.55),rgba(255,255,255,.07),transparent);filter:blur(.15px);transform:translateX(0);animation:dashboardBarPulse 3.6s ease-in-out infinite}
#dashboard .dash-bar-row:nth-child(2n) .dash-bar-fill::after{animation-delay:1.15s}
#dashboard .dash-bar-row:nth-child(3n) .dash-bar-fill::after{animation-delay:2.1s}
@keyframes dashboardBarPulse{0%,18%{left:-34%;opacity:0}28%{opacity:.72}72%{opacity:.62}82%,100%{left:112%;opacity:0}}

.dash-legend-item{transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease!important}

@media(max-width:760px){
  .catalog-row-actions{gap:5px}
  .catalog-row-actions .customer-action{width:36px;height:36px;min-width:36px}
}
@media(prefers-reduced-motion:reduce){
  #dashboard .dash-bar-fill::after{animation:none!important;display:none!important}
  .catalog-item,.catalog-item .tag,.dash-legend-item{transition:none!important}
  .catalog-item:hover{transform:none!important}
}

/* v5.24.19 RC — ações de clientes compactas no celular */
.catalog-pane[data-catalog-pane="customer"] .customer-row-actions > .catalog-edit-toggle{
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
}
.catalog-pane[data-catalog-pane="customer"] .customer-row-actions > .inline-action{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
}
@media(max-width:560px){
  .catalog-pane[data-catalog-pane="customer"] .customer-row-actions > .catalog-edit-toggle{
    flex-basis:34px!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
  }
}

/* v5.24.19 RC2 — força as 3 ações do cliente na mesma linha */
#catalogs .catalog-pane[data-catalog-pane="customer"] .catalog-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
}
#catalogs .catalog-pane[data-catalog-pane="customer"] .catalog-item>div:first-child{grid-column:1!important;min-width:0!important}
#catalogs .catalog-pane[data-catalog-pane="customer"] .catalog-item>.tag{grid-column:1!important;width:max-content!important}
#catalogs .catalog-pane[data-catalog-pane="customer"] .customer-row-actions{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:auto!important;
  min-width:max-content!important;
  margin-left:8px!important;
  gap:5px!important;
}
#catalogs .catalog-pane[data-catalog-pane="customer"] .customer-row-actions>.catalog-edit-toggle,
#catalogs .catalog-pane[data-catalog-pane="customer"] .customer-row-actions>.inline-action,
#catalogs .catalog-pane[data-catalog-pane="customer"] .customer-row-actions>.inline-action>.customer-action{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  margin:0!important;
}
