/* ==========================================================================
   PDVS — sistema visual do painel (padrão itick)

   Carregado POR ÚLTIMO no header, depois de Bootstrap 4, AdminLTE, tema
   violet e custom.css. Não substitui nenhum deles (as telas ainda dependem
   das classes); só reescreve a aparência por cima.

   Tokens copiados de itick-app/app/globals.css: mesma fonte (Mulish), mesma
   escala de lilás, mesmos cinzas tingidos, mesmos raios e sombras.
   ========================================================================== */

@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --pd-fonte: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --lilas-50:  #f6f3ff;
  --lilas-100: #ede9fe;
  --lilas-200: #ddd6fe;
  --lilas-300: #c4b5fd;
  --lilas-400: #a78bfa;
  --lilas-500: #8b5cf6;
  --lilas-600: #7c3aed;
  --lilas-700: #6d28d9;
  --lilas-800: #5b21b6;
  --lilas-900: #4c1d95;
  --lilas-950: #2e1065;

  --verde: #34d399;
  --agua:  #2dd4bf;
  --ambar: #f59e0b;
  --rosa:  #f43f5e;
  --azul:  #3b82f6;

  --tinta: #1c1523;
  --suave: #5f5870;
  --fraco: #8b8399;
  --borda: #e9e5f2;
  --fundo: #f6f4fc;

  --raio:   14px;
  --raio-g: 22px;

  --grad:        linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --grad-deep:   linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  --grad-accent: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);

  --sombra:   0 1px 2px rgba(28, 21, 35, .04), 0 10px 30px rgba(28, 21, 35, .06);
  --sombra-g: 0 4px 12px rgba(28, 21, 35, .06), 0 24px 60px rgba(28, 21, 35, .10);
  --sombra-l: 0 10px 30px rgba(124, 58, 237, .30);

  --barra-w: 264px;
  --barra-mini: 78px;
  --topo-h: 68px;

  --ease: cubic-bezier(.22, .9, .32, 1);
}

@keyframes pd-surgir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pd-entrar { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes pd-pulsar { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pd-brilho { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* ----- Base ------------------------------------------------------------- */
html, body,
body.skin-purple,
.wrapper {
  background: var(--fundo) !important;
}
body,
body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6,
body button, body input, body select, body textarea,
.main-sidebar, .main-header, .content-wrapper,
.dataTables_wrapper, .select2-container, .bootbox, .modal {
  font-family: var(--pd-fonte) !important;
}
body {
  color: var(--tinta);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.005em;
}
body h1, body h2, body h3, body h4, body h5, body h6 { color: var(--tinta); font-weight: 800; letter-spacing: -.02em; }
a { color: var(--lilas-700); transition: color .2s ease; }
a:hover { color: var(--lilas-900); text-decoration: none; }
hr { border-color: var(--borda); opacity: 1; }
::selection { background: var(--lilas-200); color: var(--lilas-950); }

/* Ícones do Font Awesome 6 (vinha inline no footer) */
.fa-solid, .fas { font-family: "Font Awesome 6 Free" !important; font-weight: 900; }

/* Rolagem fina */
* { scrollbar-width: thin; scrollbar-color: rgba(76, 29, 149, .22) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(76, 29, 149, .2); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   Moldura: barra lateral, topo, área de trabalho
   ========================================================================== */

/* ----- Barra lateral ---------------------------------------------------- */
body .main-sidebar,
body .left-side {
  width: var(--barra-w);
  padding-top: 0 !important;
  background: linear-gradient(168deg, #5b21b6 0%, #2e1065 58%) !important;
  box-shadow: none;
  overflow: hidden;
  z-index: 1030;
  transition: transform .3s var(--ease), width .3s var(--ease);
}
.main-sidebar::before,
.main-sidebar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
  z-index: 0;
}
.main-sidebar::before { top: -90px; right: -70px; width: 260px; height: 260px; background: rgba(139, 92, 246, .30); }
.main-sidebar::after  { bottom: -80px; left: -70px; width: 220px; height: 220px; background: rgba(45, 212, 191, .12); }

.main-sidebar .sidebar {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.main-sidebar #sidebar-wrapper { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 12px 16px; }
.main-sidebar #sidebar-wrapper::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }

/* Marca */
.pd-marca {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 20px 22px;
  flex-shrink: 0;
}
.pd-marca a { position: relative; display: grid; place-items: center; }
.pd-marca a::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 170px; height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  filter: blur(26px);
  animation: pd-pulsar 2.4s ease-in-out infinite;
  transition: all .5s ease;
}
.pd-marca a:hover::before { width: 200px; height: 104px; background: rgba(255, 255, 255, .22); }
.pd-marca img {
  position: relative;
  height: 62px;
  width: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35));
  transition: transform .4s var(--ease), filter .4s ease;
}
.pd-marca a:hover img { transform: scale(1.04); filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .45)); }
.pd-marca .pd-marca-mini { display: none; height: 34px; }
.pd-marca-selo {
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Itens */
.main-sidebar .sidebar-menu { padding: 0; margin: 0; white-space: nowrap; overflow: visible; }
.main-sidebar .sidebar-menu > li {
  margin: 1px 0;
  animation: pd-entrar .35s var(--ease) backwards;
}
.main-sidebar .sidebar-menu > li:nth-child(1)  { animation-delay: .02s; }
.main-sidebar .sidebar-menu > li:nth-child(2)  { animation-delay: .04s; }
.main-sidebar .sidebar-menu > li:nth-child(3)  { animation-delay: .06s; }
.main-sidebar .sidebar-menu > li:nth-child(4)  { animation-delay: .08s; }
.main-sidebar .sidebar-menu > li:nth-child(5)  { animation-delay: .10s; }
.main-sidebar .sidebar-menu > li:nth-child(6)  { animation-delay: .12s; }
.main-sidebar .sidebar-menu > li:nth-child(7)  { animation-delay: .14s; }
.main-sidebar .sidebar-menu > li:nth-child(8)  { animation-delay: .16s; }
.main-sidebar .sidebar-menu > li:nth-child(9)  { animation-delay: .18s; }
.main-sidebar .sidebar-menu > li:nth-child(n+10) { animation-delay: .2s; }

.main-sidebar .sidebar-menu > li.pd-grupo {
  padding: 16px 12px 6px;
  color: rgba(255, 255, 255, .42);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.main-sidebar .sidebar-menu > li > a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 12px;
  border-left: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  background: transparent !important;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}
.main-sidebar .sidebar-menu > li > a > i:first-child,
.main-sidebar .sidebar-menu > li > a > .fa:first-child,
.main-sidebar .sidebar-menu > li > a > .fas:first-child {
  width: 20px !important;
  margin: 0 !important;
  text-align: center;
  font-size: 15px;
  transition: transform .3s var(--ease), color .3s ease;
}
.main-sidebar .sidebar-menu > li > a > span { flex: 1; }
.main-sidebar .sidebar-menu > li > a::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 3px; height: 16px;
  border-radius: 0 999px 999px 0;
  background: var(--grad-accent);
  transform: translateY(-50%) scaleY(0);
  transition: transform .3s var(--ease);
}
.main-sidebar .sidebar-menu > li > a:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.main-sidebar .sidebar-menu > li > a:hover > i:first-child { transform: scale(1.12); }
.main-sidebar .sidebar-menu > li.active > a,
.main-sidebar .sidebar-menu > li.menu-open > a {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
}
.main-sidebar .sidebar-menu > li.active > a::before { transform: translateY(-50%) scaleY(1); }
.main-sidebar .sidebar-menu > li.active > a > i:first-child { color: var(--verde); }

/* Submenu (Configuração) */
.main-sidebar .sidebar-menu .pull-right-container { position: static; margin-left: auto; }
.main-sidebar .sidebar-menu .pull-right-container .fa { float: none !important; transition: transform .3s var(--ease); }
.main-sidebar .sidebar-menu li.menu-open > a .pull-right-container .fa { transform: rotate(-90deg); }
.main-sidebar .sidebar-menu .treeview-menu {
  margin: 2px 0 6px 22px !important;
  padding: 2px 0 2px 12px !important;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: transparent !important;
}
.main-sidebar .sidebar-menu .treeview-menu > li > a {
  display: block;
  padding: 7px 12px !important;
  border-radius: 9px;
  color: rgba(255, 255, 255, .62) !important;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.main-sidebar .sidebar-menu .treeview-menu > li > a:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }
.main-sidebar .sidebar-menu .treeview-menu > li.active > a { background: rgba(255, 255, 255, .10); color: #fff !important; font-weight: 700; }

/* Usuário no pé da barra */
.pd-barra-pe {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 10px 12px 14px;
}
.pd-barra-pe a,
.pd-barra-pe button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.pd-barra-pe a:hover,
.pd-barra-pe button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pd-barra-pe .pd-avatar { width: 34px; height: 34px; font-size: 12px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.pd-barra-pe .pd-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; font-weight: 800; }
.pd-barra-pe i { width: 20px; text-align: center; }

/* ----- Topo ------------------------------------------------------------- */
body .main-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  max-height: none;
  z-index: 1020;
}
body .main-header .logo { display: none !important; }
body .main-header .navbar,
body .main-header .navbar.navbar-static-top {
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-height: var(--topo-h);
  margin-left: var(--barra-w) !important;
  padding: 0 28px !important;
  border: 0;
  border-bottom: 1px solid rgba(233, 229, 242, .8);
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: margin-left .3s var(--ease);
}
.pd-alternar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--suave) !important;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.pd-alternar:hover { background: var(--lilas-50); color: var(--lilas-700) !important; }
.pd-topo-titulo { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.pd-topo-titulo small { color: var(--fraco); font-size: 11.5px; font-weight: 700; }
.pd-topo-titulo small a { color: var(--fraco); }
.pd-topo-titulo small a:hover { color: var(--lilas-700); }
.pd-topo-titulo small .pd-sep { margin: 0 6px; opacity: .6; }
.pd-topo-titulo strong { overflow: hidden; color: var(--tinta); font-size: 18px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }

.pd-topo-acoes { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pd-relogio {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--lilas-50);
  color: var(--lilas-800);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pd-relogio .pd-ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); animation: pd-pulsar 2.4s ease-in-out infinite; }

.pd-perfil { position: relative; }
.pd-perfil > a {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--borda);
  background: #fff;
  color: var(--tinta) !important;
  font-size: 13px;
  font-weight: 800;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pd-perfil > a::after { display: none; }
.pd-perfil > a:hover { border-color: var(--lilas-300); box-shadow: 0 0 0 4px var(--lilas-50); }
.pd-perfil > a .fa-chevron-down { color: var(--fraco); font-size: 10px; }
.pd-avatar {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .02em;
}
.pd-perfil .dropdown-menu {
  right: 0; left: auto;
  min-width: 220px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--borda);
  border-radius: 16px;
  box-shadow: var(--sombra-g);
}
.pd-perfil .dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--suave) !important;
  font-size: 13px;
  font-weight: 700;
}
.pd-perfil .dropdown-menu .dropdown-item:hover { background: var(--lilas-50); color: var(--lilas-800) !important; }
.pd-perfil .dropdown-menu .dropdown-item i { width: 16px; text-align: center; color: var(--fraco); }
.pd-perfil .dropdown-header { padding: 8px 12px 10px; color: var(--fraco); font-size: 12px; font-weight: 700; white-space: normal; }
.pd-perfil .dropdown-header b { display: block; color: var(--tinta); font-size: 13.5px; font-weight: 900; }

/* ----- Área de trabalho ------------------------------------------------- */
body .content-wrapper,
body .right-side {
  min-height: 100vh !important;
  margin-left: var(--barra-w) !important;
  padding: calc(var(--topo-h) + 26px) 28px 48px !important;
  background: var(--fundo) !important;
  transition: margin-left .3s var(--ease);
}
.content-wrapper > section,
.content-wrapper > .container-fluid,
.content-wrapper > div { animation: pd-surgir .45s var(--ease) backwards; }
.content-wrapper > *:nth-child(2) { animation-delay: .06s; }
.content-wrapper > *:nth-child(3) { animation-delay: .12s; }
.content-wrapper > *:nth-child(4) { animation-delay: .18s; }
.content-wrapper .container-fluid { padding-left: 0; padding-right: 0; }
.content-wrapper section { padding: 0; }

/* O breadcrumb das telas vira o título do topo (pdvs-ui.js); se o JS não
   rodar, ele continua visível e com cara decente. */
.breadcrumb-holder { background: transparent !important; padding: 0 0 14px !important; border: 0 !important; }
.breadcrumb-holder.pd-movido { display: none !important; }
.breadcrumb { margin: 0; padding: 0 !important; background: transparent !important; font-size: 12.5px; font-weight: 700; }
.breadcrumb-item, .breadcrumb-item a { color: var(--fraco); }
.breadcrumb-item a:hover { color: var(--lilas-700); }
.breadcrumb-item.active { color: var(--tinta); }

/* ----- Barra recolhida (desktop) ---------------------------------------- */
@media (min-width: 768px) {
  body.sidebar-mini.sidebar-collapse .main-sidebar { width: var(--barra-mini) !important; transform: none !important; }
  body.sidebar-mini.sidebar-collapse .main-header .navbar { margin-left: var(--barra-mini) !important; }
  body.sidebar-mini.sidebar-collapse .content-wrapper,
  body.sidebar-mini.sidebar-collapse .right-side { margin-left: var(--barra-mini) !important; }
  body.sidebar-collapse .pd-marca { padding: 22px 8px 18px; }
  body.sidebar-collapse .pd-marca .pd-marca-grande,
  body.sidebar-collapse .pd-marca-selo { display: none; }
  body.sidebar-collapse .pd-marca .pd-marca-mini { display: block; }
  body.sidebar-collapse .pd-marca a::before { width: 60px; height: 60px; }
  body.sidebar-collapse #sidebar-wrapper { padding: 0 10px 16px; overflow: visible; }
  body.sidebar-collapse .main-sidebar,
  body.sidebar-collapse .main-sidebar .sidebar { overflow: visible; }
  body.sidebar-collapse .main-sidebar .sidebar-menu > li > a { justify-content: center; padding: 11px 0 !important; }
  body.sidebar-collapse .main-sidebar .sidebar-menu > li > a > span,
  body.sidebar-collapse .main-sidebar .sidebar-menu > li.pd-grupo,
  body.sidebar-collapse .pd-barra-pe .pd-nome,
  body.sidebar-collapse .pd-barra-pe span { display: none !important; }
  body.sidebar-collapse .pd-barra-pe a,
  body.sidebar-collapse .pd-barra-pe button { justify-content: center; padding: 9px 0; }

  /* rótulo flutuante no hover, só com a barra recolhida */
  body.sidebar-collapse .main-sidebar .sidebar-menu > li > a[data-rotulo]:hover::after {
    content: attr(data-rotulo);
    position: absolute;
    top: 50%; left: calc(100% + 12px);
    transform: translateY(-50%);
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--tinta);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--sombra-g);
    pointer-events: none;
    z-index: 2000;
  }
  body.sidebar-collapse .main-sidebar .sidebar-menu > li.treeview > .treeview-menu { display: none !important; }
}

/* ----- Celular: barra vira gaveta --------------------------------------- */
@media (max-width: 767px) {
  body .main-sidebar { transform: translateX(-100%); box-shadow: none; }
  body.sidebar-open .main-sidebar { transform: translateX(0); box-shadow: 0 0 60px rgba(28, 21, 35, .5); }
  body .main-header .navbar,
  body .main-header .navbar.navbar-static-top,
  body.sidebar-open .main-header .navbar.navbar-static-top { margin-left: 0 !important; padding: 0 14px !important; transform: none !important; }
  body .content-wrapper,
  body.sidebar-open .content-wrapper { margin-left: 0 !important; transform: none !important; padding: calc(var(--topo-h) + 18px) 14px 40px !important; }
  body.sidebar-open .content-wrapper::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 21, 35, .45);
    z-index: 1025;
  }
  .pd-relogio { display: none; }
  .pd-perfil > a .pd-perfil-nome,
  .pd-perfil > a .fa-chevron-down { display: none; }
  .pd-perfil > a { padding: 4px; }
  .pd-topo-titulo strong { font-size: 16px; }
}

/* ==========================================================================
   Componentes (Bootstrap / AdminLTE / plugins) no vocabulário itick
   ========================================================================== */

/* ----- Cartões ---------------------------------------------------------- */
.content-wrapper .card,
.content-wrapper .box {
  border: 1px solid rgba(233, 229, 242, .7) !important;
  border-radius: var(--raio-g) !important;
  background: #fff !important;
  box-shadow: var(--sombra) !important;
  color: var(--tinta) !important;
  overflow: visible;
}
.content-wrapper .card.bg-light,
.content-wrapper .card.text-dark { background: #fff !important; }
.content-wrapper .card-header,
.content-wrapper .box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 16px 24px !important;
  border-bottom: 1px solid var(--borda) !important;
  border-radius: var(--raio-g) var(--raio-g) 0 0 !important;
  background: transparent !important;
  color: var(--tinta) !important;
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -.015em;
}
.content-wrapper .card-header > .float-right,
.content-wrapper .card-header > .pull-right { margin-left: auto; float: none !important; }
.content-wrapper .card-header > i:first-child,
.content-wrapper .card-header > .fas:first-child {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--lilas-50);
  color: var(--lilas-700);
  font-size: 14px;
}
.content-wrapper .card-body,
.content-wrapper .box-body { padding: 22px 24px !important; }
.content-wrapper .card-body > hr:first-child { display: none; }
.content-wrapper .card-footer { padding: 16px 24px !important; border-top: 1px solid var(--borda) !important; background: transparent !important; border-radius: 0 0 var(--raio-g) var(--raio-g) !important; }
.content-wrapper .card-title { font-weight: 900; }

/* ----- Botões ----------------------------------------------------------- */
.btn {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease, opacity .2s ease !important;
}
.btn:not(.btn-sm):not(.btn-xs):not(.btn-lg) { padding: 9px 20px; font-size: 13.5px; }
.btn:focus, .btn.focus { box-shadow: 0 0 0 4px var(--lilas-100) !important; }
.btn:hover:not(:disabled):not(.disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled):not(.disabled) { transform: translateY(0); }

.btn-primary, .btn-info, .bg-purple.btn, .btn-violet,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  border-color: transparent !important;
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px -8px rgba(124, 58, 237, .55);
}
.btn-primary:hover, .btn-info:hover { box-shadow: 0 14px 30px -10px rgba(124, 58, 237, .6) !important; color: #fff !important; }
.btn-success { border-color: transparent !important; background: linear-gradient(135deg, #34d399, #10b981) !important; color: #fff !important; box-shadow: 0 8px 22px -8px rgba(16, 185, 129, .5); }
.btn-danger  { border-color: transparent !important; background: linear-gradient(135deg, #fb7185, #e11d48) !important; color: #fff !important; box-shadow: 0 8px 22px -8px rgba(225, 29, 72, .45); }
.btn-warning { border-color: transparent !important; background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #3b2300 !important; box-shadow: 0 8px 22px -8px rgba(245, 158, 11, .5); }
.btn-secondary, .btn-default, .btn-light {
  border: 1px solid var(--borda) !important;
  background: #fff !important;
  color: var(--suave) !important;
  box-shadow: none !important;
}
.btn-secondary:hover, .btn-default:hover, .btn-light:hover { border-color: var(--lilas-300) !important; color: var(--lilas-700) !important; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-info {
  border: 1px solid var(--lilas-200) !important;
  background: var(--lilas-50) !important;
  color: var(--lilas-700) !important;
}
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-info:hover { border-color: transparent !important; background: var(--grad) !important; color: #fff !important; box-shadow: var(--sombra-l); }
.btn-outline-danger { border: 1px solid #fecdd3 !important; background: #fff1f2 !important; color: #e11d48 !important; }
.btn-outline-danger:hover { background: #e11d48 !important; color: #fff !important; }
.btn-outline-success { border: 1px solid #a7f3d0 !important; background: #ecfdf5 !important; color: #047857 !important; }
.btn-outline-success:hover { background: #10b981 !important; color: #fff !important; }
.btn-link { color: var(--lilas-700) !important; box-shadow: none !important; }
.btn-sm, .btn-group-sm > .btn { padding: 6px 14px; font-size: 12.5px; }

/* Botão "+" de criar no cabeçalho do cartão */
.card-header .btn-outline-primary.btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 38px; height: 38px;
  padding: 0 14px !important;
  border: 0 !important;
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: var(--sombra-l);
}

/* Grupo de ações nas linhas das tabelas: botões-ícone discretos */
.table .btn-group,
.table .btn-group-sm { display: inline-flex; gap: 6px; box-shadow: none; }
.table .btn-group > .btn,
.table .btn-group-sm > .btn,
.table td > .btn-sm,
.table td > a.btn {
  display: inline-grid !important;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0 !important;
  border: 1px solid var(--borda) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--suave) !important;
  box-shadow: none !important;
  font-size: 13px;
}
.table td > a.btn:not(.btn-sm):not(:empty) { width: auto; padding: 0 12px !important; }
.table .btn-group > .btn:hover,
.table .btn-group-sm > .btn:hover,
.table td > .btn-sm:hover,
.table td > a.btn:hover {
  border-color: transparent !important;
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .6) !important;
  transform: translateY(-1px);
}
.table .btn[title="Excluir"]:hover,
.table .btn.btn-remove:hover,
.table .btn.btn-remove-default:hover,
.table .btn-danger:hover {
  background: linear-gradient(135deg, #fb7185, #e11d48) !important;
  box-shadow: 0 8px 18px -8px rgba(225, 29, 72, .6) !important;
}
.table .btn-group > .btn .fa-fw { width: auto; }

/* ----- Formulários ------------------------------------------------------ */
.form-control,
.custom-select,
.content-wrapper input[type="text"],
.content-wrapper input[type="email"],
.content-wrapper input[type="number"],
.content-wrapper input[type="password"],
.content-wrapper input[type="date"],
.content-wrapper input[type="datetime-local"],
.content-wrapper input[type="search"],
.content-wrapper input[type="tel"],
.content-wrapper select,
.content-wrapper textarea {
  border: 1px solid var(--borda) !important;
  border-radius: 12px !important;
  background-color: #fff;
  color: var(--tinta) !important;
  font-size: 14px;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control, .custom-select, .content-wrapper select { min-height: 42px; }
.form-control-sm { min-height: 34px; border-radius: 10px !important; }
.form-control:focus,
.custom-select:focus,
.content-wrapper input:focus,
.content-wrapper select:focus,
.content-wrapper textarea:focus {
  border-color: var(--lilas-400) !important;
  box-shadow: 0 0 0 4px var(--lilas-100) !important;
  outline: none !important;
}
.form-control::placeholder, .content-wrapper input::placeholder { color: var(--fraco); }
.form-control:disabled, .form-control[readonly] { background: var(--fundo) !important; color: var(--fraco) !important; }
.content-wrapper label,
.content-wrapper .col-form-label {
  margin-bottom: 6px;
  color: var(--suave);
  font-size: 12.5px;
  font-weight: 800;
}
.input-group > .form-control:not(:last-child) { border-radius: 12px 0 0 12px !important; }
.input-group > .form-control:not(:first-child) { border-radius: 0 12px 12px 0 !important; }
.input-group-text,
.input-group-append .btn,
.input-group-prepend .btn {
  border: 1px solid var(--borda) !important;
  background: var(--lilas-50) !important;
  color: var(--lilas-700) !important;
  box-shadow: none !important;
}
.input-group-append > .btn, .input-group-append > .input-group-text { border-radius: 0 12px 12px 0 !important; }
.input-group-prepend > .btn, .input-group-prepend > .input-group-text { border-radius: 12px 0 0 12px !important; }
.custom-control-input:checked ~ .custom-control-label::before { border-color: var(--lilas-600); background: var(--lilas-600); }
.content-wrapper input[type="checkbox"], .content-wrapper input[type="radio"] { accent-color: var(--lilas-600); }
.invalid-feedback { font-size: 12px; font-weight: 700; color: var(--rosa); }
.is-invalid { border-color: #fda4af !important; }

/* Select2 / bootstrap-select */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid var(--borda) !important;
  border-radius: 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 14px; color: var(--tinta); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--lilas-400) !important; box-shadow: 0 0 0 4px var(--lilas-100); }
.select2-container--default .select2-selection--multiple .select2-selection__choice { border: 0; border-radius: 999px; background: var(--lilas-100); color: var(--lilas-800); font-weight: 700; padding: 2px 10px; }
.select2-dropdown { border: 1px solid var(--borda) !important; border-radius: 14px !important; box-shadow: var(--sombra-g); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--lilas-600) !important; }
.select2-search--dropdown .select2-search__field { border-radius: 10px; border: 1px solid var(--borda); }
.bootstrap-select > .dropdown-toggle { border: 1px solid var(--borda) !important; border-radius: 12px !important; background: #fff !important; color: var(--tinta) !important; box-shadow: none !important; }
.bootstrap-select .dropdown-menu { border-radius: 14px; border: 1px solid var(--borda); box-shadow: var(--sombra-g); }
.bootstrap-select .dropdown-item.active, .bootstrap-select .dropdown-item:active { background: var(--lilas-600); }

/* Calendário (gijgo) */
.gj-picker-bootstrap { border-radius: 16px !important; border: 1px solid var(--borda) !important; box-shadow: var(--sombra-g) !important; }
.gj-picker-bootstrap div[role=navigator], .gj-picker-bootstrap [role=header] { background: var(--grad) !important; color: #fff !important; }
.gj-picker-bootstrap table tr td.selected.gj-cursor-pointer div { background: var(--lilas-600) !important; color: #fff !important; border-radius: 10px; }
.gj-picker-bootstrap table tr td.today div { color: var(--lilas-700) !important; font-weight: 900; }

/* ----- Tabelas / DataTables -------------------------------------------- */
.content-wrapper .table {
  margin-bottom: 0;
  color: var(--tinta);
  border-collapse: separate !important;
  border-spacing: 0;
}
.content-wrapper .table thead th,
.content-wrapper table.dataTable thead th,
.content-wrapper table.dataTable thead td {
  padding: 12px 14px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--borda) !important;
  background: var(--fundo) !important;
  color: var(--fraco) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.content-wrapper .table thead th:first-child { border-radius: 12px 0 0 12px; }
.content-wrapper .table thead th:last-child  { border-radius: 0 12px 12px 0; }
.content-wrapper .table td,
.content-wrapper table.dataTable tbody td {
  padding: 13px 14px !important;
  border-top: 0 !important;
  border-bottom: 1px solid #f1eef7 !important;
  font-size: 13.5px;
  vertical-align: middle !important;
}
.content-wrapper .table tbody tr { transition: background .18s ease; }
.content-wrapper .table tbody tr:hover,
.content-wrapper table.dataTable tbody tr:hover,
.content-wrapper table.dataTable.hover tbody tr:hover,
.content-wrapper table.dataTable.display tbody tr:hover { background: var(--lilas-50) !important; }
.content-wrapper table.dataTable.stripe tbody tr.odd,
.content-wrapper table.dataTable.display tbody tr.odd,
.content-wrapper .table-striped tbody tr:nth-of-type(odd) { background: #fcfbff; }
.content-wrapper table.dataTable.no-footer { border-bottom: 0 !important; }
.content-wrapper table.dataTable tbody tr.selected,
.content-wrapper table.dataTable tbody tr.selected:hover { background: var(--lilas-100) !important; color: var(--lilas-950) !important; }
.content-wrapper table.dataTable thead .sorting,
.content-wrapper table.dataTable thead .sorting_asc,
.content-wrapper table.dataTable thead .sorting_desc { background-position: center right 4px !important; padding-right: 22px !important; }
.content-wrapper table.dataTable thead .sorting_asc,
.content-wrapper table.dataTable thead .sorting_desc { color: var(--lilas-700) !important; }
.content-wrapper .table tfoot th, .content-wrapper .table tfoot td { border-top: 1px solid var(--borda) !important; font-weight: 900; }

.dataTables_wrapper { font-size: 13px !important; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { margin-bottom: 16px; color: var(--suave); font-size: 12.5px; font-weight: 700; }
.dataTables_wrapper .dataTables_length select {
  width: auto !important;
  min-height: 38px;
  margin: 0 6px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--borda) !important;
  border-radius: 10px !important;
}
.dataTables_wrapper .dataTables_filter input {
  width: 260px;
  max-width: 100%;
  min-height: 40px;
  margin-left: 0 !important;
  padding: 0 16px 0 40px !important;
  border: 1px solid var(--borda) !important;
  border-radius: 999px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b8399' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center !important;
}
.dataTables_wrapper .dataTables_info { padding-top: 18px !important; color: var(--fraco) !important; font-size: 12.5px; font-weight: 700; }
.dataTables_wrapper .dataTables_paginate { padding-top: 14px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 36px;
  margin: 0 2px !important;
  padding: 7px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--suave) !important;
  font-weight: 800;
  transition: background .2s ease, color .2s ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { border-color: var(--borda) !important; background: var(--lilas-50) !important; color: var(--lilas-700) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: transparent !important;
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .6);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover { background: transparent !important; color: #c9c3d6 !important; border-color: transparent !important; }
.dataTables_wrapper .dataTables_processing { border: 0; border-radius: 14px; background: #fff; box-shadow: var(--sombra-g); color: var(--lilas-700); font-weight: 800; }
div.dt-buttons { margin-bottom: 14px; }
.dt-button, button.dt-button, a.dt-button {
  margin-right: 6px !important;
  padding: 7px 16px !important;
  border: 1px solid var(--borda) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--suave) !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.dt-button:hover { border-color: var(--lilas-300) !important; color: var(--lilas-700) !important; background: var(--lilas-50) !important; }
.table-responsive { border-radius: 14px; }

/* Paginação Bootstrap / Laravel */
.pagination { gap: 4px; }
.page-link { min-width: 36px; border: 1px solid transparent !important; border-radius: 10px !important; color: var(--suave); font-weight: 800; text-align: center; }
.page-link:hover { background: var(--lilas-50); color: var(--lilas-700); }
.page-item.active .page-link { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .6); }
.page-item.disabled .page-link { background: transparent; color: #c9c3d6; }

/* ----- Alertas, selos, abas, modais ------------------------------------ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  animation: pd-surgir .4s var(--ease) backwards;
}
.alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-danger  { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.alert-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.alert-info    { border-color: var(--lilas-200); background: var(--lilas-50); color: var(--lilas-900); }

.badge { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.badge-primary, .badge-info { background: var(--lilas-100); color: var(--lilas-800); }
.badge-success { background: #d1fae5; color: #047857; }
.badge-danger  { background: #ffe4e6; color: #be123c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-secondary, .badge-light { background: #f1eef7; color: var(--suave); }

.nav-tabs { gap: 4px; border-bottom: 1px solid var(--borda); }
.nav-tabs .nav-link {
  margin-bottom: -1px;
  padding: 10px 16px;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fraco);
  font-size: 13.5px;
  font-weight: 800;
}
.nav-tabs .nav-link:hover { color: var(--lilas-700); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { border-bottom-color: var(--lilas-600) !important; color: var(--lilas-800) !important; }
.nav-pills .nav-link { border-radius: 999px; color: var(--suave); font-weight: 800; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--grad); color: #fff; }

.modal-backdrop.show { opacity: 1; background: rgba(28, 21, 35, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-content { border: 0; border-radius: 22px; box-shadow: var(--sombra-g); overflow: hidden; }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--borda); }
.modal-title { font-weight: 900; letter-spacing: -.02em; }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--borda); background: var(--fundo); }
.modal.fade .modal-dialog { transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.bootbox .modal-body { font-size: 14.5px; font-weight: 600; }

.dropdown-menu { border: 1px solid var(--borda); border-radius: 14px; box-shadow: var(--sombra-g); padding: 6px; }
.dropdown-item { border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--suave); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--lilas-50); color: var(--lilas-800); }
.dropdown-item.active, .dropdown-item:active { background: var(--lilas-600); color: #fff; }

.tooltip-inner { padding: 7px 11px; border-radius: 10px; background: var(--tinta); font-family: var(--pd-fonte); font-size: 12px; font-weight: 700; }
.bs-tooltip-top .arrow::before { border-top-color: var(--tinta); }
.bs-tooltip-bottom .arrow::before { border-bottom-color: var(--tinta); }

.progress { height: 8px; border-radius: 999px; background: var(--lilas-100); }
.progress-bar { border-radius: 999px; background: var(--grad); }

/* Cores utilitárias antigas puxadas para a paleta */
.text-primary { color: var(--lilas-700) !important; }
.bg-primary { background: var(--grad) !important; }
.text-muted { color: var(--fraco) !important; }

/* Cabeçalho de seção dentro de telas longas */
.content-wrapper h3, .content-wrapper h4 { font-size: 17px; }
.content-wrapper h5 { font-size: 15px; }

/* ----- Carregando (Livewire / telas) ------------------------------------ */
.pd-esqueleto {
  border-radius: 12px;
  background: linear-gradient(90deg, #f1eef7 0%, #faf8ff 50%, #f1eef7 100%);
  background-size: 200% 100%;
  animation: pd-brilho 1.4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Tela de entrar
   ========================================================================== */
body.pd-entrar-pagina { background: var(--fundo) !important; }
body.pd-entrar-pagina .wrapper { background: transparent !important; }
.pd-entrar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
}
.pd-entrar-arte {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background: linear-gradient(160deg, #5b21b6 0%, #2e1065 62%);
  color: #fff;
}
.pd-entrar-arte::before,
.pd-entrar-arte::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.pd-entrar-arte::before { top: -140px; right: -120px; width: 480px; height: 480px; background: rgba(139, 92, 246, .38); animation: pd-pulsar 6s ease-in-out infinite; }
.pd-entrar-arte::after  { bottom: -160px; left: -120px; width: 420px; height: 420px; background: rgba(45, 212, 191, .16); animation: pd-pulsar 7s ease-in-out infinite; }
.pd-entrar-grade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
.pd-entrar-logo img { height: 92px; width: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); animation: pd-surgir .6s var(--ease) backwards; }
.pd-entrar-frase { max-width: 520px; animation: pd-surgir .6s var(--ease) .1s backwards; }
.pd-entrar-frase h2 { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.pd-entrar-frase h2 em { font-style: normal; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-entrar-frase p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.6; }
.pd-entrar-numeros { display: flex; flex-wrap: wrap; gap: 12px; animation: pd-surgir .6s var(--ease) .2s backwards; }
.pd-entrar-numeros span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pd-entrar-numeros i { color: var(--verde); }

.pd-entrar-form {
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: #fff;
}
.pd-entrar-caixa { width: 100%; max-width: 400px; animation: pd-surgir .55s var(--ease) .05s backwards; }
.pd-entrar-caixa .pd-entrar-logo-mob { display: none; margin-bottom: 28px; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, #5b21b6, #2e1065); text-align: center; }
.pd-entrar-caixa .pd-entrar-logo-mob img { height: 56px; }
.pd-entrar-caixa h1 { margin: 0 0 6px; color: var(--tinta); font-size: 30px; font-weight: 900; letter-spacing: -.03em; }
.pd-entrar-caixa > p { margin: 0 0 30px; color: var(--suave); font-size: 15px; }
.pd-campo { position: relative; margin-bottom: 16px; }
.pd-campo label { display: block; margin-bottom: 7px; color: var(--suave); font-size: 12.5px; font-weight: 800; }
.pd-campo input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 46px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: #fff;
  color: var(--tinta);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pd-campo input::placeholder { color: var(--fraco); font-weight: 500; }
.pd-campo input:focus { border-color: var(--lilas-400); box-shadow: 0 0 0 4px var(--lilas-100); }
.pd-campo input.is-invalid { border-color: #fda4af; }
.pd-campo .pd-campo-icone { position: absolute; left: 17px; bottom: 17px; color: var(--fraco); font-size: 15px; pointer-events: none; transition: color .2s ease; }
.pd-campo input:focus ~ .pd-campo-icone { color: var(--lilas-600); }
.pd-campo .toggle-password {
  position: absolute;
  right: 6px; bottom: 6px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--fraco);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.pd-campo .toggle-password:hover { background: var(--lilas-50); color: var(--lilas-700); }
.pd-campo .invalid-feedback { margin-top: 6px; }
.pd-lembrar { display: flex; align-items: center; gap: 10px; margin: 4px 0 24px; color: var(--suave); font-size: 13.5px; font-weight: 700; cursor: pointer; user-select: none; }
.pd-lembrar input { width: 18px; height: 18px; accent-color: var(--lilas-600); cursor: pointer; }
.pd-entrar-botao {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: var(--sombra-l);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pd-entrar-botao:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(124, 58, 237, .38); }
.pd-entrar-botao i { transition: transform .25s ease; }
.pd-entrar-botao:hover i { transform: translateX(3px); }
.pd-entrar-rodape { margin-top: 34px; color: var(--fraco); font-size: 12px; font-weight: 600; text-align: center; }

@media (max-width: 991px) {
  .pd-entrar { grid-template-columns: 1fr; }
  .pd-entrar-arte { display: none; }
  .pd-entrar-form { min-height: 100vh; background: var(--fundo); }
  .pd-entrar-caixa { padding: 30px 24px; border-radius: 24px; background: #fff; box-shadow: var(--sombra-g); }
  .pd-entrar-caixa .pd-entrar-logo-mob { display: block; }
}

/* ----- Vinham inline no header/footer ---------------------------------- */
span.selection { display: flow-root !important; }
.custom-select { width: 45% !important; }
.dataTables_wrapper .dataTables_length .custom-select,
.dataTables_wrapper .dataTables_length select { width: auto !important; }

/* ==========================================================================
   Layout Tailwind (tela de Produtos): ela não carrega o CSS do Bootstrap,
   então as peças do topo precisam do mínimo pra se comportar igual.
   ========================================================================== */
.pd-tw .d-none { display: none !important; }
@media (min-width: 576px) { .pd-tw .d-sm-inline { display: inline !important; } }
.pd-tw .dropdown { position: relative; }
.pd-tw .dropdown-menu { display: none; position: absolute; top: 100%; z-index: 1000; background: #fff; }
.pd-tw .dropdown-menu.show { display: block; }
.pd-tw .dropdown-item { display: flex; width: 100%; text-decoration: none; }
.pd-tw .dropdown-divider { height: 0; margin: 6px 0; border-top: 1px solid var(--borda); }
.pd-tw .dropdown-header { display: block; }
.pd-tw .main-header .navbar { flex-wrap: nowrap; }
.pd-tw .content-wrapper > .breadcrumb-holder,
.pd-tw .content-wrapper .breadcrumb-holder.pd-movido { display: none !important; }

/* ==========================================================================
   Painéis (painel principal e painel do evento)
   ========================================================================== */

/* ----- Barra de filtros ------------------------------------------------- */
.pd-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(233, 229, 242, .7);
  border-radius: var(--raio-g);
  background: #fff;
  box-shadow: var(--sombra);
}
.pd-filtros .pd-filtro { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.pd-filtros .pd-filtro > span { color: var(--fraco); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pd-filtros .pd-filtro .form-control { width: 100% !important; }
.pd-filtros .pd-filtro-acao { flex: 0 0 auto; }
.pd-filtros .pd-filtro-acao .btn { height: 42px; padding: 0 24px !important; }

/* ----- Indicadores (KPIs) ---------------------------------------------- */
.pd-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0 0 22px;
}
.pd-kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 148px;
  padding: 20px 22px;
  border: 1px solid rgba(233, 229, 242, .7);
  border-radius: var(--raio-g);
  background: #fff;
  box-shadow: var(--sombra);
  animation: pd-surgir .5s var(--ease) backwards;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.pd-kpi:hover { transform: translateY(-3px); box-shadow: var(--sombra-g); }
.pd-kpis > .pd-kpi:nth-child(2) { animation-delay: .06s; }
.pd-kpis > .pd-kpi:nth-child(3) { animation-delay: .12s; }
.pd-kpis > .pd-kpi:nth-child(4) { animation-delay: .18s; }
.pd-kpis > .pd-kpi:nth-child(5) { animation-delay: .24s; }
.pd-kpi-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pd-kpi-icone {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--lilas-50);
  color: var(--lilas-700);
  font-size: 15px;
}
.pd-kpi-rotulo { color: var(--suave); font-size: 12.5px; font-weight: 800; letter-spacing: .01em; }
.pd-kpi-valor {
  margin: 0;
  color: var(--tinta);
  font-size: clamp(24px, 2.1vw, 31px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pd-kpi-sub { margin-top: auto; padding-top: 10px; color: var(--fraco); font-size: 12px; font-weight: 700; }
.pd-kpi-linhas { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pd-kpi-linha { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--suave); }
.pd-kpi-linha b { color: var(--tinta); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-kpi-linha.pd-neg b { color: #e11d48; }
.pd-kpi-linha.pd-aviso b { color: #b45309; }
.pd-kpi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1eef7; color: var(--suave); font-size: 11.5px; font-weight: 800; }
.pd-chip.pd-chip-aviso { background: #fef3c7; color: #b45309; }
.pd-chip.pd-chip-neg { background: #ffe4e6; color: #be123c; }
.pd-chip.pd-chip-ok { background: #d1fae5; color: #047857; }
.pd-kpi-barra { height: 7px; margin-top: 10px; border-radius: 999px; background: var(--lilas-100); overflow: hidden; }
.pd-kpi-barra > span { display: block; height: 100%; border-radius: 999px; background: var(--grad-accent); transform-origin: left; animation: pd-crescer 1.2s var(--ease) .3s backwards; }
@keyframes pd-crescer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pd-kpi-sep { height: 1px; margin: 10px 0 6px; background: var(--borda); }

/* Destaque: fundo roxo, texto SEMPRE branco */
.pd-kpi.pd-kpi-destaque {
  border: 0;
  background: linear-gradient(150deg, #7c3aed 0%, #4c1d95 100%);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(91, 33, 182, .65);
}
.pd-kpi.pd-kpi-destaque::before {
  content: "";
  position: absolute;
  top: -60px; right: -50px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  filter: blur(6px);
}
.pd-kpi.pd-kpi-destaque::after {
  content: "";
  position: absolute;
  bottom: -70px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .22);
  filter: blur(30px);
}
.pd-kpi.pd-kpi-destaque > * { position: relative; z-index: 1; }
.pd-kpi-destaque .pd-kpi-icone { background: rgba(255, 255, 255, .16); color: #fff; }
.pd-kpi-destaque .pd-kpi-rotulo,
.pd-kpi-destaque .pd-kpi-valor,
.pd-kpi-destaque .pd-kpi-sub,
.pd-kpi-destaque .pd-kpi-linha,
.pd-kpi-destaque .pd-kpi-linha b { color: #fff !important; }
.pd-kpi-destaque .pd-kpi-sub { opacity: .85; }
.pd-kpi-destaque .pd-kpi-sep { background: rgba(255, 255, 255, .2); }

/* Tons dos ícones */
.pd-tom-verde .pd-kpi-icone { background: #d1fae5; color: #059669; }
.pd-tom-azul  .pd-kpi-icone { background: #dbeafe; color: #2563eb; }
.pd-tom-ambar .pd-kpi-icone { background: #fef3c7; color: #d97706; }
.pd-tom-agua  .pd-kpi-icone { background: #ccfbf1; color: #0d9488; }
.pd-tom-rosa  .pd-kpi-icone { background: #ffe4e6; color: #e11d48; }

/* ----- Cartão de gráfico / bloco --------------------------------------- */
.pd-bloco {
  position: relative;
  margin-bottom: 22px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(233, 229, 242, .7);
  border-radius: var(--raio-g);
  background: #fff;
  box-shadow: var(--sombra);
  animation: pd-surgir .5s var(--ease) backwards;
}
.pd-bloco-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pd-bloco-titulo { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--tinta); font-size: 15.5px; font-weight: 900; letter-spacing: -.015em; }
.pd-bloco-titulo i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--lilas-50); color: var(--lilas-700); font-size: 13px; }
.pd-bloco-sub { color: var(--fraco); font-size: 12px; font-weight: 700; }
.pd-bloco-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pd-grade { display: grid; gap: 16px; }
.pd-grade-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pd-grade-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pd-grade-5 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pd-grade > .pd-bloco { margin-bottom: 0; }
.pd-grade + .pd-grade, .pd-grade + .pd-bloco { margin-top: 16px; }
.pd-graf { position: relative; width: 100%; min-height: 220px; }
.pd-graf-p { height: 280px; }
.pd-graf-m { height: 320px; }
.pd-graf-g { height: 380px; }
.pd-mini-titulo { margin: 0 0 4px; color: var(--suave); font-size: 12.5px; font-weight: 800; text-align: center; }

/* Segmentado (DIA / SEMANA / MÊS / ANO etc.) */
.pd-segmentos { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--fundo); border: 1px solid var(--borda); }
.pd-segmentos .btn,
.pd-segmentos button {
  padding: 6px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--suave) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transform: none !important;
}
.pd-segmentos .btn:hover, .pd-segmentos button:hover { color: var(--lilas-700) !important; }
.pd-segmentos .btn.active, .pd-segmentos button.active,
.pd-segmentos .btn.btn-primary, .pd-segmentos .btn.btn-info { background: #fff !important; color: var(--lilas-800) !important; box-shadow: 0 2px 8px rgba(28, 21, 35, .1) !important; }

/* Sem dados */
.pd-graf-vazio-host { display: grid; place-items: center; }
.pd-graf-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 160px; color: var(--fraco); font-size: 13px; font-weight: 700; text-align: center; }
.pd-graf-vazio i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--lilas-50); color: var(--lilas-400); font-size: 18px; }

/* ApexCharts */
.apexcharts-tooltip { border: 1px solid var(--borda) !important; border-radius: 12px !important; box-shadow: var(--sombra-g) !important; }
.apexcharts-tooltip-title { border-bottom: 1px solid var(--borda) !important; background: var(--fundo) !important; font-weight: 800 !important; }
.apexcharts-xaxistooltip { display: none; }
.apexcharts-legend-text { font-family: var(--pd-fonte) !important; }

/* ----- Carregando (substitui o "Carregando dados..." dos blocos) -------- */
.pd-carregando { display: grid; gap: 14px; width: 100%; padding: 6px 0; }
.pd-carregando-linha { display: flex; gap: 14px; }
.pd-carregando .pd-esqueleto { flex: 1; height: 120px; border-radius: 18px; }
.pd-carregando-rotulo { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--fraco); font-size: 12.5px; font-weight: 800; }
.pd-carregando-rotulo::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--lilas-200); border-top-color: var(--lilas-600); border-radius: 50%; animation: pd-girar .8s linear infinite; }
@keyframes pd-girar { to { transform: rotate(360deg); } }

/* ----- Cards de evento (painel principal) ------------------------------ */
.pd-eventos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.pd-evento {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(233, 229, 242, .7);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sombra);
  color: var(--tinta) !important;
  transition: transform .35s var(--ease), box-shadow .35s ease;
  animation: pd-surgir .5s var(--ease) backwards;
}
.pd-evento:hover { transform: translateY(-4px); box-shadow: var(--sombra-g); }
.pd-evento-capa { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--lilas-50); }
.pd-evento-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pd-evento:hover .pd-evento-capa img { transform: scale(1.06); }
.pd-evento-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28, 21, 35, .35)); }
.pd-evento-data { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--lilas-800); font-size: 11.5px; font-weight: 900; }
.pd-evento-corpo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; }
.pd-evento-nome { overflow: hidden; color: var(--tinta); font-size: 13.5px; font-weight: 900; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.pd-evento-ir { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: var(--lilas-50); color: var(--lilas-700); font-size: 12px; transition: background .25s ease, color .25s ease; }
.pd-evento:hover .pd-evento-ir { background: var(--grad); color: #fff; }
.pd-eventos-vazio { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px dashed var(--lilas-200); border-radius: 20px; background: #fff; color: var(--suave); font-weight: 700; }
.pd-eventos-vazio i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lilas-50); color: var(--lilas-500); }

/* ----- Seção com título (dentro dos painéis) ---------------------------- */
.pd-secao-titulo { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--tinta); font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.pd-secao-titulo small { color: var(--fraco); font-size: 12.5px; font-weight: 700; letter-spacing: 0; }

/* ----- Cabeçalho do evento --------------------------------------------- */
.pd-evento-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(233, 229, 242, .7);
  border-radius: var(--raio-g);
  background: #fff;
  box-shadow: var(--sombra);
  animation: pd-surgir .45s var(--ease) backwards;
}
.pd-evento-hero-capa { flex: 0 0 auto; width: 132px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--lilas-50); box-shadow: 0 10px 24px -12px rgba(28, 21, 35, .45); }
.pd-evento-hero-capa img { width: 100%; height: 100%; object-fit: cover; }
.pd-evento-hero-info { flex: 1 1 260px; min-width: 0; }
.pd-evento-hero-selo { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--lilas-700); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pd-evento-hero-titulo { margin: 0 0 10px; font-size: clamp(20px, 2vw, 26px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.pd-evento-hero-titulo a { color: var(--tinta); }
.pd-evento-hero-titulo a i { margin-left: 4px; color: var(--fraco); font-size: .55em; vertical-align: middle; opacity: 0; transition: opacity .2s ease; }
.pd-evento-hero-titulo a:hover { color: var(--lilas-800); }
.pd-evento-hero-titulo a:hover i { opacity: 1; }
.pd-evento-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-evento-hero-filtro { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.pd-evento-hero-filtro .pd-filtro { display: flex; flex-direction: column; gap: 6px; min-width: 190px; margin: 0; }
.pd-evento-hero-filtro .pd-filtro > span { color: var(--fraco); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pd-evento-hero-filtro .gj-datepicker, .pd-evento-hero-filtro .input-group { width: 100%; }
.pd-evento-hero-buscar { height: 42px; padding: 0 20px !important; }
.pd-evento-hero-links .btn { height: 42px; }
.pd-evento-hero-links .dropdown-menu { min-width: 250px; }
.pd-evento-hero-links .dropdown-item i { width: 18px; color: var(--fraco); text-align: center; }
@media (max-width: 767px) {
  .pd-evento-hero-capa { width: 96px; }
  .pd-evento-hero-filtro, .pd-evento-hero-filtro .pd-filtro { width: 100%; }
}
.pd-evento-paineis > * { margin-bottom: 22px; }

/* Linha que expande (detalhes) nas tabelas do evento */
.content-wrapper tbody td.details-control { position: relative; width: 36px; background: none !important; cursor: pointer; }
.content-wrapper tbody td.details-control::before {
  content: "\f054";
  position: absolute;
  top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--lilas-50);
  color: var(--lilas-700);
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), background .2s ease, color .2s ease;
}
.content-wrapper tbody tr:hover td.details-control::before { background: var(--grad); color: #fff; }
.content-wrapper tbody tr.shown td.details-control::before { transform: translate(-50%, -50%) rotate(90deg); background: var(--grad); color: #fff; }

/* Telas sem a barra lateral (ex.: monitor em tempo real) */
.wrapper:not(:has(.main-sidebar)) .content-wrapper,
.wrapper:not(:has(.main-sidebar)) .main-header .navbar { margin-left: 0 !important; }
.wrapper:not(:has(.main-sidebar)) .pd-alternar { display: none; }

/* Tabelas do meio do painel do evento */
.pd-meio { margin-left: -8px; margin-right: -8px; }
.pd-meio > [class*="col-"] { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }
.pd-meio > [class*="col-"] > .pd-bloco { height: 100%; margin-bottom: 0; }
.pd-bloco .table-responsive[class*="col-"] { padding-left: 0; padding-right: 0; }
.pd-bloco .dataTables_wrapper .row { margin-left: 0; margin-right: 0; }

/* Painel principal */
.pd-principal .pd-filtros { margin-bottom: 18px; }
.pd-principal .pd-vendas-periodo,
.pd-principal .pd-principal-pizzas { margin-bottom: 16px; }
.pd-principal .pd-reimp { margin-bottom: 24px; }
.pd-principal .pd-vendas-periodo .pd-bloco-acoes { max-width: 100%; overflow-x: auto; }
.pd-reimp .dataTables_length { width: 100%; }

/* ==========================================================================
   Etapa 3 — refinamento global de telas (listas, formulários, peças comuns)
   ========================================================================== */

/* Tabelas: uma linha por registro (rolagem lateral quando não couber) */
.content-wrapper .table td { white-space: nowrap; }
.content-wrapper .table td.pd-quebra,
.content-wrapper .table td.text-wrap { white-space: normal; }
.content-wrapper .table td a:not(.btn) { font-weight: 700; }

/* Cabeçalho do cartão: título à esquerda, ações juntas à direita */
.content-wrapper .card-header > .btn,
.content-wrapper .card-header > a.btn,
.content-wrapper .card-header > div:last-child:not(:first-child) { float: none !important; margin: 0 !important; }
.content-wrapper .card-header > .btn:first-of-type,
.content-wrapper .card-header > a.btn:first-of-type { margin-left: auto !important; }

/* Placeholders e textos de ajuda legíveis */
.content-wrapper .form-control::placeholder,
.content-wrapper input::placeholder,
.content-wrapper textarea::placeholder { font-size: 13.5px; }
.content-wrapper .form-control { font-size: 14px !important; }
.content-wrapper small, .content-wrapper .form-text { color: var(--fraco); font-size: 12px; font-weight: 600; }
.content-wrapper label .text-danger, .content-wrapper .text-danger.required, .content-wrapper label > span.text-danger { color: #e11d48 !important; }

/* Checkboxes e radios em formulários: viram "pílulas" clicáveis */
.content-wrapper .form-check,
.content-wrapper .checkbox,
.content-wrapper .custom-checkbox { margin-bottom: 6px; }
.content-wrapper .form-check-input,
.content-wrapper input[type="checkbox"],
.content-wrapper input[type="radio"] { width: 17px; height: 17px; margin-top: .15rem; vertical-align: -3px; cursor: pointer; }
.content-wrapper .form-check-label { color: var(--tinta); font-size: 13.5px; font-weight: 700; cursor: pointer; }

/* Campo de arquivo */
.content-wrapper input[type="file"].form-control,
.content-wrapper input[type="file"] { padding: 7px 10px; min-height: 42px; background: var(--fundo); cursor: pointer; }
.content-wrapper input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 14px;
  border: 0; border-radius: 999px;
  background: var(--lilas-100); color: var(--lilas-800);
  font-family: var(--pd-fonte); font-size: 12.5px; font-weight: 800;
  cursor: pointer;
}

/* Botão de enviar dos formulários (Salvar / Aplicar / Cadastrar) */
.content-wrapper form button[type="submit"]:not(.btn-danger):not(.btn-sm):not(.pd-ev-buscar),
.content-wrapper form input[type="submit"] {
  border: 0 !important;
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: var(--sombra-l) !important;
  padding: 11px 26px !important;
}

/* Seletor de duas listas (jQuery UI multiselect) */
.ui-multiselect {
  border: 1px solid var(--borda) !important;
  border-radius: 16px !important;
  background: #fff !important;
  font-family: var(--pd-fonte) !important;
  font-size: 13px !important;
  overflow: hidden;
}
.ui-multiselect .actions {
  display: flex; align-items: center; gap: 8px;
  height: auto !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--borda) !important;
  background: var(--fundo) !important;
  color: var(--suave) !important;
  font-weight: 800 !important;
}
.ui-multiselect .actions .search {
  flex: 1;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--borda) !important;
  border-radius: 999px !important;
  background: #fff !important;
  font-family: var(--pd-fonte); font-size: 12.5px;
}
.ui-multiselect .actions a { color: var(--lilas-700) !important; font-size: 12px; font-weight: 800; text-decoration: none; }
.ui-multiselect .actions .count { color: var(--suave); font-size: 12px; font-weight: 800; }
.ui-multiselect div.available { border-right: 1px solid var(--borda) !important; }
.ui-multiselect ul li.ui-element,
.ui-multiselect ul li.ui-state-default {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 6px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--tinta) !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background .15s ease;
}
.ui-multiselect ul li.ui-element:hover,
.ui-multiselect ul li.ui-state-hover { background: var(--lilas-50) !important; color: var(--lilas-800) !important; }
.ui-multiselect ul.selected li.ui-element { background: var(--lilas-50) !important; }
.ui-multiselect ul li a.action { order: 2; }
.ui-multiselect ul li .ui-icon { opacity: .55; }
.ui-multiselect ul li:hover .ui-icon { opacity: 1; }

/* Abas dentro de cartões (ex.: editar evento) */
.content-wrapper .card > .nav-tabs,
.content-wrapper .card-header .nav-tabs { padding: 0 18px; }
.content-wrapper .tab-content { padding-top: 6px; }

/* ----- Peças comuns para as telas -------------------------------------- */
/* Cabeçalho de página: título, descrição e ações */
.pd-pagina-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 0 0 18px; }
.pd-pagina-cab-icone { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 16px; background: var(--grad); color: #fff; font-size: 18px; box-shadow: var(--sombra-l); }
.pd-pagina-cab-texto { min-width: 0; flex: 1 1 260px; }
.pd-pagina-cab-texto h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.pd-pagina-cab-texto p { margin: 3px 0 0; color: var(--fraco); font-size: 13.5px; font-weight: 600; }
.pd-pagina-cab-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* Selos de status */
.pd-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 900; white-space: nowrap; }
.pd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pd-status-on { background: #d1fae5; color: #047857; }
.pd-status-off { background: #f1eef7; color: var(--fraco); }
.pd-status-alerta { background: #ffe4e6; color: #be123c; }
.pd-status-aviso { background: #fef3c7; color: #b45309; }
.pd-status-info { background: var(--lilas-100); color: var(--lilas-800); }

/* Seções de formulário */
.pd-form-secao { margin-bottom: 18px; padding: 20px 22px; border: 1px solid rgba(233, 229, 242, .7); border-radius: var(--raio-g); background: #fff; box-shadow: var(--sombra); }
.pd-form-secao-titulo { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 15.5px; font-weight: 900; letter-spacing: -.015em; }
.pd-form-secao-titulo i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--lilas-50); color: var(--lilas-700); font-size: 13px; }
.pd-form-secao-desc { margin: 0 0 16px 42px; color: var(--fraco); font-size: 12.5px; font-weight: 600; }
.pd-form-acoes {
  position: sticky; bottom: 14px; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding: 12px 14px;
  border: 1px solid rgba(233, 229, 242, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 40px -18px rgba(28, 21, 35, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pd-form-acoes .pd-form-acoes-info { margin-right: auto; padding-left: 8px; color: var(--fraco); font-size: 12.5px; font-weight: 700; }

/* Estado vazio */
.pd-vazio { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; color: var(--fraco); font-size: 13.5px; font-weight: 700; text-align: center; }
.pd-vazio i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--lilas-50); color: var(--lilas-400); font-size: 20px; }

/* Lista de dados (telas de visualizar) */
.pd-dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 0; }
.pd-dados > div { padding: 12px 14px; border-radius: 14px; background: var(--fundo); }
.pd-dados dt { margin-bottom: 4px; color: var(--fraco); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pd-dados dd { margin: 0; color: var(--tinta); font-size: 14px; font-weight: 800; word-break: break-word; }

/* Barra de ações de uma lista (exportar, filtrar, deletar...) */
.pd-acoes-lista { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Telas de acesso: ícones presos à altura do campo (não ao fundo do bloco,
   senão a mensagem de erro empurra o ícone pra fora do lugar) */
.pd-campo .pd-campo-icone { top: 44px; bottom: auto; }
.pd-campo .toggle-password { top: 32px; bottom: auto; }

/* ----- Telas: eventos ----- */
/* ----- Eventos: editar/criar evento ------------------------------------ */
/* Barra de abas em cartão próprio; as seções (.pd-form-secao) ficam abaixo */
.pd-ev-abas { margin-bottom: 18px !important; }
.pd-ev-abas > .nav-tabs { flex-wrap: nowrap; overflow-x: auto; padding-top: 6px !important; border-bottom: 0; scrollbar-width: thin; }
.pd-ev-abas > .nav-tabs .nav-link { white-space: nowrap; }
.pd-ev-abas > .nav-tabs .nav-link i { margin-right: 4px; opacity: .8; }

/* Vinha num <style> solto no events/edit.blade.php (dropdown do select2 colado ao campo) */
.select2-dropdown--below { margin-top: 0 !important; }

/* ----- Telas: vendas ----- */
/* ----- Grupo vendas ----------------------------------------------------- */
/* Filtros dentro de um bloco (ex.: alterar status do pedido) não viram outro cartão */
.pd-bloco .pd-filtros { margin-bottom: 0; padding: 0; border: 0; box-shadow: none; }
/* Log de vendas: ações da lista coladas aos filtros */
.formfiltros .pd-filtros { margin-bottom: 12px; }
.formfiltros .pd-acoes-lista { margin-bottom: 18px; }
/* Fotos dos cadastros de loja recebidos */
.store-onboard .storeonboard-img { object-fit: cover; border-radius: 10px; background: var(--fundo); }

/* ----- Telas: pessoas ----- */
/* ----- Grupo "pessoas": operadores, usuários, níveis, permissões, clientes, contatos, auth ----- */

/* Foto pequena na lista de operadores */
.pd-foto-mini { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--lilas-50); box-shadow: 0 0 0 1px var(--borda); }

/* Foto grande (visualizar / editar operador) */
.pd-foto-grande { display: block; width: 100%; max-width: 260px; padding: 0 !important; border: 1px solid var(--borda) !important; border-radius: 18px !important; background: var(--lilas-50) !important; object-fit: cover; }

/* Item de dados ocupando a linha inteira (ex.: endereço) */
.pd-dados > .pd-dados-largo { grid-column: 1 / -1; }

/* Célula com texto longo cortado com reticências (ex.: lojas do usuário) */
.content-wrapper .table td.pd-corte { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* Identificador de permissão (modulo.acao) */
.pd-codigo { padding: 3px 8px; border-radius: 8px; background: var(--lilas-50); color: var(--lilas-800); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* Tabelas server-side (clientes / contatos): busca em cima, quantidade e paginação embaixo */
.pd-tabela-ajax .dataTables_wrapper { display: flex; flex-wrap: wrap; align-items: center; }
.pd-tabela-ajax .dataTables_wrapper > table { flex: 0 0 100%; }
.pd-tabela-ajax .dataTables_filter { width: 100%; }
.pd-tabela-ajax .dataTables_info { margin-right: auto; }
.pd-tabela-ajax .dataTables_length { margin: 14px 0 0 auto; }
.pd-tabela-ajax .myTableDetails { width: 100% !important; }

/* Telas de acesso (criar conta / redefinir senha): link de volta */
.pd-entrar-rodape a { color: var(--lilas-700); font-weight: 800; }
.pd-entrar-rodape a:hover { color: var(--lilas-900); }
.pd-entrar-caixa .alert { margin-bottom: 20px; }

/* ----- Telas: catalogo ----- */
/* ==========================================================================
   Catálogo (lojas, produtos, categorias, locais, setores, tags)
   ========================================================================== */

/* Miniatura da loja na lista */
.pd-cat-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 1px solid var(--borda); background: var(--fundo); }

/* Carregando dos setores (editar loja) */
.pd-cat-carregando { text-align: center; }
.pd-cat-carregando img { position: relative; z-index: 1; max-width: 30px; margin-top: -80px; }

/* Tabela Livewire de produtos (layout Tailwind): linhas no padrão das tabelas */
.pd-lw .pd-lw-tabela > div > .table { width: 100%; }
.pd-lw .pd-lw-cab > .table-cell:first-child > * { border-top-left-radius: 12px; }
.pd-lw .pd-lw-cab > .table-cell:last-child > * { border-top-right-radius: 12px; }
.pd-lw .pd-lw-filtros > .table-cell { border-bottom: 1px solid var(--borda); background: #fff; }
.pd-lw .pd-lw-linha { background: #fff !important; color: var(--tinta); transition: background .18s ease; }
.pd-lw .pd-lw-linha > .table-cell { border-bottom: 1px solid #f1eef7; border-left: 0 !important; border-right: 0 !important; font-size: 13.5px; vertical-align: middle; }
.pd-lw .pd-lw-linha:nth-child(odd) { background: #fcfbff !important; }
.pd-lw .pd-lw-linha:hover { background: var(--lilas-50) !important; }
.pd-lw .pd-lw-linha > .table-cell:first-child { color: var(--fraco); font-weight: 700; }
.pd-lw .pd-lw-rodape select { min-height: 40px; }
.pd-lw .pd-lw-tabela mark,
.pd-lw .pd-lw-tabela .bg-yellow-100 { background: var(--lilas-100) !important; color: var(--lilas-900); border-radius: 4px; }

/* AdminLTE força cores chapadas nos alertas com !important */
.alert.alert-success { border-color: #a7f3d0 !important; background: #ecfdf5 !important; color: #065f46 !important; }
.alert.alert-danger, .alert.alert-error { border-color: #fecdd3 !important; background: #fff1f2 !important; color: #9f1239 !important; }
.alert.alert-warning { border-color: #fde68a !important; background: #fffbeb !important; color: #92400e !important; }
.alert.alert-info { border-color: var(--lilas-200) !important; background: var(--lilas-50) !important; color: var(--lilas-900) !important; }

/* ==========================================================================
   Verificação em duas etapas (2FA) — janela sobre a tela de login
   ========================================================================== */
.pd-mfa-fundo { filter: blur(6px) saturate(1.1); transform: scale(1.02); pointer-events: none; user-select: none; }
.pd-mfa {
  position: fixed; inset: 0; z-index: 1050;
  display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(28, 21, 35, .48);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  animation: pd-mfa-fundo .3s var(--ease) both;
}
.pd-mfa-janela {
  position: relative; width: 100%; max-width: 420px;
  padding: 34px 32px 22px; border-radius: 26px; text-align: center;
  background: #fff; box-shadow: 0 30px 80px rgba(46, 16, 101, .35), 0 0 0 1px rgba(255,255,255,.6) inset;
  animation: pd-mfa-janela .42s cubic-bezier(.2, .9, .3, 1.2) both;
}
.pd-mfa-escudo {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px;
  border-radius: 20px; font-size: 27px; color: #fff; background: var(--grad);
  box-shadow: 0 12px 28px rgba(124, 58, 237, .35);
}
.pd-mfa-janela h1 { margin: 0 0 8px; font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--tinta); }
.pd-mfa-texto { margin: 0 auto 20px; max-width: 330px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--suave); }
.pd-mfa-qr { margin: 0 auto 20px; width: 196px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--borda); box-shadow: 0 8px 22px rgba(46,16,101,.08); }
.pd-mfa-qr img { display: block; width: 100%; height: auto; }
.pd-mfa .pd-mfa-codigo {
  display: block; width: 100%; height: 64px; margin: 0 0 8px; padding: 0 12px 0 calc(12px + .5em);
  border: 2px solid var(--borda); border-radius: 18px; background: var(--fundo);
  font-family: inherit; font-size: 32px; font-weight: 900; letter-spacing: .5em; text-align: center; color: var(--tinta);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pd-mfa .pd-mfa-codigo::placeholder { color: #d7d1e6; }
.pd-mfa .pd-mfa-codigo:focus { outline: none; background: #fff; border-color: var(--lilas-400); box-shadow: 0 0 0 5px var(--lilas-100); }
.pd-mfa .pd-mfa-codigo.is-invalid { border-color: #f43f5e; background: #fff1f2; animation: pd-mfa-tremer .4s; }
.pd-mfa-erro { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 800; color: #e11d48; }
.pd-mfa .pd-entrar-botao { width: 100%; margin-top: 10px; }
.pd-mfa form[data-pd-mfa].pd-enviando .pd-entrar-botao { opacity: .7; pointer-events: none; }
.pd-mfa-sair { margin-top: 14px; }
.pd-mfa-sair button { border: 0; background: none; padding: 6px 10px; font-size: 13px; font-weight: 800; color: var(--fraco); cursor: pointer; border-radius: 10px; }
.pd-mfa-sair button:hover { color: var(--lilas-700); background: var(--lilas-50, #f6f3ff); }
@keyframes pd-mfa-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-mfa-janela { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pd-mfa-tremer { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 480px) { .pd-mfa-janela { padding: 28px 20px 18px; } .pd-mfa .pd-mfa-codigo { font-size: 28px; letter-spacing: .38em; } }
@media (prefers-reduced-motion: reduce) { .pd-mfa, .pd-mfa-janela, .pd-mfa .pd-mfa-codigo.is-invalid { animation: none; } }
