/* ==========================================================================
   DESIGN SYSTEM 2026 - CECB (CLÍNICAS & CONSULTÓRIOS B)
   Versão: 2026.1 (Unificado - Admin & Portal Web de Agendamento)
   Diretório Oficial: /_cssGa/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (VARIÁVEIS CSS GLOBAIS)
   -------------------------------------------------------------------------- */
:root {
  /* Identidade da Marca - Azul Céu / Saúde Tecnológica */
  --ds-primary: #0284c7;
  --ds-primary-dark: #0369a1;
  --ds-primary-light: #e0f2fe;

  /* Destaque & Confirmações - Verde Esmeralda */
  --ds-secondary: #10b981;
  --ds-secondary-dark: #059669;
  --ds-secondary-light: #d1fae5;

  /* Alertas e Estados Semânticos */
  --ds-warning: #f59e0b;
  --ds-warning-dark: #d97706;
  --ds-warning-light: #fef3c7;
  --ds-danger: #ef4444;
  --ds-danger-dark: #dc2626;
  --ds-danger-light: #fee2e2;
  --ds-info: #0284c7;
  --ds-info-light: #e0f2fe;
  --ds-success: #10b981;
  --ds-success-light: #dcfce7;

  /* Escala Neutra de Cinzas (Slate Moderno) */
  --ds-gray-50: #f8fafc;
  --ds-gray-100: #f1f5f9;
  --ds-gray-200: #e2e8f0;
  --ds-gray-300: #cbd5e1;
  --ds-gray-400: #94a3b8;
  --ds-gray-500: #64748b;
  --ds-gray-600: #475569;
  --ds-gray-700: #334155;
  --ds-gray-800: #1e293b;
  --ds-gray-900: #0f172a;

  /* Superfícies & Bordas */
  --ds-bg-page: #f8fafc;
  --ds-card-bg: #ffffff;
  --ds-border: #e2e8f0;

  /* Raios de Arredondamento (Border Radius) */
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-full: 9999px;

  /* Sombras & Profundidade (Elevation) */
  --ds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --ds-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --ds-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

  /* Tipografia Oficial */
  --ds-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Aliases para compatibilidade direta com agendar.php */
  --primary: var(--ds-primary);
  --primary-dark: var(--ds-primary-dark);
  --primary-light: var(--ds-primary-light);
  --secondary: var(--ds-secondary);
  --secondary-dark: var(--ds-secondary-dark);
  --bg-page: var(--ds-bg-page);
  --card-bg: var(--ds-card-bg);
  --text-main: var(--ds-gray-900);
  --text-muted: var(--ds-gray-500);
  --border: var(--ds-border);
  --radius-lg: var(--ds-radius-lg);
  --radius-md: var(--ds-radius-md);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   2. COMPONENTES GENÉRICOS BASE 2026 (.ds26-*)
   Para uso universal em qualquer novo módulo ou tela do CECB
   -------------------------------------------------------------------------- */
.ds26-container {
  font-family: var(--ds-font-family) !important;
  color: var(--ds-gray-900);
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding: 10px;
}

.ds26-container * {
  box-sizing: border-box;
}

/* Cards & Superfícies */
.ds26-card {
  background: var(--ds-card-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.ds26-card-header {
  background: var(--ds-gray-50);
  border-bottom: 1px solid var(--ds-border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ds26-card-body {
  padding: 20px;
}

.ds26-card-footer {
  background: var(--ds-gray-50);
  border-top: 1px solid var(--ds-border);
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Botões 2026 */
.ds26-btn {
  padding: 10px 18px;
  border-radius: var(--ds-radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: var(--ds-font-family);
  text-decoration: none !important;
}

.ds26-btn:active {
  transform: scale(0.99);
}

.ds26-btn-primary {
  background: var(--ds-primary);
  color: #ffffff !important;
}

.ds26-btn-primary:hover {
  background: var(--ds-primary-dark);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.ds26-btn-secondary {
  background: var(--ds-gray-100);
  color: var(--ds-gray-700) !important;
}

.ds26-btn-secondary:hover {
  background: var(--ds-gray-200);
}

.ds26-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
}

.ds26-btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.ds26-btn-danger {
  background: var(--ds-danger);
  color: #ffffff !important;
}

.ds26-btn-danger:hover {
  background: var(--ds-danger-dark);
}

.ds26-btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--ds-gray-300);
  color: var(--ds-gray-700);
}

.ds26-btn-outline:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
  background: var(--ds-primary-light);
}

.ds26-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--ds-radius-sm);
}

.ds26-btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--ds-radius-md);
}

/* Campos de Formulário */
.ds26-form-group {
  margin-bottom: 16px;
}

.ds26-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-gray-700);
  margin-bottom: 6px;
}

.ds26-input,
.ds26-select,
.ds26-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-gray-900);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--ds-font-family);
  box-sizing: border-box;
}

.ds26-input:focus,
.ds26-select:focus,
.ds26-textarea:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Badges e Etiquetas */
.ds26-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--ds-radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.ds26-badge-primary {
  background: var(--ds-primary-light);
  color: var(--ds-primary-dark);
}

.ds26-badge-success {
  background: var(--ds-success-light);
  color: #15803d;
}

.ds26-badge-warning {
  background: var(--ds-warning-light);
  color: #b45309;
}

.ds26-badge-danger {
  background: var(--ds-danger-light);
  color: #b91c1c;
}

/* Alertas & Notificações */
.ds26-alert {
  padding: 14px 16px;
  border-radius: var(--ds-radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ds26-alert-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.ds26-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ds26-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.ds26-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Modais Universais */
.ds26-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ds26FadeIn 0.2s ease;
}

.ds26-modal-card {
  background: #ffffff;
  border-radius: var(--ds-radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: ds26SlideUp 0.25s ease;
}

@keyframes ds26FadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ds26SlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   3. CAMADA ADMIN: AGENDAR 2026 (.agw26-*)
   Totalmente compatível com as regras de admin/_modulos/agendar/agendarNw2026.php
   -------------------------------------------------------------------------- */
.agw26-container {
  --ag-primary: var(--ds-primary);
  --ag-primary-dark: var(--ds-primary-dark);
  --ag-primary-light: var(--ds-primary-light);
  --ag-secondary: var(--ds-secondary);
  --ag-secondary-dark: var(--ds-secondary-dark);
  --ag-secondary-light: var(--ds-secondary-light);
  --ag-warning: var(--ds-warning);
  --ag-warning-light: var(--ds-warning-light);
  --ag-danger: var(--ds-danger);
  --ag-danger-light: var(--ds-danger-light);
  --ag-gray-50: var(--ds-gray-50);
  --ag-gray-100: var(--ds-gray-100);
  --ag-gray-200: var(--ds-gray-200);
  --ag-gray-300: var(--ds-gray-300);
  --ag-gray-600: var(--ds-gray-600);
  --ag-gray-700: var(--ds-gray-700);
  --ag-gray-900: var(--ds-gray-900);
  --ag-radius-lg: var(--ds-radius-lg);
  --ag-radius-md: var(--ds-radius-md);
  --ag-radius-sm: var(--ds-radius-sm);
  --ag-shadow-sm: var(--ds-shadow-sm);
  --ag-shadow-md: var(--ds-shadow-md);
  --ag-shadow-lg: var(--ds-shadow-lg);

  font-family: var(--ds-font-family) !important;
  color: var(--ag-gray-900);
  max-width: 1720px;
  width: 98%;
  margin: 0 auto 30px auto;
  padding: 12px 18px;
}

.agw26-container * {
  box-sizing: border-box;
}

/* Header & Top Bar */
.agw26-header {
  background: #ffffff;
  border-radius: var(--ag-radius-lg);
  border: 1px solid var(--ag-gray-200);
  padding: 18px 24px;
  box-shadow: var(--ag-shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.agw26-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agw26-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.agw26-title-text h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ag-gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.agw26-title-text p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--ag-gray-600);
  font-weight: 500;
}

/* Barra de Ações Rápidas (Pills) */
.agw26-action-pills {
  display: flex;
  background: var(--ag-gray-100);
  padding: 4px;
  border-radius: var(--ag-radius-md);
  gap: 4px;
}

.agw26-pill-btn {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ag-gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.agw26-pill-btn:hover {
  color: var(--ag-gray-900);
  background: rgba(255, 255, 255, 0.6);
}

.agw26-pill-btn.active {
  background: #ffffff;
  color: var(--ag-primary);
  box-shadow: var(--ag-shadow-sm);
}

.agw26-pill-btn.pill-cancel.active {
  color: var(--ag-danger);
}

/* Card do Paciente Ativo no Contexto */
.agw26-active-pac-bar {
  background: linear-gradient(to right, #f0fdf4, #ffffff);
  border: 1px solid #bbf7d0;
  border-radius: var(--ag-radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--ag-shadow-sm);
  animation: agwFadeDown 0.3s ease;
}

.agw26-pac-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agw26-pac-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agw26-pac-details strong {
  font-size: 14px;
  color: #166534;
  display: block;
}

.agw26-pac-details span {
  font-size: 12px;
  color: #475569;
}

.agw26-pac-badge {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  display: inline-block;
}

/* Stepper Visual Conectado */
.agw26-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-lg);
  padding: 16px 30px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: var(--ag-shadow-sm);
}

.agw26-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  user-select: none;
}

.agw26-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ag-gray-100);
  border: 2px solid var(--ag-gray-300);
  color: var(--ag-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.agw26-step-node.active .agw26-step-circle {
  border-color: var(--ag-primary);
  background: var(--ag-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.agw26-step-node.completed .agw26-step-circle {
  border-color: var(--ag-secondary);
  background: var(--ag-secondary);
  color: #ffffff;
}

.agw26-step-label {
  display: flex;
  flex-direction: column;
}

.agw26-step-label small {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ag-gray-600);
  letter-spacing: 0.5px;
}

.agw26-step-label span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ag-gray-700);
}

.agw26-step-node.active .agw26-step-label span {
  color: var(--ag-primary);
}

.agw26-step-line {
  flex: 1;
  height: 2px;
  background: var(--ag-gray-200);
  margin: 0 16px;
  position: relative;
  z-index: 1;
}

.agw26-step-line.completed {
  background: var(--ag-secondary);
}

/* Card Principal de Conteúdo Dinâmico */
.agw26-main-card {
  background: #ffffff;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-lg);
  box-shadow: var(--ag-shadow-md);
  padding: 24px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

/* Transições Fluidas de Telas */
.agw26-view-pane {
  display: none;
  animation: agwSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.agw26-view-pane.active {
  display: block;
}

@keyframes agwSlideIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes agwFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Formulário de Busca e Botão Novo Cadastro */
.agw26-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.agw26-input-wrapper {
  position: relative;
  flex: 1;
}

.agw26-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ag-gray-600);
  font-size: 15px;
}

.agw26-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--ag-radius-md);
  border: 1px solid var(--ag-gray-200);
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-gray-900);
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.agw26-input:focus {
  border-color: var(--ag-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.agw26-btn-novo {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--ag-radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.agw26-btn-novo:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

/* Container de Pacientes Encontrados */
.agw26-patients-grid {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.agw26-results-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  width: 100%;
}

.agw26-results-header-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agw26-results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
}

.agw26-results-table thead tr {
  background-color: #f8fafc !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

.agw26-results-table thead th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 13px 14px !important;
  border: none !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  white-space: nowrap;
}

.agw26-results-table tbody tr {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.agw26-results-table tbody tr:last-child {
  border-bottom: none;
}

.agw26-results-table tbody tr:hover {
  background-color: #f0fdf4 !important;
}

.agw26-results-table tbody tr.selected {
  background-color: #e0f2fe !important;
  box-shadow: inset 4px 0 0 #0284c7 !important;
}

.agw26-results-table tbody tr.selected:hover {
  background-color: #bae6fd !important;
}

.agw26-results-table tbody tr.pac-bloqueado:hover {
  background-color: #fef2f2 !important;
  cursor: not-allowed;
}

.agw26-results-table tbody td {
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.agw26-results-table tbody td:first-child {
  white-space: normal;
}

.agw26-pac-avatar-soft {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.15);
}

.agw26-badge-oper-soft {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.agw26-btn-agendar-soft {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid #059669;
  color: #ffffff;
  font-weight: 700;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.agw26-btn-agendar-soft:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
  color: #ffffff;
}

.agw26-btn-alt-soft {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0369a1;
  font-weight: 700;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.agw26-btn-alt-soft:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 3px 6px rgba(2, 132, 199, 0.18);
  transform: translateY(-1px);
}

.agw26-patient-card {
  background: #ffffff;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agw26-patient-card:hover {
  border-color: var(--ag-primary);
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: var(--ag-shadow-sm);
}

.agw26-patient-card.blocked {
  opacity: 0.6;
  background: #fef2f2;
  border-color: #fecaca;
  cursor: not-allowed;
}

/* Grid de Seleção (Especialidades, Unidades e Médicos) */
.agw26-selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
  margin-top: 14px;
}

.agw26-selection-card {
  background: #ffffff;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.agw26-selection-card:hover {
  border-color: var(--ag-primary);
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.agw26-selection-card.selected {
  border-color: var(--ag-primary);
  background: #e0f2fe;
  box-shadow: 0 0 0 2px var(--ag-primary);
}

/* Fase 2: Cards de Profissionais, Seleção de Unidade por Médico e Alertas de Remarcação */
.agw26-doc-card-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.agw26-doc-avatar {
  background: #e0f2fe;
  color: #0284c7;
  width: 46px;
  height: 46px;
  font-size: 18px;
  flex-shrink: 0;
}

.agw26-doc-info {
  flex: 1;
  min-width: 0;
}

.agw26-doc-name {
  font-size: 15px;
  color: #0f172a;
  font-weight: 800;
  display: block;
}

.agw26-doc-crm {
  font-size: 12px;
  color: #64748b;
  display: block;
}

.agw26-doc-unit-single {
  font-size: 12px;
  color: #0369a1;
  font-weight: 700;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.agw26-doc-unit-filtered {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.agw26-doc-unit-multi {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.agw26-doc-unit-multi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agw26-doc-unit-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agw26-doc-unit-btn {
  border: 1.5px solid #7dd3fc;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.agw26-doc-unit-btn:hover,
.agw26-doc-unit-btn:focus {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  outline: none;
}

.agw26-unit-pulse .agw26-doc-unit-btn {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.28);
}

.agw26-doc-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.agw26-doc-badge-same {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  margin-left: 0;
  font-weight: 700;
}

.agw26-doc-badge-enc {
  background: #dbeafe;
  color: #1e40af;
  margin-left: 0;
}

.agw26-doc-last-cons {
  font-size: 11.5px;
  color: #059669;
  font-weight: 700;
  margin-top: 4px;
}

.agw26-doc-obs-note {
  margin-top: 5px;
  font-size: 11px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 5px;
  padding: 2px 7px;
  display: inline-block;
}

.agw26-doc-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.agw26-doc-action-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--ag-primary);
}

.agw26-doc-action-icon {
  color: #94a3b8;
  font-size: 14px;
}

/* Card Completo de Agendamento Existente (already_scheduled) e Modo Remarcação */
.agw26-remarc-card {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.agw26-remarc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.agw26-remarc-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agw26-remarc-icon-warn {
  color: #dc2626;
}

.agw26-remarc-title {
  color: #991b1b;
  font-size: 13.5px;
  font-weight: 800;
  display: block;
}

.agw26-remarc-subtitle {
  color: #475569;
  font-size: 12px;
}

.agw26-remarc-btn-go {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
}

.agw26-remarc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 14px;
  font-size: 12.5px;
  margin-top: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fca5a5;
}

.agw26-remarc-item-label {
  color: #64748b;
  font-weight: 600;
}

.agw26-remarc-item-val {
  color: #0f172a;
  font-weight: 700;
}

.agw26-remarc-item-val .fa-calendar {
  color: #ef4444;
}

.agw26-remarc-item-val .fa-stethoscope,
.agw26-remarc-item-val .fa-building-o,
.agw26-remarc-item-val .fa-user-md {
  color: #0284c7;
}

.agw26-remarc-active-card {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}

.agw26-remarc-active-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

.agw26-remarc-active-icon {
  color: #2563eb;
  font-size: 16px;
}

.agw26-remarc-active-title {
  color: #1e3a8a;
  font-weight: 800;
  display: block;
}

.agw26-remarc-active-desc {
  color: #1e40af;
}

.agw26-remarc-btn-cancel {
  font-size: 11.5px;
  padding: 5px 10px;
  border-color: #93c5fd;
  color: #1e40af;
  font-weight: 700;
}

/* Estados de carregamento, restrição e vazio na Fase 2 */
.agw26-state-box {
  text-align: center;
  padding: 28px 20px;
  border-radius: 12px;
}

.agw26-state-loading {
  color: var(--ag-primary);
}

.agw26-state-loading p {
  margin: 10px 0 0 0;
  font-weight: 700;
  font-size: 13.5px;
}

.agw26-state-neutral {
  color: #64748b;
}

.agw26-state-neutral i {
  margin-bottom: 8px;
  color: #94a3b8;
}

.agw26-state-neutral p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.agw26-state-warn {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
}

.agw26-state-warn i {
  color: #d97706;
  margin-bottom: 8px;
}

.agw26-state-warn h4 {
  font-size: 16px;
  font-weight: 800;
  color: #b45309;
  margin: 0 0 6px 0;
}

.agw26-state-warn p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
}

.agw26-state-empty-danger {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13.5px;
  margin: 10px 0 16px 0;
  line-height: 1.5;
}

.agw26-state-empty-danger i {
  margin-bottom: 8px;
  display: block;
  color: #ef4444;
}

.agw26-state-error {
  color: #ef4444;
}

.agw26-state-error i {
  margin-bottom: 8px;
}

.agw26-state-error p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.agw26-bloqueio-esp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.agw26-bloqueio-esp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

/* Barra de Navegação Inferior das Fases */
.agw26-step-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ag-gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

/* Banner de Alerta de Histórico / Retorno */
.agw26-alert-banner {
  background: #ffcccc;
  border: 1px solid #fca5a5;
  border-radius: var(--ag-radius-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

/* Carrossel / Seletor de Datas */
.agw26-dates-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 16px 2px;
  margin-bottom: 20px;
}

.agw26-date-chip {
  flex: 0 0 160px;
  background: #ffffff;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  overflow: hidden;
}

.agw26-date-chip:hover {
  border-color: var(--ag-primary);
  transform: translateY(-2px);
  box-shadow: var(--ag-shadow-sm);
}

.agw26-date-chip.selected {
  border: 2px solid var(--ag-primary);
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2), 0 0 0 2px rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
}

.agw26-date-chip.selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ag-primary);
}

.agw26-date-chip.selected .day-name {
  color: #0369a1;
  font-weight: 800;
}

.agw26-date-chip.selected .day-num {
  color: #0c4a6e;
  font-weight: 900;
}

.agw26-date-chip.selected .day-meta {
  color: #334155;
  font-weight: 700;
}

.agw26-date-chip.blocked-day {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.65;
  cursor: not-allowed;
}

.agw26-date-chip.retorno {
  border: 2px solid #f59e0b;
  background: #fffdf5;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  position: relative;
}

.agw26-date-chip.retorno .day-name {
  color: #b45309;
}

.agw26-date-chip.retorno .day-num {
  color: #d97706;
}

.agw26-date-chip.retorno:hover {
  border-color: #d97706;
  background: #fef3c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.agw26-date-chip.retorno.selected {
  border: 2px solid #d97706;
  background: #fffbeb;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2), 0 0 0 2px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.agw26-date-chip.retorno.selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #d97706;
}

.agw26-date-chip.retorno.selected .day-name {
  color: #92400e;
  font-weight: 800;
}

.agw26-date-chip.retorno.selected .day-num {
  color: #b45309;
  font-weight: 900;
}

.agw26-date-chip.retorno.selected .day-meta {
  color: #475569;
  font-weight: 700;
}

.agw26-date-chip .day-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ag-gray-600);
  margin-bottom: 2px;
}

.agw26-date-chip .day-num {
  font-size: 18px;
  font-weight: 800;
  margin: 2px 0 4px 0;
  color: var(--ag-gray-900);
}

.agw26-date-chip .day-meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--ag-gray-600);
  margin-bottom: 4px;
  line-height: 1.3;
}

.agw26-date-chip .vagas-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: #dcfce7;
  color: #15803d;
}

.agw26-date-chip .vagas-badge.lotada {
  background: #fee2e2;
  color: #b91c1c;
}

.agw26-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
}

.agw26-date-badge.retorno {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.agw26-date-badge.agendado {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.agw26-date-badge.impresso {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.agw26-alert-specialty {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: var(--ag-radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Grade de Horários (Manhã e Tarde) */
.agw26-slots-section {
  margin-bottom: 24px;
}

.agw26-slots-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ag-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agw26-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.agw26-slot-btn {
  border: 1px solid var(--ag-gray-200);
  background: #ffffff;
  padding: 12px 8px;
  border-radius: var(--ag-radius-sm);
  font-size: 14px;
  font-weight: 800;
  color: var(--ag-primary-dark);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.agw26-slot-btn:hover:not(:disabled) {
  border-color: var(--ag-primary);
  background: var(--ag-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--ag-shadow-sm);
}

.agw26-slot-btn .slot-quick-encaixe {
  display: none;
  position: absolute;
  top: 3px;
  right: 3px;
  background: #10b981;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
  cursor: pointer;
  z-index: 2;
}

.agw26-slot-btn:hover .slot-quick-encaixe {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.agw26-slot-btn .slot-quick-encaixe:hover {
  background: #059669;
  transform: scale(1.08);
}

.agw26-slot-btn.ocupado {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: default;
  font-weight: 600;
}

.agw26-slot-btn.ocupado.slot-permite-encaixe {
  background: #f0fdf4;
  border: 1.5px dashed #86efac;
  color: #166534;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agw26-slot-btn.ocupado.slot-permite-encaixe:hover {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.agw26-slot-btn .slot-tag-encaixe-acao {
  font-size: 10px;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.agw26-date-chip .vagas-badge.encaixe {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.agw26-slot-btn.locked {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
  cursor: not-allowed;
}

.agw26-slot-btn.selected {
  background: #e0f2fe;
  border: 2px solid var(--ag-primary);
  color: #0369a1;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.agw26-slot-btn .slot-ce-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  display: inline-block;
  transition: all 0.15s ease;
}

.agw26-slot-btn .slot-ce-badge.consulta {
  background: #e0f2fe;
  color: #0369a1;
}

.agw26-slot-btn .slot-ce-badge.encaixe {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  border: 1px solid #86efac;
}

/* Destaque Marcado: slots ocupados com agendamento realizado */
.agw26-slot-btn .slot-ce-badge.marcado,
.agw26-slot-btn.ocupado .slot-ce-badge {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
  font-weight: 800 !important;
  font-size: 10px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.08) !important;
}

/* Estilo para slots de data dentro do período de retorno */
.agw26-slot-btn.retorno-slot {
  border: 1.5px solid #f59e0b;
  background: #fffdf5;
}

.agw26-slot-btn.retorno-slot:hover:not(:disabled) {
  border-color: #d97706;
  background: #fef3c7;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.agw26-slot-btn.retorno-slot.selected {
  background: #fef3c7;
  border: 2px solid #d97706;
  color: #92400e;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.slot-retorno-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fcd34d;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Etapa 4: Resumo Executivo & TUSS */
.agw26-summary-card {
  background: #f8fafc;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.agw26-sum-item small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ag-gray-600);
}

.agw26-sum-item strong {
  font-size: 14px;
  color: var(--ag-gray-900);
}

/* Tabela Moderna de Procedimentos TUSS */
.agw26-tuss-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  border: 1px solid var(--ag-gray-200);
  border-radius: var(--ag-radius-md);
  overflow: hidden;
}

.agw26-tuss-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ag-gray-600);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ag-gray-200);
}

.agw26-tuss-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--ag-gray-100);
  color: var(--ag-gray-700);
}

.agw26-tuss-table tr:last-child td {
  border-bottom: none;
}

.agw26-tuss-table tr.selected {
  background: #f0fdf4;
}

/* Modal / Drawer de Cadastro Rápido */
.agw26-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.agw26-modal-backdrop.active {
  display: flex;
}

.agw26-modal-box {
  background: #ffffff;
  border-radius: var(--ag-radius-lg);
  box-shadow: var(--ag-shadow-lg);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  animation: agwFadeDown 0.25s ease;
}

.agw26-modal-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--ag-gray-200);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agw26-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ag-gray-900);
}

.agw26-modal-body {
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
}

.agw26-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.agw26-form-group {
  margin-bottom: 14px;
}

.agw26-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ag-gray-700);
  margin-bottom: 4px;
}

.agw26-form-group input,
.agw26-form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--ag-radius-sm);
  border: 1px solid var(--ag-gray-200);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.agw26-form-group input:focus,
.agw26-form-group select:focus {
  border-color: var(--ag-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.agw26-modal-footer {
  background: #f8fafc;
  border-top: 1px solid var(--ag-gray-200);
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Botões Agendar */
.agw26-btn {
  padding: 10px 18px;
  border-radius: var(--ag-radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.agw26-btn-primary {
  background: var(--ag-primary);
  color: #fff;
}

.agw26-btn-primary:hover {
  background: var(--ag-primary-dark);
}

.agw26-btn-secondary {
  background: var(--ag-gray-100);
  color: var(--ag-gray-700);
}

.agw26-btn-secondary:hover {
  background: var(--ag-gray-200);
}

.agw26-btn-danger {
  background: var(--ag-danger);
  color: #fff;
}

.agw26-btn-danger:hover {
  background: #dc2626;
}

/* Spinner Agendar */
.agw26-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: agwSpin 0.7s linear infinite;
}

@keyframes agwSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Autocomplete MasterLib 2.0 Estilizado para o Agendar 2026 */
.ui-autocomplete {
  z-index: 99999999 !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  max-height: 280px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px !important;
  font-family: var(--ds-font-family) !important;
}

.ui-autocomplete .ui-menu-item {
  list-style: none !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.ui-autocomplete .ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item a,
.ui-autocomplete .ui-menu-item div {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border: 1px solid transparent !important;
  border-left: 4px solid transparent !important;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-focus,
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item:hover>.ui-menu-item-wrapper,
.ui-autocomplete .ui-menu-item:hover>a,
.ui-autocomplete .ui-menu-item:hover>div,
.ui-autocomplete .ui-menu-item a.ui-state-active,
.ui-autocomplete .ui-menu-item a.ui-state-focus,
.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-state-focus {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  font-weight: 800 !important;
  border: 1px solid #fca5a5 !important;
  border-left: 5px solid #dc2626 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12) !important;
}

#frm_nome,
.j_frm_nome {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* Notificação / Toast: Botão de fechar e banner fixo */
.j_ml_notify>div {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  border-radius: 10px !important;
}

.j_ml_notify>div>button {
  cursor: pointer !important;
  padding: 10px 14px !important;
  opacity: 0.9 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  outline: none !important;
  font-size: 16px !important;
}

.j_ml_notify>div>button:hover {
  opacity: 1 !important;
  transform: scale(1.18) !important;
}

/* --------------------------------------------------------------------------
   4. CAMADA PORTAL WEB: AGENDAMENTO ONLINE DO PACIENTE (agendar.php)
   -------------------------------------------------------------------------- */
body.portal-body,
.portal-body {
  background-color: var(--ds-bg-page);
  color: var(--ds-gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--ds-font-family);
  -webkit-tap-highlight-color: transparent;
}

.portal-body * {
  box-sizing: border-box;
}

.portal-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* Topo da Clínica */
.clinic-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 12px 0;
}

.clinic-logo {
  max-height: 52px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 8px;
}

.clinic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Principal do Portal */
.portal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

/* Stepper Visual do Portal */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
  z-index: 1;
}

.step-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-item.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.step-item.completed {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

/* Formulários do Portal */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Botões do Portal */
.btn-action {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--ds-font-family);
  text-decoration: none;
}

.btn-action:hover {
  background: var(--primary-dark);
}

.btn-action:active {
  transform: scale(0.99);
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Lista de Seleção (Especialidade / Unidade / Médico) */
.selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.selection-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.selection-card:hover {
  border-color: var(--primary);
  background: #f0f9ff;
  transform: translateY(-1px);
}

.selection-card.selected {
  border-color: var(--primary);
  background: #e0f2fe;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Barra de resumo de CPF e ações */
.cpf-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Avatar e Badges do Paciente / Dependentes */
.patient-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.patient-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
}

.patient-badge.titular {
  background: #e0f2fe;
  color: #0369a1;
}

.patient-badge.dependente {
  background: #fef3c7;
  color: #92400e;
}

/* Cards de Horários do Portal */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.slot-pill {
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.slot-pill:hover {
  border-color: #0284c7;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(2, 132, 199, 0.16);
}

.slot-time {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.slot-date-badge {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #38bdf8;
  color: #0369a1;
  border-radius: 8px;
  padding: 4px 10px;
  margin: 6px 0 6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.12);
  transition: all 0.2s ease;
}

.slot-date-val {
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.3px;
}

.slot-weekday-val {
  font-weight: 700;
  color: #0369a1;
}

.slot-pill:hover .slot-date-badge {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.slot-pill:hover .slot-date-val,
.slot-pill:hover .slot-weekday-val,
.slot-pill:hover .slot-date-badge i {
  color: #ffffff !important;
}

/* Mensagens e Alertas do Portal */
.alert-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Banner de Boas-Vindas */
.welcome-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.08);
  position: relative;
  overflow: hidden;
}

.welcome-card::after {
  content: '';
  position: absolute;
  right: -25px;
  top: -25px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.06);
  pointer-events: none;
}

.welcome-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.welcome-emoji-badge {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.welcome-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0369a1;
  letter-spacing: -0.2px;
}

.welcome-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
}

.welcome-desc strong {
  color: #0f172a;
}

.welcome-zap-box,
.floating-whatsapp {
  display: none !important;
}

/* Modal de Confirmação na Tela do Portal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: modalSlideUp 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.appointment-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-value {
  color: var(--text-main);
  text-align: right;
}

/* Card de Destaque do Celular / WhatsApp Cadastrado */
.phone-highlight-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.phone-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.phone-highlight-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #047857;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-highlight-number {
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
  margin: 2px 0 6px 0;
  letter-spacing: 0.5px;
}

.phone-highlight-notice {
  font-size: 12px;
  color: #047857;
  line-height: 1.45;
}

/* Central do Paciente (Menu Principal) */
.patient-portal-bar {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.patient-portal-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.menu-option-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.menu-option-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(2, 132, 199, 0.15);
}

.menu-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.menu-icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.menu-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.menu-icon-rose {
  background: #ffe4e6;
  color: #e11d48;
}

.menu-icon-emerald {
  background: #ecfdf5;
  color: #059669;
}

.menu-icon-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.menu-card-body {
  flex: 1;
  min-width: 0;
}

.menu-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* Cartões de Agendamentos Ativos */
.my-appointment-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.my-appointment-card:hover {
  border-color: #cbd5e1;
}

.my-appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.my-appointment-date {
  font-size: 15px;
  font-weight: 800;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-status-confirmed {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.my-appointment-details {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Footer do Portal */
.portal-footer {
  display: table;
  margin: 24px auto 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #047857;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12);
}

.portal-footer sup {
  font-size: 0.8em;
  font-weight: 800;
  color: #10b981;
  line-height: 0;
  margin-left: 1px;
}

.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Telas de toque: o iOS dá zoom automático ao focar campos com fonte menor que 16px */
@media (pointer: coarse) {

  input,
  select,
  textarea,
  .form-input,
  .ds26-input,
  .ds26-select,
  .ds26-textarea {
    font-size: 16px !important;
  }
}

/* ==========================================================================
   PAGINAÇÃO MODERNA 2026 (Design System 2026 / CECB)
   ========================================================================== */
.ds26-pagination-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin-top: 14px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  font-family: var(--ds-font-family, 'Plus Jakarta Sans', -apple-system, sans-serif) !important;
  box-sizing: border-box !important;
  clear: both !important;
}

/* Quando dentro de rodapé de tabela (tfoot), integra perfeitamente */
.ds26-table tfoot .ds26-pagination-wrapper,
table tfoot .ds26-pagination-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 6px !important;
  margin: 0 !important;
}

/* Informações do Rodapé (Contador de Registros) */
.ds26-pagination-info {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.ds26-pagination-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
}

.ds26-pagination-text {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.ds26-pagination-text strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.ds26-pagination-range {
  color: #64748b !important;
  font-size: 12px !important;
  margin-left: 4px !important;
}

.ds26-pagination-range strong {
  color: #334155 !important;
}

/* Grupo de Navegação das Páginas - Alinhado totalmente à Direita */
.ds26-pagination-nav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-left: auto !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  float: right !important;
}

/* Botões Modernos de Página */
.ds26-page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
  text-shadow: none !important;
  margin: 0 !important;
  line-height: normal !important;
}

.ds26-page-btn:not(.active):not(.is-active) {
  background-color: #ffffff !important;
  background-image: none !important;
}

.ds26-page-btn i {
  pointer-events: none !important;
}

/* Hover nos Botões de Página */
.ds26-page-btn:hover:not(.active):not(.is-active) {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Botão de Página Ativa (Página Atual Selecionada) */
.ds26-page-btn.active,
.ds26-page-btn.is-active,
button.j_ml_paginacao.active {
  background-color: #0284c7 !important;
  background: #0284c7 !important;
  background-image: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  border-color: #0284c7 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.4) !important;
  cursor: default !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.ds26-page-btn.active:hover,
.ds26-page-btn.is-active:hover,
button.j_ml_paginacao.active:hover {
  background-color: #0369a1 !important;
  background: #0369a1 !important;
  background-image: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}

/* Botões Especiais de Navegação (Primeira, Anterior, Próxima, Última) */
.ds26-page-nav-btn {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 14px !important;
  padding: 0 10px !important;
}

.ds26-page-nav-btn:hover {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
  border-color: #38bdf8 !important;
}

/* Sobrescrever estilizações legadas conflitantes */
.ml_btn_group[data-theme="ds26"] {
  display: inline-flex !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ml_btn_group[data-theme="ds26"] button {
  text-shadow: none !important;
  box-sizing: border-box !important;
}

/* Responsividade Mobile para a Paginação */
@media (max-width: 768px) {
  .ds26-pagination-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 12px 10px !important;
    gap: 10px !important;
  }

  .ds26-pagination-info {
    justify-content: center !important;
    width: 100% !important;
  }

  .ds26-pagination-nav {
    justify-content: center !important;
    margin-left: 0 !important;
    width: 100% !important;
    float: none !important;
    gap: 4px !important;
  }

  .ds26-page-btn {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }
}

/* --------------------------------------------------------------------------
   21. PAINEL DE CONSULTA E AGENDAMENTO MÉDICO (SELEÇÃO / LISTAGEM) (.ds26-pcag-*)
   Componentes para visualização da grade médica (KPIs, Tabela Desktop e Cards Mobile)
   -------------------------------------------------------------------------- */
.ds26-pcag-wrapper {
  font-family: var(--ds-font-family, "Plus Jakarta Sans", sans-serif);
  color: #1e293b;
  margin-top: 15px;
}

/* KPI Summary Bar */
.ds26-pcag-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.ds26-pcag-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds26-pcag-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ds26-pcag-kpi-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ds26-pcag-kpi-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ds26-pcag-kpi-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

/* Desktop Table vs Mobile Cards */
.ds26-pcag-desktop {
  display: block;
}

.ds26-pcag-mobile {
  display: none;
}

.ds26-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ds26-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
}

.ds26-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 12px;
  vertical-align: middle;
  text-align: center;
}

.ds26-table tbody tr:hover {
  background: #f8fafc;
}

.ds26-table tfoot td {
  border-top: 1px solid #e2e8f0;
  border-bottom: none;
  background: #f8fafc;
  padding: 8px 14px;
}

/* Badges de Destaque Temporal */
.ds26-badge-hoje {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  display: inline-block;
  animation: ds26Pulse 2s infinite;
}

.ds26-badge-amanha {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  display: inline-block;
}

@keyframes ds26Pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.ds26-horarios-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 10px;
  border-radius: 8px;
  color: #166534;
  font-weight: 700;
  font-size: 12px;
}

.ds26-horarios-pill.livre {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
  font-weight: 600;
}

.ds26-metric-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.ds26-metric-consulta {
  background: #e0f2fe;
  color: #0369a1;
}

.ds26-metric-retorno {
  background: #f3e8ff;
  color: #7e22ce;
}

.ds26-metric-encaixe {
  background: #fef3c7;
  color: #b45309;
}

/* Mobile Cards Styling (< 992px) */
@media (max-width: 991px) {
  .ds26-pcag-desktop {
    display: none !important;
  }

  .ds26-pcag-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  .ds26-mcard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .ds26-mcard.is-hoje {
    border-left: 5px solid #10b981;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 40px);
  }

  .ds26-mcard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .ds26-mcard-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
  }

  .ds26-mcard-weekday {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
  }

  .ds26-mcard-tags {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .ds26-mcard-room {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
  }

  /* Horários em Grande Destaque no Celular */
  .ds26-mcard-hours-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .ds26-mcard-hours-box.com-pacientes {
    background: #f0fdf4;
    border-color: #bbf7d0;
  }

  .ds26-hour-item {
    display: flex;
    flex-direction: column;
  }

  .ds26-hour-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .ds26-hour-val {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
  }

  .ds26-hour-val.destaque-inicio {
    color: #0284c7;
  }

  .ds26-hour-val.destaque-fim {
    color: #10b981;
  }

  .ds26-hour-divider {
    color: #94a3b8;
    font-size: 16px;
  }

  /* Quantitativos Consultas vs Retornos */
  .ds26-mcard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }

  .ds26-mcard-stat {
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    border: 1px solid #f1f5f9;
  }

  .ds26-mcard-stat-title {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    display: block;
    margin-bottom: 2px;
  }

  .ds26-mcard-stat-num {
    font-size: 15px;
    font-weight: 800;
  }

  /* Botão de Ação Mobile Touch Friendly */
  .ds26-mcard-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
    border: none;
    cursor: pointer;
  }

  .ds26-mcard-btn:active {
    transform: scale(0.98);
    background: #0369a1;
  }
}

/* --------------------------------------------------------------------------
   22. MODAL DE CONSULTA DE HORÁRIOS DO MÉDICO (.ds26-chm-*)
   Componentes para visualização dos horários e pacientes do dia (Modal Moderna)
   -------------------------------------------------------------------------- */
.ds26-chm-wrap {
  font-family: var(--ds-font-family, "Plus Jakarta Sans", -apple-system, sans-serif);
  color: #0f172a;
}

.ds26-chm-header {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ds26-chm-doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds26-chm-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.ds26-chm-doc-title {
  font-size: 15px;
  font-weight: 800;
  color: #0c4a6e;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.ds26-chm-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ds26-chm-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds26-chm-tag-primary {
  background: #0284c7;
  color: #ffffff;
}

.ds26-chm-tag-neutral {
  background: #ffffff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ds26-chm-date-box {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 8px 14px;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.ds26-chm-date-val {
  font-size: 15px;
  font-weight: 800;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ds26-chm-date-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.ds26-chm-header-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.ds26-chm-header-close-btn:hover {
  background: #fee2e2;
  color: #991b1b;
}

/* Resumo Rápido */
.ds26-chm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ds26-chm-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ds26-chm-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ds26-chm-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.ds26-chm-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.3px;
}

/* Tabela Desktop (>= 768px) */
.ds26-chm-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ds26-chm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.ds26-chm-table thead th {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border: none !important;
}

.ds26-chm-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  vertical-align: middle;
}

.ds26-chm-table tbody tr:hover {
  background: #f8fafc;
}

.ds26-chm-table tbody tr.slot-livre {
  background: #ffffff;
}

.ds26-chm-table tbody tr.slot-livre:hover {
  background: #f0fdf4;
}

.ds26-chm-table tbody tr.slot-bloqueado {
  background: #fafafa;
}

/* Pílulas de Horário */
.ds26-chm-hour-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.ds26-chm-hour-pill.agendado {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.ds26-chm-hour-pill.livre {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.ds26-chm-hour-pill.bloqueado {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Avatar com Iniciais */
.ds26-chm-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Visualização Mobile (< 768px) */
.ds26-chm-mobile-cards {
  display: none;
}

/* Rodapé da Janela */
.ds26-chm-footer-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
}

.ds26-chm-footer-close-btn {
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ds26-chm-footer-close-btn:hover,
.ds26-chm-footer-close-btn:active {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

/* ==============================================================
   OVERRIDE RESPONSIVO DA MODAL MASTERLIB PARA CELULAR (<= 767px)
   Garante que a modal não abra deslocada para o alto e seja fácil fechar
   ============================================================== */
@media (max-width: 767px) {

  /* Backdrop com scroll nativo touch */
  .ml_modal_lg {
    padding: 10px 8px 30px 8px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    box-sizing: border-box !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Container centralizado com margens adequadas no celular */
  .ml_modal_lg .ml_modal_lg_container,
  .ml_modal_lg_80 .ml_modal_lg_container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 10px auto 30px auto !important;
    top: 0 !important;
    left: 0 !important;
    float: none !important;
    border-radius: 14px !important;
    padding: 14px 12px 16px 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* Título do Cabeçalho da Janela */
  .ml_modal_lg_container>h1 {
    font-size: 14px !important;
    line-height: 20px !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
    padding-right: 44px !important;
    float: none !important;
    word-break: break-word !important;
  }

  /* Botão nativo Fechar (X) no topo direito em destaque touch */
  .ml_modal_lg_container>button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    z-index: 99999 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    float: none !important;
  }

  .ml_modal_lg_container>button:active {
    background: #e2e8f0 !important;
    transform: scale(0.92);
  }

  /* Div de conteúdo com scroll livre */
  .ml_modal_lg_container>div {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    float: none !important;
  }

  .mCustomScrollbar,
  .mCSB_container {
    overflow: visible !important;
  }

  .ds26-chm-table-wrap {
    display: none;
  }

  .ds26-chm-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ds26-chm-mcard {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  }

  .ds26-chm-mcard.livre {
    background: #fcfdfd;
    border-style: dashed;
    border-color: #cbd5e1;
  }

  .ds26-chm-mcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .ds26-chm-mcard-patient {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .ds26-chm-mcard-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Card de Destaque para Documentos Necessários & Orientações de Agendamento
   ========================================================================== */
.doc-highlight-card,
.ds26-doc-highlight-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1.5px solid #93c5fd;
  border-radius: var(--ds-radius-md, 12px);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  text-align: left;
}

.doc-highlight-icon,
.ds26-doc-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ds-primary, #0284c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.doc-highlight-tag,
.ds26-doc-highlight-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0369a1;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.doc-highlight-body,
.ds26-doc-highlight-body {
  flex: 1;
  min-width: 0;
}

.doc-highlight-content,
.ds26-doc-highlight-content {
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.55;
}

.doc-highlight-content p,
.ds26-doc-highlight-content p {
  margin: 0 0 6px 0;
}

.doc-highlight-content p:last-child,
.ds26-doc-highlight-content p:last-child {
  margin-bottom: 0;
}

.doc-highlight-content strong,
.ds26-doc-highlight-content strong {
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   33. PAINEL DE TEMPLATES META CLOUD API (OUTUBRO/2026)
   -------------------------------------------------------------------------- */
.ds26-meta-templates-wrapper {
  margin: 16px 0 20px 0;
  padding-top: 14px;
  border-top: 1px dashed var(--ds-border);
}

.ds26-meta-btn-consultar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--ds-radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: all 0.2s ease;
}

.ds26-meta-btn-consultar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  filter: brightness(1.05);
}

.ds26-meta-templates-container {
  margin-top: 14px;
  background: var(--ds-card-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  padding: 16px;
  box-shadow: var(--ds-shadow-sm);
  display: none;
}

.ds26-meta-templates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.ds26-meta-templates-table th {
  background: var(--ds-gray-50);
  color: var(--ds-gray-700);
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid var(--ds-border);
  text-align: left;
}

.ds26-meta-templates-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ds-border);
  color: var(--ds-gray-800);
  vertical-align: middle;
}

.ds26-meta-templates-table tr:hover td {
  background: var(--ds-gray-50);
}

.ds26-meta-tpl-name {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-primary-dark);
  background: var(--ds-primary-light);
  padding: 3px 8px;
  border-radius: 6px;
}

.ds26-meta-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--ds-border);
  color: var(--ds-gray-700);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds26-meta-btn-copy:hover {
  background: var(--ds-primary-light);
  border-color: var(--ds-primary);
  color: var(--ds-primary-dark);
}

.ds26-card-body-flush {
  padding: 0 !important;
}

.ds26-meta-icon {
  color: #25d366;
}

.ds26-text-muted {
  color: var(--ds-gray-500);
}

.ds26-table-responsive {
  overflow-x: auto;
  width: 100%;
}

.ds26-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds26-text-center {
  text-align: center;
}





/* ==========================================================================
   23. CENTRAL DE ATENDIMENTO & CHAT WHATSAPP OFICIAL CECB 2026 (.ds26-wachat-*)
   ========================================================================== */
.ds26-wachat-wrapper {
  font-family: var(--ds-font-family, 'Plus Jakarta Sans', -apple-system, sans-serif);
  color: var(--ds-gray-800, #1e293b);
  margin-top: 8px;
}

.ds26-wachat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.ds26-wachat-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds26-wachat-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.ds26-wachat-title-text h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-wachat-title-text p {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.ds26-wachat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds26-wachat-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  height: calc(100vh - 210px);
  min-height: 560px;
  max-height: 780px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

/* Coluna Esquerda: Lista de Conversas */
.ds26-wachat-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  height: 100%;
  overflow: hidden;
}

.ds26-wachat-search-box {
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-wachat-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ds26-wachat-search-input-wrap i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.ds26-wachat-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.15s ease;
}

.ds26-wachat-search-input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.ds26-wachat-filter-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.ds26-wachat-tab {
  flex: 1;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds26-wachat-tab:hover {
  background: #e2e8f0;
}

.ds26-wachat-tab.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.ds26-wachat-conv-list {
  flex: 1;
  overflow-y: auto;
  divide-y: 1px solid #f1f5f9;
}

.ds26-wachat-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ds26-wachat-conv-item:hover {
  background: #f0f9ff;
}

.ds26-wachat-conv-item.active {
  background: #e0f2fe;
  border-left: 4px solid #0284c7;
}

.ds26-wachat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.ds26-wachat-dot-24h {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.ds26-wachat-conv-body {
  flex: 1;
  min-width: 0;
}

.ds26-wachat-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.ds26-wachat-conv-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-wachat-conv-time {
  font-size: 11px;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 6px;
}

.ds26-wachat-conv-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.ds26-wachat-conv-preview {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-wachat-unread-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Coluna Direita: Painel de Mensagens */
.ds26-wachat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.ds26-wachat-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.ds26-wachat-chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds26-wachat-chat-user-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-wachat-chat-user-info span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.ds26-wachat-appt-banner {
  background: #f0f9ff;
  border-bottom: 1px solid #bae6fd;
  padding: 8px 18px;
  font-size: 12px;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.ds26-wachat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #efeae2;
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

.ds26-wachat-date-divider {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  margin: 6px 0;
}

.ds26-wachat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 74%;
}

.ds26-wachat-msg-row.msg-in {
  align-self: flex-start;
}

.ds26-wachat-msg-row.msg-out {
  align-self: flex-end;
}

.ds26-wachat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ds26-wachat-msg-row.msg-in .ds26-wachat-bubble {
  background: #ffffff;
  color: #0f172a;
  border-top-left-radius: 4px;
}

.ds26-wachat-msg-row.msg-out .ds26-wachat-bubble {
  background: #d9fdd3;
  color: #0f172a;
  border-top-right-radius: 4px;
}

.ds26-wachat-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  font-size: 10.5px;
  color: #64748b;
}

.ds26-wachat-check-read {
  color: #0284c7;
  font-weight: 800;
}

.ds26-wachat-quick-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  overflow-x: auto;
  flex-shrink: 0;
}

.ds26-wachat-quick-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds26-wachat-quick-chip:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

.ds26-wachat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.ds26-wachat-textarea {
  flex: 1;
  resize: none;
  height: 44px;
  max-height: 110px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.ds26-wachat-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.ds26-wachat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #64748b;
}

.ds26-wachat-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ds26-wachat-hidden {
  display: none !important;
}

.ds26-wachat-modal-results {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ds26-wachat-modal-pac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.ds26-wachat-modal-pac-item:hover {
  background: #f0f9ff;
}

@media (max-width: 991px) {
  .ds26-wachat-grid {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .ds26-wachat-sidebar {
    max-height: 320px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .ds26-wachat-main {
    height: 520px;
  }
}

.ds26-wachat-empty-box {
  padding: 28px 16px;
}

.ds26-wachat-empty-icon-sm {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.ds26-wachat-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.ds26-wachat-check-failed {
  color: #dc2626;
}

.ds26-wachat-modal-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds26-wachat-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ds26-wachat-connected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.ds26-wachat-connected-pill strong {
  font-weight: 800;
  color: #14532d;
}

.ds26-wachat-connected-pill.is-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.ds26-wachat-connected-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  display: inline-block;
}

.ds26-wachat-upsell-card {
  max-width: 780px;
  margin: 32px auto;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 55%, #ffffff 100%);
  border: 1px solid #6ee7b7;
  border-radius: 20px;
  padding: 36px 34px;
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.12);
  text-align: center;
}

.ds26-wachat-upsell-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #25D366 0%, #059669 100%);
  color: #ffffff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.28);
}

.ds26-wachat-upsell-icon.is-ai {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
}

.ds26-wachat-upsell-badge {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ds26-wachat-upsell-title {
  margin: 0 0 10px 0;
  font-size: 23px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.3;
}

.ds26-wachat-upsell-subtitle {
  margin: 0 auto 24px auto;
  max-width: 620px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.55;
}

.ds26-wachat-upsell-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
  margin-bottom: 26px;
}

.ds26-wachat-upsell-feature-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13px;
  color: #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ds26-wachat-upsell-feature-item i {
  color: #059669;
  font-size: 17px;
  margin-top: 2px;
}

.ds26-wachat-upsell-cta {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.22);
}

.ds26-wachat-upsell-cta strong {
  font-weight: 800;
  color: #fef08a;
}

@media (max-width: 767px) {
  .ds26-wachat-upsell-features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   24. PROGRAMAÇÃO DE ENVIO AUTOMÁTICO WHATSAPP (CRON MESTRE) (.ds26-wacron-*)
   ========================================================================== */
.ds26-wacron-delay-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ds26-wacron-delay-alert i {
  font-size: 22px;
  flex-shrink: 0;
}

.ds26-wacron-feedback {
  margin-bottom: 18px;
}

.ds26-wacron-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.ds26-wacron-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.ds26-wacron-card.is-active {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.ds26-wacron-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ds26-wacron-card-header h4 {
  margin: 4px 0 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-wacron-step-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
}

.ds26-wacron-toggle-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.ds26-wacron-switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.ds26-wacron-switch-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
  cursor: pointer;
}

.ds26-wacron-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ds26-wacron-dow-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ds26-wacron-dow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin: 0;
}

.ds26-wacron-dow-chip input[type="checkbox"] {
  margin: 0;
  accent-color: #0284c7;
}

.ds26-wacron-preview-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 14px;
}

.ds26-wacron-last-exec {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #64748b;
}

.ds26-wacron-footer-bar {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.ds26-wacron-save-btn {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .ds26-wacron-grid {
    grid-template-columns: 1fr;
  }

  .ds26-wacron-fields-row {
    grid-template-columns: 1fr;
  }
}


.ds26-wachat-wrapper {
  padding-top: 24px;
}

.ds26-wachat-upsell-card {
  margin-top: 28px;
}


/* Destaque da Central do Paciente no Card Comercial (Upsell) */
.ds26-wachat-upsell-portal-box {
  margin-top: 22px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px dashed #38bdf8;
  border-radius: 16px;
  text-align: center;
}

.ds26-wachat-upsell-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ds26-wachat-upsell-portal-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  color: #0c4a6e;
}

.ds26-wachat-upsell-portal-desc {
  margin: 0 auto 16px auto;
  max-width: 620px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.ds26-wachat-upsell-portal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ds26-wachat-upsell-portal-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: monospace;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
  transition: all 0.2s ease;
}

.ds26-wachat-upsell-portal-url:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f8fafc;
}

.ds26-wachat-upsell-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.ds26-wachat-upsell-portal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
  color: #ffffff !important;
}

.ds26-wachat-upsell-portal-foot {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

.ds26-wachat-upsell-portal-foot strong {
  color: #0369a1;
  font-weight: 800;
}


.ds26-wachat-upsell-card {
  position: relative;
}

.ds26-wachat-upsell-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #a7f3d0;
  background: #ffffff;
  color: #065f46;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: all 0.15s ease;
}

.ds26-wachat-upsell-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

#wachatPainelAtivo {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.ds26-wachat-main,
.ds26-wachat-sidebar,
.ds26-wachat-conv-list,
.ds26-wachat-messages-area {
  min-height: 0;
}


/* Modo Largura Total & Tela Cheia — Central de Mensagens & Chat WhatsApp */
.ds26-container.ds26-wachat-wrapper,
.ds26-wachat-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 6px 0 6px !important;
}

.ds26-wachat-header-bar {
  flex-wrap: nowrap;
  padding: 10px 16px;
  margin-bottom: 10px;
}

.ds26-wachat-title-group {
  min-width: 0;
  flex: 1;
}

.ds26-wachat-title-text {
  min-width: 0;
}

.ds26-wachat-title-text p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-wachat-header-actions {
  flex-shrink: 0;
}

.ds26-wachat-grid {
  grid-template-columns: 370px 1fr;
  height: calc(100vh - 150px);
  min-height: 560px;
  max-height: none;
}

.ds26-container.ds26-wachat-wrapper.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  background: #f1f5f9 !important;
  z-index: 9990 !important;
  display: flex !important;
  flex-direction: column !important;
}

.ds26-container.ds26-wachat-wrapper.is-fullscreen .ds26-wachat-grid {
  flex: 1 !important;
  height: calc(100vh - 84px) !important;
  min-height: 0 !important;
  max-height: none !important;
  grid-template-columns: 390px 1fr;
}

#modalWachatNovaConversa {
  z-index: 10050 !important;
}

@media (max-width: 991px) {
  .ds26-wachat-header-bar {
    flex-wrap: wrap;
  }

  .ds26-wachat-title-text p {
    white-space: normal;
  }

  .ds26-wachat-grid,
  .ds26-container.ds26-wachat-wrapper.is-fullscreen .ds26-wachat-grid {
    grid-template-columns: 1fr;
    height: auto !important;
  }
}


/* Posicionamento abaixo da barra superior de atalhos (.top_nav) no Admin */
.ds26-container.ds26-wachat-wrapper,
.ds26-wachat-wrapper {
  display: flow-root !important;
  clear: both !important;
  padding-top: 14px !important;
}

.ds26-container.ds26-wachat-wrapper.is-dismissed,
.ds26-wachat-wrapper.is-dismissed,
.ds26-wachat-wrapper[hidden] {
  display: none !important;
}

.ds26-container.ds26-wachat-wrapper.is-overlay-mode,
.ds26-wachat-wrapper.is-overlay-mode {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.52) !important;
  backdrop-filter: blur(3px);
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 28px 16px !important;
}

.ds26-wachat-wrapper.is-overlay-mode .ds26-wachat-upsell-card {
  margin: auto !important;
  width: 100%;
}

.ds26-wachat-upsell-greeting {
  margin: 2px 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  letter-spacing: -0.01em;
}

.ds26-wachat-upsell-subtitle.is-highlight-red {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fda4af;
  border-radius: 12px;
  padding: 12px 18px;
  color: #9f1239;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
}

.ds26-wachat-upsell-subtitle.is-highlight-red strong {
  color: #be123c;
  font-weight: 800;
}

.ds26-wachat-upsell-card {
  clear: both !important;
  margin: 16px auto 32px auto !important;
}


/* ==========================================================================
   25. SIMPLIFICAÇÃO UNIDADE X ESPECIALIDADE DO MÉDICO (.ds26-meduni-*)
   ========================================================================== */
.ds26-meduni-wrapper {
  clear: both !important;
  display: flow-root !important;
  padding-top: 14px !important;
  max-width: 1180px;
  margin: 0 auto 32px auto;
}

.ds26-meduni-testbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

.ds26-meduni-testbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ds26-meduni-testbar-tag {
  background: #38bdf8;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
}

.ds26-meduni-testbar-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.ds26-meduni-testbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ds26-meduni-testbar-select {
  min-width: 280px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #ffffff;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
}

.ds26-meduni-shell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.ds26-meduni-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.ds26-meduni-doc {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds26-meduni-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.ds26-meduni-doc-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-meduni-doc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.ds26-meduni-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.ds26-meduni-kpi-pill.is-emerald {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Barra Rápida para Adicionar Novo Vínculo (Unidade + Especialidade) */
.ds26-meduni-addbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-meduni-addbar-field {
  flex: 1;
  min-width: 210px;
}

.ds26-meduni-addbar-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
  margin-bottom: 5px;
}

.ds26-meduni-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Card de Unidade */
.ds26-meduni-unit-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds26-meduni-unit-card.has-active {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.07);
}

.ds26-meduni-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

.ds26-meduni-unit-card.is-empty .ds26-meduni-unit-header {
  background: #f1f5f9;
  color: #475569;
}

.ds26-meduni-unit-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.ds26-meduni-unit-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.ds26-meduni-unit-card.is-empty .ds26-meduni-unit-count {
  background: #e2e8f0;
  color: #475569;
}

/* Lista de Especialidades Vinculadas na Unidade */
.ds26-meduni-spec-list {
  display: flex;
  flex-direction: column;
}

.ds26-meduni-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.ds26-meduni-spec-row:last-child {
  border-bottom: none;
}

.ds26-meduni-spec-row:hover {
  background: #f8fafc;
}

.ds26-meduni-spec-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}

.ds26-meduni-spec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ds26-meduni-spec-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-meduni-spec-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ds26-meduni-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.ds26-meduni-status-pill.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ds26-meduni-status-pill.is-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Botões Diretos de 1 Clique por Especialidade */
.ds26-meduni-spec-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-meduni-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.ds26-meduni-btn-proc {
  background: #0f172a;
  color: #ffffff !important;
}

.ds26-meduni-btn-proc:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.ds26-meduni-btn-hora {
  background: #0284c7;
  color: #ffffff !important;
}

.ds26-meduni-btn-hora:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.ds26-meduni-btn-remove {
  background: #fff1f2;
  color: #e11d48 !important;
  border-color: #fecdd3;
  padding: 8px 11px;
}

.ds26-meduni-btn-remove:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

/* Gaveta Opcional de Seleção Rápida em Lote (Chips de Especialidades) */
.ds26-meduni-Catalog-drawer {
  border-top: 1px dashed #cbd5e1;
  background: #f8fafc;
  padding: 14px 18px;
}

.ds26-meduni-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ds26-meduni-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
}

.ds26-meduni-chip:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.ds26-meduni-chip.is-active {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
  font-weight: 700;
}

.ds26-meduni-empty {
  text-align: center;
  padding: 34px 20px;
  color: #64748b;
}

@media (max-width: 768px) {
  .ds26-meduni-spec-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds26-meduni-spec-actions {
    width: 100%;
  }

  .ds26-meduni-btn-action {
    flex: 1;
    justify-content: center;
  }
}


/* ==========================================================================
   MODAL PROCEDIMENTOS E VALOR / % DE REPASSE (ds26-medproc-*) - CECB 2026
   ========================================================================== */
.ds26-medproc-wrap {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  padding: 4px 2px 12px;
}

.ds26-medproc-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.ds26-medproc-ctx-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ds26-medproc-ctx-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ds26-medproc-ctx-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ds26-medproc-ctx-icon.is-med {
  background: #e0f2fe;
  color: #0284c7;
}

.ds26-medproc-ctx-icon.is-uni {
  background: #d1fae5;
  color: #059669;
}

.ds26-medproc-ctx-icon.is-esp {
  background: #ede9fe;
  color: #6d28d9;
}

.ds26-medproc-ctx-icon.is-per {
  background: #fef3c7;
  color: #b45309;
}

.ds26-medproc-ctx-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ds26-medproc-ctx-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.ds26-medproc-ctx-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

/* Card do Formulário de Cadastro / Edição */
.ds26-medproc-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.ds26-medproc-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.ds26-medproc-form-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds26-medproc-form-title i {
  color: #0284c7;
}

.ds26-medproc-form-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Estilização Moderna sobre o Formulario::GeraFormulario existente */
.ds26-medproc-form-card .ml_form_label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block;
}

.ds26-medproc-form-card input[type="text"],
.ds26-medproc-form-card input[type="password"],
.ds26-medproc-form-card select,
.ds26-medproc-form-card textarea,
.ds26-medproc-form-card .input_fake {
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 6px 11px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

.ds26-medproc-form-card input[type="text"],
.ds26-medproc-form-card input[type="password"],
.ds26-medproc-form-card select,
.ds26-medproc-form-card .input_fake {
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds26-medproc-form-card .input_fake {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

.ds26-medproc-form-card input[type="text"]:focus,
.ds26-medproc-form-card input[type="password"]:focus,
.ds26-medproc-form-card select:focus,
.ds26-medproc-form-card textarea:focus {
  background-color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  outline: none !important;
}

.ds26-cert-info-grid {
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 6px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px 10px !important;
  box-sizing: border-box !important;
}

.ds26-cert-info-grid::after,
.ds26-medproc-form-card::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-medproc-form-card input[readonly],
.ds26-medproc-form-card input[disabled] {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
}

.ds26-medproc-form-card button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide),
.ds26-medproc-form-card .ml_btn:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
  border: none !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
}

.ds26-medproc-form-card .ml_hide:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-medproc-form-card .ml_hidden:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-medproc-form-card .ml_dp_none:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-medproc-form-card .display_none:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-medproc-form-card .ml_btn_hide:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]),
.ds26-medproc-form-card button[style*="display: none"],
.ds26-medproc-form-card button[style*="display:none"],
.ds26-medproc-form-card .ml_btn[style*="display: none"],
.ds26-medproc-form-card .ml_btn[style*="display:none"] {
  display: none !important;
}

.ds26-medproc-form-card button[type="submit"] {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
}

.ds26-medproc-form-card button[type="submit"]:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px);
}

.ds26-medproc-form-card .j_replicar {
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe !important;
  box-shadow: none !important;
}

.ds26-medproc-form-card .j_replicar:hover {
  background: #ede9fe !important;
  border-color: #c4b5fd !important;
  color: #5b21b6 !important;
  transform: translateY(-1px);
}

/* Card da Listagem de Procedimentos */
.ds26-medproc-list-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ds26-medproc-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-medproc-list-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-medproc-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.ds26-medproc-stat-pill.is-total {
  background: #e0f2fe;
  color: #0369a1;
}

.ds26-medproc-stat-pill.is-agenda {
  background: #d1fae5;
  color: #047857;
}

.ds26-medproc-search-box {
  position: relative;
  width: 440px;
  min-width: 340px;
  max-width: 100%;
  flex: 0 1 440px;
}

.ds26-medproc-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13.5px;
  pointer-events: none;
}

.ds26-medproc-search-input {
  width: 100% !important;
  height: 38px !important;
  padding: 6px 14px 6px 36px !important;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.ds26-medproc-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  outline: none;
}

/* Badges na Tabela de Procedimentos */
.ds26-medproc-code {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 9px;
  border-radius: 6px;
}

.ds26-medproc-desc {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.ds26-medproc-val-active {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 6px;
}

.ds26-medproc-pct-active {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 3px 9px;
  border-radius: 6px;
}

.ds26-medproc-val-zero {
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
}

.ds26-medproc-agenda-sim {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 20px;
}

.ds26-medproc-agenda-nao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 20px;
}

.ds26-medproc-row-inactive td {
  opacity: 0.6;
  background: #f8fafc;
}


/* Seções Internas do Formulário de Operadora (ds26-oper-form-section) */
.ds26-oper-form-section {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 16px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 12px !important;
  box-sizing: border-box !important;
}

.ds26-oper-form-section::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-oper-form-section::before {
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-oper-sec-dados::before {
  content: "1. Dados Cadastrais & Parâmetros TISS / ANS";
}

.ds26-oper-sec-ender::before {
  content: "2. Endereço & Telefones de Contato";
}

/* Alinhamento explícito em tabelas .ds26-table */
.ds26-table th[align="left"],
.ds26-table td[align="left"],
.ds26-table th.ml_al_left,
.ds26-table td.ml_al_left {
  text-align: left !important;
}

.ds26-table th[align="right"],
.ds26-table td[align="right"],
.ds26-table th.ml_al_right,
.ds26-table td.ml_al_right {
  text-align: right !important;
}


/* ==========================================================================
   CADASTRO DE MÉDICOS / OUTROS PROFISSIONAIS & MEMED (Design System 2026)
   ========================================================================== */
.ds26-med-sec-dados::before {
  content: "1. Dados Cadastrais, Conselho Profissional & Integração Memed";
}

.ds26-med-sec-memed::before {
  content: "1. Orientações & Upload do Receituário Digital (PDF)";
}

.ds26-med-sec-filtro::before {
  content: "Filtros de Pesquisa de Períodos de Agendamento";
}

/* Botões Memed no formulário de Médico/Outro */
.j_frm_cadastro_medicos_outros .j_memed,
.j_frm_cadastro_medicos_outros .j_consultamemed,
.j_frm_cadastro_medicos_outros .j_uploadmemed,
.j_frm_cadastro_medicos_outros .j_imprmemed,
.j_frm_cadastro_medicos_outros .j_excluirmemed {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: 8px !important;
  margin-right: 6px !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

.j_frm_cadastro_medicos_outros .j_memed.ml_hide,
.j_frm_cadastro_medicos_outros .j_consultamemed.ml_hide,
.j_frm_cadastro_medicos_outros .j_uploadmemed.ml_hide,
.j_frm_cadastro_medicos_outros .j_imprmemed.ml_hide,
.j_frm_cadastro_medicos_outros .j_excluirmemed.ml_hide {
  display: none !important;
}

.j_frm_cadastro_medicos_outros .j_memed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28) !important;
}

.j_frm_cadastro_medicos_outros .j_consultamemed {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08) !important;
}

.j_frm_cadastro_medicos_outros .j_consultamemed:hover {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
}

.j_frm_cadastro_medicos_outros .j_uploadmemed {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25) !important;
}

.j_frm_cadastro_medicos_outros .j_imprmemed {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.24) !important;
}

.j_frm_cadastro_medicos_outros .j_excluirmemed {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
}

.j_frm_cadastro_medicos_outros .j_excluirmemed:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
}

/* Grid de Informações do Prescritor Memed (cadastroMemed.tpl.php) */
.ds26-memed-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 2px 6px;
}

.ds26-memed-info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds26-memed-info-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds26-memed-info-label i {
  color: #0284c7;
}

.ds26-memed-info-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.ds26-memed-info-value.is-mono {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  color: #0369a1;
}

/* Preview de Imagem de Assinatura (assinatura.tpl.php) */
.ds26-assinatura-preview {
  max-height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .ds26-memed-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PERSONALIZAÇÃO DE OPERADORA (Médicos Restritos, Planos e Subgrupos - 2026)
   ========================================================================== */
.ds26-oper-sec-mednao::before {
  content: "1. Seleção / Pesquisa de Médico que Não Atende a Operadora";
}

.ds26-oper-sec-planos::before {
  content: "1. Cadastro / Pesquisa de Plano da Operadora";
}

.ds26-oper-sec-subgrupo::before {
  content: "1. Cadastro / Pesquisa de Subgrupo do Plano";
}

.ds26-medproc-form-card .j_salvar,
.ds26-medproc-form-card .j_salvar_plano,
.ds26-medproc-form-card .j_salvar_subgrupo {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
  margin-left: 6px !important;
}

.ds26-medproc-form-card .j_salvar:hover,
.ds26-medproc-form-card .j_salvar_plano:hover,
.ds26-medproc-form-card .j_salvar_subgrupo:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px);
}

/* Largura total para containers DS26 em telas de listagem/cadastro do Admin */
.ds26-container.ml_mg_b_20 {
  max-width: 100% !important;
  padding: 8px 0 !important;
}

/* Alinhamento padrão à esquerda em listagens administrativas (.ds26-medproc-list-card .ds26-table) */
.ds26-medproc-list-card .ds26-table th,
.ds26-medproc-list-card .ds26-table td {
  text-align: left;
}

/* Centralização explícita da coluna de Ações e botões em tabelas .ds26-table */
.ds26-table th[align="center"],
.ds26-table td[align="center"],
.ds26-table th.ml_al_center,
.ds26-table td.ml_al_center {
  text-align: center !important;
}

.ds26-table td.ml_al_center .ds26-medproc-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

/* Seção do Formulário de Canais de Divulgação (Design System 2026) */
.ds26-canal-sec-dados::before {
  content: "1. Identificação do Canal de Divulgação";
}

/* Seção do Formulário de CBOS (Design System 2026) */
.ds26-cbos-sec-dados::before {
  content: "1. Código Oficial e Descrição da Ocupação (CBOS)";
}

/* Seções dos Formulários de Cadastro de CH e Cotação de CH (Design System 2026) */
.ds26-ch-sec-dados::before {
  content: "1. Identificação da Tabela de CH (Coeficiente de Honorários)";
}

.ds26-cotch-sec-dados::before {
  content: "1. Vigência e Valor do CH";
}

/* Seção do Formulário de CID-10 (Design System 2026) */
.ds26-cid10-sec-dados::before {
  content: "1. Código Oficial e Descrição da Patologia (CID-10)";
}

/* Seções dos Formulários de Composição / Pacotes (Design System 2026) */
.ds26-comp-sec-dados::before {
  content: "1. Vigência, Procedimento TUSS e Operadora da Composição / Pacote";
}

.ds26-compit-sec-dados::before {
  content: "1. Adicionar Material / Medicamento à Composição";
}

.ds26-compdup-sec-dados::before {
  content: "1. Nova Vigência e Destino para Duplicação da Composição";
}

/* Seção do Formulário de Conselhos Profissionais (Design System 2026) */
.ds26-cons-sec-dados::before {
  content: "1. Identificação do Conselho Profissional";
}

/* Seção do Formulário de Especialidades (Design System 2026) */
.ds26-esp-sec-dados::before {
  content: "1. Identificação da Especialidade Médica / Clínica";
}

/* Seção do Formulário de Unidades de Medida (Design System 2026) */
.ds26-medida-sec-dados::before {
  content: "1. Identificação da Unidade de Medida";
}

/* Seções dos Formulários de Cotação Mat/Med/Outros e Valores (Design System 2026) */
.ds26-cotmm-sec-dados::before {
  content: "1. Vigência da Cotação de Materiais / Medicamentos / Outros";
}

.ds26-cotmmv-sec-dados::before {
  content: "1. Item (Material / Medicamento) e Valor Unitário da Cotação";
}

/* Seção do Formulário de Empresas para Faturamento (Design System 2026) */
.ds26-empfat-sec-dados::before {
  content: "1. Dados Cadastrais, Fiscais e Endereço da Empresa para Faturamento";
}

/* Seção do Formulário de Faixa Etária — Análise/Relatórios (Design System 2026) */
.ds26-fxet-sec-dados::before {
  content: "1. Definição da Faixa Etária para Análise e Relatórios";
}

/* Seção do Formulário de Cadastro de Materiais / Medicamentos / Outros (Design System 2026) */
.ds26-matmed-sec-dados::before {
  content: "1. Identificação, Classificação TUSS e Unidade de Medida do Material / Medicamento";
}

/* Seção do Formulário de Cadastro de Tipo Mat/Med/Outros (Design System 2026) */
.ds26-tpmatmed-sec-dados::before {
  content: "1. Identificação e Regras de Faturamento do Tipo de Mat/Med/Outros";
}

/* Seção do Formulário de Motivos de Cancelamento de Consulta (Design System 2026) */
.ds26-motcc-sec-dados::before {
  content: "1. Descrição do Motivo de Cancelamento de Consulta";
}

/* Seção do Formulário de Motivos de Contato (Design System 2026) */
.ds26-motc-sec-dados::before {
  content: "1. Descrição do Motivo de Contato";
}

/* Seção do Formulário de Prescrição / Solicitação de Exames (Design System 2026) */
.ds26-medprc-sec-dados::before {
  content: "1. Dados do Modelo de Prescrição / Solicitação de Exames";
}

/* Seção do Formulário de Sub-Tipos de Documentos (Design System 2026) */
.ds26-sbtpdoc-sec-dados::before {
  content: "1. Identificação do Sub-Tipo de Documento";
}

/* Seção do Formulário de Tipos de Documentos (Design System 2026) */
.ds26-tpdoc-sec-dados::before {
  content: "1. Identificação e Configurações do Tipo de Documento";
}

/* Seção do Formulário de Tipos de Documentos — Cirurgia (Design System 2026) */
.ds26-tdc-sec-dados::before {
  content: "1. Identificação do Tipo de Documento de Cirurgia";
}

/* Seção do Formulário de Tabela CBHPM (Design System 2026) */
.ds26-cbhpm-sec-dados::before {
  content: "1. Identificação e Importação da Tabela CBHPM";
}

/* Seção do Formulário de Tabela TUSS (Design System 2026) */
.ds26-tuss-sec-dados::before {
  content: "1. Código Oficial, Descrição e Parâmetros do Procedimento TUSS";
}

/* Seção do Formulário de Unidade de Atendimento (Design System 2026) */
.ds26-uniat-sec-dados::before {
  content: "1. Dados Cadastrais, CNES, CNPJ e Endereço da Unidade de Atendimento";
}

/* Seções dos Formulários de Usuários e Usuário x Unidade (Design System 2026) */
.ds26-usr-sec-dados::before {
  content: "1. Identificação, Credenciais e Perfil do Usuário";
}

.ds26-usrdia-sec-dados::before {
  content: "1. Definição de Dia e Horários Permitidos para Acesso";
}

.ds26-usrdiadup-sec-dados::before {
  content: "1. Duplicar Configuração de Horário para Outro Dia";
}

.ds26-usruni-sec-dados::before {
  content: "1. Vínculo de Usuário x Unidade de Atendimento";
}

/* ==========================================================================
   CABEÇALHO GLOBAL DO ADMIN (.ml_page_header) E BOTÕES DE TOPO (CECB 2026)
   Moderniza globalmente "Novo Cadastro", "Listar Cadastros" e "Voltar"
   ========================================================================== */
.ml_page_header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 58px !important;
  padding: 10px 6px 14px 6px !important;
  margin-bottom: 4px !important;
  box-sizing: border-box !important;
}

.ml_page_header::before,
.ml_page_header::after {
  display: none !important;
  content: none !important;
}

.ml_page_header .ml_page_header_left {
  width: auto !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
  margin-right: auto !important;
  order: 1 !important;
}

.ml_page_header .ml_page_header_left h3 {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1.25 !important;
}

.ml_page_header .ml_page_header_left h3>i {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
  color: #0284c7 !important;
  border: 1px solid #7dd3fc !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12) !important;
  flex-shrink: 0 !important;
}

.ml_page_header>a.ml_btn_link,
.ml_page_header .ml_page_header_right a.ml_btn_link {
  order: 2 !important;
}

.ml_page_header .ml_page_header_right {
  width: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  order: 3 !important;
}

.ml_page_header .ml_page_header_right:empty {
  display: none !important;
}

/* Base comum para todos os botões no cabeçalho (.ml_page_header) */
.ml_page_header a.ml_btn,
.ml_page_header button.ml_btn {
  float: none !important;
  margin: 0 !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-variant: normal !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  filter: none !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

/* Botão Secundário "Voltar" no cabeçalho */
.ml_page_header a.ml_btn_link,
.ml_page_header .ml_page_header_right a.ml_btn_link {
  padding: 0 14px !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.ml_page_header a.ml_btn_link i,
.ml_page_header .ml_page_header_right a.ml_btn_link i {
  font-size: 14px !important;
  color: #64748b !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
}

.ml_page_header a.ml_btn_link:hover,
.ml_page_header .ml_page_header_right a.ml_btn_link:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12) !important;
}

.ml_page_header a.ml_btn_link:hover i,
.ml_page_header .ml_page_header_right a.ml_btn_link:hover i {
  color: #0284c7 !important;
  transform: translateX(-2px) !important;
}

/* Botão Principal "Listar Cadastros" / Ação Padrão (.ml_btn_info) */
.ml_page_header .ml_page_header_right a.ml_btn:not(.ml_btn_link),
.ml_page_header .ml_page_header_right button.ml_btn:not(.ml_btn_link) {
  padding: 0 16px 0 11px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24) !important;
}

.ml_page_header .ml_page_header_right a.ml_btn:not(.ml_btn_link) i,
.ml_page_header .ml_page_header_right button.ml_btn:not(.ml_btn_link) i {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
}

.ml_page_header .ml_page_header_right a.ml_btn:not(.ml_btn_link):hover,
.ml_page_header .ml_page_header_right button.ml_btn:not(.ml_btn_link):hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.34) !important;
}

/* Botão "+ Novo Cadastro" (Destaque Verde Esmeralda 2026 quando possui ícone fa-plus) */
.ml_page_header .ml_page_header_right a.ml_btn:has(> i.fa-plus) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.26) !important;
}

.ml_page_header .ml_page_header_right a.ml_btn:has(> i.fa-plus):hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.36) !important;
}

/* ==========================================================================
   PAINEL OPERACIONAL & FORMULÁRIOS ADMIN (.ds26-oper-page) - CECB 2026
   ========================================================================== */
.ds26-oper-page {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ds26-oper-page .ml_painel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

.ds26-oper-page .ml_painel .ml_header {
  padding: 4px 6px 12px 6px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 14px !important;
}

.ds26-oper-page .ml_painel .ml_header h2 {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ds26-oper-page .ml_painel .ml_header h2 i {
  color: #0284c7 !important;
}

.ds26-oper-page .ml_painel .ml_header h2 small {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-left: 4px !important;
}

.ds26-oper-page .ml_painel>.ml_painel_container {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 4px !important;
}

.ds26-oper-page .ml_form_label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
}

.ds26-oper-page input[type="text"]:not(.ds26-medproc-search-input):not(.ds26-perm26-search-input):not(.ds26-usrgrp-search-input),
.ds26-oper-page input[type="password"],
.ds26-oper-page input[type="email"],
.ds26-oper-page input[type="number"],
.ds26-oper-page select,
.ds26-oper-page textarea,
.ds26-oper-page .input_fake {
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 6px 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.ds26-oper-page input[type="text"],
.ds26-oper-page input[type="password"],
.ds26-oper-page input[type="email"],
.ds26-oper-page input[type="number"],
.ds26-oper-page select,
.ds26-oper-page .input_fake {
  height: 38px !important;
}

.ds26-oper-page input[type="text"]:focus,
.ds26-oper-page input[type="password"]:focus,
.ds26-oper-page input[type="email"]:focus,
.ds26-oper-page input[type="number"]:focus,
.ds26-oper-page select:focus,
.ds26-oper-page textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  outline: none !important;
}

.ds26-oper-page form button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide),
.ds26-oper-page form .ml_btn:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-variant: normal !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  transition: all 0.18s ease !important;
}

.ds26-oper-page form button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24) !important;
}

.ds26-oper-page form button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  border-color: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.34) !important;
}

.ds26-oper-page .ml_hide:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-oper-page .ml_hidden:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-oper-page .ml_dp_none:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-oper-page .display_none:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-oper-page .ml_btn_hide:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]),
.ds26-oper-page button[style*="display: none"],
.ds26-oper-page button[style*="display:none"],
.ds26-oper-page .ml_btn[style*="display: none"],
.ds26-oper-page .ml_btn[style*="display:none"] {
  display: none !important;
}

/* Seções dos Formulários de Grupos de Permissões e Níveis (Design System 2026) */
.j_frm_permissoes,
.j_frm_duplicar_registros,
.j_frm_nivel_permissoes {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 16px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 12px !important;
  box-sizing: border-box !important;
}

.j_frm_permissoes::after,
.j_frm_duplicar_registros::after,
.j_frm_nivel_permissoes::after {
  content: "";
  display: table;
  clear: both;
}

.j_frm_permissoes::before,
.j_frm_duplicar_registros::before,
.j_frm_nivel_permissoes::before {
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.j_frm_permissoes::before {
  content: "1. Identificação, Descrição e Nível do Grupo de Permissões";
}

.j_frm_duplicar_registros::before {
  content: "1. Novo Nome e Identificador do Grupo Duplicado";
}

.j_frm_nivel_permissoes::before {
  content: "1. Identificação e Descrição do Nível de Permissão";
}

/* ==========================================================================
   NOVA MATRIZ DE GESTAO DE PERMISSOES 2026 (.ds26-perm26-*)
   ========================================================================== */

.ds26-perm26-group-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.ds26-perm26-group-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds26-perm26-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.22);
  flex-shrink: 0;
}

.ds26-perm26-group-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-perm26-group-title strong {
  font-weight: 800;
  color: #0f172a;
}

.ds26-perm26-version-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ds26-perm26-version-tag.is-legacy {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.ds26-perm26-group-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.ds26-perm26-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.18s ease;
}

.ds26-perm26-mode-btn.is-legacy-link {
  background: #ffffff;
  color: #475569 !important;
  border: 1px solid #cbd5e1;
}

.ds26-perm26-mode-btn.is-legacy-link:hover {
  background: #f1f5f9;
  color: #0f172a !important;
  border-color: #94a3b8;
}

.ds26-perm26-mode-btn.is-modern-link {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: 1px solid #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.ds26-perm26-mode-btn.is-modern-link:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

/* Toolbar & KPIs */
.ds26-perm26-wrap {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.ds26-perm26-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 8px;
  z-index: 20;
}

.ds26-perm26-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.ds26-perm26-kpis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-perm26-kpi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.ds26-perm26-kpi b {
  font-weight: 800;
  font-size: 13px;
}

.ds26-perm26-kpi small {
  font-size: 11px;
  opacity: 0.75;
}

.ds26-perm26-kpi.is-mod {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ds26-perm26-kpi.is-tela {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.ds26-perm26-kpi.is-perm {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.ds26-perm26-autosave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ds26-perm26-autosave.is-saved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ds26-perm26-autosave.is-saving {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.ds26-perm26-autosave.is-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ds26-perm26-toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ds26-perm26-search-wrap {
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
}

.ds26-perm26-search-wrap>i.fa-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.ds26-oper-page input[type="text"].ds26-perm26-search-input,
.ds26-perm26-search-input {
  width: 100% !important;
  height: 36px !important;
  padding: 6px 36px 6px 36px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

.ds26-perm26-search-input:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
  outline: none !important;
}

.ds26-perm26-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #e2e8f0;
  color: #475569;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.ds26-perm26-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.ds26-perm26-filter-group {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9px;
  gap: 3px;
}

.ds26-perm26-filter-pill {
  border: none;
  background: transparent;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.ds26-perm26-filter-pill:hover {
  color: #0f172a;
}

.ds26-perm26-filter-pill.is-active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.ds26-perm26-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ds26-perm26-action-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.ds26-perm26-action-btn:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

/* Secao de Origem (ex: Painel Admin) */
.ds26-perm26-origin-section {
  margin-bottom: 20px;
}

.ds26-perm26-origin-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}

.ds26-perm26-origin-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1e293b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 7px;
  letter-spacing: 0.02em;
}

/* Grid de Cards de Modulos */
.ds26-perm26-mod-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds26-perm26-mod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #cbd5e1;
  border-radius: 11px;
  overflow: hidden;
  transition: all 0.18s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.ds26-perm26-mod-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ds26-perm26-mod-card.is-mod-active {
  border-left: 4px solid #10b981;
  background: #ffffff;
}

.ds26-perm26-mod-card.is-open {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.ds26-perm26-mod-card.is-open.is-mod-active {
  border-left: 4px solid #0284c7;
}

.ds26-perm26-mod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #ffffff;
  user-select: none;
}

.ds26-perm26-mod-card.is-open .ds26-perm26-mod-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-perm26-mod-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Toggle Switch do Modulo */
.ds26-perm26-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
}

.ds26-perm26-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ds26-perm26-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 999px;
}

.ds26-perm26-switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ds26-perm26-switch input:checked+.ds26-perm26-switch-slider {
  background-color: #10b981;
}

.ds26-perm26-switch input:checked+.ds26-perm26-switch-slider::before {
  transform: translateX(18px);
}

.ds26-perm26-mod-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.ds26-perm26-mod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ds26-perm26-mod-card.is-mod-active .ds26-perm26-mod-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.ds26-perm26-mod-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-perm26-mod-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ds26-perm26-mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.ds26-perm26-mod-badge.is-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ds26-perm26-mod-badge.is-inactive {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.ds26-perm26-dot {
  opacity: 0.5;
}

.ds26-perm26-btn-mod-all {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.ds26-perm26-btn-mod-all:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.ds26-perm26-chevron-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.ds26-perm26-chevron-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ds26-perm26-mod-card.is-open .ds26-perm26-chevron-btn i {
  transform: rotate(180deg);
}

/* Matriz Interna de Telas x Permissoes */
.ds26-perm26-mod-body {
  padding: 0;
  background: #ffffff;
}

.ds26-perm26-matrix {
  width: 100%;
  border-collapse: collapse;
}

.ds26-perm26-matrix thead th {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-perm26-tela-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.ds26-perm26-tela-row:last-child {
  border-bottom: none;
}

.ds26-perm26-tela-row:hover {
  background: #f8fafc;
}

.ds26-perm26-tela-row.is-tela-active {
  background: #f0f9ff;
}

.ds26-perm26-tela-row.is-tela-active:hover {
  background: #e0f2fe;
}

.ds26-perm26-td-tela {
  padding: 12px 16px;
  vertical-align: top;
  border-right: 1px solid #f1f5f9;
}

.ds26-perm26-tela-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ds26-perm26-tela-chk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0 !important;
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
}

.ds26-perm26-tela-chk-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0284c7;
  cursor: pointer;
  margin: 0 !important;
}

.ds26-perm26-tela-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ds26-perm26-tela-title i {
  color: #0284c7;
  font-size: 12px;
}

.ds26-perm26-btn-tela-all {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ds26-perm26-btn-tela-all:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

.ds26-perm26-td-perms {
  padding: 10px 16px;
  vertical-align: middle;
}

/* Pilulas Interativas de Permissoes */
.ds26-perm26-chips-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-perm26-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 !important;
  user-select: none;
  transition: all 0.15s ease;
}

.ds26-perm26-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.ds26-perm26-chip input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0 !important;
  cursor: pointer;
  accent-color: #0284c7;
}

.ds26-perm26-chip.is-checked {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.12);
}

.ds26-perm26-chip.is-cad.is-checked {
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
}

.ds26-perm26-chip.is-cad.is-checked input[type="checkbox"] {
  accent-color: #059669;
}

.ds26-perm26-chip.is-exc.is-checked {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

.ds26-perm26-chip.is-exc.is-checked input[type="checkbox"] {
  accent-color: #dc2626;
}

.ds26-perm26-spec-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.ds26-perm26-spec-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ds26-perm26-chip.is-spec.is-checked {
  background: #f5f3ff;
  border-color: #a78bfa;
  color: #5b21b6;
}

.ds26-perm26-chip.is-spec.is-checked input[type="checkbox"] {
  accent-color: #7c3aed;
}

.ds26-perm26-help-icon {
  color: #0284c7;
  margin-left: 2px;
  font-size: 13px;
}

.ds26-perm26-empty-telas,
.ds26-perm26-no-results {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  background: #f8fafc;
  border-radius: 10px;
  margin: 10px 0;
}

@media (max-width: 900px) {
  .ds26-perm26-mod-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds26-perm26-mod-header-right {
    width: 100%;
    justify-content: flex-end;
  }

  .ds26-perm26-matrix thead {
    display: none;
  }

  .ds26-perm26-matrix tbody tr,
  .ds26-perm26-matrix tbody td {
    display: block;
    width: 100% !important;
  }

  .ds26-perm26-td-tela {
    border-right: none;
    border-bottom: 1px dashed #e2e8f0;
  }
}

/* ==========================================================================
   MODAL DEFINIR GRUPO DE PERMISSOES PARA USUARIO / MODULO (.ds26-usrgrp-*)
   ========================================================================== */

.ds26-usrgrp-modal {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  padding: 6px 4px 14px;
}

.ds26-usrgrp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.ds26-usrgrp-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds26-usrgrp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.22);
  flex-shrink: 0;
}

.ds26-usrgrp-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-usrgrp-user-email {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.ds26-usrgrp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.ds26-usrgrp-status-pill.is-linked {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.ds26-usrgrp-status-pill.is-linked strong {
  font-weight: 800;
}

.ds26-usrgrp-status-pill.is-unlinked {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ds26-usrgrp-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ds26-usrgrp-search-input-wrap {
  position: relative;
  flex: 1;
}

.ds26-usrgrp-search-input-wrap>i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.ds26-usrgrp-search-input {
  width: 100% !important;
  height: 36px !important;
  padding: 6px 12px 6px 34px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  transition: all 0.18s ease !important;
}

.ds26-usrgrp-search-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
  outline: none !important;
}

.ds26-usrgrp-count-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.ds26-usrgrp-count-label b {
  color: #0f172a;
  font-weight: 800;
}

.ds26-usrgrp-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ds26-usrgrp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #cbd5e1;
  border-radius: 11px;
  padding: 12px 16px;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.ds26-usrgrp-card:hover {
  border-color: #93c5fd;
  border-left-color: #0284c7;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.ds26-usrgrp-card.is-active-group {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #6ee7b7;
  border-left: 4px solid #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.ds26-usrgrp-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ds26-usrgrp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ds26-usrgrp-card:hover .ds26-usrgrp-card-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.ds26-usrgrp-card.is-active-group .ds26-usrgrp-card-icon {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.ds26-usrgrp-card-content {
  flex: 1;
  min-width: 0;
}

.ds26-usrgrp-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-usrgrp-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-usrgrp-card.is-active-group .ds26-usrgrp-card-title {
  color: #065f46;
}

.ds26-usrgrp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.ds26-usrgrp-badge.is-current {
  background: #10b981;
  color: #ffffff;
}

.ds26-usrgrp-badge.is-level {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ds26-usrgrp-badge.is-mods {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ds26-usrgrp-card-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-usrgrp-card.is-active-group .ds26-usrgrp-card-desc {
  color: #047857;
}

.ds26-usrgrp-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ds26-usrgrp-btn-inspect {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569 !important;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.ds26-usrgrp-btn-inspect:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.ds26-usrgrp-btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
  transition: all 0.18s ease;
}

.ds26-usrgrp-btn-apply:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.ds26-usrgrp-btn-linked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 680px) {
  .ds26-usrgrp-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds26-usrgrp-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


/* ==========================================================================
   PAINEL TOTAL AGENDAMENTOS / ATENDIMENTOS POR USUÁRIO (CECB 2026)
   ========================================================================== */
.j_boxgeral_painel_total_agendamento_por_usuario_listagem .ml_table thead th,
.j_boxgeral_painel_total_agendamento_por_usuario_totalatendimentos .ml_table thead th,
.j_boxgeral_painel_total_atendimentos_por_usuario_listagem .ml_table thead th {
  background-color: #0284c7 !important;
  background-image: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  border: none !important;
  text-shadow: none !important;
}


/* ==========================================================================
   PAINEL DE ATENDIMENTO AGENDADO & MODAL ATENDIMENTO (HORÁRIOS) - CECB 2026
   ========================================================================== */
.j_frm_painel_atendimento_agendado fieldset,
.j_frm_atendimento_selecao fieldset {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  padding: 18px !important;
  margin-bottom: 18px !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-atend-modal-wrap),
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-atend-modal-wrap) {
  height: 96vh !important;
  margin-top: 2vh !important;
  margin-bottom: 2vh !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>h1 {
  height: 40px !important;
  line-height: 40px !important;
  margin: 0 0 6px 0 !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>div {
  height: calc(100% - 46px) !important;
}

.ds26-atend-modal-wrap {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #1e293b;
  padding: 4px 2px 12px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap::after,
.ds26-atend-modal-wrap .ds26-atend-tabs-container::after,
.ds26-atend-modal-wrap .ds26-atend-tabs-content::after,
.ds26-atend-modal-wrap .ds26-atend-tab-pane::after,
.ds26-atend-modal-wrap .ds26-atend-form-box::after,
.ds26-atend-modal-wrap .ds26-atend-proc-card::after,
.ds26-atend-modal-wrap .ds26-atend-proc-card .j_boxgeral_agendar_paciente_listagem::after,
.ds26-atend-modal-wrap .ds26-atend-proc-card .j_html_lista_procedimentos_agendar::after,
.ds26-atend-modal-wrap form::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-atend-ctx-header {
  margin-bottom: 10px !important;
  padding: 12px 16px !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-ctx-oper {
  color: #0284c7;
  font-weight: 700;
  font-size: 12px;
}

/* Alerta de Prazo de Retorno na Especialidade */
.ds26-atend-retorno-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff1f2 0%, #fef2f2 100%);
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 11px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.06);
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-retorno-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffe4e6;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ds26-atend-retorno-text {
  font-size: 13px;
  font-weight: 600;
  color: #881337;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-atend-retorno-text strong {
  font-weight: 800;
  color: #9f1239;
}

.ds26-atend-retorno-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e11d48;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Abas Modernas (Dados Paciente / Atendimento) */
.ds26-atend-modal-wrap .ds26-atend-tabs-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-nav {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 5px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-nav>ul {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-nav>ul>li {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 20px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-nav>ul>li:hover {
  background: #ffffff !important;
  color: #0284c7 !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-nav>ul>li.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-nav>ul>li i {
  font-size: 13px !important;
}

.ds26-atend-modal-wrap .ds26-atend-tabs-content {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap .ds26-atend-tab-pane {
  padding: 2px 0 6px !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap > .ml_painel,
.ds26-atend-modal-wrap .ds26-atend-tab-pane>.ml_painel {
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Seções/Cards gerados pelo ml_formulario dentro do Modal de Atendimento */
.ds26-atend-modal-wrap form {
  width: 100% !important;
  margin: 0 !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap .ml_title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  border-bottom: 1px dashed #cbd5e1 !important;
  padding-bottom: 6px !important;
  margin: 6px 0 10px 0 !important;
}

.ds26-atend-modal-wrap form .ml_alert_box:not(.j_ml_label_error) {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 14px 12px 10px !important;
  margin: 0 0 14px 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  color: #1e293b !important;
}

.ds26-atend-modal-wrap .ds26-atend-form-box {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 14px 12px 12px !important;
  margin: 0 0 16px 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  color: #1e293b !important;
}

.ds26-atend-modal-wrap .ds26-atend-form-box form .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 2px solid #cbd5e1 !important;
  box-shadow: none !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Labels e Campos do ml_formulario */
.ds26-atend-modal-wrap .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 4px !important;
  display: block;
}

.ds26-atend-modal-wrap .j_frm_atender_paciente .j_frmlabel_container:has(.j_frm_cons_ret),
.ds26-atend-modal-wrap .j_frm_atender_paciente .j_frmlabel_container:has(.j_frm_atendimento_prioritario) {
  min-width: 135px !important;
}

.ds26-atend-modal-wrap input[type="text"],
.ds26-atend-modal-wrap input[type="password"],
.ds26-atend-modal-wrap input[type="email"],
.ds26-atend-modal-wrap input[type="number"],
.ds26-atend-modal-wrap select,
.ds26-atend-modal-wrap textarea,
.ds26-atend-modal-wrap .input_fake {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #f8fafc !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap input[type="text"],
.ds26-atend-modal-wrap input[type="password"],
.ds26-atend-modal-wrap input[type="email"],
.ds26-atend-modal-wrap input[type="number"],
.ds26-atend-modal-wrap select,
.ds26-atend-modal-wrap .input_fake {
  height: 36px !important;
}

.ds26-atend-modal-wrap .input_fake {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds26-atend-modal-wrap input[type="text"]:focus,
.ds26-atend-modal-wrap input[type="password"]:focus,
.ds26-atend-modal-wrap input[type="email"]:focus,
.ds26-atend-modal-wrap input[type="number"]:focus,
.ds26-atend-modal-wrap select:focus,
.ds26-atend-modal-wrap textarea:focus {
  background-color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  outline: none !important;
}

.ds26-atend-modal-wrap input[readonly],
.ds26-atend-modal-wrap input[disabled],
.ds26-atend-modal-wrap select[disabled] {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
}

/* Destaque moderno para o campo ID do Paciente (substitui o fundo amarelo legado) */
.ds26-atend-modal-wrap input.j_frm_id {
  background-color: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

/* Botões integrados em campos TextBtn (ex: Pesquisa de Plano e Subgrupo) */
.ds26-atend-modal-wrap .frm_label_btn .frm_div_btn {
  display: flex !important;
  align-items: stretch !important;
}

.ds26-atend-modal-wrap .frm_label_btn .frm_div_btn>input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex: 1 !important;
}

.ds26-atend-modal-wrap .frm_label_btn .frm_div_btn>a {
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 10px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #cbd5e1 !important;
  border-left: none !important;
  border-radius: 0 8px 8px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.ds26-atend-modal-wrap .frm_label_btn .frm_div_btn>a:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Botões de Submit / Ação dentro do Modal de Atendimento */
.ds26-atend-modal-wrap button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide),
.ds26-atend-modal-wrap .ml_btn:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.ds26-atend-modal-wrap button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):hover,
.ds26-atend-modal-wrap .ml_btn:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}

.ds26-atend-modal-wrap .ml_hide:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-atend-modal-wrap .ml_hidden:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-atend-modal-wrap .ml_dp_none:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-atend-modal-wrap .display_none:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: grid"]):not([style*="display:grid"]):not([style*="display: table"]):not([style*="display:table"]):not([style*="display: list-item"]):not([style*="display:list-item"]),
.ds26-atend-modal-wrap .ml_btn_hide:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: inline"]):not([style*="display:inline"]):not([style*="display: flex"]):not([style*="display:flex"]),
.ds26-atend-modal-wrap button[style*="display: none"],
.ds26-atend-modal-wrap button[style*="display:none"],
.ds26-atend-modal-wrap .ml_btn[style*="display: none"],
.ds26-atend-modal-wrap .ml_btn[style*="display:none"] {
  display: none !important;
}

/* Rodapé de avanço na Aba 1 (Dados Paciente -> Atendimento) */
.ds26-atend-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 6px;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-step-hint {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ds26-atend-step-hint i {
  color: #0284c7;
  font-size: 14px;
}

.ds26-atend-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.18s ease;
}

.ds26-atend-next-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

/* Banner de WebService TISS Ativo na Aba 2 */
.ds26-atend-ws-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 12px;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 600;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-ws-banner i {
  color: #059669;
  font-size: 14px;
}

/* Card de Procedimentos do Atendimento na Aba 2 */
.ds26-atend-modal-wrap .ds26-atend-proc-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #0284c7 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
  color: #1e293b !important;
}

.ds26-atend-proc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 10px 10px 0 0;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
}

.ds26-atend-proc-header i {
  color: #0284c7;
}

.ds26-atend-proc-card .j_boxgeral_agendar_paciente_listagem {
  padding: 12px 14px !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-proc-card .j_html_lista_procedimentos_agendar {
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
  margin-top: 8px !important;
}

.ds26-atend-proc-card .ml_painel_container,
.ds26-atend-proc-card .ml_grid_container,
.ds26-atend-proc-card .j_total_atend_part {
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ds26-atend-proc-card .j_total_atend_part {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px dashed #cbd5e1 !important;
}

.ds26-atend-proc-card fieldset {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   TELA ATENDER (atendimento_selecao/listagem) & MODAL HORÁRIOS (2026)
   ========================================================================== */
.ds26-medproc-list-card,
.j_html_lista_painel_atendimento,
.j_html_lista_atendimento_selecao,
.j_html_lista {
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.j_frm_atendimento_selecao .ml_alert_box:not(.j_ml_label_error),
.j_frm_painel_atendimento_agendado .ml_alert_box:not(.j_ml_label_error) {
  background-color: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 18px 20px 14px 20px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  color: #1e293b !important;
  margin-bottom: 14px !important;
}

.ds26-oper-page form.j_frm_atendimento_selecao>button[type="submit"]:not(.ml_hide),
.ds26-oper-page form.j_frm_painel_atendimento_agendado>button[type="submit"]:not(.ml_hide),
.ds26-oper-page form.j_frm_atendimento_selecao>.ml_btn:not(.ml_hide),
.ds26-oper-page form.j_frm_painel_atendimento_agendado>.ml_btn:not(.ml_hide),
.ds26-oper-page form button[type="submit"].display_none,
.ds26-oper-page form .ml_btn.display_none,
.ds26-oper-page form button[type="submit"].ml_btn_hide,
.ds26-oper-page form .ml_btn.ml_btn_hide {
  display: none !important;
}

/* Badges de Ordem de Atendimento e Consultório na Grid de Atender */
.ds26-atend-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ds26-atend-room-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 48px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.ds26-atend-room-pill.is-empty {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

.ds26-atend-first-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

.ds26-atend-icon-hosp {
  color: #64748b;
  margin-right: 6px;
}

.ds26-atend-icon-doc {
  color: #0284c7;
  margin-right: 6px;
}

/* Badges de 1ª Vez e PEP na Modal Atendimento (Horários) */
.ds26-atend-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ds26-atend-status-pill.is-yes {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ds26-atend-status-pill.is-pep-yes {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ds26-atend-status-pill.is-no {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Filtro de Nome dentro da Modal Atendimento (Horários / Seleção de Paciente) */
.ds26-atend-modal-wrap .ds26-atend-agenda-filter-wrap {
  margin-bottom: 8px;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap .j_boxgeral_atendimento_diario_selecao_listagem.ds26-atend-agenda-filter-wrap .ml_filtro_box,
.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_agenda_listagem.ds26-atend-agenda-filter-wrap .ml_filtro_box {
  position: relative !important;
  float: none !important;
  clear: both !important;
  margin-bottom: 8px !important;
}

.ds26-atend-modal-wrap .j_boxgeral_atendimento_diario_selecao_listagem.ds26-atend-agenda-filter-wrap .ml_filtro_box .ml_filtro_box_close,
.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_agenda_listagem.ds26-atend-agenda-filter-wrap .ml_filtro_box .ml_filtro_box_close {
  position: absolute !important;
  top: 10px !important;
  right: 14px !important;
  z-index: 3 !important;
  margin: 0 !important;
  width: auto !important;
}

.ds26-atend-modal-wrap .j_boxgeral_atendimento_diario_selecao_listagem.ds26-atend-agenda-filter-wrap .ml_filtro_box .ml_filtro_btn_search,
.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_agenda_listagem.ds26-atend-agenda-filter-wrap .ml_filtro_box .ml_filtro_btn_search {
  display: none !important;
}

.ds26-atend-modal-wrap .ds26-atend-agenda-filter-wrap fieldset {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

/* ==========================================================================
   CADASTRO & EDIÇÃO DE PACIENTES (.ds26-paciente-modal-wrap / .ds26-pacientes-page) - CECB 2026
   ========================================================================== */

/* 1. Modal Container Moderno */
.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes),
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes) {
  height: 94vh !important;
  margin-top: 3vh !important;
  margin-bottom: 3vh !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 14px 60px 14px 20px !important;
  height: auto !important;
  min-height: 54px !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1 i,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 i,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1 i,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 i {
  color: #0284c7 !important;
  font-size: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: #e0f2fe !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

/* Oculta qualquer informação de prontuário ou subtítulo no cabeçalho */
.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1 small,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 small,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1 small,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 small,
.ds26-modal-badge-pront {
  display: none !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>button,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>button,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>button,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>button {
  top: 14px !important;
  right: 18px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  z-index: 10 !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>button:hover,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>button:hover,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>button:hover,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>button:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: scale(1.08) !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>div,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>div,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>div,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>div {
  height: calc(100% - 56px) !important;
  padding: 18px 22px 26px 22px !important;
  background: #f8fafc !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* 2. Header do Modal de Paciente (Alinhado à esquerda, sem prontuário) */
.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1 span,
.ml_modal_lg .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 span,
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap)>h1 span,
.ml_modal_lg_80 .ml_modal_lg_container:has(.j_frm_cadastro_pacientes)>h1 span {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* 3. Seções / Cartões do Formulário de Paciente */
.ds26-paciente-modal-wrap .ml_alert_box,
.ds26-pacientes-page .ml_alert_box,
.j_frm_cadastro_pacientes .ml_alert_box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px 18px 12px 18px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: left !important;
  clear: both !important;
}

.ds26-paciente-modal-wrap .ml_alert_box::before,
.ds26-paciente-modal-wrap .ml_alert_box::after,
.ds26-pacientes-page .ml_alert_box::before,
.ds26-pacientes-page .ml_alert_box::after,
.j_frm_cadastro_pacientes .ml_alert_box::before,
.j_frm_cadastro_pacientes .ml_alert_box::after {
  display: none !important;
}

/* Títulos de Seção Internos (Dados, Convênio, Endereço, Obs) */
.ds26-paciente-modal-wrap div[style*="border-bottom: 1px dashed"],
.ds26-pacientes-page div[style*="border-bottom: 1px dashed"],
.j_frm_cadastro_pacientes div[style*="border-bottom: 1px dashed"] {
  border-bottom: 2px solid #f1f5f9 !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 0 0 8px 0 !important;
  margin: 0 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ds26-paciente-modal-wrap div[style*="border-bottom: 1px dashed"]>div,
.ds26-pacientes-page div[style*="border-bottom: 1px dashed"]>div,
.j_frm_cadastro_pacientes div[style*="border-bottom: 1px dashed"]>div {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #0284c7 !important;
}

/* 4. Labels e Tipografia */
.ds26-paciente-modal-wrap .ml_frm_label_container,
.ds26-pacientes-page .ml_frm_label_container,
.j_frm_cadastro_pacientes .ml_frm_label_container {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  margin-bottom: 8px !important;
  padding: 0 5px !important;
  box-sizing: border-box !important;
}

.ds26-paciente-modal-wrap .ml_frm_label_container>span,
.ds26-pacientes-page .ml_frm_label_container>span,
.j_frm_cadastro_pacientes .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
  letter-spacing: 0.01em !important;
}

.ds26-paciente-modal-wrap .ml_frm_label_container>span i.fa-question-circle,
.ds26-pacientes-page .ml_frm_label_container>span i.fa-question-circle,
.j_frm_cadastro_pacientes .ml_frm_label_container>span i.fa-question-circle {
  color: #0284c7 !important;
  opacity: 0.85;
  font-size: 12px !important;
}

/* 5. Campos de Formulário (Inputs, Selects, Textareas) */
.ds26-paciente-modal-wrap input[type="text"],
.ds26-paciente-modal-wrap input[type="password"],
.ds26-paciente-modal-wrap input[type="email"],
.ds26-paciente-modal-wrap input[type="number"],
.ds26-paciente-modal-wrap select,
.ds26-pacientes-page input[type="text"],
.ds26-pacientes-page input[type="password"],
.ds26-pacientes-page input[type="email"],
.ds26-pacientes-page input[type="number"],
.ds26-pacientes-page select,
.j_frm_cadastro_pacientes input[type="text"],
.j_frm_cadastro_pacientes input[type="password"],
.j_frm_cadastro_pacientes input[type="email"],
.j_frm_cadastro_pacientes input[type="number"],
.j_frm_cadastro_pacientes select {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 6px 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.ds26-paciente-modal-wrap textarea,
.ds26-pacientes-page textarea,
.j_frm_cadastro_pacientes textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 8px 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.ds26-paciente-modal-wrap input:focus,
.ds26-paciente-modal-wrap select:focus,
.ds26-paciente-modal-wrap textarea:focus,
.ds26-pacientes-page input:focus,
.ds26-pacientes-page select:focus,
.ds26-pacientes-page textarea:focus,
.j_frm_cadastro_pacientes input:focus,
.j_frm_cadastro_pacientes select:focus,
.j_frm_cadastro_pacientes textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

/* 6. Campo ID (Prontuário) - Substitui o fundo amarelo */
.ds26-paciente-modal-wrap input[name="frm_id"],
.ds26-paciente-modal-wrap .j_frm_id,
.ds26-pacientes-page input[name="frm_id"],
.ds26-pacientes-page .j_frm_id,
.j_frm_cadastro_pacientes input[name="frm_id"],
.j_frm_cadastro_pacientes .j_frm_id,
input[name="frm_id"] {
  background-color: #f1f5f9 !important;
  color: #0369a1 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-align: center !important;
  border-radius: 8px !important;
  cursor: default !important;
}

/* 7. Botão Integrado de Busca (Plano / Subgrupo) */
.ds26-paciente-modal-wrap .frm_div_btn,
.ds26-pacientes-page .frm_div_btn,
.j_frm_cadastro_pacientes .frm_div_btn {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
}

.ds26-paciente-modal-wrap .frm_div_btn input,
.ds26-pacientes-page .frm_div_btn input,
.j_frm_cadastro_pacientes .frm_div_btn input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
  flex: 1 1 auto !important;
}

.ds26-paciente-modal-wrap .frm_div_btn a,
.ds26-pacientes-page .frm_div_btn a,
.j_frm_cadastro_pacientes .frm_div_btn a {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  border-top-right-radius: 9px !important;
  border-bottom-right-radius: 9px !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.ds26-paciente-modal-wrap .frm_div_btn a:hover,
.ds26-pacientes-page .frm_div_btn a:hover,
.j_frm_cadastro_pacientes .frm_div_btn a:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  color: #ffffff !important;
}

/* 8. Campos de Auditoria (Cadastrado / Alterado / Excluído) */
.ds26-paciente-modal-wrap input[name="frm_cadastrado"],
.ds26-paciente-modal-wrap input[name="frm_alterado"],
.ds26-paciente-modal-wrap input[name="frm_excluido"],
.ds26-pacientes-page input[name="frm_cadastrado"],
.ds26-pacientes-page input[name="frm_alterado"],
.ds26-pacientes-page input[name="frm_excluido"],
.j_frm_cadastro_pacientes input[name="frm_cadastrado"],
.j_frm_cadastro_pacientes input[name="frm_alterado"],
.j_frm_cadastro_pacientes input[name="frm_excluido"] {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
}

/* 9. Botão de Atualizar / Cadastrar */
.ds26-paciente-modal-wrap button[type="submit"],
.ds26-pacientes-page form button[type="submit"]:not(.ml_hide),
.j_frm_cadastro_pacientes button[type="submit"] {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  border-radius: 10px !important;
  height: 42px !important;
  padding: 0 24px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28) !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
  float: right !important;
  margin-top: 10px !important;
  letter-spacing: 0.01em !important;
}

.ds26-paciente-modal-wrap button[type="submit"]:hover,
.ds26-pacientes-page form button[type="submit"]:not(.ml_hide):hover,
.j_frm_cadastro_pacientes button[type="submit"]:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  border-color: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38) !important;
}

/* 10. Tabela de Listagem de Pacientes */
.ds26-pacientes-page .ml_table {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

.ds26-pacientes-page .ml_table thead tr {
  background: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.ds26-pacientes-page .ml_table thead th {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #334155 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 12px 10px !important;
}

.ds26-pacientes-page .ml_table tbody td {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  padding: 10px 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.ds26-pacientes-page .ml_table tbody tr:hover td {
  background: #f8fafc !important;
}

/* ==========================================================================
   MÓDULO AGENDAR (.ds26-agendar-page) & MODAIS DE AGENDAMENTO - CECB 2026
   ========================================================================== */

/* 1. Botão de Destaque "Experimentar Novo Agendar 2026" no Header */
.ml_page_header .ml_page_header_right a.ds26-agendar-cta-nw2026 {
  padding: 0 16px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.18s ease !important;
}

.ml_page_header .ml_page_header_right a.ds26-agendar-cta-nw2026 i {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fef08a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
}

.ml_page_header .ml_page_header_right a.ds26-agendar-cta-nw2026:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  border-color: #059669 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.42) !important;
}

/* 2. Abas Modernas na Tela Principal de Agendar (Paciente / Datas / Horários / Nutri) */
.ds26-agendar-page .ds26-agendar-tabs-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 5px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav>ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav>ul>li {
  float: none !important;
  display: inline-flex;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 20px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav>ul>li.ml_hide:not([style*="display: list-item"]):not([style*="display: inline"]):not([style*="display: block"]),
.ds26-agendar-page .ds26-agendar-tabs-nav>ul>li[style*="display: none"] {
  display: none !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav>ul>li:hover {
  background: #ffffff !important;
  color: #0284c7 !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav>ul>li.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
}

.ds26-agendar-page .ds26-agendar-tabs-nav>ul>li i {
  font-size: 13.5px !important;
}

.ds26-agendar-page .ds26-agendar-tabs-content {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-agendar-page .ds26-agendar-tab-pane {
  padding: 2px 0 8px !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-agendar-page .ds26-agendar-tab-pane>.ml_painel,
.ds26-agendar-page .ds26-agendar-tab-pane>.ml_painel_container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 3. Cards de Filtro do GeraFormulario no Módulo Agendar */
.ds26-agendar-page form.j_frm_filtro_cadastro_pacientes_agendamento .ml_alert_box:not(.j_ml_label_error),
.ds26-agendar-page form.j_frm_agendar_selecao_unidade_especialiadade_medico_1018 .ml_alert_box:not(.j_ml_label_error),
.ds26-agendar-page form.j_frm_agendar_selecao .ml_alert_box:not(.j_ml_label_error),
.ds26-agendar-page form.j_frm_agendar_selecao_nutri .ml_alert_box:not(.j_ml_label_error),
.ds26-agendar-page form.j_frm_agendar_data_nutri .ml_alert_box:not(.j_ml_label_error) {
  background-color: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 18px 20px 14px 20px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  color: #1e293b !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-agendar-page form .ml_alert_box:not(.j_ml_label_error)::before,
.ds26-agendar-page form .ml_alert_box:not(.j_ml_label_error)::after {
  display: none !important;
}

/* Remove botão automático duplicado gerado no rodapé externo do form Data(s) */
.ds26-agendar-page form.j_frm_agendar_selecao_unidade_especialiadade_medico_1018>button[type="submit"],
.ds26-agendar-page form.j_frm_agendar_selecao_unidade_especialiadade_medico_1018>.ml_btn {
  display: none !important;
}

.ds26-agendar-page .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* Botões de Ação ("Pesquisar", "+ Novo Cadastro" e "Limpar") na Aba Paciente */
.ds26-oper-page.ds26-agendar-page form.j_frm_filtro_cadastro_pacientes_agendamento .ml_btn:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
  margin-right: 6px !important;
}

.ds26-oper-page.ds26-agendar-page form.j_frm_filtro_cadastro_pacientes_agendamento .ml_btn:last-of-type {
  margin-right: 0 !important;
}

.ds26-oper-page.ds26-agendar-page form button.j_action_novocadastro_agenda:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide),
.ds26-agendar-page .j_action_novocadastro_agenda {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.24) !important;
}

.ds26-oper-page.ds26-agendar-page form button.j_action_novocadastro_agenda:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):hover,
.ds26-agendar-page .j_action_novocadastro_agenda:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.34) !important;
}

.ds26-oper-page.ds26-agendar-page form button.j_action_limpar_filtro_agendar:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide),
.ds26-agendar-page .j_action_limpar_filtro_agendar {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.24) !important;
}

.ds26-oper-page.ds26-agendar-page form button.j_action_limpar_filtro_agendar:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) i,
.ds26-agendar-page .j_action_limpar_filtro_agendar i {
  color: #ffffff !important;
}

.ds26-oper-page.ds26-agendar-page form button.j_action_limpar_filtro_agendar:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):hover,
.ds26-agendar-page .j_action_limpar_filtro_agendar:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  border-color: #334155 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(51, 65, 85, 0.34) !important;
}

/* 4. Barra de Contexto nas Abas Data(s), Horário(s) e Nutri */
.ds26-agendar-ctx-bar {
  margin-bottom: 14px !important;
  padding: 12px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-agendar-ctx-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ds26-medproc-ctx-icon.is-pac {
  background: #e0f2fe;
  color: #0369a1;
}

.ds26-medproc-ctx-icon.is-date {
  background: #fef3c7;
  color: #b45309;
}

/* Containers de Listagem AJAX no Agendar */
.j_html_lista_pacientes_agendar,
.j_html_lista_horarios,
.j_html_lista_espec_nutri,
.j_html_lista_hora_nutri,
.j_html_lista_agenda_nutri {
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* 5. Banners de Prazo de Retorno, Estatísticas de Consultas e Conflito na Aba Data(s) */
@keyframes ds26PulseAlert {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.ds26-blink-alert {
  animation: ds26PulseAlert 1.5s ease-in-out infinite;
}

.ds26-agendar-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin: 8px 0 12px 0;
  width: 100%;
  box-sizing: border-box;
}

.ds26-agendar-banner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  box-sizing: border-box;
}

.ds26-agendar-banner-card.is-retorno {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  color: #9f1239;
  font-weight: 700;
}

.ds26-agendar-banner-card.is-stats {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  color: #065f46;
  font-weight: 600;
}

.ds26-agendar-banner-card.is-stats b {
  font-weight: 800;
  color: #047857;
}

.ds26-agendar-banner-card.is-conflict {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  color: #b91c1c;
  font-weight: 800;
  font-size: 13px;
}

/* Destaques Semânticos nas Tabelas de Datas e Horários */
.ds26-agendar-date-alert {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fee2e2;
  color: #b91c1c !important;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  padding: 3px 8px;
  font-weight: 800 !important;
  font-size: 12px;
}

.ds26-agendar-obs-warn {
  color: #dc2626;
  font-weight: 700;
  font-size: 12px;
}

.ds26-agendar-suspend-tag {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 800;
  font-size: 11.5px;
  margin-bottom: 3px;
}

.ds26-agendar-slot-blocked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

/* Destaque (Grifo) de Horário Vago e Horário Bloqueado nas Grades de Horários */
tr.ds26-agendar-row-free>td {
  background-color: #dcfce7 !important;
  border-bottom-color: #86efac !important;
  box-shadow: inset 0 1px 0 #86efac;
  transition: background-color 0.15s ease;
}

tr.ds26-agendar-row-free>td:first-child {
  box-shadow: inset 4px 0 0 #10b981, inset 0 1px 0 #86efac;
}

tr.ds26-agendar-row-free:hover>td {
  background-color: #bbf7d0 !important;
}

tr.ds26-agendar-row-free .ds26-medproc-code {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.28);
}

.ds26-agendar-slot-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #047857;
  border: 1px solid #34d399;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
}

tr.ds26-agendar-row-blocked>td {
  background-color: #fff5f5 !important;
  border-bottom-color: #fecaca !important;
}

tr.ds26-agendar-row-blocked>td:first-child {
  box-shadow: inset 4px 0 0 #ef4444;
}

tr.ds26-agendar-row-blocked .ds26-medproc-code {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

.ds26-atend-status-pill.is-tele {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.ds26-atend-status-pill.is-cons {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ds26-atend-status-pill.is-enc {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.ds26-agendar-audit-user {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

.ds26-agendar-audit-date {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}

.ds26-oper-row-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.ds26-medproc-tuss-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 2px 8px;
}

.ds26-empty-row-alert {
  justify-content: center;
  margin: 6px 0 !important;
}

/* 6. Aba Nutri — Cards e Botões de Ação (Marcar / Desmarcar / Pesquisar) */
.ds26-nutri-section-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 14px !important;
}

.ds26-nutri-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 10px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.ds26-nutri-card-title i {
  color: #0284c7 !important;
}

.ds26-nutri-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ds26-nutri-radio-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  margin: 0 !important;
}

.ds26-nutri-radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ds26-nutri-radio-btn.is-mark {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #6ee7b7 !important;
}

.ds26-nutri-radio-btn.is-mark:hover {
  background: #d1fae5 !important;
}

.ds26-nutri-radio-btn.is-unmark {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.ds26-nutri-radio-btn.is-unmark:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.ds26-nutri-radio-btn.is-search {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
}

.ds26-nutri-radio-btn.is-search:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
}

/* 7. Chrome Moderno para Modais de Agendamento / Atendimento (:has(.ds26-atend-modal-wrap)) */
[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-atend-modal-wrap) {
  border-radius: 18px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>h1 {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 60px 12px 20px !important;
  height: auto !important;
  min-height: 52px !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>h1 i {
  color: #0284c7 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: #e0f2fe !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>button {
  top: 12px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  z-index: 10 !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>button:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: scale(1.08) !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-atend-modal-wrap)>div {
  height: calc(100% - 54px) !important;
  padding: 16px 20px 22px 20px !important;
  background: #f8fafc !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

.ds26-atend-modal-wrap .ds26-atend-form-box form.ml_alert_info_soft,
.ds26-atend-modal-wrap .ds26-atend-form-box form.ml_alert_warning_soft {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ==========================================================================
   MÓDULO CONSTANTES PHP (.ds26-const-*) & AUTO-FILTRO ADMIN - CECB 2026
   ========================================================================== */

/* 1. Card Principal Flush (Header + Body sem padding duplicado) */
.ds26-container .ds26-card.ds26-const-card {
  padding: 0 !important;
}

.ds26-container .ds26-card.ds26-const-card>.ds26-card-header h2 {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ds26-container .ds26-card.ds26-const-card>.ds26-card-header h2 i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* 2. Modernização do Auto-Filtro Dinâmico (.ml_filtro_box) dentro de .ds26-container */
.ds26-container .ml_filtro_box {
  width: 100% !important;
  margin-bottom: 14px !important;
  float: left !important;
  clear: both !important;
}

.ds26-container .ml_filtro_box .ml_filtro_box_close {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  float: none !important;
}

.ds26-container .ml_filtro_box .ml_filtro_btn_search,
.ds26-container .ml_filtro_box .ml_filtro_btn_clear {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  float: none !important;
  margin: 0 !important;
  text-shadow: none !important;
}

.ds26-container .ml_filtro_box .ml_filtro_btn_search {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.24) !important;
}

.ds26-container .ml_filtro_box .ml_filtro_btn_search:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.34) !important;
}

.ds26-container .ml_filtro_box .ml_filtro_btn_clear {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

.ds26-container .ml_filtro_box .ml_filtro_btn_clear:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px) !important;
}

.ds26-container .ml_filtro_box .ml_filtro_box_open {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 14px 16px 10px 16px !important;
  margin-bottom: 6px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-container .ml_filtro_box .ml_filtro_box_open::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-container .ml_filtro_box .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.ds26-container .ml_filtro_box input[type="text"],
.ds26-container .ml_filtro_box select {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 6px 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.ds26-container .ml_filtro_box input[type="text"]:focus,
.ds26-container .ml_filtro_box select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  outline: none !important;
}

/* 3. Seção de Formulário e Badges do Módulo Constantes */
.ds26-const-wrap form.j_frm_constantes_php {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 14px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 12px !important;
  box-sizing: border-box !important;
}

.ds26-const-wrap form.j_frm_constantes_php::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-const-wrap form.j_frm_constantes_php::before {
  content: "1. Identificação, Tabela / Valor e Grupo da Constante PHP";
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-const-wrap .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.ds26-const-value-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 3px 9px;
  border-radius: 6px;
  word-break: break-all;
}

.ds26-const-group-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #5b21b6;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ds26-const-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.ds26-const-date i {
  color: #94a3b8;
  font-size: 11.5px;
}

.ds26-const-empty-alert {
  margin: 12px !important;
  justify-content: center !important;
}

/* 4. Chrome Moderno para o Modal Editar Constante (:has(.ds26-const-modal-wrap)) */
[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-const-modal-wrap) {
  border-radius: 18px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-const-modal-wrap)>h1 {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 60px 12px 20px !important;
  height: auto !important;
  min-height: 52px !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-const-modal-wrap)>h1 i {
  color: #0284c7 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: #e0f2fe !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-const-modal-wrap)>button {
  top: 12px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  z-index: 10 !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-const-modal-wrap)>button:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: scale(1.08) !important;
}

[class*="ml_modal_lg"] .ml_modal_lg_container:has(.ds26-const-modal-wrap)>div {
  height: calc(100% - 54px) !important;
  padding: 16px 20px 22px 20px !important;
  background: #f8fafc !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   MÓDULO FORMULÁRIOS DINÂMICOS (.ds26-formmod-* & .ds26-formcampo-*) - CECB 2026
   ========================================================================== */

/* 1. Badge de Data de Alteração (destaque sutil quando houver alteração) */
.ds26-const-date.is-updated {
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.ds26-const-date.is-updated i {
  color: #0284c7;
}

/* 2. Célula de Título, Popover de Descrição e Contagem de Campos na Listagem */
.ds26-formmod-title-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ds26-formmod-info-icon {
  color: #64748b !important;
  cursor: pointer;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.ds26-formmod-info-icon:hover {
  color: #0284c7 !important;
}

.ds26-formmod-fields-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 3. Seção de Cadastro / Edição / Duplicação de Formulário */
.ds26-formmod-wrap form.j_frm_cadastro_formularios {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 14px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 14px !important;
  box-sizing: border-box !important;
}

.ds26-formmod-wrap form.j_frm_cadastro_formularios::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-formmod-wrap form.j_frm_cadastro_formularios::before {
  content: "1. Identificação, Estrutura, Classes e Botões do Formulário";
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-formmod-wrap form.j_frm_duplicar_registros::before {
  content: "1. Novo Título e Identificador do Formulário Duplicado" !important;
}

.ds26-formmod-wrap .ml_frm_label_container>span,
.ds26-formcampo-wrap .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.ds26-formmod-wrap .j_atualizar_name,
.ds26-formcampo-wrap .j_atualizar_name {
  color: #0284c7 !important;
  cursor: pointer !important;
  transition: transform 0.2s ease;
}

.ds26-formmod-wrap .j_atualizar_name:hover,
.ds26-formcampo-wrap .j_atualizar_name:hover {
  color: #0369a1 !important;
  transform: rotate(90deg);
}

/* 4. Construtor de Campos (campos_formulario.php) - Abas Modernas em Pílulas */
.ds26-formcampo-tabs {
  margin-top: 4px !important;
  border: 0 !important;
  background: transparent !important;
}

.ds26-formcampo-tabs>.ml_abas_nav {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin-bottom: 14px !important;
  height: auto !important;
}

.ds26-formcampo-tabs>.ml_abas_nav>ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
}

.ds26-formcampo-tabs>.ml_abas_nav>ul>li {
  float: none !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ds26-formcampo-tabs>.ml_abas_nav>ul>li:hover {
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  background: #f0f9ff !important;
  transform: translateY(-1px);
}

.ds26-formcampo-tabs>.ml_abas_nav>ul>li.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25) !important;
}

.ds26-formcampo-tabs>.ml_abas_nav>ul>li.active i,
.ds26-formcampo-tabs>.ml_abas_nav>ul>li.active span {
  color: #ffffff !important;
}

.ds26-formcampo-tabs>.ml_abas_content {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* 5. Formulário Dinâmico de Campo/Elemento (.j_form_cadastro_campo) */
.ds26-formcampo-wrap form.j_form_cadastro_campo {
  float: left !important;
  clear: both !important;
  width: 100% !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.ds26-formcampo-wrap form.j_form_cadastro_campo::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-formcampo-wrap form.j_form_cadastro_campo .ml_alert_box.ml_alert_info_soft {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%) !important;
  border: 1px solid #bae6fd !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 10px !important;
  color: #0369a1 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 14px !important;
  margin: 0 5px 12px 5px !important;
  width: calc(100% - 10px) !important;
  box-sizing: border-box !important;
}

/* 6. Pré-Visualização dos Campos do Formulário (.ds26-formcampo-preview) */
.ds26-formcampo-preview .preview_campos {
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 11px 14px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds26-formcampo-preview .preview_campos:hover {
  border-color: #bae6fd !important;
  border-left-color: #0284c7 !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08) !important;
}

.ds26-formcampo-preview .preview_campos .preview_campos {
  border-left-color: #10b981 !important;
  background: #f8fafc !important;
  margin-top: 8px !important;
}

.ds26-formcampo-preview .preview_campos select.j_order,
.ds26-formcampo-preview .preview_campos select.j_define_etapa {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  height: 28px !important;
  width: 148px !important;
  padding: 2px 8px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin: -2px 10px 0 0 !important;
  cursor: pointer;
}

.ds26-formcampo-preview .preview_campos select.j_order:focus,
.ds26-formcampo-preview .preview_campos select.j_define_etapa:focus {
  border-color: #0284c7 !important;
  outline: none !important;
}

.ds26-formcampo-card+.ds26-formcampo-card {
  margin-top: 18px !important;
}

/* ==========================================================================
   MÓDULO MÓDULOS & TELAS DO SISTEMA (.ds26-modsis-*) - CECB 2026
   ========================================================================== */

.ds26-modsis-wrap form.j_frm_modulos,
.ds26-modsis-wrap form.j_frm_telas {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 14px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 14px !important;
  box-sizing: border-box !important;
}

.ds26-modsis-wrap form.j_frm_modulos::after,
.ds26-modsis-wrap form.j_frm_telas::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-modsis-wrap form.j_frm_modulos::before,
.ds26-modsis-wrap form.j_frm_telas::before {
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-modsis-wrap form.j_frm_modulos::before {
  content: "1. Identificação, Origem e Estrutura Base do Módulo";
}

.ds26-modsis-wrap form.j_frm_telas::before {
  content: "1. Identificação, Name / URL e Descrição da Tela";
}

.ds26-modsis-wrap .ml_frm_label_container>span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.ds26-modsis-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ds26-modsis-desc-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
}

/* ==========================================================================
   AGENDAR 2026 - ABA CONSULTAS & AGENDAMENTOS DO PACIENTE (.agw26-cons-*)
   ========================================================================== */
.agw26-cons-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #1e40af;
}

.agw26-cons-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agw26-cons-info-icon {
  color: #2563eb;
  font-size: 16px;
}

.agw26-cons-info-pill {
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.agw26-cons-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.agw26-cons-card.is-futuro-ativo {
  background: #f0fdf4;
  border-color: #86efac;
}

.agw26-cons-card.is-atendido {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.agw26-cons-card.is-cancelado {
  background: #ffffff;
  border-color: #fecaca;
}

.agw26-cons-card-main {
  flex: 1;
  padding-right: 15px;
}

.agw26-cons-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.agw26-cons-esp-uni {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
}

.agw26-cons-medico {
  margin: 4px 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.agw26-cons-datahora {
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
}

.agw26-cons-card-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.agw26-cons-tag-futuro {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  margin-left: 6px;
  font-weight: 700 !important;
}

.agw26-cons-tag-atendido {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  margin-left: 6px;
  font-weight: 700 !important;
}

.agw26-cons-tag-canc-futuro {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  margin-left: 6px;
  font-weight: 700 !important;
}

.agw26-cons-tag-tele {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  margin-left: 6px;
}

.agw26-cons-status-cancelado {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
}

.agw26-cons-status-atendido {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
}

.agw26-cons-status-confirmado {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
}

.agw26-cons-status-pendente {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
}

.agw26-cons-btn-desmarcar {
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1px solid #fca5a5 !important;
  color: #dc2626 !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.agw26-cons-btn-desmarcar:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
}

.agw26-cons-canc-box {
  margin-top: 8px;
  font-size: 12.5px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 8px 12px;
}

.agw26-cons-canc-reg {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.agw26-cons-canc-dt {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

/* ==========================================================================
   MÓDULO LISTAR AGENDA & LISTAR COM PROCEDIMENTOS (.ds26-lstag-*) — CECB 2026
   ========================================================================== */

.ds26-lstag-results {
  margin-top: 16px;
}

.ds26-lstag-results:empty {
  margin-top: 0;
}

.ds26-lstag-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ds26-lstag-mode-badge.is-proced {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.ds26-medproc-stat-pill.is-selected {
  background: #dcfce7;
  color: #15803d;
}

.ds26-medproc-stat-pill.is-cons {
  background: #eef2ff;
  color: #4338ca;
}

.ds26-medproc-stat-pill.is-enc {
  background: #fef3c7;
  color: #b45309;
}

.ds26-lstag-prof-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ds26-lstag-prof-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.ds26-lstag-printed-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 1px 8px;
  border-radius: 999px;
}

.ds26-lstag-unit-text,
.ds26-lstag-esp-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
}

.ds26-lstag-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.ds26-lstag-date-chip .ds26-lstag-weekday {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.03em;
}

.ds26-lstag-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.ds26-lstag-count-pill.is-cons {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ds26-lstag-count-pill.is-enc {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ds26-lstag-count-pill.is-zero {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

.ds26-table tbody tr.ds26-lstag-row-selected td {
  background-color: #f0fdf4;
}

.ds26-table tbody tr.ds26-lstag-row-selected:hover td {
  background-color: #dcfce7;
}

.ds26-table tbody tr.ds26-lstag-row-empty td {
  background-color: #f8fafc;
  opacity: 0.68;
}

.ds26-lstag-sel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 136px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}

.ds26-lstag-sel-btn.is-selected {
  background: #10b981;
  border: 1px solid #059669;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.22);
}

.ds26-lstag-sel-btn.is-selected:hover {
  background: #059669;
  border-color: #047857;
  transform: translateY(-1px);
}

.ds26-lstag-sel-btn.is-unselected {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
}

.ds26-lstag-sel-btn.is-unselected:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1 !important;
  transform: translateY(-1px);
}

.ds26-lstag-sel-btn.is-disabled {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.ds26-lstag-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ds26-lstag-actions-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
}

.ds26-lstag-actions-hint i {
  color: #0284c7;
  font-size: 14px;
}

.ds26-lstag-actions-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.ds26-lstag-empty-box {
  padding: 28px 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .ds26-lstag-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ds26-lstag-actions-btns {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   MÓDULO AGENDAR SELEÇÃO & GRADE DE DATAS (.ds26-agsel-*) — CECB 2026
   ========================================================================== */

.ds26-agsel-wrap .ds26-medproc-form-card input[type="text"],
.ds26-agsel-wrap .ds26-medproc-form-card select {
  background-color: #ffffff !important;
}

.ds26-agsel-wrap .ds26-medproc-form-card form.j_frm_agendar_selecao .ml_alert_box:not(.j_ml_label_error) {
  margin-bottom: 6px !important;
}

.ds26-agsel-wrap form.j_frm_agendar_selecao > button[type="submit"],
.ds26-agsel-wrap form.j_frm_agendar_selecao > .ml_btn {
  display: none !important;
}

.ds26-agsel-period-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ds26-agsel-cap-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-agsel-ordem-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-agsel-ordem-pill i {
  color: #0284c7;
  font-size: 11px;
}

.ds26-agsel-print-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ds26-agsel-actions-cell {
  white-space: nowrap !important;
}

.ds26-agsel-orient-alert {
  margin-bottom: 14px !important;
}

/* ==========================================================================
   AGENTE DE IA CONVERSACIONAL — WHATSAPP OFICIAL META (.ds26-waia-* & Chat IA)
   ========================================================================== */

.ds26-waia-brand-icon {
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%) !important;
  color: #ffffff !important;
}

.ds26-waia-feedback-box {
  margin-bottom: 14px;
}

/* Faixa de KPIs */
.ds26-waia-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ds26-waia-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.ds26-waia-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ds26-waia-kpi-icon.is-status {
  background: #e0f2fe;
  color: #0284c7;
}

.ds26-waia-kpi-icon.is-volume {
  background: #d1fae5;
  color: #059669;
}

.ds26-waia-kpi-icon.is-speed {
  background: #eef2ff;
  color: #4f46e5;
}

.ds26-waia-kpi-icon.is-human {
  background: #fef3c7;
  color: #b45309;
}

.ds26-waia-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ds26-waia-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.ds26-waia-kpi-value {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 2px 0;
}

.ds26-waia-kpi-sub {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grid Principal em 2 Colunas (Configuração + Simulador) */
.ds26-waia-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(390px, 0.96fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.ds26-waia-config-col,
.ds26-waia-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ds26-waia-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ds26-waia-master-card {
  border: 1.5px solid #cbd5e1;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.2s ease;
}

.ds26-waia-master-card.is-active {
  border-color: #34d399;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1);
}

.ds26-waia-master-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ds26-waia-section-title {
  margin: 2px 0 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-waia-master-toggle {
  margin-bottom: 10px;
}

.ds26-waia-helper-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

.ds26-waia-helper-note i {
  color: #0284c7;
  margin-right: 4px;
}

/* Campos do Motor IA & API Key */
.ds26-waia-fields-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 12px;
}

.ds26-waia-apikey-group {
  margin-top: 6px;
  margin-bottom: 0;
}

.ds26-waia-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.ds26-waia-label-row .ds26-label {
  margin-bottom: 0;
}

.ds26-waia-key-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.ds26-waia-key-pill.is-saved {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ds26-waia-key-pill.is-empty {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ds26-waia-apikey-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds26-waia-apikey-row .ds26-input {
  flex: 1;
  font-family: Consolas, monospace;
}

.ds26-waia-clear-key-row {
  margin-top: 8px;
}

.ds26-waia-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  margin: 0;
}

/* Lista de Permissões */
.ds26-waia-perm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ds26-waia-perm-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ds26-waia-perm-item:hover {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.ds26-waia-perm-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #0284c7;
  flex-shrink: 0;
  cursor: pointer;
}

.ds26-waia-perm-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.ds26-waia-perm-item span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
  font-weight: 500;
}

.ds26-waia-limits-row {
  padding-top: 4px;
}

.ds26-waia-rules-textarea {
  min-height: 165px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.ds26-waia-guardrail-alert {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 12.5px;
}

/* Simulador ao Vivo (Coluna Direita) */
.ds26-waia-sim-card {
  border-radius: 14px;
  border: 1.5px solid #bae6fd;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.ds26-waia-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border-bottom: 1px solid #bae6fd;
}

.ds26-waia-sim-header h4 {
  margin: 3px 0 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-waia-sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 999px;
}

.ds26-waia-sim-toolbar {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds26-waia-sim-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
}

.ds26-waia-sim-phone-row i {
  color: #0284c7;
  font-size: 15px;
}

.ds26-waia-sim-phone-input {
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  width: 100%;
  font-size: 12px;
  color: #1e293b;
}

.ds26-waia-sim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ds26-waia-sim-messages {
  height: 390px;
  overflow-y: auto;
  padding: 14px;
  background: #efeae2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds26-waia-sim-welcome {
  margin: auto;
  max-width: 320px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
  font-size: 12.5px;
}

.ds26-waia-sim-welcome i {
  font-size: 24px;
  color: #0284c7;
}

.ds26-waia-sim-row {
  display: flex;
  width: 100%;
}

.ds26-waia-sim-row.is-user {
  justify-content: flex-end;
}

.ds26-waia-sim-row.is-ai {
  justify-content: flex-start;
}

.ds26-waia-sim-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  word-break: break-word;
}

.ds26-waia-sim-row.is-user .ds26-waia-sim-bubble {
  background: #d9fdd3;
  border-top-right-radius: 3px;
}

.ds26-waia-sim-row.is-ai .ds26-waia-sim-bubble {
  background: #ffffff;
  border-top-left-radius: 3px;
  border-left: 3px solid #0284c7;
}

.ds26-waia-sim-bubble.is-typing {
  color: #0369a1;
  font-weight: 600;
  font-size: 12.5px;
}

.ds26-waia-sim-bubble.is-error {
  background: #fef2f2 !important;
  border: 1px solid #fca5a5 !important;
  color: #b91c1c !important;
}

.ds26-waia-sim-sender {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 4px;
}

.ds26-waia-sim-row.is-user .ds26-waia-sim-sender {
  color: #15803d;
}

.ds26-waia-sim-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.ds26-waia-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.ds26-waia-sim-interactive-preview {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
}

.ds26-waia-sim-interactive-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.ds26-waia-sim-interactive-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ds26-waia-sim-interactive-btns span {
  flex: 1;
  text-align: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ds26-waia-sim-interactive-btns span:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
}

.ds26-waia-sim-handoff-tag {
  margin-top: 8px;
  padding: 5px 9px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
}

.ds26-waia-sim-meta {
  margin-top: 5px;
  text-align: right;
  font-size: 10.5px;
  color: #64748b;
}

.ds26-waia-sim-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.ds26-waia-sim-composer .ds26-input {
  flex: 1;
}

/* Card de Auditoria Técnica (Últimas Interações) */
.ds26-waia-logs-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.ds26-waia-logs-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.ds26-waia-logs-empty {
  padding: 16px 8px;
  font-size: 12.5px;
}

.ds26-waia-log-item {
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ds26-waia-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: #0f172a;
}

.ds26-waia-log-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ds26-waia-mini-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.ds26-waia-mini-pill.is-sim {
  background: #e0f2fe;
  color: #0369a1;
}

.ds26-waia-mini-pill.is-prod {
  background: #dcfce7;
  color: #15803d;
}

.ds26-waia-mini-pill.is-ok {
  background: #f1f5f9;
  color: #334155;
}

.ds26-waia-mini-pill.is-err {
  background: #fee2e2;
  color: #b91c1c;
}

.ds26-waia-log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

.ds26-waia-log-tools {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #0369a1;
  margin-top: 2px;
}

/* Integração Visual na Central de Mensagens & Chat WhatsApp */
.ds26-wachat-chat-header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-wachat-ia-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds26-wachat-ia-toggle.is-active {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
}

.ds26-wachat-ia-toggle.is-active:hover {
  background: #d1fae5;
}

.ds26-wachat-ia-toggle.is-paused {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #b45309;
}

.ds26-wachat-ia-toggle.is-paused:hover {
  background: #fef3c7;
}

.ds26-wachat-handoff-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
}

.ds26-wachat-conv-item.is-handoff {
  border-left: 3px solid #f59e0b;
  background: #fffdf5;
}

.ds26-wachat-conv-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ds26-wachat-handoff-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.ds26-wachat-paused-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.ds26-wachat-ai-mini {
  font-size: 12px;
}

.ds26-wachat-bubble.is-ai-msg {
  border-right: 3px solid #0284c7;
}

.ds26-wachat-ai-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 800;
  color: #0369a1;
  background: rgba(255, 255, 255, 0.78);
  padding: 1px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}

@media (max-width: 1180px) {
  .ds26-waia-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds26-waia-main-grid {
    grid-template-columns: 1fr;
  }

  .ds26-waia-fields-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ds26-waia-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Banner de Bloqueio/Status Comercial na tela Agente de IA (Equipe CECB) */
.ds26-waia-comercial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .ds26-waia-comercial-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ML - CADASTRO DE CLIENTES MODERNIZADO (DESIGN SYSTEM CECB 2026)
   ========================================================================== */
.ds26-container.ds26-mlcli-wrapper,
.ds26-mlcli-wrapper {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 6px 28px 6px !important;
  display: flow-root !important;
  clear: both !important;
}

.ds26-mlcli-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ds26-mlcli-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds26-mlcli-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24);
  flex-shrink: 0;
}

.ds26-mlcli-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ds26-mlcli-title-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.ds26-mlcli-title-text p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.ds26-mlcli-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-mlcli-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  padding: 0 !important;
  overflow: visible;
}

.ds26-mlcli-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px 14px 0 0;
}

.ds26-mlcli-card-header-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.ds26-mlcli-card-header-title i {
  color: #0284c7;
}

.ds26-mlcli-filter-slot {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 240px;
}

.ds26-mlcli-filter-slot .ml_filtro_box {
  margin: 0 !important;
  width: 100%;
}

.ds26-mlcli-card-body {
  padding: 0;
}

.ds26-mlcli-card-body::after {
  content: "";
  display: table;
  clear: both;
}

/* Tabela de Listagem de Clientes */
.ds26-mlcli-table-wrap {
  margin: 0;
  border-radius: 0 0 14px 14px;
}

.ds26-mlcli-table {
  width: 100%;
  margin: 0 !important;
  border-collapse: collapse;
}

.ds26-mlcli-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left !important;
}

.ds26-mlcli-table tbody td {
  padding: 13px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #1e293b;
  text-align: left !important;
}

.ds26-mlcli-table thead th.ds26-text-center,
.ds26-mlcli-table tbody td.ds26-text-center {
  text-align: center !important;
}

.ds26-mlcli-table tbody tr:hover td {
  background: #f8fafc;
}

.ds26-mlcli-table tfoot td {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 14px 14px;
}

.ds26-mlcli-col-id {
  width: 68px;
}

.ds26-mlcli-col-actions {
  width: 130px;
}

.ds26-mlcli-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
}

.ds26-mlcli-client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds26-mlcli-row-logo-box {
  width: 56px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  flex-shrink: 0;
}

.ds26-mlcli-row-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ds26-mlcli-row-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ds26-mlcli-client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ds26-mlcli-client-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.ds26-mlcli-client-sub {
  font-size: 12px;
  color: #64748b;
}

.ds26-mlcli-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.ds26-mlcli-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 1px 7px;
  border-radius: 6px;
}

.ds26-mlcli-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ds26-mlcli-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}

.ds26-mlcli-contact-line i {
  width: 13px;
  text-align: center;
  color: #64748b;
}

.ds26-mlcli-contact-line.is-muted {
  color: #64748b;
  font-size: 11.5px;
}

.ds26-mlcli-feat-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ds26-mlcli-feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-mlcli-feat-pill.is-ai {
  background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
  border: 1px solid #38bdf8;
  color: #0369a1;
}

.ds26-mlcli-feat-pill.is-meta {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
}

.ds26-mlcli-feat-pill.is-info {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.ds26-mlcli-feat-pill.is-neutral {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.ds26-mlcli-actions-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ds26-mlcli-empty-alert {
  justify-content: center;
  margin: 12px;
}

/* Preview de Logotipos (sem estilos inline) */
.ds26-mlcli-logo-preview {
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ds26-mlcli-logo-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.ds26-mlcli-logo-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds26-mlcli-logo-thumb-link:hover {
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.14);
}

.ds26-mlcli-logo-thumb {
  max-height: 68px;
  max-width: 100%;
  object-fit: contain;
}

.ds26-mlcli-logo-filename {
  font-size: 11.5px;
  color: #047857;
  font-weight: 600;
}

.ds26-mlcli-logo-empty {
  font-size: 12px;
  color: #94a3b8;
}

/* Escopo Modernizado do Formulário Dinâmico (`ml_formularios` -> `ml_cadastro_cliente`) no Cadastro e no Modal */
.ml_modal_lg .ml_modal_lg_container:has(.ds26-mlcli-modal-scope),
.ml_modal .ml_modal_container:has(.ds26-mlcli-modal-scope) {
  width: 96% !important;
  max-width: 1680px !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25) !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-mlcli-modal-scope) > h1,
.ml_modal .ml_modal_container:has(.ds26-mlcli-modal-scope) > h1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 0 18px !important;
  border-bottom: 1px solid #334155 !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-mlcli-modal-scope) > h1 small,
.ml_modal .ml_modal_container:has(.ds26-mlcli-modal-scope) > h1 small {
  color: #7dd3fc !important;
  font-weight: 600 !important;
}

.ds26-mlcli-form-scope {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  padding: 18px 20px 22px;
  background: #ffffff;
}

.ds26-mlcli-modal-scope {
  padding: 12px 14px 18px;
}

.ds26-mlcli-form-scope::after,
.ds26-mlcli-form-scope form::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-mlcli-form-scope label.ml_frm_label_container > span,
.ds26-mlcli-form-scope div.ml_frm_label_container > span {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
}

.ds26-mlcli-form-scope input[type="text"],
.ds26-mlcli-form-scope input[type="password"],
.ds26-mlcli-form-scope input[type="email"],
.ds26-mlcli-form-scope input[type="number"],
.ds26-mlcli-form-scope select,
.ds26-mlcli-form-scope .input_fake {
  height: 38px !important;
  line-height: 22px !important;
  padding: 7px 11px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.ds26-mlcli-form-scope textarea {
  padding: 9px 11px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
}

.ds26-mlcli-form-scope .input_fake {
  background-color: #f8fafc !important;
  color: #64748b !important;
}

.ds26-mlcli-form-scope input[type="text"]:focus,
.ds26-mlcli-form-scope input[type="password"]:focus,
.ds26-mlcli-form-scope input[type="email"]:focus,
.ds26-mlcli-form-scope input[type="number"]:focus,
.ds26-mlcli-form-scope select:focus,
.ds26-mlcli-form-scope textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  outline: none !important;
}

/* Destaque sutil no novo flag comercial `Agente IA:` para fácil localização pela equipe CECB */
.ds26-mlcli-form-scope label.ml_frm_label_container:has(.j_frm_agente_ia) > span {
  color: #0369a1 !important;
}

.ds26-mlcli-form-scope label.ml_frm_label_container:has(.j_frm_agente_ia) select {
  border-color: #38bdf8 !important;
  background-color: #f0f9ff !important;
  font-weight: 700 !important;
  color: #0369a1 !important;
}

/* Títulos de seção gerados por `$form->Section(...)` */
.ds26-mlcli-form-scope form > div[style*="border-bottom"] {
  margin: 18px 0.5% 12px !important;
  padding: 8px 12px !important;
  background: linear-gradient(90deg, #f0f9ff 0%, #f8fafc 100%) !important;
  border-left: 4px solid #0284c7 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Botão principal Cadastrar / Atualizar do formulário dinâmico */
.ds26-mlcli-form-scope button[type="submit"].ml_btn {
  margin-top: 14px !important;
  padding: 10px 24px !important;
  height: auto !important;
  border-radius: 9px !important;
  border: 1px solid #0284c7 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ds26-mlcli-form-scope button[type="submit"].ml_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.34) !important;
}

@media (max-width: 768px) {
  .ds26-mlcli-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds26-mlcli-header-actions {
    width: 100%;
  }
}

/* ==========================================================================
   AGENTE DE IA — MODO VITRINE / SOMENTE LEITURA (TELA TRAVADA) & BARRA CECB
   ========================================================================== */
.ds26-waia-admin-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 12.5px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.ds26-waia-admin-preview-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ds26-waia-admin-preview-info strong {
  color: #ffffff;
}

.ds26-waia-admin-preview-info code {
  background: rgba(255, 255, 255, 0.1);
  color: #7dd3fc;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11.5px;
}

.ds26-waia-admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}

.ds26-waia-admin-preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ds26-waia-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.ds26-waia-mode-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.ds26-waia-mode-pill.is-active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff !important;
}

.ds26-waia-mode-pill.is-unlock {
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7 !important;
}

.ds26-waia-mode-pill.is-unlock.is-active,
.ds26-waia-mode-pill.is-unlock:hover {
  background: #059669;
  border-color: #34d399;
  color: #ffffff !important;
}

/* Hero Banner Comercial (Vitrine quando Agente IA = Não) */
.ds26-waia-vitrine-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.08);
}

.ds26-waia-vitrine-hero-main {
  max-width: 100%;
}

.ds26-waia-vitrine-upsell-cta {
  padding: 14px 18px;
  font-size: 14px;
}

.ds26-waia-vitrine-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ds26-waia-vitrine-hero-main h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-waia-vitrine-hero-main p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.ds26-waia-vitrine-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ds26-waia-cta-btn {
  padding: 11px 20px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.26) !important;
  white-space: nowrap;
}

.ds26-waia-vitrine-hero-cta small {
  font-size: 11.5px;
  color: #475569;
}

/* Escopo Visual Travado */
.ds26-waia-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ds26-waia-locked-scope input[disabled],
.ds26-waia-locked-scope select[disabled],
.ds26-waia-locked-scope textarea[disabled] {
  background-color: #f8fafc !important;
  color: #475569 !important;
  cursor: not-allowed !important;
  opacity: 0.92;
}

.ds26-waia-locked-scope .is-locked {
  cursor: not-allowed !important;
  opacity: 0.92;
}

.ds26-waia-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ds26-waia-cap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.ds26-waia-cap-item > i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ds26-waia-cap-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.ds26-waia-cap-item span {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: #64748b;
}

.ds26-waia-btn-locked {
  width: 100%;
  justify-content: center;
  cursor: not-allowed !important;
  opacity: 0.85 !important;
}

/* Balão de Áudio & Conversa Demonstrativa no Simulador Travado */
.ds26-waia-demo-chat {
  min-height: 390px;
}

.ds26-waia-demo-audio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.ds26-waia-demo-transcript {
  font-size: 12.5px;
  font-style: italic;
  color: #1e293b;
}

.ds26-waia-locked-composer input[disabled],
.ds26-waia-locked-composer button[disabled] {
  cursor: not-allowed !important;
}

.ds26-waia-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds26-waia-benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
}

.ds26-waia-benefit-row i {
  color: #10b981;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .ds26-waia-vitrine-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds26-waia-vitrine-hero-cta {
    align-items: flex-start;
    width: 100%;
  }

  .ds26-waia-cap-grid {
    grid-template-columns: 1fr;
  }
}

/* Atalho Rápido #1 de Ícone do Agente de IA na Barra Superior (painel.php) */
.top_shortcuts_container .nav > li > a.ds26-top-shortcut-ia {
  padding: 11px 6px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-ia .ds26-top-shortcut-ia-chip {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%);
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-ia .ds26-top-shortcut-ia-chip i {
  font-size: 13px !important;
  color: #ffffff !important;
  line-height: 1;
  margin: 0 !important;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-ia:hover .ds26-top-shortcut-ia-chip {
  transform: translateY(-1px) scale(1.07);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.58);
  filter: brightness(1.06);
}

/* Atalho Rápido DS26 (somente ícone) na Barra Superior (painel.php — Total de Agendamentos por Usuário) */
.top_shortcuts_container .nav > li > a.ds26-top-shortcut-link {
  padding: 15px 5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  font-size: 12px !important;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-link > i {
  font-size: 16px;
  margin-right: 4px;
  color: var(--ds-primary, #0284c7);
  transition: transform 0.15s ease, color 0.15s ease;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-link:hover > i {
  color: var(--ds-primary-dark, #0369a1);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .top_shortcuts_container .nav > li > a.ds26-top-shortcut-link {
    padding: 8px 10px !important;
  }
}

/* Atalho Rápido DS26 (somente ícone) na Barra Superior (painel.php — Total de Agendamentos por Usuário) */
.top_shortcuts_container .nav > li > a.ds26-top-shortcut-link {
  padding: 15px 5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  font-size: 12px !important;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-link > i {
  font-size: 16px;
  margin-right: 4px;
  color: var(--ds-primary, #0284c7);
  transition: transform 0.15s ease, color 0.15s ease;
}

.top_shortcuts_container .nav > li > a.ds26-top-shortcut-link:hover > i {
  color: var(--ds-primary-dark, #0369a1);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .top_shortcuts_container .nav > li > a.ds26-top-shortcut-link {
    padding: 8px 10px !important;
  }
}

/* ==========================================================================
   MÓDULO TRANSFERIR AGENDA (.ds26-agtransf-*) — CECB 2026
   ========================================================================== */

.ds26-agtransf-wrap .ds26-medproc-form-card form.j_frm_agendar_selecao_transferir .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 14px 12px !important;
  margin: 0 0 8px 0 !important;
  box-shadow: none !important;
  color: #1e293b !important;
}

.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir > button[type="submit"],
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir > input[type="submit"],
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir > .ml_btn {
  display: none !important;
}

.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_alert_box button[type="submit"],
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_alert_box input[type="submit"],
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_alert_box .ml_btn[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 20px !important;
  margin: 6px 5px 4px 5px !important;
  border-radius: 10px !important;
  border: 1px solid #0284c7 !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_alert_box button[type="submit"]:hover,
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_alert_box input[type="submit"]:hover,
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_alert_box .ml_btn[type="submit"]:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  border-color: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.32) !important;
}

/* Destaque moderno para o checkbox "Horário Livre: Sim" no filtro */
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir .ml_frm_check_radio_box,
.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir label:has(.j_frm_horario_livre) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer;
}

.ds26-agtransf-wrap form.j_frm_agendar_selecao_transferir input.j_frm_horario_livre {
  width: 16px !important;
  height: 16px !important;
  accent-color: #0284c7;
  cursor: pointer;
}

/* Combo "Selecione a Data" na tabela de Transferir Agenda */
.ds26-agtransf-date-select {
  width: 100% !important;
  min-width: 155px;
  height: 34px !important;
  padding: 4px 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

.ds26-agtransf-date-select:hover {
  border-color: #7dd3fc !important;
  background-color: #f8fafc !important;
}

.ds26-agtransf-date-select:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  background-color: #ffffff !important;
}

.ds26-agtransf-date-select.is-chosen {
  background-color: #f0fdf4 !important;
  border-color: #34d399 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
}

/* Células tipográficas da listagem de Transferir Agenda */
.ds26-agtransf-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.ds26-agtransf-phone.is-landline {
  color: #64748b;
}

.ds26-agtransf-oper {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}

.ds26-agtransf-plano {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.ds26-agtransf-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.ds26-agtransf-user-pill i {
  color: #0284c7;
  font-size: 10.5px;
}

.ds26-agtransf-ce-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.ds26-agtransf-ce-badge.is-cons {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.ds26-agtransf-ce-badge.is-enc {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* ==========================================================================
   MÓDULO TOMBAMENTO DE AGENDA (.ds26-agtomb-*) — CECB 2026
   ========================================================================== */

.ds26-agtomb-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Bloqueia estritamente qualquer botão de submit adicional fora do card interno */
.ds26-agtomb-wrap form.j_frm_agenda_tombamento > button[type="submit"],
.ds26-agtomb-wrap form.j_frm_agenda_tombamento > input[type="submit"],
.ds26-agtomb-wrap form.j_frm_agenda_tombamento > .ml_btn {
  display: none !important;
}

.ds26-agtomb-wrap .ds26-medproc-form-card form.j_frm_agenda_tombamento .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px 16px 14px !important;
  margin: 0 !important;
  box-shadow: none !important;
  color: #1e293b !important;
}

/* Seção "Orientações" gerada pelo Formulario::Section() */
.ds26-agtomb-wrap form.j_frm_agenda_tombamento .ml_alert_box > div[style*="border-bottom"] {
  float: left !important;
  width: calc(100% - 10px) !important;
  margin: 14px 5px 10px 5px !important;
  padding: 8px 0 8px 0 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.ds26-agtomb-wrap form.j_frm_agenda_tombamento .ml_alert_box > div[style*="border-bottom"] i.fa {
  color: #f59e0b !important;
  margin-right: 4px;
}

/* Campo fake "ATENÇÃO" (Orientações) */
.ds26-agtomb-wrap form.j_frm_agenda_tombamento label:has(.j_frm_orientacoes) > span {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #b45309 !important;
  margin-bottom: 6px !important;
}

.ds26-agtomb-wrap form.j_frm_agenda_tombamento .input_fake_textarea.j_frm_orientacoes {
  cursor: default !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%) !important;
  border: 1px solid #fde68a !important;
  border-left: 4px solid #f59e0b !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.ds26-agtomb-rules {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
}

.ds26-agtomb-rules-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: decimal;
}

.ds26-agtomb-rules-list li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.ds26-agtomb-rules-list li:last-child {
  margin-bottom: 0;
}

.ds26-agtomb-rules-list li::marker {
  font-weight: 800;
  color: #d97706;
}

.ds26-agtomb-rules-list strong {
  font-weight: 700;
  color: #0f172a;
}

/* Botão único de ação "TOMBAR..." dentro do card */
.ds26-agtomb-wrap form.j_frm_agenda_tombamento .ml_alert_box button[type="submit"],
.ds26-agtomb-wrap form.j_frm_agenda_tombamento .ml_alert_box input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 40px !important;
  padding: 0 22px !important;
  margin: 10px 5px 4px 5px !important;
  border-radius: 10px !important;
  border: 1px solid #e11d48 !important;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.24) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.ds26-agtomb-wrap form.j_frm_agenda_tombamento .ml_alert_box button[type="submit"]:hover,
.ds26-agtomb-wrap form.j_frm_agenda_tombamento .ml_alert_box input[type="submit"]:hover {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%) !important;
  border-color: #be123c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.32) !important;
}

/* ==========================================================================
   PROTEÇÃO UNIVERSAL ANTI-BOTÃO SUBMIT DUPLICADO & MÓDULOS INFERIORES DE AGENDA
   (Gerar Agenda, Log de Geração, Confirmação, Evolution API e Confirmação WhatsApp)
   ========================================================================== */

/* Regra global: sempre que um <form> já possui botão submit interno (em .ml_alert_box),
   suprime qualquer botão submit dinâmico externo adicionado por Formulario::GeraCampoForm */
.ds26-oper-page form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-oper-page form:has(.ml_alert_box input[type="submit"]) > button[type="submit"],
.ds26-medproc-form-card form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-medproc-form-card form:has(.ml_alert_box input[type="submit"]) > button[type="submit"],
.ds26-atend-modal-wrap form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-atend-modal-wrap form:has(.ml_alert_box input[type="submit"]) > button[type="submit"] {
  display: none !important;
}

/* Badge neutro reutilizável */
.ds26-badge-neutral {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.ds26-text-muted {
  color: #94a3b8;
  font-weight: 500;
}

/* Botões auxiliares dentro dos formulários de Gerar Agenda / WhatsApp (ex: Ver Log, Ativar, Fila, Desconectar) */
.ds26-gerag-wrap form .ml_alert_box .j_gera_agenda_ver_log:not(.ml_hide),
.ds26-gerag-wrap form .ml_alert_box .j_whatsapp_ver_log:not(.ml_hide),
.ds26-gerag-wrap form .ml_alert_box .j_whatsapp_ver_fila:not(.ml_hide) {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

.ds26-gerag-wrap form .ml_alert_box .j_gera_agenda_ver_log:not(.ml_hide):hover,
.ds26-gerag-wrap form .ml_alert_box .j_whatsapp_ver_log:not(.ml_hide):hover,
.ds26-gerag-wrap form .ml_alert_box .j_whatsapp_ver_fila:not(.ml_hide):hover {
  background: #f8fafc !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

.ds26-gerag-wrap form .ml_alert_box .j_whatsapp_ativar:not(.ml_hide) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.24) !important;
}

.ds26-gerag-wrap form .ml_alert_box .j_whatsapp_desconectar:not(.ml_hide) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.22) !important;
}

/* Tabelas e Pílulas de Gerar Agenda / Log / Confirmação */
.ds26-container.ds26-atend-modal-wrap,
.ml_modal_lg .ds26-container,
.ml_modal_lg_80 .ds26-container,
.ml_modal_md .ds26-container,
.j_app_modal .ds26-container {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
  padding: 8px 12px 14px 12px !important;
  box-sizing: border-box !important;
}

.ds26-medproc-kpi-group,
.ds26-medproc-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-medproc-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-medproc-quick-search-wrap,
.ds26-medproc-search-wrap {
  position: relative;
  width: 360px;
  max-width: 100%;
  flex: 0 1 360px;
}

.ds26-medproc-quick-search-wrap > i.fa-search,
.ds26-medproc-search-wrap > i.fa-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13.5px;
  pointer-events: none;
  z-index: 2;
}

.ds26-medproc-quick-search-wrap input.j_ds26_gerag_quick_filter,
.ds26-medproc-search-wrap input.j_ds26_gerag_quick_filter {
  width: 100% !important;
  height: 38px !important;
  padding: 6px 14px 6px 36px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds26-medproc-quick-search-wrap input.j_ds26_gerag_quick_filter:focus,
.ds26-medproc-search-wrap input.j_ds26_gerag_quick_filter:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
}

/* Garante cabeçalho moderno DS26 mesmo quando .ml_table coexiste na tabela para paginação legada */
.ds26-medproc-list-card table.ds26-table.ml_table thead tr:not(.ds26-gerag-thead-group) th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 11px 12px !important;
  text-shadow: none !important;
}

.ds26-medproc-list-card table.ds26-table.ml_table tbody td {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
}

.ds26-gerag-list-card {
  margin-top: 14px;
}

.ds26-gerag-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.ds26-gerag-med-name {
  font-weight: 700;
  color: #0f172a;
}

.ds26-gerag-date-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.ds26-gerag-date-pill.is-generated {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.ds26-gerag-datetime {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.ds26-gerag-obs-text {
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
}

.ds26-gerag-log-table thead tr.ds26-gerag-thead-group th {
  background: #eff6ff !important;
  color: #0369a1 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid #bae6fd !important;
  padding: 8px 10px !important;
}

/* Barra de Ações em Lote (Marcar Todos / Desmarcar Todos / Gerar ou Iniciar Envio) */
.ds26-gerag-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  margin-top: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.ds26-gerag-bulk-hint {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ds26-gerag-bulk-hint i {
  color: #0284c7;
  font-size: 14px;
}

.ds26-gerag-bulk-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-gerag-bulk-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  margin: 0 !important;
  border-radius: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
}

.ds26-gerag-bulk-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ds26-gerag-bulk-btn.is-mark {
  background: #ffffff;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.ds26-gerag-bulk-btn.is-mark:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.ds26-gerag-bulk-btn.is-unmark {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ds26-gerag-bulk-btn.is-unmark:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.ds26-gerag-bulk-btn.is-generate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: 1px solid #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.26);
}

.ds26-gerag-bulk-btn.is-generate:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.34);
}

/* Modais de Confirmação de Agendamento & WhatsApp */
.ds26-agconf-modal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 12px;
}

.ds26-agconf-modal-banner-main h5,
.ds26-agconf-summary-prof h5 {
  margin: 0 0 4px 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.ds26-agconf-modal-banner-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-agconf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.ds26-agconf-summary-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0284c7;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.ds26-agconf-summary-col.is-patient {
  border-top-color: #10b981;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.ds26-agconf-summary-badge-row {
  margin-bottom: 8px;
}

.ds26-agconf-pac-item {
  font-size: 13px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds26-agconf-pac-item i {
  width: 16px;
  text-align: center;
  color: #10b981;
}

.ds26-agconf-filter-card,
.ds26-agconf-cad-form-card {
  margin-bottom: 14px;
}

/* Botões de Ação e Status do ZapBot (sem inline styles) */
.ds26-zb-actions-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.ds26-zb-action-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 2px;
}

.ds26-zb-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.ds26-zb-action-btn.is-purple {
  background: #f3e8ff;
  color: #7e22ce !important;
  border: 1px solid #d8b4fe;
  cursor: pointer;
}

.ds26-zb-action-btn.is-purple:hover {
  background: #7e22ce;
  color: #ffffff !important;
}

.ds26-zb-action-btn.is-sky {
  background: #e0f2fe;
  color: #0284c7 !important;
  border: 1px solid #bae6fd;
  cursor: pointer;
}

.ds26-zb-action-btn.is-sky:hover {
  background: #0284c7;
  color: #ffffff !important;
}

.ds26-zb-action-btn.is-status-ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  cursor: default;
}

.ds26-zb-action-btn.is-status-pending {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  cursor: default;
}

.ds26-zb-action-btn.is-sel-on {
  background: #10b981;
  color: #ffffff !important;
  border: 1px solid #059669;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
  cursor: pointer;
}

.ds26-zb-action-btn.is-sel-on:hover {
  background: #059669;
}

.ds26-zb-action-btn.is-sel-off {
  background: #ffffff;
  color: #64748b !important;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.ds26-zb-action-btn.is-sel-off:hover {
  background: #f0fdf4;
  border-color: #10b981;
  color: #10b981 !important;
}

.ds26-zb-action-btn.is-sel-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
}

.ds26-zap-conn-alert {
  margin-top: 12px;
}

.ds26-zb-dias-output:empty {
  display: none;
}

.ds26-zb-dias-output {
  margin-top: 14px;
  padding: 16px 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 5px solid #10b981;
  border-radius: 12px;
  color: #065f46;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.ds26-zb-dias-output p {
  margin: 0 0 6px 0;
}

.ds26-zb-dias-output p:last-child {
  margin-bottom: 0;
  font-weight: 800;
}

/* Conectar WhatsApp — Evolution API (qrcode.php) */
.ds26-evo-wa-icon {
  color: #25D366 !important;
}

.ds26-evo-wrap {
  max-width: 980px;
}

.ds26-evo-guide-banner {
  margin-bottom: 18px;
  align-items: flex-start;
}

.ds26-evo-guide-title {
  font-size: 15px;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 6px;
}

.ds26-evo-guide-text {
  margin: 0 0 8px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1e293b;
}

.ds26-evo-guide-highlight {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #0284c7;
  line-height: 1.55;
}

.ds26-evo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ds26-evo-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ds26-evo-card-body {
  padding: 26px 24px;
  text-align: center;
}

.ds26-evo-feedback {
  margin-bottom: 18px;
  text-align: left;
}

.ds26-evo-status-box {
  text-align: left;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ds26-evo-status-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.ds26-evo-status-desc {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  line-height: 1.6;
}

.ds26-evo-actions-left {
  margin-top: 14px;
}

.ds26-evo-disconnect-form {
  margin: 0;
  display: inline-block;
}

.ds26-evo-qr-instructions {
  font-size: 15.5px;
  color: #1e293b;
  margin: 0 auto 22px auto;
  max-width: 720px;
  line-height: 1.7;
  font-weight: 500;
}

.ds26-evo-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.ds26-evo-qr-frame {
  background: #ffffff;
  display: inline-block;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
}

.ds26-evo-qr-img {
  width: 260px;
  height: 260px;
  display: block;
}

.ds26-evo-qr-actions {
  margin-top: 4px;
}

.ds26-evo-devlog {
  margin-top: 24px;
  text-align: left;
  background: #0f172a;
  color: #f8fafc;
  padding: 18px 20px;
  border-radius: 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid #334155;
}

.ds26-evo-devlog-head {
  font-weight: 700;
  color: #38bdf8;
  font-size: 13.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-evo-devlog-path {
  font-size: 11px;
  background: #1e293b;
  padding: 2px 8px;
  border-radius: 6px;
  color: #94a3b8;
  font-weight: 500;
}

.ds26-evo-devlog-body {
  max-height: 300px;
  overflow-y: auto;
  background: #020617;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

.ds26-evo-devlog-line {
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 6px;
  border-bottom: 1px dashed #1e293b;
  padding-bottom: 4px;
  color: #e2e8f0;
}

/* ==========================================================================
   MÓDULO ATENDIMENTO DIÁRIO (ATENDER, LISTAR, EDIÇÃO/CORREÇÃO & MODAIS) - DS26
   ========================================================================== */
.ds26-atdiario-wrap form.j_frm_atendimento_diario_selecao .ml_alert_box,
.ds26-atend-modal-wrap form.j_frm_justificativa .ml_alert_box,
.ds26-atend-modal-wrap form.j_frm_alterar_medico .ml_alert_box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 16px 18px 12px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 4px !important;
}

.ds26-atdiario-wrap form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-atdiario-wrap form:has(.ml_alert_box input[type="submit"]) > button[type="submit"] {
  display: none !important;
}

.ds26-atdiario-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-atdiario-guia-code {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.ds26-atdiario-pac-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds26-atdiario-pac-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
}

.ds26-atdiario-oper-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.ds26-atdiario-oper-pill.is-particular {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

/* Totalizador Particular em Edição/Correção (sem inline styles) */
.ds26-atdiario-totpart-box {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.ds26-atdiario-totpart-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 280px;
  text-align: right;
}

.ds26-atdiario-totpart-proc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.ds26-atdiario-totpart-pay {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #dc2626;
}

/* Modal Atestado (Resumo Triagem + Split 2 Colunas) */
.ds26-atdiario-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #047857;
  margin: 0;
}

.ds26-atdiario-tria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ds26-atdiario-tria-grid.is-two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds26-atdiario-tria-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0284c7;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}

.ds26-atdiario-tria-card.is-oper {
  border-top-color: #6366f1;
}

.ds26-atdiario-tria-card.is-tria {
  border-top-color: #10b981;
}

.ds26-atdiario-tria-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f1f5f9;
}

.ds26-atdiario-tria-card-head i {
  color: #0284c7;
}

.ds26-atdiario-tria-card.is-oper .ds26-atdiario-tria-card-head i {
  color: #6366f1;
}

.ds26-atdiario-tria-card.is-tria .ds26-atdiario-tria-card-head i {
  color: #10b981;
}

.ds26-atdiario-atest-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ds26-atdiario-atest-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  min-width: 0;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-atdiario-atest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.ds26-atdiario-atest-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.ds26-atdiario-atest-title i {
  color: #059669;
}

.ds26-atdiario-atest-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
}

.ds26-atdiario-atest-date-input {
  width: 86px !important;
  border: 0 !important;
  background: transparent !important;
  color: #dc2626 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 0 !important;
  height: auto !important;
  box-shadow: none !important;
  text-align: center;
}

@media (max-width: 1024px) {
  .ds26-atdiario-tria-grid,
  .ds26-atdiario-tria-grid.is-two-cols,
  .ds26-atdiario-atest-split {
    grid-template-columns: 1fr;
  }
}

/* Harmonização de tabelas legadas renderizadas dentro dos modais DS26 */
.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_listagem table.ml_table,
.ds26-atdiario-atest-col table.ml_table {
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_listagem table.ml_table thead th,
.ds26-atdiario-atest-col table.ml_table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-shadow: none !important;
}

.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody td,
.ds26-atdiario-atest-col table.ml_table tbody td {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  color: #1e293b !important;
  padding: 9px 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.ds26-atend-modal-wrap .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:hover td,
.ds26-atdiario-atest-col table.ml_table tbody tr:hover td {
  background-color: #f0f9ff !important;
}

/* ==========================================================================
   MÓDULO ATENDIMENTO -> EXAMES (ORÇAMENTO/FECHAMENTO, CONSULTA VALORES,
   APROVAR DESCONTOS & MODAIS) - CECB DESIGN SYSTEM 2026
   ========================================================================== */

/* 1. Abas de página (Paciente / Orçamento(s)) em atendimento_exames/listagem */
.ds26-exames-wrap .ds26-atend-tabs-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-exames-wrap .ds26-atend-tabs-nav {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 5px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-exames-wrap .ds26-atend-tabs-nav > ul {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.ds26-exames-wrap .ds26-atend-tabs-nav > ul > li {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 20px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #475569 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.ds26-exames-wrap .ds26-atend-tabs-nav > ul > li.ml_hide:not([style*="display: list-item"]):not([style*="display: inline"]):not([style*="display: block"]):not([style*="display: flex"]),
.ds26-exames-wrap .ds26-atend-tabs-nav > ul > li[style*="display: none"],
.ds26-exames-wrap .ds26-atend-tabs-nav > ul > li[style*="display:none"] {
  display: none !important;
}

.ds26-exames-wrap .ds26-atend-tabs-nav > ul > li:hover {
  background: #ffffff !important;
  color: #0284c7 !important;
}

.ds26-exames-wrap .ds26-atend-tabs-nav > ul > li.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
}

.ds26-exames-wrap .ds26-atend-tabs-content {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-exames-wrap .ds26-atend-tab-pane {
  padding: 2px 0 6px !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-exames-wrap .ds26-atend-tabs-content > .ds26-atend-tab-pane:not(.active):not([style*="display: block"]):not([style*="display:block"]),
.ds26-atend-modal-wrap .ds26-atend-tabs-content > .ds26-atend-tab-pane:not(.active):not([style*="display: block"]):not([style*="display:block"]) {
  display: none;
}

/* Garante exibição de .j_abas quando liberado via HtmlExibe (.show()) */
.ds26-atend-modal-wrap .j_abas[style*="display: block"],
.ds26-atend-modal-wrap .j_abas[style*="display:block"] {
  display: block !important;
}

/* 2. Estilização de formulários e prevenção de botão submit duplicado */
.ds26-exames-wrap form .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 16px 18px 12px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 6px !important;
  color: #1e293b !important;
}

.ds26-exames-wrap form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-exames-wrap form:has(.ml_alert_box input[type="submit"]) > button[type="submit"],
.ds26-atend-modal-wrap form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-atend-modal-wrap form:has(.ml_alert_box input[type="submit"]) > button[type="submit"] {
  display: none !important;
}

/* 3. Badges de Situação e Valores Financeiros em Exames */
.ds26-exames-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.ds26-exames-sit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.ds26-exames-sit-pill.is-orcamento {
  background: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.ds26-exames-sit-pill.is-pendente {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.ds26-exames-sit-pill.is-aprovado {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.ds26-exames-sit-pill.is-fechado {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.ds26-exames-val-proc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.ds26-exames-val-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}

.ds26-exames-val-total {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0369a1;
  white-space: nowrap;
}

/* 4. Barra de Ações em Lote na Emissão de Guias de Exames */
.ds26-exames-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  width: 100%;
  box-sizing: border-box;
}

.ds26-exames-bulk-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  margin: 0 !important;
  user-select: none;
}

.ds26-exames-bulk-btn input[type="radio"] {
  display: none !important;
}

.ds26-exames-bulk-btn.is-mark {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.ds26-exames-bulk-btn.is-mark:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

.ds26-exames-bulk-btn.is-unmark {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.ds26-exames-bulk-btn.is-unmark:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.ds26-exames-bulk-btn.is-generate {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25) !important;
}

.ds26-exames-bulk-btn.is-generate:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.32) !important;
}

/* Blindagem global contra sobreposição de elementos float legados em cards DS26 */
.ds26-medproc-form-card,
.ds26-medproc-list-card,
.ds26-lstag-results,
.ds26-atend-ctx-card,
.ds26-atdiario-tria-grid,
.ds26-atdiario-atest-split {
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-medproc-form-card::after,
.ds26-medproc-list-card::after,
.ds26-lstag-results::after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   MÓDULO ATENDIMENTO -> ENFERMAGEM (PRÉ-CONSULTA / TRIAGEM) - DS 2026
   ========================================================================== */

.ds26-triagem-wrap form .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 16px 18px 12px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.ds26-triagem-wrap form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-triagem-wrap form:has(.ml_alert_box input[type="submit"]) > button[type="submit"] {
  display: none !important;
}

.ds26-triagem-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-triagem-time-pill.is-primary {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.ds26-triagem-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-triagem-type-pill.is-consulta {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ds26-triagem-type-pill.is-retorno {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.ds26-triagem-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-triagem-status-pill.is-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ds26-triagem-status-pill.is-done {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ds26-triagem-modal label.inativo {
  color: #94a3b8 !important;
  opacity: 0.7;
  cursor: not-allowed;
}

.ds26-triagem-modal label.ativo {
  color: #dc2626 !important;
  font-weight: 700 !important;
  cursor: pointer;
}

/* ==========================================================================
   MÓDULO PAINEL -> TOTAL DE AGENDAMENTOS / ATENDIMENTOS POR USUÁRIO - DS 2026
   ========================================================================== */

.ds26-painel-usu-wrap form .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  background-image: none !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 16px 18px 12px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 4px !important;
  color: #1e293b !important;
}

.ds26-painel-usu-wrap form:has(.ml_alert_box button[type="submit"]) > button[type="submit"],
.ds26-painel-usu-wrap form:has(.ml_alert_box input[type="submit"]) > button[type="submit"] {
  display: none !important;
}

.ds26-painel-usu-wrap .ml_frm_label_container span i.fa-question-circle {
  color: #0284c7 !important;
  margin-left: 3px;
  cursor: help;
}

/* Barra de Atalhos Rápidos de Período e Origem */
.ds26-painel-usu-quickbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 9px 14px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ds26-painel-usu-quickgroup {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ds26-painel-usu-quicklabel {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 2px;
}

.ds26-painel-usu-quicklabel i {
  color: #0284c7;
}

.ds26-painel-usu-chip {
  appearance: none;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds26-painel-usu-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.ds26-painel-usu-chip.is-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
}

.ds26-painel-usu-reset-btn {
  appearance: none;
  background: #ffffff;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  padding: 4px 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-left: 2px;
  transition: all 0.15s ease;
}

.ds26-painel-usu-reset-btn:hover {
  background: #fef2f2;
  color: #dc2626;
  border-style: solid;
  border-color: #fecaca;
}

/* Grid de Cards KPI */
.ds26-painel-usu-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0 16px 0;
  width: 100%;
  box-sizing: border-box;
}

.ds26-painel-usu-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

.ds26-painel-usu-kpi-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.ds26-painel-usu-kpi-icon.is-primary {
  background: #e0f2fe;
  color: #0284c7;
}

.ds26-painel-usu-kpi-icon.is-indigo {
  background: #e0e7ff;
  color: #4f46e5;
}

.ds26-painel-usu-kpi-icon.is-success {
  background: #dcfce7;
  color: #059669;
}

.ds26-painel-usu-kpi-icon.is-amber {
  background: #fef3c7;
  color: #d97706;
}

.ds26-painel-usu-kpi-body {
  min-width: 0;
  flex: 1;
}

.ds26-painel-usu-kpi-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ds26-painel-usu-kpi-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.ds26-painel-usu-kpi-split {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 1.3;
}

.ds26-painel-usu-split-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #334155;
}

.ds26-painel-usu-split-item b {
  font-weight: 800;
  color: #0f172a;
}

.ds26-painel-usu-split-item.is-equipe i {
  color: #059669;
}

.ds26-painel-usu-split-item.is-web i {
  color: #0284c7;
}

.ds26-painel-usu-split-sep {
  color: #cbd5e1;
  font-weight: 700;
}

.ds26-painel-usu-kpi-leader {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-painel-usu-kpi-subleader {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds26-painel-usu-kpi-subleader i {
  color: #059669;
  margin-right: 2px;
}

.ds26-painel-usu-kpi-subleader b {
  color: #0f172a;
  font-weight: 700;
}

.ds26-painel-usu-kpi-pct {
  font-size: 12px;
  color: #059669;
  font-weight: 700;
  margin-left: 4px;
}

.ds26-painel-usu-kpi-muted {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

/* Toolbar e Tabela de Produtividade */
.ds26-painel-usu-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ds26-painel-usu-search-box {
  width: 250px !important;
  min-width: 200px !important;
  flex: 0 1 250px !important;
}

.ds26-painel-usu-search-box .ds26-medproc-search-input {
  height: 33px !important;
  font-size: 12.5px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

.ds26-painel-usu-gen-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 5px 11px;
  border-radius: 999px;
}

.ds26-painel-usu-gen-pill i {
  color: #0284c7;
}

.ds26-painel-usu-web-badge {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds26-painel-usu-wrap .ds26-table th.ds26-painel-usu-th-left,
.ds26-painel-usu-wrap .ds26-table td.ds26-painel-usu-td-left {
  text-align: left !important;
}

.ds26-painel-usu-wrap .ds26-table th.ds26-painel-usu-th-right,
.ds26-painel-usu-wrap .ds26-table td.ds26-painel-usu-td-right {
  text-align: right !important;
}

.ds26-painel-usu-col-user {
  width: 40%;
}

.ds26-painel-usu-col-qty {
  width: 18%;
}

.ds26-painel-usu-col-total {
  width: 18%;
}

.ds26-painel-usu-col-share {
  width: 24%;
}

.ds26-painel-usu-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds26-painel-usu-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bae6fd;
}

.ds26-painel-usu-avatar.is-top1 {
  background: #fef3c7;
  color: #b45306;
  border-color: #fde68a;
}

.ds26-painel-usu-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
}

.ds26-painel-usu-rank-badge {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds26-painel-usu-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #0369a1;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
}

.ds26-painel-usu-total-ref {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
}

.ds26-painel-usu-share-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ds26-painel-usu-share-pct {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
  min-width: 54px;
  text-align: right;
}

progress.ds26-painel-usu-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background-color: #e2e8f0;
  overflow: hidden;
  vertical-align: middle;
}

progress.ds26-painel-usu-progress::-webkit-progress-bar {
  background-color: #e2e8f0;
  border-radius: 999px;
}

progress.ds26-painel-usu-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: 999px;
}

progress.ds26-painel-usu-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
  border-radius: 999px;
}

progress.ds26-painel-usu-progress.is-total {
  background-color: #dcfce7;
}

progress.ds26-painel-usu-progress.is-total::-webkit-progress-bar {
  background-color: #dcfce7;
}

progress.ds26-painel-usu-progress.is-total::-webkit-progress-value {
  background: #10b981;
}

progress.ds26-painel-usu-progress.is-total::-moz-progress-bar {
  background: #10b981;
}

.ds26-painel-usu-tfoot-summary td {
  background: #f8fafc !important;
  border-top: 2px solid #cbd5e1 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 11px 16px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
}

.ds26-painel-usu-tfoot-label {
  color: #0f172a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ds26-painel-usu-tfoot-qty {
  color: #0284c7;
  font-size: 13.5px;
  font-weight: 800;
}

.ds26-painel-usu-tfoot-share {
  color: #059669;
  font-size: 12.5px;
  font-weight: 800;
}

.ds26-painel-usu-empty {
  margin: 14px;
  justify-content: center;
}

/* ==========================================================================
   MÓDULO CADASTROS -> PREPARO DE EXAMES E PROCEDIMENTOS (DS 2026)
   ========================================================================== */

.ds26-prep-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.48;
  color: #64748b;
  max-width: 680px;
}

.ds26-prep-excerpt.is-empty {
  font-style: italic;
  color: #94a3b8;
}

.ds26-prep-proc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.ds26-prep-proc-pill:hover {
  background: #bae6fd;
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.ds26-prep-proc-pill.is-zero {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.ds26-prep-proc-pill.is-zero:hover {
  background: #e2e8f0;
  color: #334155;
}

.ds26-prep-empty-alert {
  margin: 14px;
  justify-content: center;
}

.ds26-prep-modal-list-wrap {
  margin-top: 12px;
}

.ds26-lab-subnote {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #64748b;
}

.ds26-lab-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}

.ds26-lab-phone i {
  color: #0284c7;
}

.ds26-lab-address {
  font-size: 12.5px;
  line-height: 1.45;
  color: #475569;
}

.ds26-lab-muted {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   MÓDULO ATENDIMENTO -> AUTOMÁTICO - TELE -> GERAR (.ds26-atauto-gerar-wrap)
   ========================================================================== */

.ds26-atauto-gerar-wrap form.j_frm_atendimento_automatico .ml_alert_box:not(.j_ml_label_error) {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 16px 18px 12px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 4px !important;
}

.ds26-atauto-gerar-wrap .j_html_lista > .ml_painel_container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 16px 18px 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-top: 4px !important;
  background: #ffffff !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table thead tr,
.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table thead td,
.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table thead th {
  background: #f8fafc !important;
  background-image: none !important;
  color: #475569 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table tbody td {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table tbody tr:hover td {
  background: #f8fafc !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem table.ml_table tbody td .ml_alert_info_soft {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 10px !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 14px 18px !important;
  margin: 6px 0 !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem .ml_btn_group {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ds26-atauto-footer-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 14px 14px;
}

.ds26-atauto-footer-bar .ds26-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  border-radius: 10px !important;
  height: 38px !important;
  padding: 0 18px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.24) !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

.ds26-atauto-footer-bar .ds26-btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.34) !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem .ml_btn_group label.ml_btn_warning {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.24) !important;
  transition: all 0.16s ease !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem .ml_btn_group label.ml_btn_warning:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.34) !important;
}

.ds26-atauto-gerar-wrap .j_boxgeral_atendimento_automatico_listagem .ml_btn_group label.ml_btn_warning input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

.ds26-atauto-sync-alert {
  margin: 14px 16px 2px !important;
}

/* ==========================================================================
   MÓDULO GRUPOS MENU (.ds26-gpmenu-*) - CECB 2026
   ========================================================================== */
.ds26-gpmenu-wrap form.j_frm_grupos_menu {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 14px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 14px !important;
  box-sizing: border-box !important;
}

.ds26-gpmenu-wrap form.j_frm_grupos_menu::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-gpmenu-wrap form.j_frm_grupos_menu::before {
  content: "1. Identificação Visual, Name (Ordenação) e Descrição do Grupo";
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-gpmenu-wrap textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  min-height: 96px !important;
  resize: vertical !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.15s ease !important;
}

.ds26-gpmenu-wrap textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14) !important;
  outline: none !important;
}

.ds26-gpmenu-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.ds26-gpmenu-title-badge i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   MÓDULO MENU ADMIN LATERAL & SUBMENUS (.ds26-admenu-*) - CECB 2026
   ========================================================================== */
.ds26-admenu-wrap form.j_frm_menu_admin_lateral,
.ds26-admenu-wrap form.j_frm_submenu_admin_lateral {
  position: relative;
  float: left !important;
  clear: both !important;
  width: calc(100% - 10px) !important;
  margin: 8px 5px 14px 5px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 38px 14px 14px !important;
  box-sizing: border-box !important;
}

.ds26-admenu-wrap form.j_frm_menu_admin_lateral::after,
.ds26-admenu-wrap form.j_frm_submenu_admin_lateral::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-admenu-wrap form.j_frm_menu_admin_lateral::before {
  content: "1. Identificação do Menu, Módulo, Grupo Lateral, Link e Ordem";
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-admenu-wrap form.j_frm_submenu_admin_lateral::before {
  content: "1. Identificação do Submenu, View / Arquivo e Posição";
  position: absolute;
  top: 11px;
  left: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
}

.ds26-admenu-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.ds26-admenu-sub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1 !important;
  border: 1px solid #bae6fd;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.ds26-admenu-sub-link:hover {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE & TABLET — MÓDULO AGENDAR SELEÇÃO (.ds26-agsel-*)
   Escopo: exe=agendar_selecao/listagem e modais (.ds26-agsel-modal) — CECB 2026
   ========================================================================== */

/* 1. Cabeçalho da Página Flexível (Desktop, Tablet e Celular) */
.ml_page_header.ds26-agsel-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  height: auto !important;
  min-height: 54px !important;
  padding: 8px 0 10px !important;
  box-sizing: border-box !important;
}

.ml_page_header.ds26-agsel-page-header::before,
.ml_page_header.ds26-agsel-page-header::after {
  display: none !important;
}

.ml_page_header.ds26-agsel-page-header .ml_page_header_left,
.ml_page_header.ds26-agsel-page-header .ml_page_header_right {
  width: auto !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
}

.ml_page_header.ds26-agsel-page-header .ml_page_header_left h3 {
  margin: 0 !important;
}

/* Corrige altura fixa legada de labels em telas <= 1390px (masterLib_2_0.css) */
.ds26-agsel-wrap .ml_frm_label_container > span,
.ds26-agsel-modal .ml_frm_label_container > span {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.35 !important;
  margin-bottom: 5px !important;
  display: block !important;
  white-space: normal !important;
}

.ds26-agsel-wrap .ds26-table-responsive,
.ds26-agsel-modal .ds26-table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* 2. Tablet & Telas Médias (<= 1024px) */
@media (max-width: 1024px) {
  .ds26-agsel-wrap .ds26-medproc-form-card {
    padding: 14px 14px 10px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-form-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-form-title {
    flex-wrap: wrap !important;
    line-height: 1.35 !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-search-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  /* Modais confortáveis no Tablet (inclusive 50/55/60%) */
  .ml_modal_lg .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_50 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_55 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_60 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_100 .ml_modal_lg_container:has(.ds26-agsel-modal) {
    width: 95% !important;
    max-width: 95% !important;
    margin: 2vh 2.5% !important;
    height: 95vh !important;
  }
}

/* Grade de Filtro em 2 colunas confortáveis no Tablet (768px a 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .ds26-agsel-wrap form.j_frm_agendar_selecao .ml_alert_box:not(.j_ml_label_error) .ml_frm_label_container {
    width: calc(50% - 10px) !important;
    margin: 5px !important;
    clear: none !important;
  }

  .ds26-agsel-wrap form.j_frm_agendar_selecao .ml_alert_box:not(.j_ml_label_error) .ml_frm_label_container:nth-of-type(2n+1) {
    clear: left !important;
  }

  .ds26-agsel-wrap .ds26-medproc-form-card input[type="text"],
  .ds26-agsel-wrap .ds26-medproc-form-card select {
    height: 42px !important;
    font-size: 14px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-form-card button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
    height: 42px !important;
    padding: 0 22px !important;
    margin-top: 6px !important;
  }
}

/* 3. Mobile Cards & Botões Touch para Tabelas (Tablet Retrato & Celular <= 900px) */
@media (max-width: 900px) {
  .ds26-agsel-wrap .ds26-table-responsive,
  .ds26-agsel-modal .ds26-table-responsive {
    overflow-x: visible !important;
  }

  /* 3A. Estrutura Comum de Cards para Tabelas DS26 (Datas, Horários e Procedimentos) */
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table thead,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table thead,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table thead {
    display: none !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody {
    padding: 8px 4px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody tr:not([style*="display: none"]):not([style*="display:none"]),
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody tr:not([style*="display: none"]):not([style*="display:none"]),
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody tr:not([style*="display: none"]):not([style*="display:none"]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #0284c7 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
  }

  /* Estados Semânticos dos Cards (Vago, Bloqueado/Suspenso, Procedimento Selecionado, Vazio) */
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody tr.ds26-agendar-row-free:not([style*="display: none"]):not([style*="display:none"]) {
    border-left-color: #10b981 !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody tr.ds26-agendar-row-blocked:not([style*="display: none"]):not([style*="display:none"]),
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody tr.ds26-agendar-row-blocked:not([style*="display: none"]):not([style*="display:none"]) {
    border-left-color: #ef4444 !important;
    background: #fff1f2 !important;
  }

  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody tr.ds26-proc-row-selected:not([style*="display: none"]):not([style*="display:none"]) {
    border-left-color: #10b981 !important;
    background: #f0fdf4 !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody tr:has(.ds26-empty-row-alert),
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody tr:has(.ds26-empty-row-alert),
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody tr:has(.ds26-empty-row-alert) {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Células e Rótulos Automáticos via data-label */
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 2px 0 !important;
    border: none !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td.ds26-cell-empty,
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td:empty,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td.ds26-cell-empty,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td:empty,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td.ds26-cell-empty,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td:empty {
    display: none !important;
  }

  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td[data-label]:not([data-col="acoes"])::before,
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td[data-label]:not([data-col="acoes"])::before,
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td[data-label]:not([data-col="acoes"])::before {
    content: attr(data-label);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 3px;
    line-height: 1.2;
  }

  /* Colunas que ocupam largura total do Card (1 / -1) */
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td[data-col="obs"],
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td[data-col="impressao"],
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td[data-col="ordem"],
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody tr:not(.ds26-agendar-row-free):not(.ds26-agendar-row-blocked) td[data-col="paciente"],
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td[data-col="obs"],
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td[data-col="auditoria"],
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td[data-col="descricao"] {
    grid-column: 1 / -1 !important;
  }

  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td[data-col="descricao"] {
    order: -2 !important;
  }

  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td[data-col="codigo"] {
    order: -1 !important;
  }

  .ds26-agsel-wrap .ds26-agsel-ordem-pill,
  .ds26-agsel-wrap .ds26-agsel-print-tag,
  .ds26-agsel-modal .ds26-medproc-tuss-badge {
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Barra de Ações Touch no Rodapé de cada Card */
  .ds26-agsel-wrap .ds26-medproc-list-card table.ds26-table tbody td[data-col="acoes"],
  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem table.ds26-table tbody td[data-col="acoes"],
  .ds26-agsel-modal .j_html_lista_procedimentos_agendar table.ds26-table tbody td[data-col="acoes"] {
    grid-column: 1 / -1 !important;
    order: 20 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
    margin-top: 2px !important;
    white-space: normal !important;
  }

  /* 3B. Tabela de Pesquisa de Pacientes dentro do Modal Agendar (substitui .ml_table quebrada no mobile) */
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    margin-top: 8px !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table thead {
    display: none !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    border: none !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #0284c7 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:has(td[colspan]) {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    padding: 2px 0 !important;
    border: none !important;
    font-size: 13px !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:empty {
    display: none !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:not(:last-child)::before {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(1) {
    grid-column: 1 / -1 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(1)::before { content: "Paciente"; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(2)::before { content: "Nascimento"; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(3)::before { content: "CPF / Doc."; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(4)::before { content: "Celular"; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(5)::before { content: "Fixo"; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(6)::before { content: "Operadora"; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(7)::before { content: "Plano"; }
  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:nth-child(8)::before { content: "Marcado no Dia"; }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem table.ml_table tbody tr:not(:has(td[colspan])) td:last-child {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 10px !important;
    margin-top: 2px !important;
  }

  /* 3C. Botões de Ação Touch-Friendly com Rótulos Autoexplicativos */
  .ds26-agsel-wrap .j_div_btn_action,
  .ds26-agsel-modal .j_div_btn_action {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
  }

  .ds26-agsel-wrap .j_div_btn_action > a,
  .ds26-agsel-modal .j_div_btn_action > a {
    float: none !important;
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  .ds26-agsel-wrap .j_div_btn_action > a.j_action_modal_agendar_horarios:not(.ml_btn_confirm)::after {
    content: "Horários";
  }

  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem tr.ds26-agendar-row-free .j_div_btn_action > a.j_action_formulario:not(.ml_btn_confirm)::after {
    content: "Agendar";
  }

  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem tr:not(.ds26-agendar-row-free) .j_div_btn_action > a.j_action_formulario:not(.ml_btn_confirm)::after {
    content: "Editar";
  }

  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem .j_div_btn_action > a.j_action_gerar_encaixe:not(.ml_btn_confirm)::after {
    content: "Encaixe";
  }

  .ds26-agsel-modal .j_boxgeral_agendar_horario_listagem .j_div_btn_action > a.j_action_liberar_horario_agendado:not(.ml_btn_confirm)::after {
    content: "Liberar";
  }

  .ds26-agsel-modal .j_boxgeral_cadastro_pacientes_listagem .j_div_btn_action > a.j_action_agendar_paciente:not(.ml_btn_confirm)::after {
    content: "Selecionar";
  }

  .ds26-agsel-modal .j_html_lista_procedimentos_agendar .j_div_btn_action > a.j_action_selecionar_procedimento[data-callback="select"]:not(.ml_btn_confirm)::after {
    content: "Selecionado";
  }

  .ds26-agsel-modal .j_html_lista_procedimentos_agendar .j_div_btn_action > a.j_action_selecionar_procedimento[data-callback="unsel"]:not(.ml_btn_confirm)::after {
    content: "Selecionar";
  }

  .ds26-agsel-wrap .j_div_btn_action > a.ml_btn_confirm::after,
  .ds26-agsel-modal .j_div_btn_action > a.ml_btn_confirm::after {
    content: "Confirmar?";
  }

  /* 3D. Rodapé de Paginação (tfoot) em Largura Total */
  .ds26-agsel-wrap table.ds26-table tfoot,
  .ds26-agsel-wrap table.ds26-table tfoot tr,
  .ds26-agsel-wrap table.ds26-table tfoot td,
  .ds26-agsel-modal table.ds26-table tfoot,
  .ds26-agsel-modal table.ds26-table tfoot tr,
  .ds26-agsel-modal table.ds26-table tfoot td,
  .ds26-agsel-modal table.ml_table tfoot,
  .ds26-agsel-modal table.ml_table tfoot tr,
  .ds26-agsel-modal table.ml_table tfoot td {
    display: block !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    padding: 4px !important;
  }
}

/* 4. Smartphones (<= 767px) — Formulários 1 Coluna, Fontes 16px Sem Zoom iOS & Modais Touch */
@media (max-width: 767px) {
  .ml_page_header.ds26-agsel-page-header .ml_page_header_right,
  .ml_page_header.ds26-agsel-page-header .ml_page_header_right a.ds26-agendar-cta-nw2026 {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Sobrescreve altura fixa de 96vh da linha 8176 para rolagem nativa fluida no celular */
  .ml_modal_lg:has(.ds26-agsel-modal) {
    padding: 8px 6px 26px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_50 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_55 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_60 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-agsel-modal),
  .ml_modal_lg_100 .ml_modal_lg_container:has(.ds26-agsel-modal) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 4px auto 20px auto !important;
    padding: 12px 10px 14px !important;
    border-radius: 14px !important;
    float: none !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-agsel-modal) > h1 {
    height: auto !important;
    min-height: 38px !important;
    line-height: 1.3 !important;
    font-size: 14.5px !important;
    padding-right: 44px !important;
    margin: 0 0 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-agsel-modal) > div {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    float: none !important;
  }

  /* Header de Contexto Compacto em 2 Colunas nos Modais */
  .ds26-agsel-modal .ds26-atend-ctx-header {
    padding: 10px !important;
  }

  .ds26-agsel-modal .ds26-medproc-ctx-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .ds26-agsel-modal .ds26-medproc-ctx-item {
    padding: 7px 9px !important;
    gap: 7px !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ds26-agsel-modal .ds26-medproc-ctx-item:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  .ds26-agsel-modal .ds26-medproc-ctx-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
  }

  .ds26-agsel-modal .ds26-medproc-ctx-label {
    font-size: 9.5px !important;
  }

  .ds26-agsel-modal .ds26-medproc-ctx-val {
    font-size: 12px !important;
    word-break: break-word !important;
  }

  /* Formulários 1 Coluna, Altura 44px e Fonte 16px (evita zoom automático no iOS/Android) */
  .ds26-agsel-wrap form .ml_alert_box:not(.j_ml_label_error),
  .ds26-agsel-modal form .ml_alert_box:not(.j_ml_label_error),
  .ds26-agsel-modal .ds26-atend-form-box {
    padding: 12px !important;
  }

  .ds26-agsel-wrap .ml_frm_label_container,
  .ds26-agsel-modal .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: both !important;
  }

  .ds26-agsel-wrap .ds26-medproc-form-card input[type="text"],
  .ds26-agsel-wrap .ds26-medproc-form-card select,
  .ds26-agsel-wrap .ds26-medproc-search-input,
  .ds26-agsel-modal input[type="text"],
  .ds26-agsel-modal input[type="number"],
  .ds26-agsel-modal input[type="tel"],
  .ds26-agsel-modal input[type="email"],
  .ds26-agsel-modal select,
  .ds26-agsel-modal .input_fake {
    height: 44px !important;
    font-size: 16px !important;
  }

  .ds26-agsel-modal textarea {
    font-size: 16px !important;
  }

  .ds26-agsel-wrap .ds26-medproc-form-card button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):not([style*="display: none"]):not([style*="display:none"]),
  .ds26-agsel-modal form button[type="submit"]:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):not([style*="display: none"]):not([style*="display:none"]),
  .ds26-agsel-modal form .ml_btn:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):not([style*="display: none"]):not([style*="display:none"]) {
    width: 100% !important;
    height: 44px !important;
    font-size: 14px !important;
    margin: 4px 0 !important;
    justify-content: center !important;
  }

  /* Resumo Estatístico da Grade em Grid 2x2 no Smartphone */
  .ds26-agsel-wrap .ds26-medproc-list-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .ds26-agsel-wrap .ds26-medproc-stat-pill {
    font-size: 11.5px !important;
    padding: 6px 8px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Segurança de largura para o calendário jQuery UI no celular */
  #ui-datepicker-div {
    max-width: calc(100vw - 16px) !important;
    z-index: 100005 !important;
  }
}

/* 5. Smartphones Compactos (<= 380px) */
@media (max-width: 380px) {
  .ds26-agsel-wrap .ds26-medproc-list-stats,
  .ds26-agsel-modal .ds26-medproc-ctx-group {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   APROVEITAMENTO TOTAL DE LARGURA (100% DA VIEW) — NOVO/EDITAR PACIENTE & FILTRO AGENDA
   ========================================================================== */

.ds26-paciente-modal-wrap,
.ds26-paciente-modal-wrap > form,
.ds26-paciente-modal-wrap form.j_frm_cadastro_pacientes,
.ds26-pacientes-page form.j_frm_cadastro_pacientes {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-paciente-modal-wrap::after,
.ds26-paciente-modal-wrap form.j_frm_cadastro_pacientes::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-paciente-modal-wrap .ml_alert_box:not(.j_ml_label_error),
.ds26-pacientes-page .ml_alert_box:not(.j_ml_label_error),
form.j_frm_cadastro_pacientes .ml_alert_box:not(.j_ml_label_error) {
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  box-sizing: border-box !important;
}

/* Mantém simetria exata de 100% na Linha 1 e Linha 2 de cadastro_pacientes quando campos opcionais aparecem/ocultam */
@media (min-width: 769px) {
  /* Caso 1: Quando AMBOS Como nos conheceu (2/10) + Unidade de Cadastro (2/10) aparecem na Linha 1 -> Nome vira 5/10 (5+1+2+2=10) */
  form.j_frm_cadastro_pacientes:has([name="frm_origem_canal_divulgacao"]):has([name="frm_uniat_id"]) .ml_frm_label_container:has([name="frm_nome"]) {
    width: calc(50% - 10px) !important;
  }

  /* Caso 2: Editar Paciente sem Canal de Divulgação e sem Unidade de Cadastro -> Nome vira 9/10 + ID 1/10 (9+1=10) */
  form.j_frm_cadastro_pacientes:not(:has([name="frm_origem_canal_divulgacao"])):not(:has([name="frm_uniat_id"])) .ml_frm_label_container:has([name="frm_nome"]) {
    width: calc(90% - 10px) !important;
  }

  /* Caso 3: Clínicas sem combo Estrangeiro (.j_estrangeiro.ml_hide) -> Titular do CPF expande para 2/10 fechando 10/10 na Linha 2 */
  form.j_frm_cadastro_pacientes:has(.j_estrangeiro.ml_hide) .ml_frm_label_container:has([name="frm_titular_cpf"]) {
    width: calc(20% - 10px) !important;
  }
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
.ml_modal_lg_90 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
.ml_modal_lg_95 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap) {
  width: 96% !important;
  max-width: 96% !important;
  margin: 2vh 2% !important;
  height: 96vh !important;
}

/* Ocupa 100% da largura disponível no filtro de pacientes dentro de Agendar Paciente (Desktop/Tablet) */
@media (min-width: 768px) {
  .ds26-atend-agenda-filter-wrap form.j_frm_filtro_cadastro_pacientes_agenda {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .ds26-atend-agenda-filter-wrap form.j_frm_filtro_cadastro_pacientes_agenda .ml_frm_label_container:has(.j_frm_nome) {
    width: calc(100% - 48px) !important;
  }

  .ds26-atend-agenda-filter-wrap form.j_frm_filtro_cadastro_pacientes_agenda .ml_frm_label_container:has(.j_frm_dtnasc),
  .ds26-atend-agenda-filter-wrap form.j_frm_filtro_cadastro_pacientes_agenda .ml_frm_label_container:has(.j_frm_cpf),
  .ds26-atend-agenda-filter-wrap form.j_frm_filtro_cadastro_pacientes_agenda .ml_frm_label_container:has(.j_frm_tel_cel),
  .ds26-atend-agenda-filter-wrap form.j_frm_filtro_cadastro_pacientes_agenda .ml_frm_label_container:has(.j_frm_tel_fixo) {
    width: calc(25% - 10px) !important;
  }
}

/* Responsividade Mobile para o Modal de Novo / Editar Paciente */
@media (max-width: 767px) {
  .ml_modal_lg:has(.ds26-paciente-modal-wrap) {
    padding: 8px 6px 26px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
  .ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
  .ml_modal_lg_90 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap),
  .ml_modal_lg_95 .ml_modal_lg_container:has(.ds26-paciente-modal-wrap) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 4px auto 20px auto !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-paciente-modal-wrap) > div {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px 10px 18px !important;
  }

  .ds26-paciente-modal-wrap .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
  }

  .ds26-paciente-modal-wrap input[type="text"],
  .ds26-paciente-modal-wrap input[type="password"],
  .ds26-paciente-modal-wrap input[type="email"],
  .ds26-paciente-modal-wrap input[type="number"],
  .ds26-paciente-modal-wrap select {
    height: 44px !important;
    font-size: 16px !important;
  }

  .ds26-paciente-modal-wrap button[type="submit"] {
    width: 100% !important;
    height: 44px !important;
    float: none !important;
  }
}

/* ==========================================================================
   AUTO-FILTRO DINÂMICO (.ml_filtro_box) EM .ds26-oper-page & MÓDULO LOCAL DE CIRURGIA
   ========================================================================== */

.ds26-oper-page .ml_filtro_box {
  width: 100% !important;
  margin-bottom: 12px !important;
  float: left !important;
  clear: both !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_box_close {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  float: none !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_btn_search,
.ds26-oper-page .ml_filtro_box .ml_filtro_btn_clear {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  float: none !important;
  margin: 0 !important;
  text-shadow: none !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_btn_search {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.24) !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_btn_search:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.34) !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_btn_clear {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_btn_clear:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px) !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_box_open {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 12px !important;
  padding: 14px 16px 10px 16px !important;
  margin-bottom: 6px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_box_open::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-oper-page .ml_filtro_box .ml_filtro_box_open > form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Wrapper de Formulários de Cadastros (.ds26-oper-form-wrap) — 100% da Largura */
.ds26-oper-page .ds26-oper-form-wrap,
.ds26-oper-page .ds26-oper-form-wrap > form,
.ds26-oper-page form.j_frm_cadastro_local_cirurgia,
.ds26-oper-page form.j_frm_local_x_operadora_honorarios {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-oper-page .ds26-oper-form-wrap::after,
.ds26-oper-page form.j_frm_cadastro_local_cirurgia::after,
.ds26-oper-page form.j_frm_local_x_operadora_honorarios::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-oper-page .ds26-oper-form-wrap textarea,
.ds26-oper-page form.j_frm_cadastro_local_cirurgia textarea {
  min-height: 92px !important;
  padding: 10px 12px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
}

/* Identificação de Hospital / Local na Tabela de Locais de Cirurgia */
.ds26-loccir-name-cell {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ds26-loccir-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ds26-loccir-name-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ds26-loccir-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Autocomplete jQuery UI visível acima de modais sobrepostos */
.ui-autocomplete {
  z-index: 100050 !important;
}

/* Responsividade Mobile (<= 767px) — Local de Cirurgia & Modal Local X Operadora */
@media (max-width: 767px) {
  .ml_modal_lg:has(.ds26-loccir-modal) {
    padding: 8px 6px 26px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-loccir-modal),
  .ml_modal_lg_55 .ml_modal_lg_container:has(.ds26-loccir-modal),
  .ml_modal_lg_60 .ml_modal_lg_container:has(.ds26-loccir-modal),
  .ml_modal_lg_75 .ml_modal_lg_container:has(.ds26-loccir-modal),
  .ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-loccir-modal) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 4px auto 20px auto !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-loccir-modal) > div {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 12px 10px 18px !important;
  }

  .ds26-loccir-page .ml_frm_label_container,
  .ds26-loccir-modal .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: both !important;
  }

  .ds26-loccir-page input[type="text"],
  .ds26-loccir-page select,
  .ds26-loccir-modal input[type="text"],
  .ds26-loccir-modal select {
    height: 44px !important;
    font-size: 16px !important;
  }

  .ds26-loccir-page textarea,
  .ds26-loccir-modal textarea {
    font-size: 16px !important;
  }

  .ds26-loccir-page form button[type="submit"]:not(.ml_hide),
  .ds26-loccir-modal form button[type="submit"]:not(.ml_hide) {
    width: 100% !important;
    height: 44px !important;
    margin: 4px 0 !important;
    justify-content: center !important;
  }

  .ds26-loccir-page .ds26-medproc-search-box,
  .ds26-loccir-modal .ds26-medproc-search-box {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  /* Tabelas em Cards Empilhados no Smartphone */
  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table {
    display: block !important;
    width: 100% !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table thead,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table thead {
    display: none !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody,
  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tfoot,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tfoot,
  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tfoot tr,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tfoot tr,
  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tfoot td,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tfoot td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody tr:not([style*="display: none"]):not([style*="display:none"]),
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody tr:not([style*="display: none"]):not([style*="display:none"]) {
    display: block !important;
    margin: 10px 10px !important;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody td,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 7px 2px !important;
    border-bottom: 1px dashed #f1f5f9 !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody td:first-child,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody td:first-child {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-top: 2px !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody td:first-child::before,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody td:first-child::before {
    display: none !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody td[data-label]:not([data-col="acoes"])::before,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody td[data-label]:not([data-col="acoes"])::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    flex-shrink: 0;
    text-align: left;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody td[data-col="acoes"],
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody td[data-col="acoes"] {
    border-bottom: none !important;
    padding-top: 10px !important;
    justify-content: flex-end !important;
  }

  .ds26-loccir-page .ds26-medproc-list-card table.ds26-table tbody td:only-child,
  .ds26-loccir-modal .ds26-medproc-list-card table.ds26-table tbody td:only-child {
    border-bottom: none !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   PAINEL PRONTUÁRIO ELETRÔNICO — LISTAGEM / BUSCA DE PACIENTES (.ds26-peplist-page)
   ========================================================================== */

.ds26-peplist-page .ds26-peplist-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.ds26-peplist-page .ds26-peplist-doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.ds26-peplist-page .ds26-peplist-doc-pill i {
  color: #0284c7;
  font-size: 13px;
}

/* Card de Filtro Direto (Padrão Agendar — sem lupa/undo duplicados no canto superior) */
.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 14px 0 !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico .ml_alert_box:not(.j_ml_label_error) {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  padding: 16px 18px 14px 18px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico .ml_alert_box:not(.j_ml_label_error)::before {
  display: none !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico .ml_frm_label_container > span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

/* Estilização Moderna do Checkbox Assinatura Digital (BirdID / A1) */
.ds26-peplist-page .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box {
  height: 38px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  transition: all 0.16s ease !important;
  overflow: hidden;
}

.ds26-peplist-page .ml_frm_label_container:has(.j_frm_assinatura_digital:checked) .label_box {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.ds26-peplist-page .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  width: 100%;
}

.ds26-peplist-page .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #059669 !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.ds26-peplist-page .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box label p {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: inline !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico button.j_action_pesquisar {
  margin-top: 6px !important;
  margin-left: 5px !important;
  margin-right: 6px !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico button.j_action_limpar_filtro_pep:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) {
  margin-top: 6px !important;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.24) !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico button.j_action_limpar_filtro_pep:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide) i {
  color: #ffffff !important;
}

.ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico button.j_action_limpar_filtro_pep:not(.ml_hide):not(.ml_hidden):not(.ml_dp_none):not(.display_none):not(.ml_btn_hide):hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
  border-color: #334155 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(51, 65, 85, 0.34) !important;
}

/* Simetria de 100% da Largura nas Linhas do Filtro em Desktop/Tablet */
@media (min-width: 768px) {
  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico .ml_frm_label_container:has([name="frm_nome"]) {
    width: calc(100% - 10px) !important;
  }

  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico:not(:has(.j_frm_assinatura_digital)) .ml_frm_label_container:has([name="frm_dtnasc"]),
  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico:not(:has(.j_frm_assinatura_digital)) .ml_frm_label_container:has([name="frm_cpf"]),
  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico:not(:has(.j_frm_assinatura_digital)) .ml_frm_label_container:has([name="frm_tel_cel"]),
  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico:not(:has(.j_frm_assinatura_digital)) .ml_frm_label_container:has([name="frm_tel_fixo"]) {
    width: calc(25% - 10px) !important;
  }
}

/* Estado Inicial da Busca (Antes de Pesquisar) */
.ds26-peplist-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 36px 20px;
  margin-top: 4px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  clear: both;
}

.ds26-peplist-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 2px;
}

.ds26-peplist-empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-peplist-empty-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  max-width: 520px;
  line-height: 1.5;
}

/* Células da Tabela de Pacientes do Prontuário Eletrônico */
.ds26-peplist-pac-id {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 1px 6px;
}

.ds26-peplist-birth-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ds26-peplist-birth-date {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.ds26-peplist-birth-age {
  font-size: 11px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 1px 8px;
}

.ds26-peplist-phones {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ds26-peplist-oper-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
}

.ds26-peplist-oper-badge i {
  color: #0284c7;
}

/* Responsividade Mobile (<= 767px) — Painel Prontuário Eletrônico (Listagem) */
@media (max-width: 767px) {
  .ds26-peplist-page .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: both !important;
  }

  .ds26-peplist-page input[type="text"],
  .ds26-peplist-page select,
  .ds26-peplist-page .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box {
    height: 44px !important;
    font-size: 16px !important;
  }

  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico button.j_action_pesquisar,
  .ds26-peplist-page form.j_frm_filtro_painel_prontuario_eletronico button.j_action_limpar_filtro_pep {
    width: 100% !important;
    height: 44px !important;
    margin: 6px 0 2px 0 !important;
    justify-content: center !important;
  }

  .ds26-peplist-page .ds26-medproc-search-box {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table {
    display: block !important;
    width: 100% !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table thead {
    display: none !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody,
  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tfoot,
  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tfoot tr,
  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tfoot td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody tr:not([style*="display: none"]):not([style*="display:none"]) {
    display: block !important;
    margin: 10px 10px !important;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 7px 2px !important;
    border-bottom: 1px dashed #f1f5f9 !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody td:first-child {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-top: 2px !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody td:first-child::before {
    display: none !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody td[data-label]:not([data-col="acoes"])::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    flex-shrink: 0;
    text-align: left;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody td[data-col="acoes"] {
    border-bottom: none !important;
    padding-top: 10px !important;
    justify-content: flex-end !important;
  }

  .ds26-peplist-page .ds26-medproc-list-card table.ds26-table tbody td:only-child {
    border-bottom: none !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .ds26-peplist-page .ds26-peplist-birth-wrap,
  .ds26-peplist-page .ds26-peplist-phones {
    align-items: flex-end !important;
  }
}

/* ==========================================================================
   PAINEL DE ATENDIMENTO MÉDICO — ATENDER (listagem.php / .ds26-pamd-page)
   Escopo isolado no card externo, cabeçalho e filtro (.ds26-pamd-filtro),
   preservando intactas as grades inferiores (.j_lista_agenda_dia / .j_lista_aguardando_atendimento)
   ========================================================================== */

.ds26-pamd-page > .j_principal > .ml_painel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

.ds26-pamd-page > .j_principal > .ml_painel > .ml_header {
  padding: 4px 6px 12px 6px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 14px !important;
}

.ds26-pamd-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.ds26-pamd-title {
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.ds26-pamd-title i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.ds26-pamd-meta-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-pamd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.ds26-pamd-pill.is-doc {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.ds26-pamd-pill.is-date {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.ds26-pamd-filtro {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 14px !important;
  float: left !important;
  clear: both !important;
  width: 100% !important;
}

.ds26-pamd-filtro form.j_frm_painel_atendimento_medico {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-pamd-filtro form.j_frm_painel_atendimento_medico::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_alert_box:not(.j_ml_label_error) {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 14px !important;
  padding: 16px 18px 14px 18px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_alert_box:not(.j_ml_label_error)::before {
  display: none !important;
}

.ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container > span {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.ds26-pamd-filtro .input_fake {
  display: flex !important;
  align-items: center !important;
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Checkbox Assinatura Digital (BirdID / A1) alinhado na mesma linha com o contador */
.ds26-pamd-filtro .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box {
  height: 38px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  transition: all 0.16s ease !important;
  overflow: hidden;
}

.ds26-pamd-filtro .ml_frm_label_container:has(.j_frm_assinatura_digital:checked) .label_box {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.ds26-pamd-filtro .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: 100%;
}

.ds26-pamd-filtro .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #059669 !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.ds26-pamd-filtro .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box label p {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: inline !important;
}

.ds26-pamd-filtro .j_birdid_timer_inline {
  color: #047857 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}

.ds26-pamd-filtro form.j_frm_painel_atendimento_medico button[type="submit"]:not(.ml_hidden):not(.ml_hide) {
  margin-top: 6px !important;
  margin-left: 5px !important;
}

/* Distribuição Simétrica de 100% nas 2 Linhas do Filtro em Desktop */
@media (min-width: 992px) {
  /* Linha 1: Data (13%) + Médico (35%) + Unidade (24%) + Especialidade (28%) = 100% */
  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has([name="frm_inicio"]) {
    width: calc(13% - 10px) !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has([name="frm_medico_outro"]),
  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has(.j_subfrm_1504) {
    width: calc(35% - 10px) !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has([name="frm_uniat_id"]) {
    width: calc(24% - 10px) !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has([name="frm_esp_id"]) {
    width: calc(28% - 10px) !important;
  }

  /* Linha 2: Status Atendimento (16%) + Paciente (58%) + Assinatura Digital (26%) = 100% */
  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has([name="frm_atendimento"]) {
    width: calc(16% - 10px) !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has([name="frm_nome_pac"]) {
    width: calc(58% - 10px) !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico .ml_frm_label_container:has(.j_frm_assinatura_digital) {
    width: calc(26% - 10px) !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico:not(:has(.j_frm_assinatura_digital)) .ml_frm_label_container:has([name="frm_nome_pac"]) {
    width: calc(84% - 10px) !important;
  }
}

/* Responsividade Tablet / Mobile (force_desktop ou telas menores) */
@media (max-width: 991px) {
  .ds26-pamd-page .j_lista_agenda_dia,
  .ds26-pamd-page .j_lista_aguardando_atendimento {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
  }
}

@media (max-width: 767px) {
  .ds26-pamd-filtro .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: both !important;
  }

  .ds26-pamd-filtro input[type="text"],
  .ds26-pamd-filtro select,
  .ds26-pamd-filtro .input_fake,
  .ds26-pamd-filtro .ml_frm_label_container:has(.j_frm_assinatura_digital) .label_box {
    height: 44px !important;
    font-size: 16px !important;
  }

  .ds26-pamd-filtro form.j_frm_painel_atendimento_medico button[type="submit"]:not(.ml_hidden):not(.ml_hide) {
    width: 100% !important;
    height: 44px !important;
    margin: 6px 0 2px 0 !important;
    justify-content: center !important;
  }
}

/* Centralização da coluna Ações na grade Agenda do Dia (Painel de Atendimento Médico) */
.j_boxgeral_painel_atendimento_medico_agenda_dia_listagem table th:last-child,
.j_boxgeral_painel_atendimento_medico_agenda_dia_listagem table td:last-child {
  text-align: center !important;
}

.j_boxgeral_painel_atendimento_medico_agenda_dia_listagem .j_div_btn_action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  float: none !important;
  margin: 0 auto !important;
  min-width: 0 !important;
}

.j_boxgeral_painel_atendimento_medico_agenda_dia_listagem .j_div_btn_action > a {
  margin: 0 !important;
}

/* ==========================================================================
   MODAL EDITAR USUÁRIO & FORMULÁRIO DE USUÁRIOS (CECB DESIGN SYSTEM 2026)
   ========================================================================== */

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal),
.ml_modal_lg_68 .ml_modal_lg_container:has(.ds26-usredit-modal),
.ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-usredit-modal) {
  width: 68% !important;
  max-width: 820px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 92vh !important;
  margin: 4vh auto !important;
  float: none !important;
  left: 0 !important;
  right: 0 !important;
  border-radius: 16px !important;
  padding: 18px 22px 20px 22px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.28) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  height: auto !important;
  line-height: 1.35 !important;
  padding: 0 42px 12px 0 !important;
  margin: 0 0 14px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > h1 i {
  color: #0284c7 !important;
  font-size: 18px !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > h1 small {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0369a1 !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > button {
  position: absolute !important;
  top: 14px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > button:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  transform: translateY(-1px);
}

.ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > div {
  height: auto !important;
  max-height: calc(92vh - 82px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.ds26-usredit-modal {
  width: 100%;
  box-sizing: border-box;
}

.ds26-usredit-hero {
  margin-bottom: 12px !important;
}

.ds26-usredit-hero .ds26-usrgrp-user-email i {
  color: #0284c7;
  margin-right: 4px;
}

.ds26-usredit-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-usredit-tabs > .ml_abas_nav {
  padding: 7px 9px !important;
  margin-bottom: 12px !important;
}

.ds26-usredit-tabs > .ml_abas_nav > ul > li {
  gap: 7px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

.ds26-usredit-pane {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ds26-usredit-pane::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-usredit-pwd-hint {
  margin: 0 5px 10px 5px !important;
  padding: 10px 14px !important;
  font-size: 12.5px !important;
  border-radius: 10px !important;
}

.ds26-usr-form-wrap,
.ds26-usr-form-wrap > form.j_frm_cadastro_usuarios_painel {
  width: 100% !important;
  max-width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-usr-form-wrap > form.j_frm_cadastro_usuarios_painel.ds26-oper-form-section {
  width: calc(100% - 10px) !important;
  margin: 4px 5px 6px 5px !important;
  padding: 40px 16px 16px 16px !important;
}

/* Título contextual na aba de redefinição de senha */
form.j_frm_cadastro_usuarios_painel:has(input[name="setCallback"])::before {
  content: "1. Redefinição Segura de Senha de Acesso" !important;
}

form.j_frm_cadastro_usuarios_painel button[type="submit"]:not(.ml_hide):not(.ml_hidden) {
  clear: both !important;
  float: left !important;
  margin: 8px 5px 2px 5px !important;
}

/* Distribuição Simétrica em Colunas no Desktop (Modal Editar + Novo Cadastro) */
@media (min-width: 768px) {
  /* 1) Modal Editar Usuário — Aba Dados Pessoais (sem campo frm_senha) */
  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])) .ml_frm_label_container:has([name="frm_origem"]) {
    width: calc(30% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])) .ml_frm_label_container:has([name="frm_nome"]) {
    width: calc(70% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])):has([name="frm_login_multiplo"]) .ml_frm_label_container:has([name="frm_email"]) {
    width: calc(42% - 10px) !important;
    clear: left !important;
  }

  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])):has([name="frm_login_multiplo"]) .ml_frm_label_container:has([name="frm_medico_outro"]) {
    width: calc(38% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])):has([name="frm_login_multiplo"]) .ml_frm_label_container:has([name="frm_login_multiplo"]) {
    width: calc(20% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])):not(:has([name="frm_login_multiplo"])) .ml_frm_label_container:has([name="frm_email"]) {
    width: calc(52% - 10px) !important;
    clear: left !important;
  }

  form.j_frm_cadastro_usuarios_painel:not(:has([name="frm_senha"])):not(:has([name="frm_login_multiplo"])) .ml_frm_label_container:has([name="frm_medico_outro"]) {
    width: calc(48% - 10px) !important;
  }

  /* 2) Tela Novo Cadastro (com frm_nome, frm_senha e frm_senha_confirma) */
  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]) .ml_frm_label_container:has([name="frm_origem"]) {
    width: calc(28% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]) .ml_frm_label_container:has([name="frm_nome"]) {
    width: calc(72% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]) .ml_frm_label_container:has([name="frm_email"]) {
    width: calc(44% - 10px) !important;
    clear: left !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]) .ml_frm_label_container:has([name="frm_senha"]) {
    width: calc(28% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]) .ml_frm_label_container:has([name="frm_senha_confirma"]) {
    width: calc(28% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]):has([name="frm_login_multiplo"]) .ml_frm_label_container:has([name="frm_medico_outro"]) {
    width: calc(75% - 10px) !important;
    clear: left !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]):has([name="frm_login_multiplo"]) .ml_frm_label_container:has([name="frm_login_multiplo"]) {
    width: calc(25% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:has([name="frm_senha"]):has([name="frm_nome"]):not(:has([name="frm_login_multiplo"])) .ml_frm_label_container:has([name="frm_medico_outro"]) {
    width: calc(100% - 10px) !important;
    clear: left !important;
  }

  /* 3) Modal Editar Usuário — Aba Senha de Acesso (frm_senha 50% + frm_senha_confirma 50%) */
  form.j_frm_cadastro_usuarios_painel:has(input[name="setCallback"]) .ml_frm_label_container:has([name="frm_senha"]) {
    width: calc(50% - 10px) !important;
  }

  form.j_frm_cadastro_usuarios_painel:has(input[name="setCallback"]) .ml_frm_label_container:has([name="frm_senha_confirma"]) {
    width: calc(50% - 10px) !important;
  }
}

/* Botão Mostrar/Ocultar Senha (j_ml_view_pass) integrado ao campo no Design System 2026 */
.ds26-oper-page .frm_label_btn .frm_div_btn:has(.j_ml_view_pass) {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.ds26-oper-page .frm_label_btn .frm_div_btn:has(.j_ml_view_pass) > input.j_ml_view_pass {
  width: 100% !important;
  flex: 1 1 auto !important;
  padding-right: 42px !important;
  border-radius: 9px !important;
}

.ds26-oper-page .frm_label_btn .frm_div_btn:has(.j_ml_view_pass) > a.j_ml_view_pass_btn {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 30px !important;
  height: 28px !important;
  min-width: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  z-index: 2 !important;
}

.ds26-oper-page .frm_label_btn .frm_div_btn:has(.j_ml_view_pass) > a.j_ml_view_pass_btn:hover,
.ds26-oper-page .frm_label_btn .frm_div_btn:has(.j_ml_view_pass) > a.j_ml_view_pass_btn:has(.fa-eye) {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

/* Responsividade Mobile (<= 767px) — Modal Editar Usuário & Novo Cadastro */
@media (max-width: 767px) {
  .ml_modal_lg:has(.ds26-usredit-modal) {
    padding: 8px 6px 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal),
  .ml_modal_lg_68 .ml_modal_lg_container:has(.ds26-usredit-modal),
  .ml_modal_lg_80 .ml_modal_lg_container:has(.ds26-usredit-modal) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 4px auto 20px auto !important;
    padding: 14px 12px 16px 12px !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  .ml_modal_lg .ml_modal_lg_container:has(.ds26-usredit-modal) > div {
    max-height: none !important;
    overflow: visible !important;
  }

  .ds26-usredit-tabs > .ml_abas_nav > ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .ds26-usredit-tabs > .ml_abas_nav > ul > li {
    justify-content: center !important;
    padding: 9px 8px !important;
    font-size: 12.5px !important;
  }

  form.j_frm_cadastro_usuarios_painel .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: both !important;
  }

  form.j_frm_cadastro_usuarios_painel input[type="text"],
  form.j_frm_cadastro_usuarios_painel input[type="password"],
  form.j_frm_cadastro_usuarios_painel input[type="email"],
  form.j_frm_cadastro_usuarios_painel select {
    height: 44px !important;
    font-size: 16px !important;
  }

  form.j_frm_cadastro_usuarios_painel button[type="submit"]:not(.ml_hide):not(.ml_hidden) {
    width: 100% !important;
    height: 44px !important;
    margin: 6px 0 2px 0 !important;
    justify-content: center !important;
    float: none !important;
  }
}

/* ==========================================================================
   TELA ALTERAR A SENHA (alterar_senha/cadastro) — CECB DESIGN SYSTEM 2026
   ========================================================================== */

.ds26-altsenha-sec-dados::before {
  content: "1. Redefinição Segura da Minha Senha de Acesso" !important;
}

.ds26-altsenha-card-inner {
  width: 100%;
  max-width: 820px;
  padding: 4px 0 10px 0;
  box-sizing: border-box;
}

.ds26-altsenha-card-inner::after {
  content: "";
  display: table;
  clear: both;
}

.ds26-altsenha-form-wrap,
.ds26-altsenha-form-wrap > form.j_frm_alterar_senha {
  width: 100% !important;
  max-width: 100% !important;
  float: left !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ds26-altsenha-form-wrap > form.j_frm_alterar_senha.ds26-oper-form-section {
  width: calc(100% - 10px) !important;
  margin: 4px 5px 6px 5px !important;
  padding: 40px 16px 16px 16px !important;
}

form.j_frm_alterar_senha button[type="submit"]:not(.ml_hide):not(.ml_hidden) {
  clear: both !important;
  float: left !important;
  margin: 8px 5px 2px 5px !important;
}

@media (min-width: 768px) {
  form.j_frm_alterar_senha .ml_frm_label_container:has([name="frm_nova_senha"]),
  form.j_frm_alterar_senha .ml_frm_label_container:has([name="frm_confirmacao"]) {
    width: calc(50% - 10px) !important;
  }
}

@media (max-width: 767px) {
  form.j_frm_alterar_senha .ml_frm_label_container {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    float: none !important;
    clear: both !important;
  }

  form.j_frm_alterar_senha input[type="text"],
  form.j_frm_alterar_senha input[type="password"] {
    height: 44px !important;
    font-size: 16px !important;
  }

  form.j_frm_alterar_senha button[type="submit"]:not(.ml_hide):not(.ml_hidden) {
    width: 100% !important;
    height: 44px !important;
    margin: 6px 0 2px 0 !important;
    justify-content: center !important;
    float: none !important;
  }
}

/* ==========================================================================
   PROGRAMAÇÃO DE ENVIO AUTOMÁTICO PUSH — CENTRAL DO PACIENTE (.ds26-pushcron-*)
   ========================================================================== */

.ds26-pushcron-brand-icon {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
}

.ds26-pushcron-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.ds26-pushcron-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.ds26-pushcron-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ds26-pushcron-kpi-icon.is-blue {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.ds26-pushcron-kpi-icon.is-emerald {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.ds26-pushcron-kpi-icon.is-amber {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.ds26-pushcron-kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.ds26-pushcron-kpi-lbl {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.ds26-pushcron-comp-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.ds26-pushcron-comp-card.is-active {
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
}

.ds26-pushcron-comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ds26-pushcron-comp-info {
  flex: 1 1 380px;
}

.ds26-pushcron-comp-title h4 {
  margin: 4px 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ds26-pushcron-comp-info p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.ds26-pushcron-comp-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ds26-pushcron-comp-switch {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 14px;
}

@media (max-width: 991px) {
  .ds26-pushcron-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Central do Paciente PWA + Web Push + Confirmação 1 Toque (Novembro/2026)
   ========================================================================== */

.ds26-pwa-banner {
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 15px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.07);
}

.ds26-pwa-banner.is-subscribed {
  background: #f0fdf4;
  border-color: #bbf7d0;
  padding: 11px 14px;
}

.ds26-pwa-banner-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ds26-pwa-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}

.ds26-pwa-banner.is-subscribed .ds26-pwa-banner-icon {
  width: 34px;
  height: 34px;
  background: #10b981;
  font-size: 15px;
  box-shadow: none;
}

.ds26-pwa-banner-body {
  flex: 1;
  min-width: 0;
}

.ds26-pwa-banner-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.3;
}

.ds26-pwa-banner-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 11px 0;
}

.ds26-pwa-banner.is-subscribed .ds26-pwa-banner-desc {
  margin-bottom: 0;
  color: #166534;
}

.ds26-pwa-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ds26-pwa-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ds26-pwa-btn-primary:hover {
  background: #0369a1;
}

.ds26-pwa-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ds26-pwa-btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ds26-pwa-btn-emerald:hover {
  background: #059669;
}

.ds26-pwa-btn-emerald:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ds26-pwa-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ds26-pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 18px 0;
}

.ds26-pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.ds26-pwa-ios-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds26-pwa-ios-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.ds26-pwa-ios-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.ds26-pwa-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-pwa-badge-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ds26-pwa-appt-footer {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ds26-pwa-appt-footer.only-cancel {
  justify-content: flex-end;
}

.ds26-pwa-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 5px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
}

.ds26-pwa-banner.is-step1 {
  margin-bottom: 18px;
}


