@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600;1,700&display=swap');

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body,
input,
select,
textarea,
button {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* ===== CORES ===== */
:root {
  --primary: #06363b;
  --secondary: #00c2a8;
  --white: #ffffff;
  --title-font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

/* ===================================================== */
/* ================= FUNDO ANIMADO ====================== */
/* ===================================================== */

.app-bg {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  height: calc(100vh - 90px);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,171,151,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(21,69,79,0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0D2D34 0%, #0a2028 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,171,151,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,171,151,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* FLOATERS */
.hero-floaters {
  position: absolute;
  inset: 0;
}

.floater {
  position: absolute;
  border: 1px solid rgba(0,171,151,0.12);
  animation: float 8s ease-in-out infinite;
}

.floater-1 { width: 110px; height: 110px; top: 18%; right: 14%; }
.floater-2 { width: 55px; height: 55px; top: 55%; right: 28%; }
.floater-3 { width: 180px; height: 180px; top: 28%; right: 6%; }
.floater-4 { width: 38px; height: 38px; top: 72%; right: 42%; background: #00AB97; opacity: 0.05; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.login-body .app-bg {
  display: none;
}

/* ===================================================== */
/* ===================== LOGIN ========================== */
/* ===================================================== */

.login-body {
  background: #f4f6f8;
  overflow: hidden;
}

.login-page {
  height: 100vh;
  display: flex;
}

.login-left {
  width: 55%;
  background: linear-gradient(135deg, #184f52, #0f3b3d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-banner {
  width: 420px;
  max-width: 80%;
}

.login-right {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 420px;
  background: white;
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

/* ===================================================== */
/* ===================== HEADER ========================= */
/* ===================================================== */

.main-header {
  height: 90px;
  background: var(--primary);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  position: absolute;
  left: 40px;
}

.logo img {
  height: 225px;
}

/* ================= MENU MODERNO ================= */

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

/* manter no header apenas o acesso rapido para Menu */
.main-header .menu {
  display: flex;
}

.main-header .menu a:not(:first-child) {
  display: none !important;
}


/* BOTÃ•ES */
.menu a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;

  color: #d1d5db;
  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.1);

  transition: all 0.25s ease;
}

/* HOVER */
.menu a:hover {
  color: white;
  background: linear-gradient(135deg, #00c2a8, #0072ff);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ATIVO */
.menu a.active {
  color: white;
  background: linear-gradient(135deg, #00c2a8, #0072ff);
  box-shadow: 0 0 10px rgba(0, 194, 168, 0.5);
}

/* DIREITA */
.header-right {
  position: absolute;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-top-container .header-right {
  right: clamp(18px, 4vw, 48px);
  gap: 8px;
}

.dashboard-top-container .header-right .logout-btn {
  margin-left: 12px;
}

.dashboard-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: center;
}

.dashboard-top-container {
  padding-left: 280px;
  padding-right: 150px;
}

.dashboard-top-container .dashboard-header-nav {
  width: 100%;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  justify-content: flex-start;
}

.dashboard-pages-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}

.dashboard-pages-label {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-page-select {
  height: 34px;
  min-width: 210px;
  max-width: 260px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(9, 52, 55, 0.9);
  color: #fff;
  padding: 0 30px 0 10px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.dashboard-page-select:focus {
  outline: none;
  border-color: #00c2a8;
  box-shadow: 0 0 0 2px rgba(0,194,168,0.22);
}

.dashboard-top-container .dashboard-page-select {
  min-width: 145px;
  max-width: 165px;
  height: 31px;
  font-size: 12px;
  padding-right: 24px;
}

.dashboard-top-container .dashboard-pages-nav {
  padding: 4px 7px;
  gap: 6px;
}

.dashboard-top-container #dashboardListNav {
  margin-left: 10px;
}

.dashboard-top-container .dashboard-pages-label {
  font-size: 12px;
}

.next-page-btn {
  white-space: nowrap;
  font-weight: 600;
}

.page-nav-btn {
  white-space: nowrap;
}

.mini-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
  min-height: 31px;
  text-align: center;
}

.dashboard-view-body .dashboard-top-container .header-right .logout-btn {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 31px;
}

/* BOTÃ•ES */
.main-header a,
.main-header button {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.main-header a:hover,
.main-header button:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateY(-2px);
}

/* USER */
.user-label {
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.user-label-prefix {
  color: rgba(255,255,255,0.92);
}

.user-label-name {
  color: #f2de2f;
}

/* ===================================================== */
/* ===================== DASHBOARD ====================== */
/* ===================================================== */

.dashboard-body {
  padding-top: 120px;
}

.dashboard-view-body {
  padding-top: 90px;
}

.dashboard-container {
  max-width: 1400px;
  margin: 10px auto 40px auto;
  padding: 30px 40px 40px 40px;
}

.dashboard-body.with-side-menu:not(.dashboard-view-body) .dashboard-container {
  padding-left: 96px;
}

.dashboard-body.dashboard-list-view.with-side-menu:not(.dashboard-view-body) .dashboard-container {
  margin-top: 0;
  padding-top: 8px;
}

.dashboard-body.dashboard-admin-view.with-side-menu:not(.dashboard-view-body) .dashboard-container {
  margin-top: 0;
  padding-top: 8px;
}

.dashboard-title {
  color: white;
  font-size: 28px;
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.dashboard-subtitle {
  color: rgba(255,255,255,0.7);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.login-logo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 20, 24, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.login-logo-overlay.show {
  opacity: 1;
}

.login-logo-popup {
  width: min(420px, 76vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0,194,168,0.32);
  background: linear-gradient(135deg, rgba(12,55,60,0.88), rgba(8,36,41,0.92));
  box-shadow: 0 20px 50px rgba(0,0,0,0.42);
  animation: loginLogoPulse 1.2s ease-in-out infinite;
}

.login-logo-popup img {
  width: min(360px, 72vw);
  max-width: 100%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
  animation: loginLogoFloat 1.9s ease-in-out infinite;
}

@keyframes loginLogoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes loginLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.dashboard-card {
  height: 200px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  background: linear-gradient(135deg, #184f52, #0f3b3d);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ===================================================== */
/* ================= MENU LATERAL HOVER ================ */
/* ===================================================== */

.side-hover-nav {
  position: fixed;
  top: 90px;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.side-hover-dots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  align-self: stretch;
  padding: 44px 10px 16px;
  min-height: calc(100vh - 90px);
  background: linear-gradient(180deg, #082c31, #06242a);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
  backdrop-filter: none;
}

.side-dot-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 194, 168, 0.45);
  background: rgba(11, 62, 66, 0.55);
  color: #dcfdf9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.side-dot-icon {
  width: 72%;
  height: 72%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.side-dot-btn:hover,
.side-dot-btn.active {
  transform: translateX(3px);
  background: linear-gradient(135deg, #0e9f90, #11796f);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.side-hover-panel,
.side-pages-panel {
  margin-top: 2px;
  min-height: 520px;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-12px);
  transition: width 0.24s ease, opacity 0.2s ease, transform 0.22s ease;
}

.side-hover-panel {
  background: linear-gradient(180deg, #125252, #0d4246);
  border: 1px solid rgba(0, 194, 168, 0.24);
  border-left: none;
  border-radius: 0 14px 14px 0;
  padding: 22px 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.side-pages-panel {
  background: linear-gradient(180deg, #15605f, #0f4c50);
  border: 1px solid rgba(0, 194, 168, 0.3);
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.side-hover-nav.open .side-hover-panel {
  width: 320px;
  opacity: 1;
  transform: translateX(0);
}

.side-hover-nav.open.show-pages .side-pages-panel {
  width: 300px;
  opacity: 1;
  transform: translateX(0);
}

.side-panel-title,
.side-pages-title {
  color: #eefcf8;
  font-size: 16px;
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.side-dashboard-list,
.side-pages-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 4px;
}

.side-dashboard-item button,
.side-page-item button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(7, 39, 44, 0.62);
  color: #eefcf8;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.side-dashboard-item button:hover,
.side-dashboard-item button.active,
.side-page-item button:hover {
  background: rgba(8, 49, 54, 0.78);
  border-color: rgba(0, 194, 168, 0.55);
  transform: translateX(3px);
}

.side-page-item button {
  background: rgba(17, 70, 74, 0.62);
  border-color: rgba(164, 235, 226, 0.22);
}

.side-page-item button:hover {
  background: rgba(20, 85, 88, 0.72);
  border-color: rgba(0, 194, 168, 0.6);
}

@media (max-width: 1200px) and (min-width: 761px) {
  .dashboard-body:not(.dashboard-view-body) .dashboard-container {
    padding-left: 86px;
  }

  .side-hover-nav {
    gap: 10px;
  }

  .side-hover-dots {
    gap: 10px;
    padding: 14px 8px 12px;
  }

  .side-dot-btn {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }

  .side-hover-nav.open .side-hover-panel {
    width: 260px;
  }

  .side-hover-nav.open.show-pages .side-pages-panel {
    width: 240px;
  }
}

@media (max-width: 760px) {
  .side-hover-nav {
    display: none !important;
  }

  .dashboard-body:not(.dashboard-view-body) .dashboard-container {
    padding-left: 16px;
  }

  .dashboard-body.with-side-menu:not(.dashboard-view-body) .dashboard-container {
    padding-left: 16px;
  }
}

/* ===================================================== */
/* ===================== POWER BI ======================= */
/* ===================================================== */

.report-container {
  width: 100%;
  height: calc(100vh - 120px);
}

.report-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* Oculta a barra inferior do Power BI empurrando a toolbar para fora do iframe visivel. */
.dashboard-body .report-container.report-hide-pbi-toolbar {
  position: relative;
  overflow: hidden;
  height: calc(100vh - 78px);
  --pbi-toolbar-crop: 112px;
  --pbi-right-crop: 28px;
}

.dashboard-body .report-container.report-hide-pbi-toolbar iframe {
  display: block;
  width: calc(100% + var(--pbi-right-crop));
  height: calc(100% + var(--pbi-toolbar-crop));
  border: none;
}
/* ===================================================== */
/* ===================== MODAL ========================== */
/* ===================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  width: 420px;
  background: #0f3b3d;
  padding: 30px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===================================================== */
/* ðŸ”¥ RESPONSIVO PROGRESSIVO */
/* ===================================================== */

@media (max-width: 1250px) {
  .user-label {
    display: none;
  }
}

@media (max-width: 1050px) {
  .menu {
    display: none;
  }
}

@media (max-width: 800px) {
  .header-right {
    display: none;
  }
}

@media (max-width: 980px) {
  .dashboard-pages-label {
    display: none;
  }

  .dashboard-page-select {
    min-width: 160px;
  }

  .dashboard-body:not(.dashboard-view-body) .dashboard-container {
    margin-top: 0;
    padding: 18px 16px 28px;
  }

  .dashboard-body:not(.dashboard-view-body) .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
  }

  .dashboard-body:not(.dashboard-view-body) .dashboard-card {
    height: 170px;
  }

  .dashboard-body:not(.dashboard-view-body) .dashboard-title {
    font-size: 24px;
    line-height: 1.15;
  }

  .dashboard-body:not(.dashboard-view-body) .dashboard-subtitle {
    font-size: 16px;
  }

}

@media (max-width: 980px) and (min-width: 761px) {
  .dashboard-body:not(.dashboard-view-body) .dashboard-container {
    padding-left: 86px;
    padding-right: 16px;
  }
}

@media (max-width: 1400px) {
  .dashboard-top-container {
    padding-left: 235px;
    padding-right: 120px;
  }
}

@media (max-width: 1100px) {
  .dashboard-top-container {
    padding-left: 190px;
    padding-right: 90px;
  }
}

/* ===================================================== */
/* ðŸ”¥ HEADER SIMPLES */
/* ===================================================== */

@media (max-width: 1200px) {

  .menu {
    display: none;
  }

  .header-right {
    display: none;
  }

  .header-container {
    justify-content: flex-start;
    padding-left: 20px;
  }

  .logo {
    position: static;
  }

}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.footer-powered {
  position: fixed;
  bottom: 10px;
  right: 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  z-index: 5;
}

.footer-powered strong {
  color: #002122 !important;
}

.config-icon {
  width: 55px;
  height: 40px;
  cursor: pointer;
  opacity: 0.9;
  margin: 0 8px;
}

/* ===================================================== */
/* DROPDOWN ADMIN */
/* ===================================================== */

.dropdown-admin {
  position: relative;
}

.admin-btn,
.logout-btn {
  padding: 6px 12px;
  width: 108px;
  min-height: 31px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: 0.25s;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.logout-btn {
  width: 92px;
}

.admin-btn:hover,
.logout-btn:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateY(-2px);
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: #0f3b3d;
  border-radius: 10px;
  overflow: hidden;
  min-width: 220px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.dropdown-content a {
  display: block;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.dropdown-content a:hover {
  background: rgba(255,255,255,0.1);
}

.dropdown-admin.active .dropdown-content {
  display: block;
}

/* ===================================================== */
/* ================= USERS / ADMIN ====================== */
/* ===================================================== */

.form-box {
  max-width: 500px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-box-dashboard {
  max-width: 100%;
  width: 100%;
  background: rgba(9, 45, 51, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.dashboard-form-panel,
.dashboard-pages-panel {
  background: rgba(8, 32, 36, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.dashboard-form-section-title {
  color: #e7f7f3;
  font-size: 18px;
  font-weight: 700;
}

.dashboard-form-hint {
  color: rgba(231,247,243,0.72);
  font-size: 13px;
  margin-top: -2px;
}

.form-box input,
.form-box select {
  height: 45px;
  border-radius: 10px;
  border: 1px solid rgba(0, 171, 151, 0.35);
  padding: 0 12px;
  background: rgba(0, 171, 151, 0.18);
  color: #eaf7f5;
}

.form-box input::placeholder {
  color: rgba(234, 247, 245, 0.72);
}

.form-box input:focus,
.form-box select:focus {
  outline: none;
  border-color: #00c2a8;
  box-shadow: 0 0 0 2px rgba(0, 194, 168, 0.22);
  background: rgba(0, 171, 151, 0.24);
}

.form-box select option {
  background: #0f3b3d;
  color: #eaf7f5;
}

.form-box button {
  height: 45px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #184f52, #00c2a8);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.admin-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.users-box {
  flex: 1;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
}

.usuarios-existentes-box {
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(0, 194, 168, 0.35);
  border-radius: 12px;
  background: rgba(2, 32, 40, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.usuarios-existentes-box h4 {
  margin: 0 0 4px;
  color: #e6f4f3;
  font-size: 20px;
}

.usuarios-existentes-subtitle {
  margin: 0 0 12px;
  color: rgba(226, 238, 237, 0.82);
  font-size: 14px;
}

.btn-add-existing {
  width: 100%;
  min-height: 45px;
}

.usuarios-existentes-hint {
  display: block;
  margin-top: 8px;
  color: rgba(226, 238, 237, 0.72);
  font-size: 13px;
}

.usuario-existente-lista {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(0, 194, 168, 0.45);
  border-radius: 10px;
  background: rgba(7, 69, 82, 0.95);
  padding: 6px;
  margin-top: -2px;
}

.usuario-existente-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #effafa;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.usuario-existente-item:hover {
  background: rgba(0, 194, 168, 0.2);
}

.usuario-existente-item-name {
  font-size: 15px;
  font-weight: 700;
}

.usuario-existente-item-email {
  font-size: 13px;
  opacity: 0.86;
}

/* ================= TABELA ================= */

.users-table {
  width: 100%;
  color: white;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

/* ================= BOTÃ•ES ================= */

.btn-delete {
  background: #ff4d4d;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.btn-perm {
  background: #00c2a8;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  margin-right: 5px;
}

.btn-action {
  border: none;
  padding: 6px 12px;
  margin: 2px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

/* ===================================================== */
/* ðŸ”¥ CORREÃ‡ÃƒO FINAL DEFINITIVA (NÃƒO QUEBRA NADA) */
/* ===================================================== */

.admin-container .users-box {
  overflow-x: auto;
}

.admin-container .users-table {
  width: 100%;
  table-layout: fixed;
}

/* ===== COLUNAS ===== */

/* Nome */
.admin-container .users-table th:nth-child(1),
.admin-container .users-table td:nth-child(1) {
  width: 25%;
}

/* Email (maior) */
.admin-container .users-table th:nth-child(2),
.admin-container .users-table td:nth-child(2) {
  width: 30%;
}

/* Setor (menor) */
.admin-container .users-table th:nth-child(3),
.admin-container .users-table td:nth-child(3) {
  width: 20%;
}

/* Admin */
.admin-container .users-table th:nth-child(4),
.admin-container .users-table td:nth-child(4) {
  width: 10%;
  text-align: center;
}

/* AÃ§Ãµes */
.admin-container .users-table th:nth-child(5),
.admin-container .users-table td:nth-child(5) {
  width: 15%;
  text-align: right;
  white-space: nowrap;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

/* inputs nÃ£o estouram */
.admin-container .users-table input,
.admin-container .users-table select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* botÃµes alinhados */
.admin-container .users-table td:nth-child(5) button {
  flex-shrink: 0;
}

/* ===================================================== */
/* ðŸ”¥ RESTAURA ESTILO BONITO DOS INPUTS (DASHBOARD) */
/* ===================================================== */

/* inputs (nome + link) */
.users-table input {
  height: 40px;
  border-radius: 8px;
  padding: 0 10px;

  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;

  font-size: 14px;

  transition: all 0.2s ease;
}

/* hover */
.users-table input:hover {
  border-color: #00c2a8;
}

/* foco */
.users-table input:focus {
  outline: none;
  border-color: #00c2a8;
  box-shadow: 0 0 0 2px rgba(0,194,168,0.25);
  background: rgba(255,255,255,0.12);
}

/* select bonito (categoria) */
.users-table select {
  height: 40px;
  border-radius: 8px;

  padding: 0 35px 0 10px;

  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;

  font-size: 14px;
  cursor: pointer;

  transition: all 0.2s ease;

  appearance: none;

  /* seta moderna */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* hover */
.users-table select:hover {
  border-color: #00c2a8;
}

/* foco */
.users-table select:focus {
  outline: none;
  border-color: #00c2a8;
  box-shadow: 0 0 0 2px rgba(0,194,168,0.25);
  background: rgba(255,255,255,0.12);
}

/* placeholder mais suave */
.users-table input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* ===================================================== */
/* ðŸ”¥ CORREÃ‡ÃƒO DROPDOWN BRANCO (REAL) */
/* ===================================================== */

/* remove comportamento que quebra o select */
.users-table {
  table-layout: auto !important;
}

/* garante que select nÃ£o estique errado */
.users-table select {
  width: 100%;
  max-width: 100%;
}

/* corrige altura visual do dropdown */
.users-table select option {
  padding: 8px;
}

/* remove "espaÃ§o fantasma" */
.users-table td {
  overflow: visible;
}

/* ===================================================== */
/* ðŸ”¥ RESTAURA LOGIN BONITO */
/* ===================================================== */

.login-card input {
  width: 100%;
  height: 48px;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);

  padding: 0 15px;

  background: #f9fafb;
  color: #111;

  font-size: 14px;

  transition: all 0.2s ease;
}

/* hover */
.login-card input:hover {
  border-color: #00c2a8;
}

/* foco */
.login-card input:focus {
  outline: none;
  border-color: #00c2a8;
  box-shadow: 0 0 0 2px rgba(0,194,168,0.2);
  background: #ffffff;
}

/* botÃ£o bonito de novo */
.login-card button {
  width: 100%;
  height: 48px;

  border-radius: 10px;
  border: none;

  background: linear-gradient(90deg, #184f52, #00c2a8);
  color: white;

  font-weight: bold;
  font-size: 15px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.login-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,194,168,0.3);
}

/* ===================================================== */
/* ðŸ”¥ LOGIN ESTILO CLEAN (IGUAL SEGUNDA IMAGEM) */
/* ===================================================== */

.login-card {
  background: #f8f9fb;
  border-radius: 20px;
  padding: 40px;
}

/* INPUTS */
.login-card input {
  width: 100%;
  height: 50px;

  border-radius: 12px;
  border: 1px solid #e5e7eb;

  padding: 0 16px;

  background: #f3f4f6;
  color: #111827;

  font-size: 14px;

  transition: all 0.2s ease;
}

/* placeholder */
.login-card input::placeholder {
  color: #9ca3af;
}

/* hover */
.login-card input:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* foco */
.login-card input:focus {
  outline: none;
  border-color: #00c2a8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,194,168,0.15);
}

/* TEXTO EX */
.login-tip {
  color: #6b7280;
  font-size: 13px;
}

/* BOTÃƒO */
.login-card button {
  width: 100%;
  height: 52px;

  border-radius: 12px;
  border: none;

  background: linear-gradient(90deg, #184f52, #00c2a8);
  color: white;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.2s ease;
}

/* hover botÃ£o */
.login-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,194,168,0.25);
}

/* ===================================================== */
/* ðŸ”¥ ESPAÃ‡AMENTO LOGIN (REFINAMENTO FINAL) */
/* ===================================================== */

/* container geral */
.login-card {
  padding: 45px 40px;
}

/* "Portal do Cliente" */
.login-card .small-title {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

/* tÃ­tulo principal */
.login-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* descriÃ§Ã£o */
.login-card p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 320px;
}

/* inputs (espaÃ§amento entre eles) */
.login-card input {
  margin-bottom: 12px;
}

/* texto exemplo */
.login-tip {
  margin-top: 5px;
  margin-bottom: 18px;
  display: block;
}

/* botÃ£o */
.login-card button {
  margin-top: 5px;
}

/* ===================================================== */
/* ðŸ”¥ CORREÃ‡ÃƒO COLUNA AÃ‡Ã•ES (USUÃRIOS) */
/* ===================================================== */

/* REMOVE FLEX DO TD */
.admin-container .users-table td:nth-child(5) {
  display: table-cell !important;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

/* container interno dos botÃµes */
.admin-container .users-table td:nth-child(5) .acoes-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* se nÃ£o tiver wrapper, aplica direto */
.admin-container .users-table td:nth-child(5) button {
  margin-left: 6px;
}

/* HEADER AÃ‡Ã•ES CENTRALIZADO COM OS BOTÃ•ES */
.admin-container .users-table th:nth-child(5) {
  text-align: right;
  padding-right: 10px;
}

/* ===================================================== */
/* ðŸ”¥ AJUSTE FINAL - USUÃRIOS */
/* ===================================================== */

/* 1. HEADER "AÃ‡Ã•ES" ALINHADO COM BOTÃ•ES */
.admin-container .users-table th:nth-child(5) {
  text-align: right;
  padding-right: 16px;
}

/* 2. REMOVE VISUAL EXAGERADO DO ADMIN */
.admin-container .users-table td:nth-child(4) {
  text-align: center;
}

/* checkbox admin clean */
.admin-container .users-table td:nth-child(4) input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00c2a8;
  cursor: pointer;
  transform: scale(1.1);
}

/* remove qualquer estilo antigo pesado (botÃ£o azul) */
.admin-container .users-table td:nth-child(4) button {
  display: none;
}

/* ===================================================== */
/* ðŸ”¥ CORRIGE COR DAS OPÃ‡Ã•ES DO SELECT */
/* ===================================================== */

/* opÃ§Ãµes do dropdown */
select option {
  color: #111 !important;        /* texto preto */
  background-color: #ffffff !important; /* fundo branco */
}

/* opÃ§Ã£o selecionada */
select option:checked {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* ===================================================== */
/* ðŸ”¥ CENTRALIZAR HEADER "AÃ‡Ã•ES" COM BOTÃ•ES */
/* ===================================================== */

.admin-container .users-table th:nth-child(5) {
  text-align: right;
  padding-right: 22px; /* ajusta atÃ© ficar alinhado perfeito */
}

/* ===================================================== */
/* ðŸ”¥ CORREÃ‡ÃƒO BOTÃ•ES SUMINDO (ISOLAR USUÃRIOS) */
/* ===================================================== */

/* remove a regra errada */
.admin-container .users-table td:nth-child(4) button {
  display: inline-block !important;
}

/* aplica esconder SOMENTE se for botÃ£o de admin especÃ­fico */
.admin-container .users-table td:nth-child(4) .admin-btn {
  display: none;
}

/* ===================================================== */
/* ðŸ”¥ BOTÃ•ES DINÃ‚MICOS (AÃ‡Ã•ES) */
/* ===================================================== */

.btn-action {
  position: relative;
  overflow: hidden;

  padding: 7px 14px;
  border-radius: 8px;
  border: none;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition: all 0.25s ease;
}

/* ===== PERMISSÃ•ES ===== */
.btn-perm {
  background: linear-gradient(135deg, #14b8a6, #0ea5a4);
  color: white;
}

.btn-perm:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgba(20,184,166,0.35);
}

/* ===== EXCLUIR ===== */
.btn-delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-delete:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgba(239,68,68,0.35);
}

/* ===== CLICK EFFECT ===== */
.btn-action:active {
  transform: scale(0.96);
  box-shadow: none;
}

/* ===== EFEITO DE BRILHO (SUTIL) ===== */
.btn-action::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  transform: skewX(-20deg);
}

/* anima no hover */
.btn-action:hover::after {
  left: 130%;
  transition: 0.6s;
}

/* ===================================================== */
/* ðŸ”¥ MODAL PERMISSÃ•ES PREMIUM */
/* ===================================================== */

/* container lista */
#listaPermissoes {
  display: flex;
  flex-direction: column;
  gap: 0px; /* ðŸ”¥ mais espaÃ§o entre itens */
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

/* cada item */
#listaPermissoes label {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 14px;
  border-radius: 10px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover bonito */
#listaPermissoes label:hover {
  background: rgba(0,194,168,0.12);
  border-color: rgba(0,194,168,0.3);
  transform: translateX(3px);
}

/* checkbox moderno */
#listaPermissoes input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #00c2a8;
}

/* texto */
#listaPermissoes label span {
  font-size: 14px;
  color: #e5e7eb;
}

/* ===================================================== */
/* ðŸ”¥ BOTÃ•ES DO MODAL */
/* ===================================================== */

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* salvar */
.btn-modal-save {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;

  background: linear-gradient(135deg, #00c2a8, #00a892);
  color: white;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,194,168,0.4);
}

/* fechar */
.btn-modal-close {
  flex: 1;
  padding: 10px;
  border-radius: 10px;

  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;

  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: rgba(255,255,255,0.1);
}

/* ===================================================== */
/* ðŸ”¥ REMOVE SCROLL HORIZONTAL DO MODAL */
/* ===================================================== */

/* container principal */
.modal-box {
  overflow: hidden;
}

/* lista permissÃµes */
#listaPermissoes {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;   /* ðŸ”¥ remove horizontal */
  overflow-y: auto;
  padding-right: 4px;   /* evita cortar scrollbar */
}

/* cada item nÃ£o pode estourar */
#listaPermissoes label {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* checkbox + texto alinhados corretamente */
#listaPermissoes input {
  flex-shrink: 0;
}

#listaPermissoes span {
  word-break: break-word; /* quebra texto grande */
}

/* evita qualquer elemento ultrapassar */
.modal-box * {
  max-width: 100%;
}

/* ===================================================== */
/* ðŸ”¥ CATEGORIAS PERMISSÃ•ES */
/* ===================================================== */

.categoria {
  margin-bottom: 8px;
}

/* tÃ­tulo da categoria */
.categoria-titulo {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;

  margin-bottom: 8px;
  padding-left: 4px;
}

/* grupo com leve separaÃ§Ã£o visual */
.categoria label {
  margin-bottom: 6px;
}

/* header da categoria */
.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  padding: 10px 5px;

  font-weight: 600;
  color: #cbd5e1;
}

/* hover */
.categoria-header:hover {
  color: white;
}

/* botÃµes selecionar */
.categoria-actions button {
  background: transparent;
  border: none;
  color: #00c2a8;
  font-size: 14px;
  cursor: pointer;
  margin-left: 6px;
}

.categoria-actions button:hover {
  transform: scale(1.2);
}

/* conteÃºdo */
.categoria-conteudo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

/* fechado */
.categoria-conteudo.fechado {
  display: none;
}

/* container do tÃ­tulo */
.categoria-titulo-texto {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* seta */
.seta {
  font-size: 12px;
  transition: transform 0.2s ease;
  color: #9ca3af;
}

/* quando aberto (gira pra baixo) */
.categoria-conteudo:not(.fechado) ~ .categoria-header .seta {
  transform: rotate(90deg);
}

/* hover */
.categoria-header:hover .seta {
  color: #00c2a8;
}

/* botÃµes categoria */
.btn-cat {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #9ca3af;

  border-radius: 6px;
  padding: 2px 6px;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.btn-cat:hover {
  color: #00c2a8;
  border-color: #00c2a8;
}

/* estado ativo */
.btn-cat.ativo.check {
  background: rgba(0,194,168,0.2);
  color: #00c2a8;
  border-color: #00c2a8;
}

.btn-cat.ativo.uncheck {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  border-color: #ef4444;
}

/* efeito clique */
.btn-cat.click {
  transform: scale(0.9);
}

/* ===================================================== */
/* ðŸ”¥ CHECKBOX ADMIN - ALINHAMENTO */
/* ===================================================== */

.checkbox-admin {
  display: flex;
  align-items: center; /* ðŸ”¥ alinha verticalmente */
  gap: 10px;

  margin: 10px 0 15px 0;

  color: #ffffff; /* ðŸ”¥ texto branco */
  font-size: 14px;
}

/* checkbox */
.checkbox-admin input {
  width: 16px;
  height: 16px;
  accent-color: #00c2a8;
  cursor: pointer;
}

/* texto */
.checkbox-admin span {
  color: #ffffff;
}

/* ===================================================== */
/* ðŸ”¥ LISTA DE USUÃRIOS (CADASTRO DASHBOARD) */
/* ===================================================== */

#listaUsuariosPermissao {
  margin-top: 10px;

  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* cada usuÃ¡rio vira um "card" */
#listaUsuariosPermissao label {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 14px;

  border-radius: 10px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  color: #e5e7eb; /* ðŸ”¥ texto branco */

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover bonito */
#listaUsuariosPermissao label:hover {
  background: rgba(0,194,168,0.12);
  border-color: rgba(0,194,168,0.3);
  transform: translateX(3px);
}

/* checkbox */
#listaUsuariosPermissao input {
  width: 16px;
  height: 16px;

  accent-color: #00c2a8;

  cursor: pointer;
}

/* quando marcado */
#listaUsuariosPermissao input:checked + span {
  color: #00c2a8;
  font-weight: 500;
}

/* texto (IMPORTANTE) */
#listaUsuariosPermissao label {
  font-size: 14px;
}

/* ===================================================== */
/* ðŸ”¥ REMOVE SCROLL HORIZONTAL - USUÃRIOS DASHBOARD */
/* ===================================================== */

#listaUsuariosPermissao {
  width: 100%;
  max-width: 100%;

  overflow-y: auto;
  overflow-x: hidden; /* ðŸ”¥ remove horizontal */

  padding-right: 4px; /* evita cortar scrollbar */
}

/* cada item nÃ£o pode estourar */
#listaUsuariosPermissao label {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* garante que nada ultrapasse */
#listaUsuariosPermissao * {
  max-width: 100%;
}

/* checkbox nÃ£o encolhe */
#listaUsuariosPermissao input {
  flex-shrink: 0;
}

/* texto quebra se precisar */
#listaUsuariosPermissao span {
  word-break: break-word;
}

/* ===================================================== */
/* ================= PAGINAS DASHBOARD ================= */
/* ===================================================== */

.paginas-dashboard-lista {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.pagina-dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.pagina-dashboard-row input {
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 10px;
}

.pagina-dashboard-row input::placeholder {
  color: rgba(255,255,255,0.55);
}

.paginas-add-btn {
  margin-top: 6px;
  margin-bottom: 6px;
}

.dashboard-pages-panel .paginas-add-btn,
.modal-box .paginas-add-btn {
  width: 100%;
  justify-content: center;
}

.pagina-remove-btn {
  white-space: nowrap;
}

.modal-box-wide {
  width: min(980px, 92vw);
}

@media (max-width: 900px) {
  .dashboard-form-grid {
    grid-template-columns: 1fr;
  }

  .pagina-dashboard-row {
    grid-template-columns: 1fr;
  }
}

/* ===================================================== */
/* ðŸ”¥ BOTÃƒO SALVAR ALTERAÃ‡Ã•ES */
/* ===================================================== */

.btn-save {
  background: linear-gradient(135deg, #00c2a8, #00a892);
  color: white;

  border: none;
  border-radius: 10px;

  padding: 10px 18px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.25s ease;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* hover */
.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,194,168,0.35);
}

/* clique */
.btn-save:active {
  transform: scale(0.96);
}

#listaDashboards .acoes-td {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

/* ===================================================== */
/* =========== TABELA DASHBOARDS (AJUSTE) ============== */
/* ===================================================== */

/* ================= TABELA USUARIOS (ALINHAMENTO FINAL) ================ */
.admin-container .users-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.admin-container .users-table thead th,
.admin-container .users-table tbody td {
  display: table-cell !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.admin-container .users-table .acoes-td {
  display: table-cell !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.admin-container .users-table .acoes-td .btn-action {
  margin-left: 6px;
}

.admin-container .dashboards-table {
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.admin-container .dashboards-table tbody tr {
  display: table-row !important;
}

.admin-container .dashboards-table thead th,
.admin-container .dashboards-table tbody td {
  display: table-cell !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.admin-container .dashboards-table th:nth-child(1),
.admin-container .dashboards-table td:nth-child(1) {
  width: 28% !important;
}

.admin-container .dashboards-table th:nth-child(2),
.admin-container .dashboards-table td:nth-child(2) {
  width: 20% !important;
}

.admin-container .dashboards-table th:nth-child(3),
.admin-container .dashboards-table td:nth-child(3) {
  width: 37% !important;
}

.admin-container .dashboards-table th:nth-child(4),
.admin-container .dashboards-table td:nth-child(4) {
  width: 15% !important;
  text-align: right !important;
}

.admin-container .dashboards-table td:nth-child(4) {
  overflow: visible !important;
  padding-right: 10px !important;
}

.admin-container .dashboards-table .acoes-td {
  min-width: 170px;
}

.admin-container .dashboards-table .acoes-wrap-dashboard {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.admin-container .dashboards-table .btn-action {
  min-width: 76px;
  margin: 0;
}

/* ===================================================== */
/* ðŸ”¥ CONFIRMAÃ‡ÃƒO EXCLUIR */
/* ===================================================== */

.confirm-delete {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 13px;
  color: #e5e7eb;
}

/* botÃ£o sim */
.btn-confirm {
  background: #ef4444;
  border: none;
  color: white;

  padding: 5px 10px;
  border-radius: 6px;

  cursor: pointer;
  transition: 0.2s;
}

.btn-confirm:hover {
  background: #dc2626;
}

/* botÃ£o cancelar */
.btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;

  padding: 5px 10px;
  border-radius: 6px;

  cursor: pointer;
}

.btn-cancel:hover {
  background: rgba(255,255,255,0.1);
}

/* ===================================================== */
/* ðŸ”¥ TOAST GLOBAL (NOTIFICAÃ‡ÃƒO) */
/* ===================================================== */

.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);

  background: #0f172a;
  color: white;

  padding: 14px 22px;
  border-radius: 12px;

  font-size: 14px;
  font-weight: 500;

  opacity: 0;
  pointer-events: none;

  transition: all 0.3s ease;

  z-index: 9999;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* quando aparece */
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* sucesso */
.toast.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* erro */
.toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ===================================================== */
/* LOGIN REDESIGN (TESTE VISUAL) */
/* ===================================================== */

.login-redesign {
  background: radial-gradient(circle at 20% 20%, #194d54 0%, #0d2d34 50%, #081b21 100%);
  overflow: hidden;
}

.login-redesign .login-page {
  position: relative;
}

.login-redesign .login-left {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(17, 72, 78, 0.95), rgba(8, 33, 40, 0.95)),
    radial-gradient(circle at 80% 20%, rgba(0, 194, 168, 0.25), transparent 45%);
}

.login-redesign .login-left-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.28), rgba(0, 194, 168, 0));
  filter: blur(8px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loginGlowPulse 6s ease-in-out infinite;
}

.login-redesign .login-brand-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-redesign .logo-banner-animated {
  width: 440px;
  max-width: 82%;
  animation: logoFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.35));
}

.login-redesign .login-brand-caption {
  color: rgba(229, 246, 244, 0.85);
  font-size: 15px;
  letter-spacing: 0.2px;
  text-align: center;
}

.login-redesign .login-orbit {
  position: absolute;
  border-radius: 0;
  border: 1px solid rgba(0, 171, 151, 0.18);
  background: transparent;
  box-shadow: none;
}

.login-redesign .orbit-1 {
  width: 180px;
  height: 180px;
  top: 16%;
  right: 10%;
  animation: squareDrift 9s ease-in-out infinite;
}

.login-redesign .orbit-2 {
  width: 86px;
  height: 86px;
  bottom: 18%;
  left: 13%;
  background: rgba(0, 171, 151, 0.08);
  border-color: rgba(0, 171, 151, 0.1);
  animation: squareDriftReverse 8s ease-in-out infinite;
}

.login-redesign .login-right {
  background: linear-gradient(180deg, rgba(241, 246, 247, 0.96), rgba(230, 239, 241, 0.96));
}

.login-redesign .login-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 55px rgba(5, 26, 31, 0.22);
  backdrop-filter: blur(6px);
}

.login-redesign .login-card .small-title {
  color: #4f6b70;
  letter-spacing: 0.3px;
}

.login-redesign .login-card h2 {
  color: #12353b;
}

.login-redesign .login-card p {
  color: #50666b;
}

.login-redesign .login-card input {
  background: rgba(248, 250, 251, 0.92);
}

.login-redesign .login-card button {
  background: linear-gradient(120deg, #0f4c53 0%, #0e7a78 46%, #00c2a8 100%);
  box-shadow: 0 10px 24px rgba(15, 76, 83, 0.24);
}

.login-redesign .login-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 120, 116, 0.28);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.012); }
}

@keyframes loginGlowPulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes squareDrift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-7px) translateX(5px); }
}

@keyframes squareDriftReverse {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(7px) translateX(-5px); }
}

@media (max-width: 980px) {
  .login-redesign .login-page {
    flex-direction: column;
  }

  .login-redesign .login-left,
  .login-redesign .login-right {
    width: 100%;
  }

  .login-redesign .login-left {
    min-height: 34vh;
  }

  .login-redesign .logo-banner-animated {
    width: 300px;
  }

  .login-redesign .login-brand-caption {
    font-size: 13px;
  }

.login-redesign .login-card {
    width: min(420px, 92%);
    margin: 16px auto;
  }
}

/* ===================================================== */
/* DASHBOARD VIEW RESPONSIVO (SEM SCROLL HORIZONTAL) */
/* ===================================================== */

@media (max-width: 980px) {
  .dashboard-view-body .main-header {
    height: auto;
    min-height: 90px;
  }

  .dashboard-view-body {
    padding-top: 150px;
  }

  .dashboard-view-body .dashboard-top-container {
    max-width: 100%;
    padding: 10px 12px;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
  }

  .dashboard-view-body .dashboard-top-container .logo {
    display: none;
  }

  .dashboard-view-body .dashboard-top-container .dashboard-header-nav {
    order: 1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  .dashboard-view-body .dashboard-top-container #dashboardListNav {
    margin-left: 0;
  }

  .dashboard-view-body .dashboard-top-container .dashboard-pages-nav {
    max-width: 100%;
  }

  .dashboard-view-body .dashboard-top-container .dashboard-page-select {
    min-width: 140px;
    max-width: 180px;
  }

  .dashboard-view-body .dashboard-top-container .header-right {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .dashboard-view-body {
    padding-top: 165px;
  }

  .dashboard-view-body .dashboard-top-container .dashboard-header-nav {
    justify-content: flex-start;
  }

  .dashboard-view-body .dashboard-top-container .dashboard-page-select {
    min-width: 128px;
    max-width: 155px;
  }
}

/* ===================================================== */
/* ============== WORKS2DATA REBRAND ================== */
/* ===================================================== */

:root {
  --primary: #35373b;
  --secondary: #575b63;
  --accent: #aeb3ba;
  --brand-gold: #b8a248;
  --panel-dark: #2d3035;
  --panel-mid: #3a3d43;
  --panel-soft: #474c54;
  --text-strong: #f5f6f7;
  --text-soft: #c9ced5;
}

.main-header {
  background: linear-gradient(180deg, #37393d 0%, #2f3135 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-header::after {
  display: none;
}

.main-header .logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.main-header .logo img {
  height: 72px;
  width: auto;
  max-width: 330px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.28));
}

.header-container {
  z-index: 1;
}

.header-right {
  isolation: isolate;
  overflow: visible;
  padding-right: 84px;
}

.header-right > * {
  position: relative;
  z-index: 3;
}

.header-right::before,
.header-right::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 90px;
  transform: translateY(-50%) skewX(35deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.96;
  border-radius: 0;
}

.header-right::before {
  right: 13px;
  background: #17b34d;
}

.header-right::after {
  right: -24px;
  background: #f2de2f;
}

.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(174,179,186,0.08) 0%, transparent 62%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(71,76,84,0.45) 0%, transparent 54%),
    linear-gradient(135deg, #26292e 0%, #1f2126 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(174,179,186,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174,179,186,0.05) 1px, transparent 1px);
}

.floater {
  border-color: rgba(174,179,186,0.18);
}

.floater-4 {
  background: #aeb3ba;
}

.menu a {
  color: var(--text-soft);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
}

.menu a:hover,
.menu a.active {
  color: #fff;
  background: linear-gradient(135deg, #4a4d54, #626771);
  box-shadow: 0 0 10px rgba(174,179,186,0.26);
}

.main-header a,
.main-header button,
.admin-btn,
.logout-btn {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
}

.main-header a:hover,
.main-header button:hover,
.admin-btn:hover,
.logout-btn:hover {
  background: linear-gradient(90deg, #42454c, #61656d);
}

.header-right .admin-btn,
.header-right .logout-btn {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.24);
  background-image: linear-gradient(120deg, #12b74a 0%, #1cc255 38%, #e6d72f 72%, #f4e857 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  text-shadow: 0 1px 1px rgba(0,0,0,0.24);
  box-shadow: 0 6px 14px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.35s ease;
}

.header-right .admin-btn::after,
.header-right .logout-btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -25%;
  width: 34%;
  height: 340%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: rotate(22deg);
  opacity: 0;
  pointer-events: none;
}

.header-right .admin-btn:hover,
.header-right .logout-btn:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  animation: btnGradientFlow 1.2s linear infinite;
}

.header-right .admin-btn:hover::after,
.header-right .logout-btn:hover::after {
  opacity: 1;
  animation: btnShineSweep 0.8s ease-out;
}

@keyframes btnGradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes btnShineSweep {
  0% { left: -25%; }
  100% { left: 130%; }
}

.dashboard-pages-nav {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

.dashboard-page-select {
  background-color: rgba(38, 41, 46, 0.9);
  border-color: rgba(255,255,255,0.24);
}

.dashboard-page-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(174,179,186,0.24);
}

.user-label-name {
  color: #f2de2f;
}

.dashboard-card {
  background: linear-gradient(135deg, #179f45 0%, #3db954 48%, #c8cf34 100%);
  border-color: rgba(242,222,47,0.28);
  box-shadow: 0 10px 24px rgba(15,56,27,0.30);
}

.dashboard-card:hover {
  background: linear-gradient(135deg, #1ab24d 0%, #4ac25b 48%, #d9d73b 100%);
  box-shadow: 0 14px 30px rgba(15,56,27,0.38);
}

.side-hover-dots {
  background: linear-gradient(180deg, #2f3238, #25282e);
}

.side-dot-btn {
  border-color: rgba(242,222,47,0.46);
  background: linear-gradient(145deg, #18af4b, #2dbf54);
  color: #f3f4f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 4px 12px rgba(11,56,26,0.35);
}

.side-dot-btn:hover,
.side-dot-btn.active {
  background: linear-gradient(135deg, #26bb50, #9fcf36);
  border-color: rgba(242,222,47,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 18px rgba(12,62,29,0.45);
}

.side-hover-panel {
  background: linear-gradient(180deg, #3b3f46, #30343a);
  border-color: rgba(174,179,186,0.28);
}

.side-pages-panel {
  background: linear-gradient(180deg, #464b53, #383c43);
  border-color: rgba(174,179,186,0.3);
}

.side-panel-title,
.side-pages-title {
  color: #f3f4f6;
}

.side-dashboard-item button,
.side-page-item button {
  background: rgba(35, 38, 44, 0.72);
  color: #f3f4f6;
}

.side-dashboard-item button:hover,
.side-dashboard-item button.active,
.side-page-item button:hover {
  background: rgba(61, 66, 75, 0.84);
  border-color: rgba(174,179,186,0.58);
}

.side-page-item button {
  border-color: rgba(174,179,186,0.28);
}

.footer-powered strong {
  color: #002122 !important;
}

.dropdown-content,
.modal-box,
.form-box-dashboard,
.dashboard-form-panel,
.dashboard-pages-panel {
  background: linear-gradient(180deg, #2f3238, #25282e);
  border-color: rgba(255,255,255,0.1);
}

.dashboard-form-section-title {
  color: #edf0f2;
}

.dashboard-form-hint {
  color: rgba(237,240,242,0.76);
}

.form-box input,
.form-box select,
.pagina-dashboard-row input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(174,179,186,0.4);
  color: #eef1f4;
}

.form-box input::placeholder,
.pagina-dashboard-row input::placeholder {
  color: rgba(233,237,242,0.64);
}

.form-box input:focus,
.form-box select:focus,
.pagina-dashboard-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(174,179,186,0.2);
  background: rgba(255,255,255,0.12);
}

.admin-container .users-box {
  background: linear-gradient(180deg, #2f3238, #25282e);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.admin-container .users-box h3 {
  color: #edf0f2 !important;
}

.admin-container .usuarios-existentes-box {
  border: 1px solid rgba(23,179,77,0.36);
  background: linear-gradient(180deg, rgba(47,52,58,0.9), rgba(36,40,46,0.94));
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.admin-container .usuarios-existentes-subtitle,
.admin-container .usuarios-existentes-hint {
  color: rgba(236,240,244,0.86);
}

.admin-container .usuarios-existentes-box #nomeUser,
.admin-container .usuarios-existentes-box #emailUser,
.admin-container .usuarios-existentes-box #senhaUser,
.admin-container .usuarios-existentes-box #setorUser {
  border: 1px solid rgba(174,179,186,0.5);
  background: linear-gradient(90deg, rgba(64,68,76,0.92), rgba(54,58,66,0.92));
  color: #f2f5f7;
}

.admin-container .usuarios-existentes-box #nomeUser:focus,
.admin-container .usuarios-existentes-box #emailUser:focus,
.admin-container .usuarios-existentes-box #senhaUser:focus,
.admin-container .usuarios-existentes-box #setorUser:focus {
  border-color: rgba(23,179,77,0.7);
  box-shadow: 0 0 0 2px rgba(23,179,77,0.2);
  background: linear-gradient(90deg, rgba(56,61,69,0.95), rgba(48,52,60,0.95));
}

.admin-container .usuarios-existentes-box .form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(236,240,244,0.9);
  font-weight: 700;
}

.admin-container .usuarios-existentes-box .form-check input {
  width: 18px;
  height: 18px;
  accent-color: #17b34d;
}

.admin-container .usuario-existente-lista {
  border: 1px solid rgba(23,179,77,0.4);
  background: rgba(30,34,40,0.96);
}

.admin-container .usuario-existente-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #eef2f5;
}

.admin-container .usuario-existente-item:hover {
  background: linear-gradient(90deg, rgba(23,179,77,0.78), rgba(242,222,47,0.78));
  border-color: rgba(242,222,47,0.68);
  color: #ffffff;
}

.admin-container .usuario-existente-item-email {
  color: rgba(240,244,247,0.9);
}

.admin-container .form-box select option {
  background: #2f3238;
  color: #eef1f4;
}

.admin-container .form-box .btn-add-existing {
  border: 1px solid rgba(242,222,47,0.28);
  background: linear-gradient(90deg, #17b34d 0%, #76c93b 50%, #d9cc2f 100%);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 0 10px 20px rgba(24,58,26,0.24);
}

.admin-container .form-box .btn-add-existing:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(24,58,26,0.34);
}

.btn-save,
.btn-modal-save,
.login-card button {
  background: linear-gradient(135deg, #4f545c, #656a74);
  box-shadow: none;
}

.btn-save:hover,
.btn-modal-save:hover,
.login-card button:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.admin-container .btn-save,
.admin-container .btn-perm,
.admin-container .btn-add-existing,
#modalPermissoes .btn-modal-save {
  border: 1px solid rgba(242,222,47,0.3);
  background: linear-gradient(90deg, #17b34d 0%, #6fc63d 54%, #d8cb31 100%);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 0 8px 18px rgba(19,57,25,0.26);
}

.admin-container .btn-save:hover,
.admin-container .btn-perm:hover,
.admin-container .btn-add-existing:hover,
#modalPermissoes .btn-modal-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(19,57,25,0.34);
}

.categoria-actions button,
.categoria-header:hover .seta,
.btn-cat:hover,
.btn-cat.ativo.check {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-cat.ativo.check {
  background: rgba(174,179,186,0.2);
}

#listaPermissoes label:hover,
#listaUsuariosPermissao label:hover {
  background: rgba(174,179,186,0.16);
  border-color: rgba(174,179,186,0.35);
}

#listaPermissoes input,
#listaUsuariosPermissao input,
.checkbox-admin input,
input[type="checkbox"] {
  accent-color: var(--accent);
}

.login-logo-popup {
  border-color: rgba(174,179,186,0.34);
  background: linear-gradient(135deg, rgba(60,64,72,0.9), rgba(39,42,48,0.94));
}

.login-redesign {
  background: radial-gradient(circle at 20% 20%, #4a4d53 0%, #35373b 46%, #24262b 100%);
}

.login-redesign .login-left {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 66%, rgba(23,179,77,0.18) 0%, rgba(23,179,77,0) 48%),
    radial-gradient(circle at 76% 24%, rgba(242,222,47,0.14) 0%, rgba(242,222,47,0) 44%),
    linear-gradient(145deg, #2e333d 0%, #2a313b 42%, #222a34 100%);
}

.login-redesign .login-left::before,
.login-redesign .login-left::after {
  content: "";
  position: absolute;
  left: -14%;
  width: 130%;
  pointer-events: none;
}

.login-redesign .login-left::before {
  top: -28px;
  height: 102px;
  transform: rotate(-6deg);
  background: linear-gradient(90deg, #17b34d 0%, #8bcf39 56%, #f2de2f 100%);
  opacity: 0.48;
  filter: saturate(0.9);
}

.login-redesign .login-left::after {
  bottom: -62px;
  height: 130px;
  transform: rotate(14deg);
  background: linear-gradient(90deg, rgba(23,179,77,0.62) 0%, rgba(242,222,47,0.48) 100%);
  opacity: 0.34;
  animation: loginLeftBandFloat 6.5s ease-in-out infinite;
}

.login-redesign .login-left-glow {
  background: radial-gradient(circle, rgba(23,179,77,0.20) 0%, rgba(242,222,47,0.10) 38%, rgba(23,179,77,0) 78%);
  filter: blur(12px);
  opacity: 0.75;
}

.login-redesign .logo-banner-animated {
  filter:
    drop-shadow(0 14px 24px rgba(0,0,0,0.34))
    drop-shadow(0 0 12px rgba(23,179,77,0.18))
    drop-shadow(0 0 10px rgba(242,222,47,0.14));
}

.login-redesign .login-orbit {
  border-color: rgba(23,179,77,0.16);
  background: rgba(23,179,77,0.02);
}

.login-redesign .orbit-2 {
  background: rgba(242,222,47,0.08);
  border-color: rgba(242,222,47,0.16);
}

.login-redesign .login-right {
  background: linear-gradient(180deg, rgba(235,238,242,0.96), rgba(218,223,229,0.96));
}

.login-redesign .login-card .small-title {
  color: #17b34d;
  font-weight: 600;
  letter-spacing: 0.35px;
}

.login-redesign .login-card h2 {
  color: #1f8f3e;
  background: linear-gradient(90deg, #179f45 0%, #20b14f 46%, #d9cc2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-redesign .login-card p {
  color: #4f6358;
}

.login-redesign .login-card input::placeholder {
  color: #8a9574;
}

.login-redesign .login-card button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.24);
  background: linear-gradient(90deg, #17b34d 0%, #7fca3a 52%, #f2de2f 100%);
  background-size: 200% 100%;
  box-shadow: 0 10px 24px rgba(26,44,24,0.30);
  animation: loginBtnFlow 5s linear infinite;
}

.login-redesign .login-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(26,44,24,0.36);
  animation-duration: 2s;
}

.login-redesign .login-card button::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -28%;
  width: 34%;
  height: 340%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.5) 48%, transparent 100%);
  transform: rotate(22deg);
  opacity: 0;
  pointer-events: none;
}

.login-redesign .login-card button:hover::after {
  opacity: 1;
  animation: loginBtnShine 0.9s ease-out;
}

@keyframes loginLeftBandFloat {
  0%, 100% { transform: rotate(14deg) translateY(0); }
  50% { transform: rotate(14deg) translateY(-6px); }
}

@keyframes loginBtnFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes loginBtnShine {
  0% { left: -28%; }
  100% { left: 132%; }
}

@media (max-width: 1320px) {
  .header-right {
    padding-right: 72px;
  }

  .header-right::before,
  .header-right::after {
    width: 30px;
    height: 90px;
  }

  .header-right::before {
    right: 12px;
  }

  .header-right::after {
    right: -20px;
    height: 90px;
  }
}

@media (max-width: 980px) {
  .login-redesign .login-left::before {
    height: 94px;
    top: -28px;
  }

  .login-redesign .login-left::after {
    height: 122px;
    bottom: -56px;
  }
}

/* ===================================================== */
/* LOGIN RESPONSIVO - LOGO WORKS2DATA CENTRALIZADO       */
/* ===================================================== */
@media (max-width: 980px) {
  .login-redesign .login-left {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .login-redesign .login-brand-wrap {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .login-redesign .logo-banner,
  .login-redesign .logo-banner-animated {
    display: block !important;
    width: min(420px, 78vw) !important;
    max-width: 78vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain;
  }
}

/* ===================================================== */
/* =========== CADASTRO USUARIO - BOTOES VERDES ======== */
/* ===================================================== */

.admin-container .users-box .btn-save,
.admin-container .users-box .btn-perm {
  border: 1px solid rgba(242,222,47,0.24);
  background: linear-gradient(135deg, #17b34d, #2dbf54);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 0 8px 18px rgba(13,62,29,0.26);
}

.admin-container .users-box .btn-save:hover,
.admin-container .users-box .btn-perm:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #1cbd51, #40c95f);
  box-shadow: 0 10px 22px rgba(13,62,29,0.34);
}

/* Mantem Admin e Sair verdes, preservando o tamanho compacto do botao Sair. */
.main-header .header-right .admin-btn,
.main-header .header-right .admin-btn:focus,
.main-header .header-right .admin-btn:active {
  width: 108px;
  min-width: 108px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.24);
  background: linear-gradient(135deg, #17b34d, #2dbf54);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 0 8px 18px rgba(13,62,29,0.26);
}

.main-header .header-right .logout-btn,
.main-header .header-right .logout-btn:focus,
.main-header .header-right .logout-btn:active {
  width: 74px !important;
  min-width: 74px !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  background: linear-gradient(135deg, #17b34d, #2dbf54) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18) !important;
  box-shadow: 0 8px 18px rgba(13,62,29,0.26) !important;
}

.main-header .header-right .admin-btn:hover,
.main-header .header-right .logout-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #1cbd51, #40c95f) !important;
  box-shadow: 0 10px 22px rgba(13,62,29,0.34) !important;
}

/* ===================================================== */
/* ======== CADASTRO DASHBOARD - BOTOES VERDES ========= */
/* ===================================================== */

.form-box-dashboard .btn-primary,
.form-box-dashboard .btn-perm,
#modalPaginasDashboard .btn-perm,
#modalPaginasDashboard .btn-modal-save {
  border: 1px solid rgba(242,222,47,0.24);
  background: linear-gradient(135deg, #17b34d, #2dbf54);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 0 8px 18px rgba(13,62,29,0.26);
}

.form-box-dashboard .btn-primary:hover,
.form-box-dashboard .btn-perm:hover,
#modalPaginasDashboard .btn-perm:hover,
#modalPaginasDashboard .btn-modal-save:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #1cbd51, #40c95f);
  box-shadow: 0 10px 22px rgba(13,62,29,0.34);
}

.form-box-dashboard .pagina-remove-btn,
#modalPaginasDashboard .pagina-remove-btn {
  border: 1px solid rgba(248,113,113,0.34);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(127,29,29,0.26);
}

.form-box-dashboard .pagina-remove-btn:hover,
#modalPaginasDashboard .pagina-remove-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #f05252, #e03131);
  box-shadow: 0 10px 22px rgba(127,29,29,0.34);
}
/* ===================================================== */
/* ============= TEMA WORKS2DATA (OVERRIDE) =========== */
/* ===================================================== */
:root {
  --bio-primary: #002122;
  --bio-secondary: #64B6AF;
  --bio-accent: #80B7B8;
  --primary: #002122;
  --secondary: #64B6AF;
  --accent: #80B7B8;
  --text-strong: #eef7f6;
  --text-soft: #d5e8e7;
}

.hero-bg {
  background:
    radial-gradient(ellipse 75% 58% at 72% 36%, rgba(128, 183, 184, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 54% 52% at 22% 82%, rgba(100, 182, 175, 0.22) 0%, transparent 54%),
    linear-gradient(140deg, #0a3b3d 0%, #002122 56%, #001617 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(128, 183, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 183, 184, 0.08) 1px, transparent 1px);
}

.floater {
  border-color: rgba(128, 183, 184, 0.32);
}

.floater-4 {
  background: #80B7B8;
}

.main-header {
  background: linear-gradient(180deg, #0a3537 0%, #002122 100%);
  border-bottom: 1px solid rgba(128, 183, 184, 0.22);
}

.main-header .logo img {
  height: 74px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
}

.menu a {
  color: var(--text-soft);
  border-color: rgba(128, 183, 184, 0.25);
  background: rgba(100, 182, 175, 0.12);
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #64B6AF, #80B7B8);
  box-shadow: 0 0 12px rgba(128, 183, 184, 0.34);
}

.main-header a,
.main-header button,
.admin-btn,
.logout-btn {
  border-color: rgba(128, 183, 184, 0.35);
  background: rgba(100, 182, 175, 0.14);
}

.main-header a:hover,
.main-header button:hover,
.admin-btn:hover,
.logout-btn:hover {
  background: linear-gradient(90deg, #64B6AF, #80B7B8);
}

.main-header .header-right .admin-btn,
.main-header .header-right .admin-btn:focus,
.main-header .header-right .admin-btn:active,
.main-header .header-right .logout-btn,
.main-header .header-right .logout-btn:focus,
.main-header .header-right .logout-btn:active {
  border-color: rgba(128, 183, 184, 0.4) !important;
  background: linear-gradient(135deg, #64B6AF, #80B7B8) !important;
  color: #002122 !important;
  text-shadow: none !important;
}

.main-header .header-right .admin-btn:hover,
.main-header .header-right .logout-btn:hover {
  background: linear-gradient(135deg, #73bfba, #91c6c7) !important;
}

.user-label-name,
.footer-powered strong {
  color: #002122 !important;
}

.dashboard-card {
  background: linear-gradient(135deg, #0d4c4f 0%, #256f73 48%, #64B6AF 100%);
  border-color: rgba(128, 183, 184, 0.3);
}

.dashboard-card:hover {
  background: linear-gradient(135deg, #23666a 0%, #4b9f98 54%, #80B7B8 100%);
}

.side-hover-dots {
  background: linear-gradient(180deg, #0a3133, #002122);
}

.side-dot-btn {
  border-color: rgba(128, 183, 184, 0.48);
  background: linear-gradient(145deg, #1f6f72, #64B6AF);
  color: #ecf7f7;
}

.side-dot-btn:hover,
.side-dot-btn.active {
  background: linear-gradient(135deg, #64B6AF, #80B7B8);
  color: #002122;
}

.side-hover-panel,
.side-pages-panel,
.modal-box,
.dropdown-content,
.form-box-dashboard,
.dashboard-form-panel {
  background: linear-gradient(180deg, #0f4143, #002b2d);
  border-color: rgba(128, 183, 184, 0.34);
}

.side-dashboard-item button,
.side-page-item button {
  background: rgba(5, 39, 41, 0.65);
  color: #eaf5f4;
}

.side-dashboard-item button:hover,
.side-dashboard-item button.active,
.side-page-item button:hover {
  background: rgba(16, 73, 77, 0.86);
  border-color: rgba(128, 183, 184, 0.58);
}

.btn-save,
.btn-modal-save,
.login-card button,
.form-box-dashboard .btn-primary,
.form-box-dashboard .btn-perm,
#modalPaginasDashboard .btn-perm,
#modalPaginasDashboard .btn-modal-save,
.admin-container .users-box .btn-save,
.admin-container .users-box .btn-perm,
.admin-container .form-box .btn-add-existing,
.admin-container .btn-save,
.admin-container .btn-perm,
.admin-container .btn-add-existing,
#modalPermissoes .btn-modal-save {
  border-color: rgba(128, 183, 184, 0.35);
  background: linear-gradient(135deg, #64B6AF, #80B7B8);
  color: #002122;
  text-shadow: none;
}

.btn-save:hover,
.btn-modal-save:hover,
.login-card button:hover,
.form-box-dashboard .btn-primary:hover,
.form-box-dashboard .btn-perm:hover,
#modalPaginasDashboard .btn-perm:hover,
#modalPaginasDashboard .btn-modal-save:hover,
.admin-container .users-box .btn-save:hover,
.admin-container .users-box .btn-perm:hover,
.admin-container .form-box .btn-add-existing:hover,
.admin-container .btn-save:hover,
.admin-container .btn-perm:hover,
.admin-container .btn-add-existing:hover,
#modalPermissoes .btn-modal-save:hover {
  background: linear-gradient(135deg, #73bfba, #91c6c7);
}

.form-box input:focus,
.form-box select:focus,
.pagina-dashboard-row input:focus,
.dashboard-page-select:focus,
#listaPermissoes input,
#listaUsuariosPermissao input,
.checkbox-admin input,
input[type="checkbox"] {
  accent-color: #64B6AF;
}

.form-box input:focus,
.form-box select:focus,
.pagina-dashboard-row input:focus,
.dashboard-page-select:focus {
  border-color: #64B6AF;
  box-shadow: 0 0 0 2px rgba(100, 182, 175, 0.22);
}

.login-redesign {
  background: radial-gradient(circle at 20% 20%, #356d70 0%, #0f3d40 46%, #002122 100%);
}

.login-redesign .login-left {
  background:
    radial-gradient(circle at 24% 66%, rgba(100, 182, 175, 0.22) 0%, rgba(100, 182, 175, 0) 52%),
    radial-gradient(circle at 76% 24%, rgba(128, 183, 184, 0.17) 0%, rgba(128, 183, 184, 0) 46%),
    linear-gradient(145deg, #0f4d50 0%, #0a383b 42%, #002122 100%);
}

.login-redesign .login-left::before {
  background: linear-gradient(90deg, #64B6AF 0%, #80B7B8 100%);
}

.login-redesign .login-left::after {
  background: linear-gradient(90deg, rgba(100, 182, 175, 0.66) 0%, rgba(128, 183, 184, 0.5) 100%);
}

.login-redesign .login-left-glow {
  background: radial-gradient(circle, rgba(100, 182, 175, 0.22) 0%, rgba(128, 183, 184, 0.14) 36%, rgba(100, 182, 175, 0) 78%);
}

.login-redesign .login-card .small-title,
.login-redesign .login-card h2 {
  color: #0f4d50;
  background: none;
  -webkit-text-fill-color: initial;
}

.login-logo-popup {
  border-color: rgba(128, 183, 184, 0.44);
  background: linear-gradient(135deg, rgba(16, 81, 84, 0.9), rgba(0, 33, 34, 0.94));
}

/* Remove faixas inclinadas no canto direito do header */
.header-right {
  padding-right: 0 !important;
}

.header-right::before,
.header-right::after {
  display: none !important;
}

@media (max-width: 1320px) {
  .header-right {
    padding-right: 0 !important;
  }
}

/* ===================================================== */
/* ===== AJUSTE TONAL - MAIS PROXIMO DE #80B7B8 ======== */
/* ===================================================== */
:root {
  --bio-primary: #6FAFB0;
  --bio-secondary: #80B7B8;
  --bio-accent: #9FCBCD;
  --primary: #6FAFB0;
  --secondary: #80B7B8;
  --accent: #9FCBCD;
  --text-strong: #143739;
  --text-soft: #2f5658;
}

.hero-bg {
  background:
    radial-gradient(ellipse 75% 58% at 72% 36%, rgba(159, 203, 205, 0.36) 0%, transparent 62%),
    radial-gradient(ellipse 54% 52% at 22% 82%, rgba(128, 183, 184, 0.32) 0%, transparent 54%),
    linear-gradient(140deg, #a5ced0 0%, #80B7B8 56%, #6aa5a7 100%);
}

.main-header {
  background: linear-gradient(180deg, #8ac0c1 0%, #74aeb0 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.menu a {
  color: #1f4548;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.3);
}

.menu a:hover,
.menu a.active {
  color: #103436;
  background: linear-gradient(135deg, #8cc0c2, #a8d1d2);
  box-shadow: 0 0 12px rgba(159, 203, 205, 0.46);
}

.main-header a,
.main-header button,
.admin-btn,
.logout-btn {
  color: #12393b;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.32);
}

.main-header a:hover,
.main-header button:hover,
.admin-btn:hover,
.logout-btn:hover {
  background: linear-gradient(90deg, #91c3c5, #b0d6d7);
}

.main-header .header-right .admin-btn,
.main-header .header-right .admin-btn:focus,
.main-header .header-right .admin-btn:active,
.main-header .header-right .logout-btn,
.main-header .header-right .logout-btn:focus,
.main-header .header-right .logout-btn:active {
  background: linear-gradient(135deg, #8FC2C3, #B2D7D8) !important;
  color: #0f3437 !important;
}

.dashboard-card {
  background: linear-gradient(135deg, #74acad 0%, #80B7B8 48%, #9FCBCD 100%);
  border-color: rgba(255,255,255,0.34);
}

.dashboard-card:hover {
  background: linear-gradient(135deg, #82b7b8 0%, #95c5c6 54%, #b4d9db 100%);
}

.side-hover-dots,
.side-hover-panel,
.side-pages-panel,
.modal-box,
.dropdown-content,
.form-box-dashboard,
.dashboard-form-panel {
  background: linear-gradient(180deg, #8cbfc0, #72aaac);
  border-color: rgba(255, 255, 255, 0.34);
}

.side-dot-btn {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(145deg, #76b0b1, #95c5c6);
  color: #0f3437;
}

.side-dot-btn:hover,
.side-dot-btn.active {
  background: linear-gradient(135deg, #97c7c8, #b4d9db);
  color: #0a2b2d;
}

.side-dashboard-item button,
.side-page-item button {
  background: rgba(255, 255, 255, 0.3);
  color: #153c3f;
}

.side-dashboard-item button:hover,
.side-dashboard-item button.active,
.side-page-item button:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-save,
.btn-modal-save,
.login-card button,
.form-box-dashboard .btn-primary,
.form-box-dashboard .btn-perm,
#modalPaginasDashboard .btn-perm,
#modalPaginasDashboard .btn-modal-save,
.admin-container .users-box .btn-save,
.admin-container .users-box .btn-perm,
.admin-container .form-box .btn-add-existing,
.admin-container .btn-save,
.admin-container .btn-perm,
.admin-container .btn-add-existing,
#modalPermissoes .btn-modal-save {
  background: linear-gradient(135deg, #86BCBD, #A9D2D3);
  color: #103739;
  border-color: rgba(255, 255, 255, 0.45);
}

.login-redesign {
  background: radial-gradient(circle at 20% 20%, #b1d7d8 0%, #93c4c5 46%, #80B7B8 100%);
}

.login-redesign .login-left {
  background:
    radial-gradient(circle at 24% 66%, rgba(159, 203, 205, 0.36) 0%, rgba(159, 203, 205, 0) 52%),
    radial-gradient(circle at 76% 24%, rgba(128, 183, 184, 0.28) 0%, rgba(128, 183, 184, 0) 46%),
    linear-gradient(145deg, #95c5c6 0%, #84babb 42%, #71abac 100%);
}

/* ===================================================== */
/* ===== AJUSTE SOLICITADO: MAIS #002122 NO TOPO ======= */
/* ===================================================== */
:root {
  --bio-primary: #002122;
  --primary: #002122;
}

.main-header {
  background: linear-gradient(180deg, #0a3537 0%, #002122 100%) !important;
  border-bottom: 1px solid rgba(128, 183, 184, 0.24) !important;
}

.main-header .header-container {
  background: transparent !important;
}

.hero-bg {
  background:
    radial-gradient(ellipse 75% 58% at 72% 36%, rgba(128, 183, 184, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 54% 52% at 22% 82%, rgba(0, 33, 34, 0.22) 0%, transparent 54%),
    linear-gradient(140deg, #78aeb0 0%, #6ca4a6 56%, #5d9799 100%) !important;
}

.main-header a,
.main-header button,
.admin-btn,
.logout-btn {
  color: #e9f5f4 !important;
  border-color: rgba(128, 183, 184, 0.34) !important;
  background: rgba(0, 33, 34, 0.38) !important;
}

.main-header a:hover,
.main-header button:hover,
.admin-btn:hover,
.logout-btn:hover {
  background: linear-gradient(90deg, #0a3a3c, #1f5b5e) !important;
}

.main-header .header-right .admin-btn,
.main-header .header-right .admin-btn:focus,
.main-header .header-right .admin-btn:active,
.main-header .header-right .logout-btn,
.main-header .header-right .logout-btn:focus,
.main-header .header-right .logout-btn:active {
  background: linear-gradient(135deg, #0c3c3e, #1f5c5f) !important;
  color: #e9f5f4 !important;
  border-color: rgba(128, 183, 184, 0.38) !important;
}

.side-hover-dots {
  background: linear-gradient(180deg, #0a3133, #002122) !important;
}

/* ===================================================== */
/* ===== CARD DASHBOARD ESTILO DAX (CLIENTES ATIVOS) ==== */
/* ===================================================== */
.dashboard-grid .dashboard-card.dax-style-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: 18px;
  border: none !important;
  outline: none;
  background: #002122 !important;
  box-shadow: none !important;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px;
  gap: 0;
}

.dashboard-grid .dashboard-card.dax-style-card::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(142, 219, 208, 0.16);
}

.dashboard-grid .dashboard-card.dax-style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(142, 219, 208, 0.08);
  pointer-events: none;
}

.dashboard-card-kicker,
.dashboard-card-value,
.dashboard-card-meta {
  position: relative;
  z-index: 2;
}

.dashboard-card-kicker {
  font-size: 15px;
  color: #8EDBD0;
  font-weight: 400;
  margin-bottom: 8px;
  white-space: nowrap;
}

.dashboard-card-value {
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-card-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #D7F7F0;
  white-space: nowrap;
}

.dashboard-card-meta-highlight {
  font-weight: 700;
  color: #7CFFD6;
}

.dashboard-card-meta-text {
  color: rgba(215, 247, 240, 0.82);
}

.dashboard-grid .dashboard-card.dax-style-card:hover {
  transform: translateY(-6px);
  background: #062b2c !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28) !important;
}

/* Mantem apenas o fundo estilo DAX, preservando fonte/tamanho originais */
.dashboard-grid .dashboard-card.dax-style-card {
  min-height: unset;
  height: 200px;
  padding: 0;
}

.dashboard-grid .dashboard-card.dax-style-card > span {
  position: relative;
  z-index: 2;
  font: inherit;
  font-weight: bold;
  color: #ffffff;
  padding: 0 14px;
}

/* Restaurar cor anterior da saudacao no header */
.user-label-name {
  color: #80B7B8 !important;
}

/* ===================================================== */
/* ============ LANDING LOGIN WORKS2DATA ============== */
/* ===================================================== */
.works2data-landing {
  min-height: 100vh;
  overflow: hidden;
  background: #002122;
  color: #ffffff;
  --works2data-display-font: "Chakra Petch", "Poppins", "Segoe UI", Arial, sans-serif;
}

.works2data-landing .login-page {
  min-height: 100vh;
  height: auto;
  display: block;
}

.landing-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(0, 33, 34, 0.98) 0%, rgba(0, 33, 34, 0.94) 42%, rgba(100, 182, 175, 0.34) 100%),
    url("assets/2.1-clean.png") right 8% center / min(640px, 44vw) auto no-repeat,
    #002122;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(128, 183, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(128, 183, 184, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.76), transparent 72%);
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(180deg, rgba(128, 183, 184, 0.22), rgba(100, 182, 175, 0.08));
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.landing-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.landing-topbar {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(128, 183, 184, 0.18);
}

.landing-logo {
  width: 210px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.26));
}

.landing-eyebrow {
  font-family: var(--works2data-display-font);
  font-style: italic;
  color: #d7f7f0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.landing-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 72px;
  padding: 48px 0;
}

.landing-copy {
  max-width: 680px;
}

.landing-kicker {
  font-family: var(--works2data-display-font);
  font-style: italic;
  display: inline-block;
  margin-bottom: 18px;
  color: #8EDBD0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.landing-copy h1 {
  font-family: var(--works2data-display-font);
  font-style: italic;
  margin: 0;
  color: #ffffff;
  font-size: 64px;
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-copy p {
  font-family: var(--works2data-display-font);
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(215, 247, 240, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.landing-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.landing-signals span {
  font-family: var(--works2data-display-font);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(142, 219, 208, 0.28);
  border-radius: 8px;
  color: #d7f7f0;
  background: rgba(128, 183, 184, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.landing-access {
  position: relative;
}

.landing-access::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(142, 219, 208, 0.18);
  border-radius: 8px;
  transform: translate(14px, -14px);
  pointer-events: none;
}

.works2data-landing .login-card {
  position: relative;
  width: 100%;
  padding: 34px;
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.3);
  background: rgba(0, 33, 34, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.works2data-landing .login-card .small-title {
  font-family: var(--works2data-display-font);
  font-style: italic;
  color: #8EDBD0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.works2data-landing .login-card h2 {
  font-family: var(--works2data-display-font);
  font-style: italic;
  margin-top: 14px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.works2data-landing .login-card p {
  font-family: var(--works2data-display-font);
  margin: 12px 0 26px;
  color: rgba(215, 247, 240, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.works2data-landing .login-card form {
  display: grid;
  gap: 14px;
}

.works2data-landing .login-card input {
  height: 52px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.works2data-landing .login-card input::placeholder {
  color: rgba(215, 247, 240, 0.58);
}

.works2data-landing .login-card input:focus {
  outline: none;
  border-color: #8EDBD0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(142, 219, 208, 0.14);
}

.works2data-landing .login-card button {
  font-family: var(--works2data-display-font);
  font-style: italic;
  height: 52px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.3);
  background: #80B7B8 !important;
  color: #002122 !important;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.works2data-landing .login-card button:hover {
  transform: translateY(-2px);
  background: #9FCBCD !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.landing-footer {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: rgba(215, 247, 240, 0.58);
  font-size: 13px;
}

.landing-footer strong {
  color: #8EDBD0;
}

@media (max-width: 1100px) {
  .landing-content {
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: start;
  }

  .landing-access {
    width: min(430px, 100%);
  }

  .landing-copy h1 {
    font-size: 52px;
  }
}

@media (max-width: 720px) {
  .works2data-landing {
    overflow: auto;
  }

  .landing-hero {
    min-height: 100svh;
    background:
      linear-gradient(150deg, rgba(0, 33, 34, 0.98) 0%, rgba(0, 33, 34, 0.9) 62%, rgba(128, 183, 184, 0.26) 100%),
      #002122;
  }

  .landing-shell {
    width: min(100% - 32px, 560px);
  }

  .landing-topbar {
    height: 92px;
  }

  .landing-logo {
    width: 162px;
  }

  .landing-eyebrow {
    display: none;
  }

  .landing-content {
    padding: 34px 0 22px;
  }

  .landing-copy h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .landing-copy p {
    font-size: 15px;
    line-height: 1.55;
  }

  .landing-access::before {
    display: none;
  }

  .works2data-landing .login-card {
    padding: 24px;
  }

  .landing-footer {
    justify-content: flex-start;
  }
}

/* ===================================================== */
/* ============ MENU WORKS2DATA MODERNO =============== */
/* ===================================================== */
.works2data-menu {
  min-height: 100vh;
  padding-top: 88px;
  background:
    linear-gradient(118deg, rgba(0, 33, 34, 0.98) 0%, rgba(0, 33, 34, 0.92) 36%, rgba(128, 183, 184, 0.42) 100%),
    #002122;
  color: #ffffff;
}

.works2data-menu::before {
  content: "";
  position: fixed;
  inset: 88px 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(128, 183, 184, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(128, 183, 184, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.82), transparent 78%);
  pointer-events: none;
}

.works2data-menu .main-header {
  height: 88px;
  background: rgba(0, 33, 34, 0.92) !important;
  border-bottom: 1px solid rgba(128, 183, 184, 0.22) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.works2data-menu .header-container {
  max-width: 1480px;
  padding: 0 36px;
}

.works2data-menu .main-header .logo img {
  height: 68px;
  max-width: 260px;
}

.works2data-menu .user-label-prefix {
  color: rgba(215, 247, 240, 0.8);
}

.works2data-menu .user-label-name {
  color: #8EDBD0 !important;
}

.works2data-menu .main-header .header-right .admin-btn,
.works2data-menu .main-header .header-right .logout-btn {
  min-height: 40px !important;
  border-radius: 8px !important;
  border-color: rgba(142, 219, 208, 0.28) !important;
  background: rgba(128, 183, 184, 0.1) !important;
  color: #d7f7f0 !important;
  box-shadow: none !important;
}

.works2data-menu .main-header .header-right .admin-btn:hover,
.works2data-menu .main-header .header-right .logout-btn:hover {
  background: rgba(128, 183, 184, 0.22) !important;
}

.menu-dashboard-shell {
  width: min(1480px, calc(100% - 96px));
  max-width: none;
  margin: 0 auto;
  padding: 42px 0 92px 78px;
}

.menu-landing-panel {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  overflow: hidden;
  padding: 42px 48px;
  border: 1px solid rgba(142, 219, 208, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(0, 33, 34, 0.94) 0%, rgba(0, 44, 46, 0.88) 58%, rgba(128, 183, 184, 0.18) 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.menu-landing-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 42%;
  height: 100%;
  background: linear-gradient(180deg, rgba(128, 183, 184, 0.22), rgba(142, 219, 208, 0.04));
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.menu-landing-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.menu-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(142, 219, 208, 0.26);
  border-radius: 8px;
  color: #8EDBD0;
  background: rgba(128, 183, 184, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.works2data-menu .dashboard-title {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.works2data-menu .dashboard-subtitle {
  max-width: 640px;
  margin-top: 16px;
  color: rgba(215, 247, 240, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.menu-brand-mark {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  opacity: 0.92;
}

.menu-brand-mark img {
  width: min(320px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.24));
}

.menu-dashboard-section {
  margin-top: 34px;
}

.menu-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  color: rgba(215, 247, 240, 0.68);
}

.menu-section-heading span {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.menu-section-heading strong {
  color: #8EDBD0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.works2data-menu .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 0;
}

.works2data-menu .dashboard-card.dashboard-selection-card {
  position: relative;
  isolation: isolate;
  height: 190px;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.18) !important;
  background: #002122 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
  text-align: left;
}

.works2data-menu .dashboard-card.dashboard-selection-card::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(142, 219, 208, 0.16);
  z-index: -1;
}

.works2data-menu .dashboard-card.dashboard-selection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(128, 183, 184, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: -1;
}

.dashboard-card-index {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(142, 219, 208, 0.5);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.dashboard-card-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  max-width: calc(100% - 44px);
  border-radius: 8px;
  color: #8EDBD0;
  background: rgba(128, 183, 184, 0.1);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.dashboard-card-title {
  display: block;
  width: 100%;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.dashboard-card-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  margin-top: auto;
  margin-left: auto;
  color: rgba(215, 247, 240, 0.76);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-card-action::after {
  content: ">";
  margin-left: 8px;
  color: #7CFFD6;
  transition: transform 0.2s ease;
}

.works2data-menu .dashboard-card.dashboard-selection-card:hover {
  transform: translateY(-5px);
  border-color: rgba(142, 219, 208, 0.34) !important;
  background: #062b2c !important;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32) !important;
}

.works2data-menu .dashboard-card.dashboard-selection-card:hover::after {
  opacity: 1;
}

.works2data-menu .dashboard-card.dashboard-selection-card:hover .dashboard-card-action::after {
  transform: translateX(4px);
}

.works2data-menu .side-hover-nav {
  top: 88px;
}

.works2data-menu .side-hover-dots {
  min-height: calc(100vh - 88px);
  padding-top: 56px;
  background: rgba(0, 33, 34, 0.78) !important;
  border-right: 1px solid rgba(142, 219, 208, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.works2data-menu .side-dot-btn {
  border-radius: 8px;
  border-color: rgba(142, 219, 208, 0.24);
  background: rgba(128, 183, 184, 0.08);
  box-shadow: none;
}

.works2data-menu .side-dot-btn:hover,
.works2data-menu .side-dot-btn.active {
  transform: translateX(3px);
  background: rgba(128, 183, 184, 0.22);
}

.works2data-menu .side-hover-panel,
.works2data-menu .side-pages-panel {
  border-radius: 8px;
  background: rgba(0, 33, 34, 0.9);
  border-color: rgba(142, 219, 208, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.works2data-menu .footer-powered {
  color: rgba(215, 247, 240, 0.56);
}

.works2data-menu .footer-powered strong {
  color: #8EDBD0 !important;
}

@media (max-width: 980px) {
  .works2data-menu {
    padding-top: 88px;
  }

  .works2data-menu .header-container {
    padding: 0 18px;
  }

  .menu-dashboard-shell {
    width: min(100% - 32px, 720px);
    padding: 28px 0 86px;
  }

  .menu-landing-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 30px 24px;
  }

  .menu-brand-mark {
    justify-content: flex-start;
  }

  .menu-brand-mark img {
    width: 210px;
  }

  .works2data-menu .dashboard-title {
    font-size: 34px;
  }

  .works2data-menu .dashboard-subtitle {
    font-size: 15px;
  }

  .menu-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .works2data-menu .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .works2data-menu .dashboard-card.dashboard-selection-card {
    height: 170px;
    min-height: 170px;
  }

  .dashboard-card-title {
    font-size: 19px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* ===================================================== */
/* =========== ADMIN PAGES WORKS2DATA ================= */
/* ===================================================== */
.works2data-admin {
  min-height: 100vh;
  padding-top: 88px;
  background:
    linear-gradient(118deg, rgba(0, 33, 34, 0.98) 0%, rgba(0, 33, 34, 0.92) 36%, rgba(128, 183, 184, 0.34) 100%),
    #002122;
  color: #ffffff;
}

.works2data-admin::before {
  content: "";
  position: fixed;
  inset: 88px 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(128, 183, 184, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(128, 183, 184, 0.04) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.82), transparent 78%);
  pointer-events: none;
}

.works2data-admin .main-header {
  height: 88px;
  background: rgba(0, 33, 34, 0.92) !important;
  border-bottom: 1px solid rgba(128, 183, 184, 0.22) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.works2data-admin .header-container {
  max-width: 1480px;
  padding: 0 36px;
}

.works2data-admin .main-header .logo img {
  height: 68px;
  max-width: 260px;
}

.works2data-admin .user-label-prefix {
  color: rgba(215, 247, 240, 0.8);
}

.works2data-admin .user-label-name {
  color: #8EDBD0 !important;
}

.works2data-admin .main-header .header-right .admin-btn,
.works2data-admin .main-header .header-right .logout-btn {
  min-height: 40px !important;
  border-radius: 8px !important;
  border-color: rgba(142, 219, 208, 0.28) !important;
  background: rgba(128, 183, 184, 0.1) !important;
  color: #d7f7f0 !important;
  box-shadow: none !important;
}

.works2data-admin .main-header .header-right .admin-btn:hover,
.works2data-admin .main-header .header-right .logout-btn:hover {
  background: rgba(128, 183, 184, 0.22) !important;
}

.works2data-admin .admin-dashboard-shell {
  width: min(1480px, calc(100% - 96px));
  max-width: none;
  margin: 0 auto;
  padding: 34px 0 92px 78px;
}

.works2data-admin .dashboard-header {
  position: relative;
  overflow: hidden;
  padding: 30px 34px;
  border: 1px solid rgba(142, 219, 208, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(0, 33, 34, 0.94) 0%, rgba(0, 44, 46, 0.88) 60%, rgba(128, 183, 184, 0.18) 100%);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.works2data-admin .dashboard-header::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: rgba(142, 219, 208, 0.14);
}

.works2data-admin .dashboard-title,
.works2data-admin .dashboard-subtitle {
  position: relative;
  z-index: 1;
}

.works2data-admin .dashboard-title {
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.04;
  font-weight: 900;
}

.works2data-admin .dashboard-subtitle {
  margin-top: 10px;
  color: rgba(215, 247, 240, 0.8);
  font-size: 16px;
  line-height: 1.5;
}

.works2data-admin .admin-container {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.works2data-admin .form-box,
.works2data-admin .users-box,
.works2data-admin .dashboard-form-panel,
.works2data-admin .dashboard-pages-panel {
  border-radius: 8px !important;
  border: 1px solid rgba(142, 219, 208, 0.2) !important;
  background: rgba(0, 33, 34, 0.8) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.works2data-admin .form-box {
  padding: 24px;
}

.works2data-admin .form-box-dashboard .dashboard-form-grid {
  gap: 14px;
}

.works2data-admin .dashboard-form-section-title {
  color: #dff8f4;
  letter-spacing: 0.2px;
}

.works2data-admin .dashboard-form-hint {
  color: rgba(215, 247, 240, 0.75);
}

.works2data-admin .form-box input,
.works2data-admin .form-box select,
.works2data-admin .form-box-dashboard input,
.works2data-admin .form-box-dashboard select {
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.works2data-admin .form-box input::placeholder,
.works2data-admin .form-box-dashboard input::placeholder {
  color: rgba(215, 247, 240, 0.58);
}

.works2data-admin .form-box input:focus,
.works2data-admin .form-box select:focus,
.works2data-admin .form-box-dashboard input:focus,
.works2data-admin .form-box-dashboard select:focus {
  border-color: #8EDBD0 !important;
  box-shadow: 0 0 0 3px rgba(142, 219, 208, 0.14) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.works2data-admin .users-box {
  padding: 24px;
}

.works2data-admin .users-box h3 {
  color: #ffffff !important;
}

.works2data-admin .users-table thead th {
  color: #8EDBD0;
  border-bottom-color: rgba(142, 219, 208, 0.22);
}

.works2data-admin .users-table tbody td {
  border-bottom-color: rgba(142, 219, 208, 0.12);
}

.works2data-admin .users-table input,
.works2data-admin .users-table select {
  border: 1px solid rgba(142, 219, 208, 0.26) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.works2data-admin .btn-action,
.works2data-admin .btn-primary,
.works2data-admin .btn-save,
.works2data-admin .btn-perm,
.works2data-admin .btn-modal-save,
.works2data-admin .btn-add-existing {
  border-radius: 8px !important;
  border: 1px solid rgba(142, 219, 208, 0.28) !important;
  background: linear-gradient(135deg, #80B7B8, #9FCBCD) !important;
  color: #002122 !important;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

.works2data-admin .btn-action:hover,
.works2data-admin .btn-primary:hover,
.works2data-admin .btn-save:hover,
.works2data-admin .btn-perm:hover,
.works2data-admin .btn-modal-save:hover,
.works2data-admin .btn-add-existing:hover {
  background: linear-gradient(135deg, #95c5c6, #b0d6d7) !important;
}

.works2data-admin #listaPermissoes,
.works2data-admin #listaUsuariosPermissao,
.works2data-admin .paginas-dashboard-lista {
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.works2data-admin #modalPermissoes .modal-box,
.works2data-admin #modalPaginasDashboard .modal-box {
  border-radius: 8px;
  border: 1px solid rgba(142, 219, 208, 0.24);
  background: rgba(0, 33, 34, 0.9);
}

.works2data-admin .side-hover-nav {
  top: 88px;
}

.works2data-admin .side-hover-dots {
  min-height: calc(100vh - 88px);
  padding-top: 56px;
  background: rgba(0, 33, 34, 0.78) !important;
  border-right: 1px solid rgba(142, 219, 208, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.works2data-admin .side-dot-btn {
  border-radius: 8px;
  border-color: rgba(142, 219, 208, 0.24);
  background: rgba(128, 183, 184, 0.08);
  box-shadow: none;
}

.works2data-admin .side-dot-btn:hover,
.works2data-admin .side-dot-btn.active {
  transform: translateX(3px);
  background: rgba(128, 183, 184, 0.22);
}

.works2data-admin .side-hover-panel,
.works2data-admin .side-pages-panel {
  border-radius: 8px;
  background: rgba(0, 33, 34, 0.9);
  border-color: rgba(142, 219, 208, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 1200px) {
  .works2data-admin .admin-dashboard-shell {
    width: min(100% - 36px, 1100px);
    padding: 28px 0 88px 76px;
  }

  .works2data-admin .admin-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .works2data-admin .header-container {
    padding: 0 18px;
  }

  .works2data-admin .admin-dashboard-shell {
    width: min(100% - 28px, 740px);
    padding: 20px 0 84px;
  }

  .works2data-admin .dashboard-title {
    font-size: 34px;
  }

  .works2data-admin .dashboard-subtitle {
    font-size: 15px;
  }

  .works2data-admin .dashboard-header {
    padding: 24px;
  }

  .works2data-admin .form-box,
  .works2data-admin .users-box {
    padding: 18px;
  }
}

/* ===================================================== */
/* === CADASTRO: layout anterior + fundo atualizado ==== */
/* ===================================================== */
.admin-bg-only .hero-bg {
  background:
    radial-gradient(ellipse 72% 56% at 76% 34%, rgba(128, 183, 184, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 52% 52% at 20% 84%, rgba(100, 182, 175, 0.18) 0%, transparent 54%),
    linear-gradient(136deg, #0a3537 0%, #002122 58%, #0f5154 100%) !important;
}

.admin-bg-only .hero-grid {
  background-image:
    linear-gradient(rgba(128, 183, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 183, 184, 0.08) 1px, transparent 1px) !important;
}

/* Cadastro de dashboard com as mesmas cores do painel de paginas */
.admin-bg-only .form-box,
.admin-bg-only .form-box-dashboard,
.admin-bg-only .dashboard-form-panel,
.admin-bg-only .dashboard-pages-panel {
  background: linear-gradient(120deg, #2f333f 0%, #252b36 48%, #202834 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #edf0f2 !important;
}

.admin-bg-only .dashboard-form-section-title,
.admin-bg-only .users-box h3 {
  color: #f4f7f8 !important;
}

.admin-bg-only .dashboard-form-hint {
  color: rgba(237, 240, 242, 0.76) !important;
}

.admin-bg-only .form-box input,
.admin-bg-only .form-box select,
.admin-bg-only .pagina-dashboard-row input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(174, 179, 186, 0.42) !important;
  color: #eef1f4 !important;
}

.admin-bg-only .form-box input::placeholder,
.admin-bg-only .pagina-dashboard-row input::placeholder {
  color: rgba(233, 237, 242, 0.64) !important;
}

.admin-bg-only .form-box select {
  color: #eef1f4 !important;
}

.admin-bg-only .form-box input:focus,
.admin-bg-only .form-box select:focus,
.admin-bg-only .pagina-dashboard-row input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #80B7B8 !important;
  box-shadow: 0 0 0 2px rgba(128, 183, 184, 0.2) !important;
}

.admin-bg-only #listaUsuariosPermissao,
.admin-bg-only .paginas-dashboard-lista {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(174, 179, 186, 0.18) !important;
}

.admin-bg-only #listaUsuariosPermissao label {
  color: #eef1f4 !important;
  border-color: rgba(174, 179, 186, 0.18) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.admin-bg-only .form-box-dashboard .btn-primary,
.admin-bg-only .form-box-dashboard .btn-perm,
.admin-bg-only #modalPaginasDashboard .btn-perm,
.admin-bg-only #modalPaginasDashboard .btn-modal-save {
  border-color: rgba(128, 183, 184, 0.35) !important;
  background: linear-gradient(135deg, #80B7B8, #9FCBCD) !important;
  color: #002122 !important;
  text-shadow: none !important;
}

.admin-bg-only .form-box-dashboard .btn-primary:hover,
.admin-bg-only .form-box-dashboard .btn-perm:hover,
.admin-bg-only #modalPaginasDashboard .btn-perm:hover,
.admin-bg-only #modalPaginasDashboard .btn-modal-save:hover {
  background: linear-gradient(135deg, #91c6c7, #b0d6d7) !important;
}

.admin-bg-only .form-box-dashboard .pagina-remove-btn,
.admin-bg-only #modalPaginasDashboard .pagina-remove-btn {
  border-color: rgba(248, 113, 113, 0.34) !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
}

#modalPaginasDashboard .modal-box {
  background: linear-gradient(120deg, #2f333f 0%, #252b36 48%, #202834 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #edf0f2 !important;
}

#modalPaginasDashboard .modal-title {
  color: #f4f7f8 !important;
}

#modalPaginasDashboard .paginas-dashboard-lista {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(174, 179, 186, 0.18) !important;
}

#modalPaginasDashboard .pagina-dashboard-row input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(174, 179, 186, 0.42) !important;
  color: #eef1f4 !important;
}

#modalPaginasDashboard .pagina-dashboard-row input::placeholder {
  color: rgba(233, 237, 242, 0.64) !important;
}

#modalPaginasDashboard .pagina-dashboard-row input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #80B7B8 !important;
  box-shadow: 0 0 0 2px rgba(128, 183, 184, 0.2) !important;
}

#modalPaginasDashboard .btn-perm,
#modalPaginasDashboard .btn-modal-save {
  border: 1px solid rgba(128, 183, 184, 0.35) !important;
  background: linear-gradient(135deg, #80B7B8, #9FCBCD) !important;
  color: #002122 !important;
  text-shadow: none !important;
}

#modalPaginasDashboard .btn-modal-close {
  border: 1px solid rgba(174, 179, 186, 0.3) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #eef1f4 !important;
}

#modalPaginasDashboard .pagina-remove-btn {
  border: 1px solid rgba(248, 113, 113, 0.34) !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
}

.setor-categoria-panel {
  margin-top: 18px;
}

.setor-categoria-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 12px;
}

.setor-icon-picker,
.setor-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
}

.setor-icon-picker {
  border: 1px solid rgba(174, 179, 186, 0.3);
  background: rgba(255, 255, 255, 0.055);
  color: #eef1f4;
  font-size: 13px;
  font-weight: 800;
  max-width: 180px;
}

.setor-icon-picker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setor-icon-picker input,
.setor-icon-action input {
  display: none;
}

.setores-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(128, 183, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef1f4;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.setores-toggle-btn:hover {
  border-color: rgba(128, 183, 184, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.setores-categoria-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(174, 179, 186, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.setores-categoria-lista[hidden] {
  display: none;
}

.setor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 12px 8px 14px;
  border-bottom: 1px solid rgba(174, 179, 186, 0.12);
  color: #eef1f4;
}

.setor-row:last-child {
  border-bottom: 0;
}

.setor-row-name {
  min-width: 0;
  overflow: hidden;
  color: #f4f7f8;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setor-row-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.setor-row-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  border: 1px solid rgba(128, 183, 184, 0.28);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.setor-row-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9FCBCD;
  font-size: 12px;
  font-weight: 900;
}

.setor-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.setor-row-editing {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px 8px 14px;
  border-bottom: 1px solid rgba(174, 179, 186, 0.12);
}

.setor-row-editing input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(128, 183, 184, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #eef1f4;
  padding: 0 9px;
  font-weight: 700;
}

.setor-row-editing input:focus {
  outline: none;
  border-color: #80B7B8;
  box-shadow: 0 0 0 2px rgba(128, 183, 184, 0.2);
}

.setor-row button,
.setor-row-editing button,
.setor-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.setor-row button:hover,
.setor-row-editing button:hover,
.setor-icon-action:hover {
  transform: translateY(-1px);
}

.setor-action-save {
  border: 1px solid rgba(128, 183, 184, 0.42);
  background: linear-gradient(135deg, #9FCBCD, #80B7B8);
  color: #163136;
  box-shadow: 0 10px 22px rgba(128, 183, 184, 0.16);
}

.setor-action-neutral,
.setor-icon-action {
  border: 1px solid rgba(128, 183, 184, 0.28);
  background: linear-gradient(135deg, rgba(159, 203, 205, 0.96), rgba(128, 183, 184, 0.9));
  color: #163136;
  box-shadow: 0 10px 22px rgba(128, 183, 184, 0.14);
}

.setor-action-delete {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

.setor-empty {
  color: rgba(237, 240, 242, 0.72);
}

@media (max-width: 760px) {
  .setor-categoria-form {
    grid-template-columns: 1fr;
  }

  .setor-row,
  .setor-row-editing {
    grid-template-columns: 1fr;
  }

  .setor-row-actions {
    justify-content: flex-start;
  }
}


/* Responsivo: mantem Admin e Sair sempre visiveis no header. */
.works2data-menu .main-header .header-container,
.admin-bg-only .main-header .header-container,
.works2data-admin .main-header .header-container {
  min-width: 0;
}

.works2data-menu .main-header .header-right,
.admin-bg-only .main-header .header-right,
.works2data-admin .main-header .header-right {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: max-content !important;
  margin-left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.works2data-menu .main-header .dropdown-admin,
.admin-bg-only .main-header .dropdown-admin,
.works2data-admin .main-header .dropdown-admin {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  position: relative;
}

.works2data-menu .main-header .admin-btn,
.works2data-menu .main-header .logout-btn,
.admin-bg-only .main-header .admin-btn,
.admin-bg-only .main-header .logout-btn,
.works2data-admin .main-header .admin-btn,
.works2data-admin .main-header .logout-btn {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 72px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .works2data-menu .main-header,
  .admin-bg-only .main-header,
  .works2data-admin .main-header {
    min-height: 92px !important;
    height: auto !important;
    padding: 12px 0 !important;
  }

  .works2data-menu .main-header .header-container,
  .admin-bg-only .main-header .header-container,
  .works2data-admin .main-header .header-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 14px !important;
    width: 100% !important;
    padding-inline: 16px !important;
  }

  .works2data-menu .main-header .logo,
  .admin-bg-only .main-header .logo,
  .works2data-admin .main-header .logo {
    flex: 1 1 auto !important;
    min-width: 120px !important;
  }

  .works2data-menu .main-header .logo img,
  .admin-bg-only .main-header .logo img,
  .works2data-admin .main-header .logo img {
    max-width: 168px !important;
    height: auto !important;
    max-height: 58px !important;
  }

  .works2data-menu .main-header .menu,
  .admin-bg-only .main-header .menu,
  .works2data-admin .main-header .menu {
    display: none !important;
  }

  .works2data-menu .main-header .user-label,
  .admin-bg-only .main-header .user-label,
  .works2data-admin .main-header .user-label {
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 560px) {
  .works2data-menu .main-header,
  .admin-bg-only .main-header,
  .works2data-admin .main-header {
    min-height: 112px !important;
  }

  .works2data-menu .main-header .header-right,
  .admin-bg-only .main-header .header-right,
  .works2data-admin .main-header .header-right {
    width: 100% !important;
    justify-content: flex-start !important;
    order: 3 !important;
  }

  .works2data-menu .main-header .user-label,
  .admin-bg-only .main-header .user-label,
  .works2data-admin .main-header .user-label {
    display: none !important;
  }

  .works2data-menu .main-header .admin-btn,
  .works2data-menu .main-header .logout-btn,
  .admin-bg-only .main-header .admin-btn,
  .admin-bg-only .main-header .logout-btn,
  .works2data-admin .main-header .admin-btn,
  .works2data-admin .main-header .logout-btn {
    min-width: 88px !important;
  }
}

/* Mobile header refinado: evita sobreposicao entre logo, Admin e Sair. */
@media (max-width: 560px) {
  .works2data-menu .main-header,
  .admin-bg-only .main-header,
  .works2data-admin .main-header {
    min-height: 132px !important;
    height: auto !important;
    padding: 10px 0 12px !important;
  }

  .works2data-menu .main-header .header-container,
  .admin-bg-only .main-header .header-container,
  .works2data-admin .main-header .header-container {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding-inline: 12px !important;
  }

  .works2data-menu .main-header .logo,
  .admin-bg-only .main-header .logo,
  .works2data-admin .main-header .logo {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .works2data-menu .main-header .logo img,
  .admin-bg-only .main-header .logo img,
  .works2data-admin .main-header .logo img {
    width: auto !important;
    max-width: 142px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }

  .works2data-menu .main-header .header-right,
  .admin-bg-only .main-header .header-right,
  .works2data-admin .main-header .header-right {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .works2data-menu .main-header .dropdown-admin,
  .admin-bg-only .main-header .dropdown-admin,
  .works2data-admin .main-header .dropdown-admin {
    flex: 0 0 auto !important;
  }

  .works2data-menu .main-header .admin-btn,
  .works2data-menu .main-header .logout-btn,
  .admin-bg-only .main-header .admin-btn,
  .admin-bg-only .main-header .logout-btn,
  .works2data-admin .main-header .admin-btn,
  .works2data-admin .main-header .logout-btn {
    min-width: 86px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 360px) {
  .works2data-menu .main-header .admin-btn,
  .works2data-menu .main-header .logout-btn,
  .admin-bg-only .main-header .admin-btn,
  .admin-bg-only .main-header .logout-btn,
  .works2data-admin .main-header .admin-btn,
  .works2data-admin .logout-btn {
    min-width: 78px !important;
    padding-inline: 12px !important;
  }
}

/* Mobile compacto: esconde logo e prioriza Admin/Sair sem aumentar o header. */
@media (max-width: 560px) {
  .works2data-menu .main-header,
  .admin-bg-only .main-header,
  .works2data-admin .main-header {
    height: 76px !important;
    min-height: 76px !important;
    padding: 0 !important;
  }

  .works2data-menu .main-header .header-container,
  .admin-bg-only .main-header .header-container,
  .works2data-admin .main-header .header-container {
    height: 76px !important;
    min-height: 76px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    padding-inline: 12px !important;
  }

  .works2data-menu .main-header .logo,
  .admin-bg-only .main-header .logo,
  .works2data-admin .main-header .logo,
  .works2data-menu .main-header .menu,
  .admin-bg-only .main-header .menu,
  .works2data-admin .main-header .menu,
  .works2data-menu .main-header .user-label,
  .admin-bg-only .main-header .user-label,
  .works2data-admin .main-header .user-label {
    display: none !important;
  }

  .works2data-menu .main-header .header-right,
  .admin-bg-only .main-header .header-right,
  .works2data-admin .main-header .header-right {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transform: none !important;
  }

  .works2data-menu .main-header .dropdown-admin,
  .admin-bg-only .main-header .dropdown-admin,
  .works2data-admin .main-header .dropdown-admin {
    display: inline-flex !important;
    flex: 0 0 auto !important;
  }

  .works2data-menu .main-header .admin-btn,
  .works2data-menu .main-header .logout-btn,
  .admin-bg-only .main-header .admin-btn,
  .admin-bg-only .main-header .logout-btn,
  .works2data-admin .main-header .admin-btn,
  .works2data-admin .main-header .logout-btn {
    min-width: 98px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 360px) {
  .works2data-menu .main-header .admin-btn,
  .works2data-menu .main-header .logout-btn,
  .admin-bg-only .main-header .admin-btn,
  .admin-bg-only .main-header .logout-btn,
  .works2data-admin .main-header .admin-btn,
  .works2data-admin .main-header .logout-btn {
    min-width: 88px !important;
    padding-inline: 12px !important;
  }
}
/* === Ajuste final modal permissoes Works2Data === */
#modalPermissoes.modal-overlay {
  background: rgba(0, 18, 19, 0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#modalPermissoes .modal-box {
  width: min(470px, calc(100vw - 28px));
  border-radius: 18px !important;
  border: 1px solid rgba(142, 219, 208, 0.28) !important;
  background: linear-gradient(145deg, rgba(0, 45, 48, 0.98), rgba(3, 76, 78, 0.94)) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #eefdfb !important;
  padding: 28px 30px !important;
}

#modalPermissoes .modal-title {
  color: #ffffff !important;
  font-size: clamp(1.45rem, 3.4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

#modalPermissoes #listaPermissoes {
  gap: 10px !important;
  margin: 16px 0 26px !important;
  padding: 4px 2px !important;
  border: none !important;
  background: transparent !important;
}

#modalPermissoes #listaPermissoes label {
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(142, 219, 208, 0.18) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #dff7f4 !important;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#modalPermissoes #listaPermissoes label:hover {
  transform: translateX(3px);
  background: rgba(142, 219, 208, 0.13) !important;
  border-color: rgba(142, 219, 208, 0.42) !important;
}

#modalPermissoes #listaPermissoes label span {
  color: #eafffb !important;
  font-size: 1rem !important;
  font-weight: 800;
}

#modalPermissoes #listaPermissoes input {
  width: 18px !important;
  height: 18px !important;
  accent-color: #8edbd0 !important;
  filter: drop-shadow(0 0 8px rgba(142, 219, 208, 0.28));
}

#modalPermissoes .modal-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px !important;
  margin-top: 8px !important;
}

#modalPermissoes .btn-modal-save,
#modalPermissoes .btn-modal-close {
  min-height: 46px;
  border-radius: 12px !important;
  font-size: 1rem;
  font-weight: 900;
}

#modalPermissoes .btn-modal-save {
  border: 1px solid rgba(142, 219, 208, 0.5) !important;
  background: linear-gradient(135deg, #8edbd0, #b9eeee) !important;
  color: #002122 !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24) !important;
}

#modalPermissoes .btn-modal-close {
  border: 1px solid rgba(142, 219, 208, 0.34) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #ffffff !important;
}

#modalPermissoes .btn-modal-save:hover,
#modalPermissoes .btn-modal-close:hover {
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  #modalPermissoes .modal-box {
    padding: 26px 22px !important;
  }

  #modalPermissoes .modal-actions {
    grid-template-columns: 1fr;
  }
}
/* === Paginas dentro das permissoes === */
#modalPermissoes .permissao-dashboard-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#modalPermissoes .permissao-dashboard-item > label {
  margin-bottom: 0 !important;
}

#modalPermissoes .permissao-paginas {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: -2px 0 4px 34px;
}

#modalPermissoes .permissao-pagina-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(142, 219, 208, 0.14);
  background: rgba(0, 33, 34, 0.38);
  color: #cfece9;
  font-size: 0.9rem;
  font-weight: 700;
}

#modalPermissoes .permissao-pagina-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8edbd0;
  box-shadow: 0 0 10px rgba(142, 219, 208, 0.55);
  flex: 0 0 auto;
}
/* === Ajuste permissoes por pagina Works2Data === */
#modalPermissoes .modal-box {
  width: min(450px, calc(100vw - 26px)) !important;
  max-height: min(620px, calc(100vh - 34px)) !important;
  padding: 24px 26px 22px !important;
}

#modalPermissoes .modal-title {
  font-size: 1.55rem !important;
  margin-bottom: 16px !important;
}

#listaPermissoes {
  max-height: min(410px, calc(100vh - 240px)) !important;
}

#modalPermissoes .categoria-header {
  padding: 7px 2px 9px !important;
}

#modalPermissoes .seta {
  display: inline-flex !important;
  width: 16px !important;
  justify-content: center !important;
  color: #8fe0d9 !important;
  font-size: 0.95rem !important;
}

#modalPermissoes .permissao-dashboard-item {
  margin: 8px 2px 12px 2px !important;
  padding: 10px 12px !important;
}

#modalPermissoes .permissao-dashboard-item > label,
#modalPermissoes .permissao-pagina-item {
  min-height: 36px !important;
}

#modalPermissoes .permissao-paginas {
  display: grid !important;
  gap: 8px !important;
  margin: 8px 0 0 30px !important;
}

#modalPermissoes .permissao-pagina-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(143, 224, 217, 0.16) !important;
  border-radius: 12px !important;
  background: rgba(0, 44, 39, 0.56) !important;
  color: #dff7f4 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#modalPermissoes .permissao-pagina-item:hover {
  background: rgba(0, 194, 168, 0.12) !important;
  border-color: rgba(0, 194, 168, 0.35) !important;
}

#modalPermissoes .permissao-pagina-item input {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #00c2a8 !important;
}

#modalPermissoes .modal-actions {
  gap: 16px !important;
  margin-top: 18px !important;
}

#modalPermissoes .modal-actions button {
  min-height: 44px !important;
}

/* === Ajuste arvore permissoes Works2Data === */
#modalPermissoes .modal-box {
  width: min(450px, calc(100vw - 26px)) !important;
  max-height: min(620px, calc(100vh - 34px)) !important;
  padding: 22px 24px 20px !important;
}

#modalPermissoes .modal-title {
  font-size: 1.38rem !important;
  margin-bottom: 14px !important;
}

#listaPermissoes {
  max-height: min(410px, calc(100vh - 230px)) !important;
}

#modalPermissoes .categoria-header {
  padding: 6px 2px 8px !important;
}

#modalPermissoes .categoria-titulo-texto {
  font-size: 0.96rem !important;
}

#modalPermissoes .seta {
  display: inline-flex !important;
  width: 15px !important;
  justify-content: center !important;
  color: #8fe0d9 !important;
  font-size: 0.82rem !important;
  transition: transform 0.18s ease !important;
}

#modalPermissoes .permissao-dashboard-item {
  margin: 7px 2px 10px 2px !important;
  padding: 9px 10px !important;
}

#modalPermissoes .permissao-dashboard-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#modalPermissoes .perm-dashboard-toggle,
#modalPermissoes .perm-dashboard-toggle-placeholder {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
}

#modalPermissoes .perm-dashboard-toggle {
  border: 0 !important;
  background: transparent !important;
  color: #8fe0d9 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: transform 0.18s ease, color 0.18s ease !important;
}

#modalPermissoes .perm-dashboard-toggle.open {
  transform: rotate(90deg) !important;
  color: #00c2a8 !important;
}

#modalPermissoes .permissao-dashboard-label {
  flex: 1 !important;
  min-width: 0 !important;
  min-height: 34px !important;
  font-size: 0.92rem !important;
}

#modalPermissoes .permissao-dashboard-label span {
  font-size: 0.92rem !important;
}

#modalPermissoes .permissao-paginas {
  display: grid !important;
  gap: 7px !important;
  margin: 8px 0 0 34px !important;
}

#modalPermissoes .permissao-paginas.fechado {
  display: none !important;
}

#modalPermissoes .permissao-pagina-item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 32px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(143, 224, 217, 0.16) !important;
  border-radius: 11px !important;
  background: rgba(0, 44, 39, 0.56) !important;
  color: #dff7f4 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  cursor: pointer !important;
}

#modalPermissoes .permissao-pagina-item span {
  font-size: 0.82rem !important;
}

#modalPermissoes .permissao-pagina-item input,
#modalPermissoes .permissao-dashboard-label input {
  flex: 0 0 auto !important;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  accent-color: #00c2a8 !important;
}

#modalPermissoes .modal-actions {
  gap: 14px !important;
  margin-top: 16px !important;
}

#modalPermissoes .modal-actions button {
  min-height: 42px !important;
  font-size: 0.9rem !important;
}

/* === Ajuste compacto arvore permissoes Works2Data === */
#modalPermissoes .modal-title {
  margin-bottom: 8px !important;
}

#listaPermissoes {
  gap: 5px !important;
}

#modalPermissoes .categoria {
  margin-bottom: 3px !important;
}

#modalPermissoes .categoria-header {
  min-height: 34px !important;
  padding: 3px 2px 4px !important;
}

#modalPermissoes .categoria-titulo-texto {
  gap: 7px !important;
  line-height: 1.1 !important;
}

#modalPermissoes .seta {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  align-items: center !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
}

#modalPermissoes .categoria-actions {
  gap: 8px !important;
}

#modalPermissoes .btn-cat {
  width: 24px !important;
  height: 24px !important;
  font-size: 1rem !important;
}

#modalPermissoes .categoria-conteudo {
  padding-top: 4px !important;
}

#modalPermissoes .permissao-dashboard-item {
  margin: 5px 2px 7px 2px !important;
  padding: 7px 9px !important;
}

#modalPermissoes .perm-dashboard-toggle,
#modalPermissoes .perm-dashboard-toggle-placeholder {
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
}

#modalPermissoes .perm-dashboard-toggle {
  font-size: 1.05rem !important;
}

#modalPermissoes .permissao-dashboard-header {
  gap: 6px !important;
}

#modalPermissoes .permissao-paginas {
  gap: 5px !important;
  margin-top: 6px !important;
}

#modalPermissoes .permissao-pagina-item {
  min-height: 30px !important;
  padding: 6px 9px !important;
}

/* === Ajuste tamanho seta dashboard permissoes Works2Data === */
#modalPermissoes .perm-dashboard-toggle,
#modalPermissoes .perm-dashboard-toggle-placeholder {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
}

#modalPermissoes .perm-dashboard-toggle {
  font-size: 1.35rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* === Ajuste fonte menor permissoes Works2Data === */
#modalPermissoes .categoria-titulo-texto {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
}

#modalPermissoes .permissao-dashboard-label,
#modalPermissoes .permissao-dashboard-label span {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

#modalPermissoes .permissao-pagina-item,
#modalPermissoes .permissao-pagina-item span {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}

#modalPermissoes .modal-title {
  font-size: 1.32rem !important;
}

/* === Ajuste checkboxes permissao marcados Works2Data === */
#modalPermissoes input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  border: 2px solid rgba(230, 255, 252, 0.85) !important;
  border-radius: 3px !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

#modalPermissoes input[type="checkbox"]:checked {
  background: #00c2a8 !important;
  border-color: #00c2a8 !important;
}

#modalPermissoes input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 3px !important;
  top: 0px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #06332f !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

#modalPermissoes input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(142, 219, 208, 0.75) !important;
  outline-offset: 2px !important;
}

/* ===================================================== */
/* =============== IDENTIDADE WORKS2DATA =============== */
/* ===================================================== */

.works2data-theme {
  --primary: #071a46;
  --secondary: #d4ad3f;
  --works-navy: #071a46;
  --works-deep: #020817;
  --works-panel: #0a1630;
  --works-panel-soft: #101e3b;
  --works-gold: #d4ad3f;
  --works-gold-light: #edce70;
  --works-blue-gray: #a8bfd6;
  --works-white: #f7f9fc;
  --works-muted: #9caac0;
  --works-line: rgba(168, 191, 214, 0.18);
  --works-display: "Poppins", "Segoe UI", Arial, sans-serif;
}

.works2data-theme ::selection {
  color: var(--works-deep);
  background: var(--works-gold-light);
}

.works2data-theme :is(button, a, input, select):focus-visible {
  outline: 2px solid var(--works-gold-light) !important;
  outline-offset: 3px;
}

/* Login escuro inspirado no material institucional */
.works2data-login,
.works2data-login .landing-hero {
  background: var(--works-deep) !important;
}

.works2data-login .landing-hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 73% 58%, rgba(212, 173, 63, 0.09), transparent 24%),
    radial-gradient(circle at 12% 100%, rgba(168, 191, 214, 0.11), transparent 34%),
    linear-gradient(123deg, #020817 0%, #06122b 54%, #0b1c3e 100%) !important;
}

.works2data-login .landing-hero::before {
  background:
    linear-gradient(90deg, rgba(168, 191, 214, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(168, 191, 214, 0.03) 1px, transparent 1px) !important;
  background-size: 80px 80px !important;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.7), transparent 82%);
}

.works2data-login .landing-hero::after {
  width: 46%;
  background: linear-gradient(180deg, rgba(168,191,214,.1), rgba(7,26,70,.04)) !important;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.works-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(212, 173, 63, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.works-orbit::before,
.works-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--works-gold-light);
  border-radius: 50%;
  background: #fff5cf;
  box-shadow: 0 0 14px rgba(237, 206, 112, .85);
}

.works-orbit-one {
  width: 310px;
  height: 310px;
  left: 8%;
  top: 38%;
}

.works-orbit-one::before { left: 8px; top: 49%; }
.works-orbit-one::after { right: 18px; top: 22%; }

.works-orbit-two {
  width: 420px;
  height: 420px;
  right: 8%;
  top: 18%;
  border-color: rgba(168, 191, 214, 0.12);
}

.works-orbit-two::before { left: 3%; bottom: 28%; }
.works-orbit-two::after { display: none; }

.works-diagonal {
  position: absolute;
  z-index: 0;
  left: 3%;
  bottom: 13%;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,173,63,.62), transparent);
  transform: rotate(-17deg);
  transform-origin: left center;
  pointer-events: none;
}

.works2data-login .landing-shell {
  width: min(1440px, calc(100% - 80px));
}

.works2data-login .landing-topbar {
  height: 104px;
  border-color: var(--works-line);
}

.works2data-login .landing-logo,
.works2data-theme .main-header .logo img {
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

.works2data-login .landing-logo {
  width: 260px;
  height: 66px;
  padding: 0;
  filter: none;
}

.works2data-login .landing-eyebrow,
.works2data-login .landing-kicker,
.works2data-login .login-card .small-title {
  color: var(--works-gold-light);
  font-family: var(--works-display);
  font-style: normal;
}

.works2data-login .landing-eyebrow { letter-spacing: 2.2px; }

.works2data-login .landing-content {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(48px, 7vw, 108px);
}

.works2data-login .landing-copy h1 {
  color: var(--works-white);
  font-family: var(--works-display);
  font-size: clamp(50px, 5.4vw, 76px);
  font-style: normal;
  line-height: .96;
  letter-spacing: -3px;
  text-transform: uppercase;
  text-shadow: 0 18px 48px rgba(0,0,0,.32);
}

.works2data-login .landing-copy h1 span { color: var(--works-gold); }

.works2data-login .landing-copy p {
  max-width: 610px;
  color: var(--works-blue-gray);
  font-family: var(--works-display);
  font-size: 17px;
}

.works2data-login .landing-access::before {
  border-color: rgba(212,173,63,.32);
  border-radius: 18px;
  transform: translate(15px, -15px);
}

.works2data-login .login-card {
  padding: 38px;
  border: 1px solid rgba(168,191,214,.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16,30,59,.94), rgba(6,18,43,.9));
  box-shadow: 0 32px 80px rgba(0,0,0,.45);
}

.works2data-login .login-card h2 {
  color: var(--works-white);
  font-family: var(--works-display);
  font-style: normal;
}

.works2data-login .login-card p { color: var(--works-muted); }

.works2data-login .login-card input {
  border-color: rgba(168,191,214,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: var(--works-white);
}

.works2data-login .login-card input::placeholder { color: #7f8da5; }

.works2data-login .login-card input:focus {
  border-color: var(--works-gold);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(212,173,63,.13);
}

.works2data-login .login-card button {
  border: 1px solid #eccd6e;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2bd4f, #c89e2d) !important;
  color: #07142e !important;
  font-family: var(--works-display);
  font-style: normal;
  letter-spacing: .4px;
  box-shadow: 0 14px 28px rgba(212,173,63,.18);
}

.works2data-login .login-card button:hover {
  background: linear-gradient(135deg, #efd16f, #d8ad3b) !important;
  box-shadow: 0 18px 36px rgba(212,173,63,.26);
}

.works2data-login .landing-footer { color: #74839b; }
.works2data-login .landing-footer strong { margin-left: 4px; color: var(--works-gold-light); }

/* Estrutura interna: menu, dashboard e administracao */
.works2data-menu,
.works2data-admin {
  background:
    radial-gradient(circle at 88% 14%, rgba(168,191,214,.14), transparent 26%),
    linear-gradient(122deg, #020817 0%, #06122b 56%, #0a1b3c 100%) !important;
}

.works2data-menu::before,
.works2data-admin::before {
  background:
    linear-gradient(90deg, rgba(168,191,214,.032) 1px, transparent 1px),
    linear-gradient(rgba(168,191,214,.027) 1px, transparent 1px) !important;
  background-size: 80px 80px !important;
}

.works2data-theme .main-header {
  background: rgba(3, 10, 27, .94) !important;
  border-bottom: 1px solid var(--works-line) !important;
}

.works2data-theme .main-header .logo img {
  width: 218px;
  height: 58px !important;
  max-width: 218px !important;
  padding: 0;
}

.works2data-theme .user-label-prefix { color: #8f9db3 !important; }
.works2data-theme .user-label-name { color: var(--works-gold-light) !important; }

.works2data-theme .main-header :is(.admin-btn, .logout-btn, .back-btn, .mini-nav-btn) {
  border: 1px solid rgba(168,191,214,.23) !important;
  border-radius: 9px !important;
  background: rgba(168,191,214,.07) !important;
  color: #e8edf5 !important;
  box-shadow: none !important;
}

.works2data-theme .main-header :is(.admin-btn, .logout-btn, .back-btn, .mini-nav-btn):hover {
  border-color: rgba(212,173,63,.55) !important;
  background: rgba(212,173,63,.13) !important;
  color: var(--works-gold-light) !important;
}

.works2data-menu .menu-landing-panel,
.works2data-admin .dashboard-header {
  border-color: rgba(168,191,214,.17);
  border-radius: 16px;
  background:
    linear-gradient(112deg, rgba(9,22,49,.96), rgba(12,29,61,.92) 62%, rgba(212,173,63,.13)) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}

.works2data-menu .menu-landing-panel::after,
.works2data-admin .dashboard-header::after {
  background: linear-gradient(180deg, rgba(212,173,63,.13), rgba(168,191,214,.025)) !important;
}

.works2data-menu .menu-kicker {
  border-color: rgba(212,173,63,.35);
  color: var(--works-gold-light);
  background: rgba(212,173,63,.08);
}

.works2data-menu .dashboard-title,
.works2data-admin .dashboard-title { color: var(--works-white); }

.works2data-menu .dashboard-subtitle,
.works2data-admin .dashboard-subtitle { color: var(--works-blue-gray); }

.works2data-menu .menu-brand-mark img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0,0,0,.3));
}

.works2data-menu .menu-section-heading span { color: var(--works-white); }

.works2data-menu .dashboard-card.dashboard-selection-card {
  border-color: rgba(168,191,214,.16) !important;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b1833, #071329) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.26) !important;
}

.works2data-menu .dashboard-card.dashboard-selection-card::before {
  background: rgba(212,173,63,.13);
}

.works2data-menu .dashboard-card.dashboard-selection-card::after {
  background: linear-gradient(135deg, transparent, rgba(168,191,214,.08));
}

.works2data-menu .dashboard-card.dashboard-selection-card:hover {
  border-color: rgba(212,173,63,.5) !important;
  background: linear-gradient(145deg, #101f40, #091630) !important;
  box-shadow: 0 25px 54px rgba(0,0,0,.36) !important;
}

.works2data-menu :is(.dashboard-card-category, .dashboard-card-index) { color: var(--works-gold-light); }
.works2data-menu .dashboard-card-category { background: rgba(212,173,63,.09); }
.works2data-menu .dashboard-card-title { color: var(--works-white); }
.works2data-menu .dashboard-card-action { color: var(--works-blue-gray); }
.works2data-menu .dashboard-card-action::after { color: var(--works-gold-light); }

.works2data-theme .side-hover-dots {
  background: rgba(3,10,27,.88) !important;
  border-color: var(--works-line) !important;
}

.works2data-theme .side-dot-btn {
  border-color: rgba(168,191,214,.2) !important;
  background: rgba(168,191,214,.07) !important;
}

.works2data-theme .side-dot-btn:is(:hover, .active) { background: rgba(212,173,63,.28) !important; }

.works2data-theme :is(.side-hover-panel, .side-pages-panel, .dropdown-content) {
  border-color: rgba(168,191,214,.2) !important;
  background: rgba(7,18,42,.97) !important;
}

.works2data-theme .footer-powered strong { color: var(--works-gold-light) !important; }

/* Formularios e modais administrativos */
.works2data-admin .app-bg .hero-bg {
  background:
    radial-gradient(circle at 80% 18%, rgba(168,191,214,.12), transparent 30%),
    linear-gradient(122deg, #020817, #071631) !important;
}

.works2data-admin .app-bg .hero-grid {
  background-image:
    linear-gradient(rgba(168,191,214,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,191,214,.03) 1px, transparent 1px) !important;
}

.works2data-admin :is(.form-box, .users-box, .dashboard-form-panel, .dashboard-pages-panel, .setor-categoria-panel) {
  border-color: rgba(168,191,214,.17) !important;
  background: linear-gradient(145deg, rgba(12,27,57,.96), rgba(7,18,42,.96)) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.28) !important;
}

.works2data-admin :is(input, select, textarea),
.works2data-theme .modal-box :is(input, select, textarea) {
  border-color: rgba(168,191,214,.2) !important;
  background: rgba(255,255,255,.055) !important;
  color: var(--works-white) !important;
}

.works2data-admin :is(input, select, textarea):focus,
.works2data-theme .modal-box :is(input, select, textarea):focus {
  border-color: var(--works-gold) !important;
  box-shadow: 0 0 0 3px rgba(212,173,63,.12) !important;
}

.works2data-admin :is(.btn-action, .btn-primary, .btn-save, .btn-perm, .btn-modal-save, .btn-add-existing) {
  border-color: #e1bd52 !important;
  background: linear-gradient(135deg, #e0ba4a, #c99d29) !important;
  color: #07142e !important;
  box-shadow: 0 12px 24px rgba(212,173,63,.14) !important;
}

.works2data-admin :is(.btn-action, .btn-primary, .btn-save, .btn-perm, .btn-modal-save, .btn-add-existing):hover {
  background: linear-gradient(135deg, #edcf70, #d8aa35) !important;
}

.works2data-admin .users-table thead th { background: rgba(212,173,63,.12) !important; color: var(--works-gold-light) !important; }
.works2data-admin .users-table tbody td { border-color: rgba(168,191,214,.12) !important; }

.works2data-theme .modal-overlay { background: rgba(1,5,15,.78); }
.works2data-theme .modal-box {
  border: 1px solid rgba(168,191,214,.2) !important;
  background: linear-gradient(145deg, #101e3b, #071329) !important;
  color: var(--works-white) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.5) !important;
}

.works2data-theme #modalPermissoes input[type="checkbox"]:checked {
  border-color: var(--works-gold) !important;
  background: var(--works-gold) !important;
}

/* Cabecalho compacto da visualizacao Power BI */
.works2data-dashboard .main-header { background: #030a1b !important; }
.works2data-dashboard .dashboard-page-select {
  border-color: rgba(168,191,214,.22);
  background-color: #0a1833;
}
.works2data-dashboard .dashboard-page-select:focus {
  border-color: var(--works-gold);
  box-shadow: 0 0 0 2px rgba(212,173,63,.16);
}

@media (max-width: 1100px) {
  .works2data-login .landing-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    align-items: start;
  }

  .works2data-login .landing-access {
    width: min(520px, 100%);
  }
}

@media (max-width: 980px) {
  .works2data-theme .main-header .logo img {
    width: 174px;
    height: 50px !important;
  }

  .works2data-menu .menu-brand-mark img {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 720px) {
  .works2data-login .landing-hero {
    background:
      radial-gradient(circle at 90% 16%, rgba(212,173,63,.11), transparent 28%),
      linear-gradient(150deg, #020817 0%, #071631 100%) !important;
  }

  .works2data-login .landing-shell { width: min(100% - 32px, 560px); }
  .works2data-login .landing-logo { width: 210px; height: 58px; }
  .works2data-login .landing-content { grid-template-columns: 1fr; }
  .works2data-login .landing-copy h1 { font-size: 42px; letter-spacing: -1.8px; }
  .works2data-login .login-card { padding: 26px; }
  .works-orbit-two { right: -250px; top: 24%; }
  .works-orbit-one { left: -210px; top: 45%; }
  .works2data-theme .main-header .logo img { background: transparent; }
}

/* ===================================================== */
/* ============ RELATORIO DE ACESSOS =================== */
/* ===================================================== */

.works2data-report {
  min-height: 100vh;
  padding-top: 88px;
  color: var(--works-white);
  background:
    radial-gradient(circle at 88% 8%, rgba(168,191,214,.12), transparent 30%),
    linear-gradient(122deg, #020817 0%, #06122b 58%, #091a39 100%) !important;
}

.works2data-report .app-bg { top: 88px; height: calc(100vh - 88px); }

.report-page-shell {
  width: min(1540px, calc(100% - 80px));
  margin: 0 auto;
  padding: 34px 0 80px 68px;
}

.report-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.report-eyebrow,
.report-section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--works-gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.report-page-heading h1 {
  margin: 0;
  color: var(--works-white);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -1.8px;
}

.report-page-heading p {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--works-blue-gray);
  font-size: 16px;
}

.report-updated {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(168,191,214,.16);
  border-radius: 999px;
  color: #8f9db3;
  background: rgba(168,191,214,.05);
  font-size: 11px;
}

.report-filter-panel,
.report-content-panel {
  border: 1px solid rgba(168,191,214,.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12,27,57,.9), rgba(7,18,42,.9));
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

.report-filter-panel { padding: 25px 28px 27px; }
.report-content-panel { margin-top: 20px; padding: 22px 24px 30px; }

.report-section-title-row,
.report-chart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.report-section-title-row h2,
.report-chart-heading h2 {
  margin: 0;
  color: var(--works-white);
  font-size: 22px;
  letter-spacing: -.4px;
}

.report-refresh-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(212,173,63,.35);
  border-radius: 9px;
  color: var(--works-gold-light);
  background: rgba(212,173,63,.08);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.report-refresh-btn:hover {
  border-color: rgba(212,173,63,.65);
  background: rgba(212,173,63,.16);
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 21px;
}

.report-filter-field,
.report-chart-mode { display: grid; gap: 7px; }

.report-filter-field > span,
.report-chart-mode > span {
  color: #a8b4c7;
  font-size: 11px;
  font-weight: 700;
}

.works2data-report :is(.report-filter-field, .report-chart-mode) select {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(168,191,214,.22) !important;
  border-radius: 10px;
  color: #eef3fa !important;
  background-color: rgba(255,255,255,.045) !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23edce70' height='16' viewBox='0 0 20 20' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  appearance: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.works2data-report :is(.report-filter-field, .report-chart-mode) select:focus {
  outline: none;
  border-color: var(--works-gold) !important;
  box-shadow: 0 0 0 3px rgba(212,173,63,.12) !important;
}

.works2data-report select option { color: #eef3fa; background: #0a1833; }

.report-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(168,191,214,.15);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}

.report-tab {
  min-height: 38px;
  padding: 0 17px;
  border: 0;
  border-radius: 8px;
  color: #9aa8bd;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.report-tab.active {
  color: #07142e;
  background: linear-gradient(135deg, #edce70, #d4ad3f);
  box-shadow: 0 8px 20px rgba(212,173,63,.18);
}

.report-loading,
.report-error {
  margin: 20px 0 0;
  padding: 15px 18px;
  border-radius: 10px;
  font-size: 13px;
}

.report-loading { color: #a8bfd6; background: rgba(168,191,214,.07); }
.report-error { color: #ffb9b9; border: 1px solid rgba(255,100,100,.22); background: rgba(160,30,30,.16); }
.report-view { margin-top: 24px; }

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
}

.report-summary-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border: 1px solid rgba(168,191,214,.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(19,39,76,.9), rgba(10,25,53,.94));
}

.report-summary-card > span {
  color: #93a1b6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.report-summary-card strong {
  margin-top: 8px;
  color: var(--works-white);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.report-summary-card small {
  margin-top: 6px;
  color: #718198;
  font-size: 9px;
}

.report-chart-section,
.report-table-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(168,191,214,.12);
}

.report-chart-mode {
  grid-template-columns: auto 230px;
  align-items: center;
}

.works2data-report .report-chart-mode select { height: 42px; }

.report-hourly-chart {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.report-hour-row {
  display: grid;
  grid-template-columns: 52px minmax(120px, 1fr) 76px;
  align-items: center;
  gap: 13px;
  min-height: 27px;
}

.report-hour-row time {
  color: #b8c4d5;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.report-hour-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(168,191,214,.11);
}

.report-hour-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #edce70 0%, #d4ad3f 52%, #a8bfd6 100%);
  box-shadow: 0 0 16px rgba(212,173,63,.22);
}

.report-hour-value { display: grid; justify-items: end; }
.report-hour-value strong { color: #edf2f9; font-size: 11px; }
.report-hour-value small { color: #718198; font-size: 9px; }

.report-table-scroll {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(168,191,214,.12);
  border-radius: 12px;
}

.report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: #dfe6f0;
  font-size: 11px;
}

.report-table th,
.report-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(168,191,214,.1);
  text-align: left;
  vertical-align: middle;
}

.report-table th {
  color: #8f9db3;
  background: rgba(168,191,214,.045);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.report-table tbody tr { transition: background .18s ease; }
.report-table tbody tr:hover { background: rgba(168,191,214,.045); }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-table td strong { color: #f5f7fb; }

.report-event-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #a8bfd6;
  background: rgba(168,191,214,.08);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
}

.report-event-dashboard_open { color: var(--works-gold-light); background: rgba(212,173,63,.1); }
.report-event-login { color: #b4e4cb; background: rgba(77,190,130,.1); }
.report-event-logout { color: #d5b9c0; background: rgba(185,104,124,.1); }
.report-empty-cell { padding: 32px !important; color: #75859d; text-align: center !important; }

.report-ranking-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.report-ranking-card {
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(212,173,63,.2);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(212,173,63,.11), rgba(12,28,59,.8));
}

.report-ranking-position {
  color: var(--works-gold-light);
  font-size: 30px;
  font-weight: 800;
}

.report-ranking-card small { color: #8493aa; font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.report-ranking-card h3 { margin: 4px 0 0; color: #f5f7fb; font-size: 16px; }
.report-ranking-card > strong { grid-column: 2; color: var(--works-gold-light); font-size: 11px; }

@media (max-width: 1280px) {
  .report-summary-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
}

@media (max-width: 980px) {
  .report-page-shell { width: min(100% - 32px, 760px); padding: 28px 0 70px; }
  .report-page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .report-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-ranking-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .report-filter-panel,
  .report-content-panel { padding: 20px 16px; border-radius: 13px; }
  .report-filter-grid { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: 1fr; }
  .report-tabs { width: 100%; overflow-x: auto; }
  .report-tab { flex: 0 0 auto; }
  .report-chart-heading { align-items: flex-start; flex-direction: column; }
  .report-chart-mode { width: 100%; grid-template-columns: 1fr; }
  .report-hour-row { grid-template-columns: 42px minmax(80px, 1fr) 60px; gap: 8px; }
  .report-page-heading h1 { font-size: 34px; }
}
