/* Menu radial admin — menu lateral */

.nav-radial-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nav-radial-overlay.is-active {
  pointer-events: auto;
}

.nav-radial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-radial-overlay.is-active .nav-radial-backdrop {
  opacity: 1;
}

.nav-radial-hub {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.16s ease;
}

.nav-radial-overlay.is-open .nav-radial-hub {
  opacity: 1;
  transform: scale(1);
}

.nav-radial-item {
  position: absolute;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  margin-top: -23px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease;
  pointer-events: auto;
}

.nav-radial-overlay.is-open .nav-radial-item {
  transform: scale(1);
  opacity: 1;
}

.nav-radial-item i {
  font-size: 16px;
}

.nav-radial-item-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.nav-radial-overlay:not(.is-open) .nav-radial-item {
  transform: scale(0.35);
  opacity: 0;
  pointer-events: none;
}

.nav-radial-item:hover {
  background: #0ea5e9;
  border-color: #bae6fd;
}

.nav-radial-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  z-index: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-radial-copy-toast.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-radial-copy-toast.is-error {
  background: rgba(127, 29, 29, 0.95);
}

.nav-radial-overlay:not(.is-active) {
  visibility: hidden;
}

.nav-radial-overlay.is-active {
  visibility: visible;
}

/* Modo reordenar */
body.nav-admin-reorder-mode .nav-radial-overlay {
  display: none !important;
}

body.nav-admin-reorder-mode .left-side .nav-admin-target,
body.nav-admin-reorder-mode .sidebar-content .nav-admin-target {
  outline: 2px dashed #38bdf8;
  outline-offset: 2px;
  cursor: grab;
}

body.nav-admin-reorder-mode .left-side .side-menu.nav-drop-target,
body.nav-admin-reorder-mode .sidebar-content .side-menu.nav-drop-target {
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  min-height: 36px;
}

.nav-admin-reorder-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-admin-reorder-hint button {
  background: #334155;
  border: none;
  color: #f8fafc;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}

/* Visão cliente */
.nav-visao-cliente-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

.nav-visao-cliente-bar button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-visao-cliente-bar #navVisaoClienteAdd {
  background: rgba(16, 185, 129, 0.35);
  border-color: rgba(167, 243, 208, 0.55);
}

.nav-visao-cliente-bar #navVisaoClienteRemove {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(254, 202, 202, 0.45);
}

/* Modais admin nav */
.nav-admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nav-admin-modal {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  width: min(720px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.nav-admin-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #334155;
  background: #1e293b;
}

.nav-admin-modal header h3 {
  margin: 0;
  font-size: 1rem;
  color: #f1f5f9;
}

.nav-admin-modal .nav-admin-modal-body {
  padding: 16px 18px;
  overflow: auto;
  flex: 1;
  background: #1e293b;
  color: #e2e8f0;
}

.nav-admin-modal footer {
  padding: 12px 18px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #1e293b;
}

.nav-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.nav-admin-table th,
.nav-admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.nav-admin-table th {
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

.nav-admin-table tr.is-clickable {
  cursor: pointer;
}

.nav-admin-table tr.is-clickable:hover td {
  background: rgba(80, 109, 255, 0.1);
  color: #e2e8f0;
}

.nav-admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.nav-admin-field label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.nav-admin-field input,
.nav-admin-field select,
.nav-admin-field textarea {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  color: #f1f5f9;
  padding: 8px 10px;
  font-size: 13px;
}

.nav-admin-meta-chave {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.nav-admin-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}

.nav-admin-btn-secondary {
  background: #334155;
  color: #e2e8f0;
}

.chamado-modal-body .chamado-field-pagina-botao select,
.chamado-field-pagina-botao select#chamadoPaginaBotao {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #b9c7d8;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 13px;
}

.chamado-field-pagina-botao select option {
  background: #fff;
  color: #172033;
}

.chamado-field-pagina-botao #chamadoPaginaBotaoCodigo {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #b9c7d8;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 13px;
}

.nav-admin-field select optgroup {
  background: #0f172a;
  color: #94a3b8;
  font-weight: 700;
}

.chamado-field-pagina-botao select optgroup {
  font-weight: 800;
  color: #334155;
  background: #f1f5f9;
}

.nav-admin-modal-perm {
  width: min(420px, 96vw);
  min-height: 62vh;
}

.nav-admin-perm-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 46vh;
}

.nav-admin-perm-busca {
  width: 100%;
  box-sizing: border-box;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  color: #f1f5f9;
  padding: 8px 10px;
  font-size: 13px;
}

.nav-admin-perm-tree {
  flex: 1;
  overflow: auto;
  max-height: 56vh;
  padding: 4px 0 8px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}

.nav-admin-perm-cat {
  padding: 6px 0 4px;
}

.nav-admin-perm-cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  padding: 8px 14px 4px;
}

.nav-admin-perm-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(218, 224, 255, .9);
  font-size: 14px;
  padding: 8px 14px 8px 24px;
  border-radius: 0;
  cursor: pointer;
}

.nav-admin-perm-item:hover {
  background: rgba(80, 109, 255, .08);
}

.nav-admin-perm-item.is-selected {
  background: #2563eb;
  color: #fff;
}

.nav-admin-perm-item.is-hidden,
.nav-admin-perm-cat.is-hidden {
  display: none;
}

.nav-admin-perm-empty {
  padding: 28px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.nav-admin-perm-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #94a3b8;
}

.nav-admin-perm-users {
  max-height: 56vh;
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}

.nav-admin-visao-user-lista {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}

.nav-admin-hist-hint {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  flex: 1;
}

.nav-admin-hist-aviso {
  margin: 0 0 10px;
  font-size: 12px;
  color: #fbbf24;
}

.nav-admin-hist-link {
  color: #93c5fd;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-admin-hist-link:hover {
  text-decoration: underline;
}

.nav-admin-visao-user {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1e293b;
  color: #e2e8f0;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
}

.nav-admin-visao-user:last-child {
  border-bottom: none;
}

.nav-admin-visao-user:hover {
  background: rgba(80, 109, 255, 0.08);
}

.nav-admin-visao-user.is-selected {
  background: #2563eb;
  color: #fff;
}

.nav-admin-perm-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
}

.nav-admin-perm-user:last-child {
  border-bottom: none;
}

.nav-admin-perm-user.is-hidden {
  display: none;
}

.nav-admin-perm-user-nome {
  font-size: 13px;
  color: #e2e8f0;
}

.nav-admin-perm-lock {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.nav-admin-perm-toggle {
  width: 18px;
  height: 18px;
  accent-color: #0ea5e9;
  cursor: pointer;
  flex-shrink: 0;
}
