/* Superficies: mismo verde, mismo velo, mismo vidrio en todo el sistema */

[x-cloak] {
  display: none !important;
}

[data-fidami-combobox-panel],
[id$="-combobox-panel"],
[id$="-search-container"] {
  background-color: var(--fidami-ventana) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
  color: #e2e8f0;
  z-index: 60;
}

[data-fidami-combobox-panel] .fidami-combo-opt,
[id$="-combobox-panel"] button,
[id$="-search-container"] .option-item {
  color: #e2e8f0 !important;
  background: transparent !important;
  font-weight: 400;
}

[data-fidami-combobox-panel] .fidami-combo-opt:hover,
[data-fidami-combobox-panel] .fidami-combo-opt.is-selected,
[id$="-combobox-panel"] button:hover,
[id$="-combobox-panel"] button.is-selected,
[id$="-search-container"] .option-item:hover {
  background: rgba(34, 211, 238, 0.18) !important;
  color: #e0f2fe !important;
  font-weight: 500;
}

/* Tipografía / shell SOC */
body.soc,
body.soc aside,
body.soc header {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.soc aside .nav-seccion {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.25;
}

body.soc aside .nav-hijo {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
}

body.soc aside .nav-hijo:hover,
body.soc aside a.nav-hijo-activo {
  color: #ffffff;
}

body.soc .apple-display {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: #ffffff;
}

body.soc {
  --fidami-fondo: #1b2823;
  --fidami-ventana: #16221d;
  --fidami-campo: #1e2d28;
  --fidami-vidrio: rgba(255, 255, 255, 0.05);
  --fidami-velo: rgba(6, 10, 8, 0.78);
  --fidami-borde: rgba(255, 255, 255, 0.12);
  background-color: var(--fidami-fondo);
  background-image: linear-gradient(165deg, #2c3d36 0%, #1b2823 50%, #2a241c 100%);
  background-attachment: fixed;
  color: #e2e8f0;
  color-scheme: dark;
}

body.soc .marco {
  background: transparent;
}

body.soc main input,
body.soc main select,
body.soc main textarea {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f1f5f9 !important;
  border-radius: 0.75rem;
  color-scheme: dark;
}

body.soc main input:focus,
body.soc main select:focus,
body.soc main textarea:focus {
  border-color: rgba(34, 211, 238, 0.45) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18) !important;
}

body.soc main input::placeholder,
body.soc main textarea::placeholder {
  color: rgba(148, 163, 184, 0.85) !important;
}

body.soc main select option,
body.soc main select optgroup {
  background-color: #1e2d28;
  color: #f1f5f9;
}

body.soc main label {
  color: #e2e8f0;
}

/* Contraste: clases pensadas para fondo claro que quedaron en tema oscuro */
body.soc .text-orange-800,
body.soc .text-orange-900,
body.soc .hover\:text-orange-900:hover {
  color: #fdba74 !important;
}
body.soc .text-amber-800,
body.soc .text-amber-900 {
  color: #fcd34d !important;
}
body.soc .text-green-700,
body.soc .text-green-800,
body.soc .text-emerald-800,
body.soc .text-emerald-900 {
  color: #6ee7b7 !important;
}
body.soc .text-red-800,
body.soc .text-rose-800 {
  color: #fda4af !important;
}
body.soc .text-blue-800,
body.soc .text-sky-800,
body.soc .text-cyan-800 {
  color: #7dd3fc !important;
}
body.soc .border-gray-100,
body.soc .border-orange-100,
body.soc .border-amber-100,
body.soc .border-red-100,
body.soc .border-blue-100 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.soc thead th {
  color: #cbd5e1;
}

/* Ventanas emergentes: velo y ficha iguales en inventario, Buk, agenda, etc. */
body.soc .modal-fondo,
body.soc [id^="modal-"].fixed,
body.soc [id$="-modal"].fixed {
  background-color: var(--fidami-velo) !important;
}
body.soc .modal-ficha,
body.soc [id^="modal-"] > div,
body.soc [id^="modal-"] > form,
body.soc [id$="-modal"] > div {
  background-color: var(--fidami-ventana) !important;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.7);
}
body.soc .modal-ficha input,
body.soc .modal-ficha select,
body.soc .modal-ficha textarea,
body.soc [id^="modal-"] input,
body.soc [id^="modal-"] select,
body.soc [id^="modal-"] textarea,
body.soc [id$="-modal"] input,
body.soc [id$="-modal"] select,
body.soc [id$="-modal"] textarea {
  background-color: var(--fidami-campo) !important;
}

/* Tarjetas de página: un solo vidrio */
body.soc .bg-white\/5,
body.soc .backdrop-blur-md {
  background-color: var(--fidami-vidrio);
}

/* Restos de tema claro */
body.soc .bg-white {
  background-color: var(--fidami-vidrio) !important;
}
body.soc .bg-gray-50,
body.soc .bg-gray-100,
body.soc .bg-slate-50,
body.soc .bg-slate-900\/50 {
  background-color: var(--fidami-vidrio) !important;
}
body.soc .bg-gray-300,
body.soc .hover\:bg-gray-400:hover {
  background-color: var(--fidami-campo) !important;
  color: #e2e8f0 !important;
}
body.soc .from-blue-50,
body.soc .from-purple-50,
body.soc .to-blue-50,
body.soc .to-purple-50 {
  background-image: none !important;
  background-color: rgba(34, 211, 238, 0.08) !important;
}

/* Ingreso: misma ficha que las ventanas */
body.soc > form {
  background-color: var(--fidami-ventana) !important;
}

.campo-codigo input {
  padding-right: 5.5rem !important;
}

