/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/SettingsSearchInput.module.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************/
/* SettingsSearchInput.module.css - Componente de búsqueda aislado */

.SettingsSearchInput_searchBox__XFjGR {
  position: relative;
  max-width: 500px;
}

.SettingsSearchInput_searchIcon__J2Tta {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9CA3AF;
  pointer-events: none;
}

.SettingsSearchInput_searchInput__PvQoC {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.SettingsSearchInput_searchInput__PvQoC:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

.SettingsSearchInput_searchInput__PvQoC::placeholder {
  color: #9CA3AF;
}

/*!**********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/SettingsSidebar.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************/
/* SettingsSidebar.module.css - Panel lateral de navegación de categorías */

.SettingsSidebar_sidebar__Z6ZPu {
  width: 320px;
  height: 100%;
  background: var(--color-bg-light);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.SettingsSidebar_header__z1qnp {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--divider);
  background: var(--color-bg-grey);
}

.SettingsSidebar_title__6ysmm {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

/* Sección de búsqueda */
.SettingsSidebar_searchSection___X8H2 {
  padding: 1rem 1.25rem;
  background: var(--color-bg-grey);
  border-bottom: 1px solid var(--divider);
}

/* Sección de filtro */
.SettingsSidebar_filterSection__cINpL {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--divider);
  background: var(--color-bg-light);
}

.SettingsSidebar_filterLabel__jbpaD {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  user-select: none;
}

.SettingsSidebar_filterLabel__jbpaD:hover {
  color: var(--color-dark);
}

.SettingsSidebar_filterCheckbox__hJv9e {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.SettingsSidebar_filterIcon__JbuyU {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
}

/* Navegación */
.SettingsSidebar_navigation__3j__x {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.SettingsSidebar_categoryList__teZzh {
  list-style: none;
  padding: 0;
  margin: 0;
}

.SettingsSidebar_categoryItem__0joJW {
  margin: 0;
}

.SettingsSidebar_categoryLabel__dujSa {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--color-bg-light);
  transition: background-color 0.2s;
}

.SettingsSidebar_categoryLabel__dujSa:hover {
  background: var(--color-bg-grey);
}

.SettingsSidebar_categoryLabel__dujSa.SettingsSidebar_active__QyvtY {
  background: var(--color-bg-panel);
  border-left: 3px solid var(--color-accent);
}

.SettingsSidebar_categoryLabel__dujSa.SettingsSidebar_active__QyvtY .SettingsSidebar_categoryName__KNW_r {
  font-weight: 600;
  color: var(--color-dark);
}

/* Botón de expansión */
.SettingsSidebar_expandButton__MYnaa {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: color 0.2s, transform 0.2s;
}

.SettingsSidebar_expandButton__MYnaa:hover {
  color: var(--color-accent);
}

.SettingsSidebar_expandButton__MYnaa:active {
  transform: scale(0.95);
}

.SettingsSidebar_expandIcon__cHe1Q {
  width: 1rem;
  height: 1rem;
}

/* Botón de categoría */
.SettingsSidebar_categoryButton__8roJ0 {
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.75rem 1rem 0.75rem 0.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  color: var(--color-text);
  transition: color 0.2s;
}

.SettingsSidebar_categoryButton__8roJ0:hover {
  color: var(--color-dark);
}

.SettingsSidebar_categoryName__KNW_r {
  font-size: 0.95rem;
  line-height: 1.3;
  word-break: break-word;
}

/* Hijos de la categoría */
.SettingsSidebar_categoryChildren__8PMtl {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Estados de carga y error */
.SettingsSidebar_loading__3AFR2,
.SettingsSidebar_error__jJexl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text);
}

.SettingsSidebar_error__jJexl {
  color: #dc3545;
}

.SettingsSidebar_spinner__lUgr_ {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--color-bg-grey);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: SettingsSidebar_spin__K5crX 0.8s linear infinite;
  margin-bottom: 1rem;
}

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

/* Estado vacío de búsqueda */
.SettingsSidebar_emptyState__JFzkl {
  padding: 2rem 1.25rem;
  text-align: center;
}

.SettingsSidebar_emptyText__vlEFc {
  font-size: 0.9rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* Resultados de búsqueda */
.SettingsSidebar_searchResults__sh4MF {
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6B7280;
  border-top: 1px solid var(--divider);
  background: var(--color-bg-grey);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Scrollbar personalizado */
.SettingsSidebar_navigation__3j__x::-webkit-scrollbar {
  width: 6px;
}

.SettingsSidebar_navigation__3j__x::-webkit-scrollbar-track {
  background: var(--color-bg-grey);
}

.SettingsSidebar_navigation__3j__x::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.SettingsSidebar_navigation__3j__x::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Responsivo */
@media (max-width: 768px) {
  .SettingsSidebar_sidebar__Z6ZPu {
    width: 100%;
    max-width: 320px;
  }
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/SettingsList.module.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************/
/* SettingsList.module.css - Panel central con listado de configuraciones */

.SettingsList_container__Ejd4u {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light);
  overflow: hidden;
}

/* Header */
.SettingsList_header__1R2IH {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--divider);
  background: var(--color-bg-grey);
}

.SettingsList_header__1R2IH h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1rem 0;
}

/* Lista de settings */
.SettingsList_listContainer__OE2Rj {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.SettingsList_settingsList__E0hgp {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Item de setting */
.SettingsList_settingItem__4irAW {
  background: var(--color-bg-light);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.SettingsList_settingItem__4irAW:hover {
  background: var(--color-bg-grey);
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.SettingsList_settingItem__4irAW.SettingsList_selected__o_6tj {
  background: #FFF7ED;
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(246, 145, 27, 0.15);
}

/* Header del item */
.SettingsList_itemHeader__Nkuua {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.SettingsList_itemTitle__MjKBG {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.SettingsList_itemTitle__MjKBG h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

.SettingsList_overriddenIndicator__M_o1T {
  color: var(--color-accent);
  font-size: 0.6rem;
  line-height: 1;
}

/* Grupo de badges de origen */
.SettingsList_originBadges__gMY2_ {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Badge individual de origen */
.SettingsList_originBadge__BO9wW {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: help;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.SettingsList_originBadge__BO9wW:hover {
  transform: scale(1.05);
}

/* Estado ACTIVO (destaca el origen efectivo) */
.SettingsList_originBadgeActive__5_ow6 {
  border-width: 2px;
  border-style: solid;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estado INACTIVO (baja prominencia) */
.SettingsList_originBadgeInactive__n4_RM {
  opacity: 0.4;
  border: 2px solid currentColor;
  background: transparent !important;
}

.SettingsList_originBadgeInactive__n4_RM:hover {
  opacity: 0.6;
}

/* Colores por tipo de origen */
.SettingsList_originBadgeGlobal__ucboc.SettingsList_originBadgeActive__5_ow6 {
  background: #E5E7EB;
  color: #1F2937;
  border-color: #9CA3AF;
}

.SettingsList_originBadgeGlobal__ucboc.SettingsList_originBadgeInactive__n4_RM {
  color: #9CA3AF;
}

.SettingsList_originBadgeCompa__a__FJuzX.SettingsList_originBadgeActive__5_ow6 {
  background: #DBEAFE;
  color: #1E3A8A;
  border-color: #3B82F6;
}

.SettingsList_originBadgeCompa__a__FJuzX.SettingsList_originBadgeInactive__n4_RM {
  color: #3B82F6;
}

.SettingsList_originBadgeUsuario__aFrEc.SettingsList_originBadgeActive__5_ow6 {
  background: #FEF3C7;
  color: #78350F;
  border-color: #F59E0B;
}

.SettingsList_originBadgeUsuario__aFrEc.SettingsList_originBadgeInactive__n4_RM {
  color: #F59E0B;
}

/* Descripción */
.SettingsList_itemDescription__ZjCiw {
  font-size: 0.9rem;
  color: #6B7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

/* Valor actual */
.SettingsList_itemValue__n8fY8 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: var(--color-bg-grey);
  border-radius: 6px;
}

.SettingsList_valueLabel__35R8P {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6B7280;
}

.SettingsList_valueText___GpYz {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 500;
  word-break: break-word;
}

/* Metadata */
.SettingsList_itemMetadata___8QSV {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #9CA3AF;
}

.SettingsList_metadataItem__Kqm3q {
  display: flex;
  gap: 0.25rem;
}

.SettingsList_metadataLabel__nPawM {
  font-weight: 600;
}

/* Estados especiales */
.SettingsList_emptyState__A081s,
.SettingsList_loadingState__M44qc,
.SettingsList_errorState__UQf5U {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text);
  flex: 1;
}

.SettingsList_emptyIcon__clJFe,
.SettingsList_errorIcon___TdHt {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.SettingsList_emptyState__A081s h3,
.SettingsList_errorState__UQf5U h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.5rem 0;
}

.SettingsList_emptyState__A081s p,
.SettingsList_errorState__UQf5U p {
  font-size: 1rem;
  color: #6B7280;
  max-width: 500px;
  line-height: 1.5;
  margin: 0;
}

.SettingsList_errorState__UQf5U {
  color: #DC2626;
}

.SettingsList_errorIcon___TdHt {
  color: #DC2626;
}

.SettingsList_errorState__UQf5U h3 {
  color: #DC2626;
}

/* Loading spinner */
.SettingsList_loadingState__M44qc {
  gap: 1rem;
}

.SettingsList_spinner__PlFu7 {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--color-bg-grey);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: SettingsList_spin__C_hSw 0.8s linear infinite;
}

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

/* Footer */
.SettingsList_footer__4Abjg {
  padding: 1rem 2rem;
  border-top: 1px solid var(--divider);
  background: var(--color-bg-grey);
}

.SettingsList_footerText__JFvLo {
  font-size: 0.9rem;
  color: #6B7280;
  font-weight: 500;
}

/* Scrollbar personalizado */
.SettingsList_listContainer__OE2Rj::-webkit-scrollbar {
  width: 8px;
}

.SettingsList_listContainer__OE2Rj::-webkit-scrollbar-track {
  background: var(--color-bg-grey);
}

.SettingsList_listContainer__OE2Rj::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.SettingsList_listContainer__OE2Rj::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Responsivo */
@media (max-width: 768px) {
  .SettingsList_header__1R2IH {
    padding: 1rem 1.5rem;
  }

  .SettingsList_header__1R2IH h2 {
    font-size: 1.25rem;
  }

  .SettingsList_listContainer__OE2Rj {
    padding: 0.75rem;
  }

  .SettingsList_settingItem__4irAW {
    padding: 1rem;
  }

  .SettingsList_itemMetadata___8QSV {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/DateEditor.module.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************/
/* DateEditor.module.css - Editor de fechas para settings */

.DateEditor_dateEditorContainer__NmboN {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.DateEditor_dateInput__GEJak {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
}

.DateEditor_dateInput__GEJak:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

.DateEditor_dateInput__GEJak:disabled {
  background: #F3F4F6;
  cursor: not-allowed;
  color: #9CA3AF;
}

/* Fecha formateada como ayuda visual */
.DateEditor_dateDisplay__kld9X {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #6B7280;
  background: var(--color-bg-grey);
  border-radius: 6px;
  font-style: italic;
}

/* Estado de error para fecha inválida */
.DateEditor_invalidContainer__BDQe7 {
  padding: 0.75rem;
  background: #FEE2E2;
  border: 1px solid #F87171;
  border-radius: 6px;
}

.DateEditor_invalidMessage__toKWF {
  margin: 0;
  font-size: 0.85rem;
  color: #991B1B;
}

/*!*************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/ManageIndividualOverridesModal.module.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ManageIndividualOverridesModal.module.css */

/* Overlay del modal */
.ManageIndividualOverridesModal_overlay__ZGeaU {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

/* Contenedor del modal */
.ManageIndividualOverridesModal_modal__esNhR {
  background: white;
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  height: 80vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header */
.ManageIndividualOverridesModal_header__FDvdm {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.ManageIndividualOverridesModal_title__p74c_ {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.ManageIndividualOverridesModal_settingKey__0mHU2 {
  color: var(--color-accent, #f6911b);
  font-family: 'Courier New', monospace;
}

.ManageIndividualOverridesModal_subtitle__75Sur {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
}

.ManageIndividualOverridesModal_closeButton__2fBJP {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.ManageIndividualOverridesModal_closeButton__2fBJP:hover {
  background: #f3f4f6;
  color: #111827;
}

.ManageIndividualOverridesModal_closeButton__2fBJP svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Tabs */
.ManageIndividualOverridesModal_tabs___zdEl {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 2rem;
  gap: 1rem;
  flex-shrink: 0;
}

.ManageIndividualOverridesModal_tab__BYvye {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
  top: 1px;
}

.ManageIndividualOverridesModal_tab__BYvye:hover:not(:disabled) {
  color: #111827;
}

.ManageIndividualOverridesModal_tab__BYvye:disabled {
  cursor: default;
}

.ManageIndividualOverridesModal_tabActive__DxKx8 {
  color: var(--color-accent, #f6911b);
  border-bottom-color: var(--color-accent, #f6911b);
}

/* Body */
.ManageIndividualOverridesModal_body__Ed7a5 {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Estados: loading, error, empty */
.ManageIndividualOverridesModal_loadingState__J5QIp,
.ManageIndividualOverridesModal_errorState__R3Yl_,
.ManageIndividualOverridesModal_emptyState__07DHE {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.ManageIndividualOverridesModal_spinner__0gqKn {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: ManageIndividualOverridesModal_spin__psiMT 0.8s linear infinite;
  margin-bottom: 1rem;
}

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

.ManageIndividualOverridesModal_errorState__R3Yl_ p,
.ManageIndividualOverridesModal_emptyState__07DHE p {
  color: #6b7280;
  font-size: 1rem;
}

/* Búsqueda de usuarios */
.ManageIndividualOverridesModal_searchBox__DonHH {
  position: relative;
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.ManageIndividualOverridesModal_searchIcon__u9K4q {
  position: absolute;
  left: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9CA3AF;
  pointer-events: none;
}

.ManageIndividualOverridesModal_searchInput__yyBPS {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s;
}

.ManageIndividualOverridesModal_searchInput__yyBPS:focus {
  outline: none;
  border-color: var(--color-accent, #f6911b);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

/* Tabla */
.ManageIndividualOverridesModal_tableContainer__9vlIw {
  overflow-x: auto;
  padding: 0;
}

.ManageIndividualOverridesModal_table__0wJtx {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ManageIndividualOverridesModal_table__0wJtx thead {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ManageIndividualOverridesModal_table__0wJtx th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e5e7eb;
}

.ManageIndividualOverridesModal_thUser__k3DsJ {
  width: 25%;
  min-width: 200px;
}

.ManageIndividualOverridesModal_thOverride___Laog {
  width: 30%;
  min-width: 250px;
}

.ManageIndividualOverridesModal_thEffective__m_hLL {
  width: 25%;
  min-width: 150px;
}

.ManageIndividualOverridesModal_thActions__4Qq_8 {
  width: 10%;
  min-width: 80px;
  text-align: center;
}

.ManageIndividualOverridesModal_table__0wJtx tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}

.ManageIndividualOverridesModal_table__0wJtx tbody tr:hover {
  background: #f9fafb;
}

.ManageIndividualOverridesModal_table__0wJtx td {
  padding: 1rem;
  vertical-align: middle;
}

/* Columna: Usuario */
.ManageIndividualOverridesModal_tdUser__ocX_P {
  vertical-align: middle;
}

.ManageIndividualOverridesModal_userName__vylLn {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.ManageIndividualOverridesModal_userEmail__Y04_U {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Columna: Sobrescritura */
.ManageIndividualOverridesModal_tdOverride__KRpCR {
  vertical-align: middle;
}

.ManageIndividualOverridesModal_overrideValue__nqoDl,
.ManageIndividualOverridesModal_inheritedValue__jD9GV {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ManageIndividualOverridesModal_overrideValue__nqoDl {
  color: #111827;
  font-weight: 500;
}

.ManageIndividualOverridesModal_inheritedValue__jD9GV {
  color: #6b7280;
  font-style: italic;
}

.ManageIndividualOverridesModal_inheritedText__x8GpL {
  font-size: 0.875rem;
}

.ManageIndividualOverridesModal_editIcon__ZaVsq {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ManageIndividualOverridesModal_editIcon__ZaVsq:hover:not(:disabled) {
  background: #eef2ff;
  color: #4f46e5;
}

.ManageIndividualOverridesModal_editIcon__ZaVsq:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_editIcon__ZaVsq svg {
  width: 1rem;
  height: 1rem;
}

/* Edición inline */
.ManageIndividualOverridesModal_editContainer__0wp13 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ManageIndividualOverridesModal_input__aW8DY {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
  transition: border-color 0.2s;
}

.ManageIndividualOverridesModal_input__aW8DY:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ManageIndividualOverridesModal_input__aW8DY:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_editActions__cc_G2 {
  display: flex;
  gap: 0.5rem;
}

.ManageIndividualOverridesModal_saveButton__6kgY5,
.ManageIndividualOverridesModal_cancelButton__usV4K {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ManageIndividualOverridesModal_saveButton__6kgY5 {
  background: #6366f1;
  color: white;
}

.ManageIndividualOverridesModal_saveButton__6kgY5:hover:not(:disabled) {
  background: #4f46e5;
}

.ManageIndividualOverridesModal_saveButton__6kgY5:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_cancelButton__usV4K {
  background: #f3f4f6;
  color: #6b7280;
}

.ManageIndividualOverridesModal_cancelButton__usV4K:hover:not(:disabled) {
  background: #e5e7eb;
  color: #111827;
}

.ManageIndividualOverridesModal_cancelButton__usV4K:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_rowError__6EhdX {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Columna: Valor efectivo */
.ManageIndividualOverridesModal_tdEffective__Xt0AD {
  vertical-align: middle;
}

.ManageIndividualOverridesModal_effectiveOverride__8ajE8 {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
}

.ManageIndividualOverridesModal_effectiveInherited__EA5VJ {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #d1fae5;
  color: #065f46;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Columna: Acciones */
.ManageIndividualOverridesModal_tdActions__iA_tE {
  text-align: center;
  vertical-align: middle;
}

.ManageIndividualOverridesModal_deleteButton__uNMP2 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.ManageIndividualOverridesModal_deleteButton__uNMP2:hover:not(:disabled) {
  background: #fee2e2;
  color: #991b1b;
}

.ManageIndividualOverridesModal_deleteButton__uNMP2:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_deleteButton__uNMP2 svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ManageIndividualOverridesModal_buttonSpinner__h8Gpd {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ManageIndividualOverridesModal_spin__psiMT 0.8s linear infinite;
}

/* Footer */
.ManageIndividualOverridesModal_footer__14f1x {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.ManageIndividualOverridesModal_clearButton__QzfeW {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #dc2626;
  background: white;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ManageIndividualOverridesModal_clearButton__QzfeW:hover:not(:disabled) {
  background: #dc2626;
  color: white;
}

.ManageIndividualOverridesModal_clearButton__QzfeW:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_closeFooterButton__8U1x1 {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
}

.ManageIndividualOverridesModal_closeFooterButton__8U1x1:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Modal de confirmación */
.ManageIndividualOverridesModal_confirmOverlay__FhMWF {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 2rem;
}

.ManageIndividualOverridesModal_confirmModal__G7G9X {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
}

.ManageIndividualOverridesModal_confirmTitle__cXDbi {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

.ManageIndividualOverridesModal_confirmLoading__GDcGt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.ManageIndividualOverridesModal_confirmLoading__GDcGt .ManageIndividualOverridesModal_spinner__0gqKn {
  margin-bottom: 1rem;
}

.ManageIndividualOverridesModal_confirmInfo__XkfDi {
  margin-bottom: 1.5rem;
}

.ManageIndividualOverridesModal_confirmText__eAZAV {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.ManageIndividualOverridesModal_applyError__RQ_QH {
  padding: 0.75rem 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.ManageIndividualOverridesModal_confirmActions__hckeJ {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.ManageIndividualOverridesModal_confirmCancelButton__NNfCP,
.ManageIndividualOverridesModal_confirmDeleteButton__XPXQM {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ManageIndividualOverridesModal_confirmCancelButton__NNfCP {
  background: #f3f4f6;
  color: #374151;
}

.ManageIndividualOverridesModal_confirmCancelButton__NNfCP:hover:not(:disabled) {
  background: #e5e7eb;
}

.ManageIndividualOverridesModal_confirmCancelButton__NNfCP:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ManageIndividualOverridesModal_confirmDeleteButton__XPXQM {
  background: #dc2626;
  color: white;
}

.ManageIndividualOverridesModal_confirmDeleteButton__XPXQM:hover:not(:disabled) {
  background: #b91c1c;
}

.ManageIndividualOverridesModal_confirmDeleteButton__XPXQM:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== TOAST ===== */
.ManageIndividualOverridesModal_toast__X7ooH {
  position: fixed !important;
  top: 2rem !important;
  right: 2rem !important;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  animation: ManageIndividualOverridesModal_slideInFromTop__ZLuAR 0.3s ease;
  pointer-events: auto;
}

@keyframes ManageIndividualOverridesModal_slideInFromTop__ZLuAR {
  from {
    transform: translateY(-1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ManageIndividualOverridesModal_toastSuccess__Bxq_b {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #34D399;
}

.ManageIndividualOverridesModal_toastError__LjxR3 {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #F87171;
}

/*!***********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/AssignUsersModal.module.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************/
/* AssignUsersModal.module.css - Modal de asignación masiva de usuarios */

/* Overlay */
.AssignUsersModal_overlay__2eOVK {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

/* Modal */
.AssignUsersModal_modal__VYej7 {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header */
.AssignUsersModal_header__4dN6o {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.AssignUsersModal_title__3tWUx {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.AssignUsersModal_settingKey__dmQ5D {
  color: var(--color-accent);
  font-family: 'Courier New', monospace;
}

.AssignUsersModal_subtitle__5May7 {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
}

.AssignUsersModal_closeButton__jUMaJ {
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.AssignUsersModal_closeButton__jUMaJ:hover {
  background: #F3F4F6;
  color: #374151;
}

.AssignUsersModal_closeButton__jUMaJ svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Tabs */
.AssignUsersModal_tabs__x5rz1 {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 2rem;
  gap: 1rem;
  flex-shrink: 0;
}

.AssignUsersModal_tab__FdEUr {
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
  top: 1px;
}

.AssignUsersModal_tab__FdEUr:hover {
  color: #111827;
}

.AssignUsersModal_tabActive__EV1iE {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Body */
.AssignUsersModal_body__SqbDd {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Estados */
.AssignUsersModal_loadingState__NM4jo,
.AssignUsersModal_errorState__G86Wv {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.AssignUsersModal_spinner__cAh5v {
  width: 3rem;
  height: 3rem;
  border: 4px solid #E5E7EB;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: AssignUsersModal_spin__hEllv 0.8s linear infinite;
}

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

.AssignUsersModal_loadingState__NM4jo p,
.AssignUsersModal_errorState__G86Wv p {
  margin: 0;
  color: #6B7280;
  font-size: 0.95rem;
}

/* Content (paneles) */
.AssignUsersModal_content__T3EId {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  overflow: hidden;
  height: 100%;
}

/* Panel común */
.AssignUsersModal_leftPanel___Fipf,
.AssignUsersModal_rightPanel__TqJ5Z {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #F9FAFB;
}

.AssignUsersModal_panelTitle___S7Tm {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 1rem 1rem 0.5rem;
}

.AssignUsersModal_panelHeader__oSi6V {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.5rem;
}

.AssignUsersModal_panelHeaderWithAction__VO_Nn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 0.5rem;
  gap: 1rem;
}

.AssignUsersModal_selectAllButton__Gwha5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: none;
  border: 1px solid var(--color-accent);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.AssignUsersModal_selectAllButton__Gwha5:hover:not(:disabled) {
  background: var(--color-accent);
  color: white;
}

.AssignUsersModal_selectAllButton__Gwha5:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.AssignUsersModal_count__Zhjdx {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Búsqueda */
.AssignUsersModal_searchBox__qPaqr {
  position: relative;
  padding: 0.5rem 1rem;
}

.AssignUsersModal_searchIcon___ewhc {
  position: absolute;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9CA3AF;
  pointer-events: none;
}

.AssignUsersModal_searchInput__tJpy3 {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s;
}

.AssignUsersModal_searchInput__tJpy3:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

/* Lista de usuarios disponibles */
.AssignUsersModal_usersList__s1V95 {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.AssignUsersModal_userItem__Ny4R_ {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.AssignUsersModal_userItem__Ny4R_:hover {
  background: #F9FAFB;
  border-color: var(--color-accent);
}

.AssignUsersModal_checkbox__0u39T {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.AssignUsersModal_userInfo__zqDEl {
  flex: 1;
  min-width: 0;
}

.AssignUsersModal_userName__RzPFw {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.AssignUsersModal_userEmail__4P0Bn {
  font-size: 0.75rem;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges de origen de valor */
.AssignUsersModal_badgeUser__0P8XO,
.AssignUsersModal_badgeCompany__xR_jy,
.AssignUsersModal_badgeGlobal__lozK4 {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Badge Usuario (override de usuario) - Amarillo */
.AssignUsersModal_badgeUser__0P8XO {
  background: #FEF3C7;
  color: #92400E;
}

/* Badge Compañía (usa valor de compañía) - Azul */
.AssignUsersModal_badgeCompany__xR_jy {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Badge Global (usa valor global/default) - Gris */
.AssignUsersModal_badgeGlobal__lozK4 {
  background: #F3F4F6;
  color: #6B7280;
}

/* Lista de usuarios seleccionados */
.AssignUsersModal_selectedList__erZcp {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem 1rem;
}

.AssignUsersModal_emptyState__TLmw9 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  color: #9CA3AF;
}

.AssignUsersModal_emptyState__TLmw9 p {
  margin: 0;
  font-size: 0.875rem;
}

.AssignUsersModal_emptyHint__avO2F {
  font-size: 0.75rem !important;
}

.AssignUsersModal_selectedItem__wQ_3b {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.AssignUsersModal_selectedInfo__L_mYu {
  flex: 1;
  min-width: 0;
}

.AssignUsersModal_selectedName__I886i {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.AssignUsersModal_selectedEmail__WIl_9 {
  font-size: 0.75rem;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.AssignUsersModal_removeButton__Z4c8o {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.AssignUsersModal_removeButton__Z4c8o:hover {
  background: #FECACA;
}

/* Footer */
.AssignUsersModal_footer__cj1BS {
  padding: 1.5rem 2rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

/* Editor de valor */
.AssignUsersModal_valueEditor__X8OFq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.AssignUsersModal_valueLabel__z30aM {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.AssignUsersModal_input__YTFjj {
  padding: 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s;
}

.AssignUsersModal_input__YTFjj:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

.AssignUsersModal_input__YTFjj:disabled {
  background: #F3F4F6;
  cursor: not-allowed;
}

/* Mensaje informativo */
.AssignUsersModal_infoMessage__xCl2e {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: #EFF6FF;
  border-left: 3px solid #3B82F6;
  border-radius: 6px;
}

.AssignUsersModal_infoIcon__iKUDq {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.AssignUsersModal_infoText__A_bzu {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #1E3A8A;
  font-weight: 500;
}

.AssignUsersModal_infoDefault__mHyJD {
  margin: 0;
  font-size: 0.8125rem;
  color: #1E40AF;
}

.AssignUsersModal_infoDefault__mHyJD strong {
  font-weight: 600;
  color: #1E3A8A;
}

/* Error al aplicar */
.AssignUsersModal_applyError__JU_KN {
  padding: 0.75rem 1rem;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  color: #991B1B;
  font-size: 0.875rem;
}

/* Acciones */
.AssignUsersModal_actions__pLkZF {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.AssignUsersModal_cancelButton__BaRk0,
.AssignUsersModal_applyButton__5AQYt,
.AssignUsersModal_clearButton__tQYKN {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.AssignUsersModal_cancelButton__BaRk0 {
  border: 1px solid #D1D5DB;
  background: white;
  color: #374151;
}

.AssignUsersModal_cancelButton__BaRk0:hover:not(:disabled) {
  background: #F9FAFB;
}

.AssignUsersModal_clearButton__tQYKN {
  border: 1px solid #DC2626;
  background: white;
  color: #DC2626;
}

.AssignUsersModal_clearButton__tQYKN:hover:not(:disabled) {
  background: #DC2626;
  color: white;
}

.AssignUsersModal_clearButton__tQYKN:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.AssignUsersModal_applyButton__5AQYt {
  border: none;
  background: #10B981;
  color: white;
}

.AssignUsersModal_applyButton__5AQYt:hover:not(:disabled) {
  background: #059669;
}

.AssignUsersModal_applyButton__5AQYt:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.AssignUsersModal_buttonIcon__y4WhE {
  width: 1.125rem;
  height: 1.125rem;
}

.AssignUsersModal_buttonSpinner__P2Dsa {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: AssignUsersModal_spin__hEllv 0.8s linear infinite;
}

/* Modal de confirmación */
.AssignUsersModal_confirmOverlay__kZZSE {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 2rem;
}

.AssignUsersModal_confirmModal__XRFqB {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
}

.AssignUsersModal_confirmTitle__brUu7 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
}

.AssignUsersModal_confirmInfo__gDJLw {
  margin-bottom: 1.5rem;
}

.AssignUsersModal_confirmText__N1BH3 {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
}

.AssignUsersModal_confirmText__N1BH3:last-child {
  margin-bottom: 0;
}

.AssignUsersModal_confirmActions__pOcYX {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.AssignUsersModal_confirmCancelButton__HbZaQ,
.AssignUsersModal_confirmDeleteButton__uut0p {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.AssignUsersModal_confirmCancelButton__HbZaQ {
  background: #f3f4f6;
  color: #374151;
}

.AssignUsersModal_confirmCancelButton__HbZaQ:hover:not(:disabled) {
  background: #e5e7eb;
}

.AssignUsersModal_confirmCancelButton__HbZaQ:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.AssignUsersModal_confirmDeleteButton__uut0p {
  background: #dc2626;
  color: white;
}

.AssignUsersModal_confirmDeleteButton__uut0p:hover:not(:disabled) {
  background: #b91c1c;
}

.AssignUsersModal_confirmDeleteButton__uut0p:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== TOAST ===== */
.AssignUsersModal_toast__vKdIj {
  position: fixed !important;
  top: 2rem !important;
  right: 2rem !important;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  animation: AssignUsersModal_slideInFromTop__dO8Ou 0.3s ease;
  pointer-events: auto;
}

@keyframes AssignUsersModal_slideInFromTop__dO8Ou {
  from {
    transform: translateY(-1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.AssignUsersModal_toastSuccess__dwYAP {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #34D399;
}

.AssignUsersModal_toastError__wusW_ {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #F87171;
}

/* Responsive */
@media (max-width: 768px) {
  .AssignUsersModal_content__T3EId {
    grid-template-columns: 1fr;
  }

  .AssignUsersModal_rightPanel__TqJ5Z {
    display: none;
  }
}

/*!**************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/SettingsEditorPanel.module.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************/
/* SettingsEditorPanel.module.css - Panel lateral derecho de edición */

.SettingsEditorPanel_panel__wv6ho {
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.SettingsEditorPanel_header___5IeP {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--divider);
  background: var(--color-bg-grey);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.SettingsEditorPanel_headerTitle__8vj67 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.SettingsEditorPanel_headerTitle__8vj67 h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  word-break: break-word;
}

.SettingsEditorPanel_closeButton__KBaga {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.SettingsEditorPanel_closeButton__KBaga:hover {
  background: rgba(0, 0, 0, 0.05);
}

.SettingsEditorPanel_closeIcon__rUkhn {
  width: 1.5rem;
  height: 1.5rem;
  color: #6B7280;
}

/* Badges */
.SettingsEditorPanel_badge__MQM14 {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.SettingsEditorPanel_badgeglobal__ua0i5 {
  background: #FEE2E2;
  color: #991B1B;
}

.SettingsEditorPanel_badgecompany__rFtcz {
  background: #DBEAFE;
  color: #1E40AF;
}

.SettingsEditorPanel_badgeuser__IGXtJ {
  background: #FEF3C7;
  color: #92400E;
}

/* Contenido scrolleable */
.SettingsEditorPanel_content__Dl2Z4 {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.SettingsEditorPanel_section__N7qre {
  margin-bottom: 1.5rem;
}

.SettingsEditorPanel_description__Thecu {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

.SettingsEditorPanel_sectionTitle___afR6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Valor Efectivo (destacado, solo lectura) */
.SettingsEditorPanel_effectiveValueBox__MPjBU {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 1.25rem;
}

.SettingsEditorPanel_effectiveValue__9qbEJ {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  font-family: 'Courier New', monospace;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

/* Origen del valor */
.SettingsEditorPanel_originRow__TRNCj {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.SettingsEditorPanel_originLabel__FMg0D {
  font-size: 0.85rem;
  font-weight: 600;
  color: #78716C;
}

.SettingsEditorPanel_sourceBadge__7GV7y {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  cursor: help;
  transition: transform 0.2s;
}

.SettingsEditorPanel_sourceBadge__7GV7y:hover {
  transform: scale(1.05);
}

.SettingsEditorPanel_sourceBadgeGlobal__PjzQ6 {
  background: #E5E7EB;
  color: #4B5563;
}

.SettingsEditorPanel_sourceBadgeCompany__N0JMk {
  background: #DBEAFE;
  color: #1E40AF;
}

.SettingsEditorPanel_sourceBadgeUser__pUYg0 {
  background: #FEF3C7;
  color: #92400E;
}

/* Valor de solo lectura (date/datetime en FASE 4) */
.SettingsEditorPanel_readOnlyValue__f8u0X {
  padding: 1rem;
  background: var(--color-bg-grey);
  border: 1px dashed var(--color-border);
  border-radius: 6px;
}

.SettingsEditorPanel_readOnlyText__lIhim {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.SettingsEditorPanel_readOnlyHint__mhiuo {
  margin: 0;
  font-size: 0.85rem;
  color: #6B7280;
  font-style: italic;
}

.SettingsEditorPanel_resetInfoValue__kB4wg strong {
  color: #1E40AF;
}

/* Estados de carga del summary */
.SettingsEditorPanel_overrideSkeleton__ryvxu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 0.75rem;
}

.SettingsEditorPanel_overrideSkeleton__ryvxu .SettingsEditorPanel_spinner__VJHvR {
  width: 2rem;
  height: 2rem;
}

.SettingsEditorPanel_overrideSkeleton__ryvxu p {
  margin: 0;
  font-size: 0.9rem;
  color: #6B7280;
}

.SettingsEditorPanel_overrideError__pyKtt {
  padding: 1rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
}

.SettingsEditorPanel_overrideError__pyKtt p {
  margin: 0;
  font-size: 0.85rem;
  color: #991B1B;
}

/* Bloques de sobrescritura (jerarquía) */
.SettingsEditorPanel_overrideBlock__jIepJ {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.SettingsEditorPanel_overrideBlockGlobal__GZxmV {
  background: #F9FAFB;
  border: 2px dashed #D1D5DB;
}

.SettingsEditorPanel_overrideHeader__w4Toh {
  background: var(--color-bg-grey);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.SettingsEditorPanel_overrideTitle__BXn8e {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: help;
}

.SettingsEditorPanel_overrideStatusBadge__NXDce {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #D1FAE5;
  color: #065F46;
  text-transform: lowercase;
}

.SettingsEditorPanel_overrideStatusBadgeEmpty__le47U {
  background: #F3F4F6;
  color: #6B7280;
}

.SettingsEditorPanel_overrideValue__Wqjz9 {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  word-break: break-word;
  margin-bottom: 0.5rem;
}

.SettingsEditorPanel_overrideHint__CBFAs {
  font-size: 0.8rem;
  color: #6B7280;
  font-style: italic;
  margin: 0;
}

.SettingsEditorPanel_overrideTitleNested__p8lq8 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6B7280;
  margin: 0;
}

.SettingsEditorPanel_overrideContent__th4_m {
  padding: 1rem;
}

.SettingsEditorPanel_overrideContentNested__qCVX0 {
  padding: 0.75rem;
}

.SettingsEditorPanel_overrideStatus__0FTVx {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.SettingsEditorPanel_overrideStatusLabel__A3Y1t {
  font-weight: 600;
  color: #6B7280;
}

.SettingsEditorPanel_overrideStatusValue__bppPZ {
  color: var(--color-dark);
  font-weight: 600;
}

.SettingsEditorPanel_overrideStatusEmpty__G6DAS {
  color: #9CA3AF;
  font-style: italic;
}

.SettingsEditorPanel_overrideEditor__S3GHd {
  margin-top: 0.75rem;
}

.SettingsEditorPanel_overrideLabel__TPQgJ {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4B5563;
  margin-bottom: 0.5rem;
}

.SettingsEditorPanel_overrideDisabled__5y9sg {
  padding: 1rem;
  background: #F9FAFB;
  border-top: 1px solid var(--color-border);
}

.SettingsEditorPanel_overrideDisabled__5y9sg p {
  margin: 0;
  font-size: 0.85rem;
  color: #6B7280;
  font-style: italic;
}

/* Bloque Usuario (anidado bajo Compañía) */
.SettingsEditorPanel_overrideBlockNested__tTKfj {
  margin: 1rem 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  background: #FEFCE8;
  border-radius: 0 8px 8px 0;
}

.SettingsEditorPanel_overrideInfo__ax_3k {
  margin-bottom: 0.75rem;
}

.SettingsEditorPanel_overrideInfoText__eqXkN {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.SettingsEditorPanel_overrideInfoHint__CkGiW {
  margin: 0;
  font-size: 0.8rem;
  color: #78716C;
  line-height: 1.4;
}

.SettingsEditorPanel_overrideActions__vmNMW {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.SettingsEditorPanel_overrideActionButton__SD0Nh {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--color-accent-start);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: left;
}

.SettingsEditorPanel_overrideActionButton__SD0Nh:hover:not(:disabled) {
  background: var(--color-accent-end);
}

.SettingsEditorPanel_overrideActionButton__SD0Nh:active:not(:disabled) {
  transform: scale(0.98);
}

.SettingsEditorPanel_overrideActionButton__SD0Nh:disabled {
  background: #CBD5E1;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Valor por defecto */
.SettingsEditorPanel_defaultValue__g0wbC {
  background: var(--color-bg-grey);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--color-text);
  word-break: break-word;
  white-space: pre-wrap;
}

.SettingsEditorPanel_defaultHint__crjvK {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: #9CA3AF;
  font-style: italic;
}

.SettingsEditorPanel_readOnlyValue__f8u0X {
  padding: 0.75rem;
  background: #F9FAFB;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #4B5563;
  word-break: break-word;
}

/* Inputs */
.SettingsEditorPanel_input__qvVj8 {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.SettingsEditorPanel_input__qvVj8:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

.SettingsEditorPanel_input__qvVj8:disabled {
  background: #F3F4F6;
  cursor: not-allowed;
}

.SettingsEditorPanel_textarea__NZnW3 {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  background: var(--color-bg-light);
  color: var(--color-text);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.SettingsEditorPanel_textarea__NZnW3:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 145, 27, 0.1);
}

/* Switch toggle (para booleanos) */
.SettingsEditorPanel_switchContainer__Fy7OX {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.SettingsEditorPanel_switchInput__eHhLk {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.SettingsEditorPanel_switchSlider__VlgS1 {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  background: #CBD5E1;
  border-radius: 28px;
  transition: background 0.3s;
}

.SettingsEditorPanel_switchSlider__VlgS1::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.SettingsEditorPanel_switchInput__eHhLk:checked + .SettingsEditorPanel_switchSlider__VlgS1 {
  background: var(--color-accent);
}

.SettingsEditorPanel_switchInput__eHhLk:checked + .SettingsEditorPanel_switchSlider__VlgS1::before {
  transform: translateX(22px);
}

.SettingsEditorPanel_switchInput__eHhLk:disabled + .SettingsEditorPanel_switchSlider__VlgS1 {
  opacity: 0.5;
  cursor: not-allowed;
}

.SettingsEditorPanel_switchLabel___ivJ2 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
}

/* Metadata */
.SettingsEditorPanel_metadata__W4s6e {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.SettingsEditorPanel_metadataItem__2ol8o {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.SettingsEditorPanel_metadataLabel___mGaJ {
  font-weight: 600;
  color: #6B7280;
  min-width: 60px;
}

.SettingsEditorPanel_metadataCode__mpt14 {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--color-dark);
  background: var(--color-bg-grey);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Mensajes */
.SettingsEditorPanel_successMessage__4HW6t {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #D1FAE5;
  border: 1px solid #34D399;
  border-radius: 8px;
  color: #065F46;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.SettingsEditorPanel_messageIcon__Nn9ig {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.SettingsEditorPanel_errorMessage__6dDwh {
  padding: 0.75rem 1rem;
  background: #FEE2E2;
  border: 1px solid #F87171;
  border-radius: 8px;
  color: #991B1B;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.SettingsEditorPanel_warningMessage__kp_Tw {
  padding: 0.75rem 1rem;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  color: #92400E;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Footer con acciones */
.SettingsEditorPanel_footer__KzVJj {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--divider);
  background: var(--color-bg-grey);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.SettingsEditorPanel_saveButton__Z51JZ {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--color-accent-start);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.SettingsEditorPanel_saveButton__Z51JZ:hover:not(:disabled) {
  background: var(--color-accent-end);
}

.SettingsEditorPanel_saveButton__Z51JZ:active:not(:disabled) {
  transform: scale(0.98);
}

.SettingsEditorPanel_saveButton__Z51JZ:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
}

.SettingsEditorPanel_resetButton__jJ9lD {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: white;
  color: #DC2626;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.SettingsEditorPanel_resetButton__jJ9lD:hover:not(:disabled) {
  background: #FEE2E2;
  border-color: #DC2626;
}

.SettingsEditorPanel_resetButton__jJ9lD:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.SettingsEditorPanel_buttonIcon__p6Nle {
  width: 1.1rem;
  height: 1.1rem;
}

/* Reset confirmation */
.SettingsEditorPanel_resetConfirm__Kyv58 {
  padding: 1rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
}

.SettingsEditorPanel_resetConfirmTitle__H59ue {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: #7F1D1D;
  font-weight: 500;
}

/* Información de fallback en modal */
.SettingsEditorPanel_resetFallbackInfo__CCRR5 {
  margin: 0.75rem 0;
  padding: 1rem;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 6px;
}

.SettingsEditorPanel_resetFallbackLabel__mFPoM {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #92400E;
}

.SettingsEditorPanel_resetFallbackDetails__X_TRd {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.SettingsEditorPanel_resetFallbackItem__oMwjN {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.9rem;
  line-height: 1.5;
}

.SettingsEditorPanel_resetFallbackKey__NjOp4 {
  font-weight: 600;
  color: #92400E;
  min-width: 60px;
}

.SettingsEditorPanel_resetFallbackValue__z78ZC {
  color: #92400E;
  font-weight: 500;
  flex: 1;
}

/* Aviso sobre usuarios con configuración individual */
.SettingsEditorPanel_resetUserWarning__35Mfm {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #DBEAFE;
  border: 1px solid #93C5FD;
  border-radius: 6px;
}

.SettingsEditorPanel_resetUserWarningText__FA769 {
  margin: 0;
  font-size: 0.85rem;
  color: #1E40AF;
  line-height: 1.5;
}

.SettingsEditorPanel_resetConfirm__Kyv58 p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: #7F1D1D;
  font-weight: 500;
}

.SettingsEditorPanel_resetActions__eysOY {
  display: flex;
  gap: 0.5rem;
}

.SettingsEditorPanel_resetCancelButton__1q1__ {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: white;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.SettingsEditorPanel_resetCancelButton__1q1__:hover:not(:disabled) {
  background: var(--color-bg-grey);
}

.SettingsEditorPanel_resetConfirmButton__BGmJ5 {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: #DC2626;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.SettingsEditorPanel_resetConfirmButton__BGmJ5:hover:not(:disabled) {
  background: #B91C1C;
}

.SettingsEditorPanel_resetConfirmButton__BGmJ5:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Estados especiales */
.SettingsEditorPanel_emptyState__Xas3u,
.SettingsEditorPanel_loadingState__Fjj33,
.SettingsEditorPanel_errorState__GnPR_ {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.SettingsEditorPanel_emptyIcon__7zFuD,
.SettingsEditorPanel_errorIcon__hQmoX {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.SettingsEditorPanel_emptyState__Xas3u h3,
.SettingsEditorPanel_errorState__GnPR_ h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.5rem 0;
}

.SettingsEditorPanel_emptyState__Xas3u p,
.SettingsEditorPanel_errorState__GnPR_ p {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

.SettingsEditorPanel_errorState__GnPR_ {
  color: #DC2626;
}

.SettingsEditorPanel_errorIcon__hQmoX {
  color: #DC2626;
}

.SettingsEditorPanel_errorState__GnPR_ h3 {
  color: #DC2626;
}

/* Loading spinner */
.SettingsEditorPanel_loadingState__Fjj33 {
  gap: 1rem;
}

.SettingsEditorPanel_spinner__VJHvR {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--color-bg-grey);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: SettingsEditorPanel_spin__tQf_Q 0.8s linear infinite;
}

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

/* Scrollbar personalizado */
.SettingsEditorPanel_content__Dl2Z4::-webkit-scrollbar {
  width: 6px;
}

.SettingsEditorPanel_content__Dl2Z4::-webkit-scrollbar-track {
  background: var(--color-bg-grey);
}

.SettingsEditorPanel_content__Dl2Z4::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.SettingsEditorPanel_content__Dl2Z4::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* El ancho se maneja ahora por el ResizablePanel parent */

/*!*********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/components/settings/ResizablePanel.module.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************/
/* ResizablePanel.module.css - Contenedor de paneles redimensionables */

.ResizablePanel_container__SczKR {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Panel izquierdo (listado) - ocupa el espacio restante */
.ResizablePanel_leftPanel__ch0si {
  flex: 1;
  min-width: 100px;
  height: 100%;
  overflow: hidden; /* El scroll lo maneja el contenido interno */
  background: var(--color-bg-light);
  display: flex;
  flex-direction: column;
}

/* Divisor arrastrable */
.ResizablePanel_resizer__M1yiV {
  width: 8px;
  height: 100%;
  cursor: col-resize;
  background: var(--divider);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  z-index: 10;
}

.ResizablePanel_resizer__M1yiV:hover {
  background: var(--color-accent);
}

.ResizablePanel_resizer__M1yiV.ResizablePanel_resizing__3ZcHa {
  background: var(--color-accent);
}

/* Handle visual del divisor (3 líneas verticales) */
.ResizablePanel_resizerHandle__iev7o {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ResizablePanel_resizerLine__c5OwJ {
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
}

.ResizablePanel_resizer__M1yiV:hover .ResizablePanel_resizerLine__c5OwJ,
.ResizablePanel_resizer__M1yiV.ResizablePanel_resizing__3ZcHa .ResizablePanel_resizerLine__c5OwJ {
  background: white;
}

/* Panel derecho (editor) - ancho dinámico */
.ResizablePanel_rightPanel__ZG2pS {
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-light);
}

/* Feedback visual durante resize */
.ResizablePanel_resizer__M1yiV::before {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 0;
  bottom: 0;
  background: transparent;
  transition: background 0.2s;
  pointer-events: none;
}

.ResizablePanel_resizer__M1yiV:hover::before,
.ResizablePanel_resizer__M1yiV.ResizablePanel_resizing__3ZcHa::before {
  background: rgba(246, 145, 27, 0.1);
}

/* Responsive: En pantallas pequeñas, deshabilitar resize */
@media (max-width: 1024px) {
  .ResizablePanel_resizer__M1yiV {
    cursor: default;
    pointer-events: none;
  }
  
  .ResizablePanel_rightPanel__ZG2pS {
    width: 360px !important;
  }
}

@media (max-width: 768px) {
  .ResizablePanel_container__SczKR {
    flex-direction: column;
  }
  
  .ResizablePanel_leftPanel__ch0si {
    min-width: unset;
  }
  
  .ResizablePanel_resizer__M1yiV {
    display: none;
  }
  
  .ResizablePanel_rightPanel__ZG2pS {
    width: 100% !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[5].use[3]!./src/app/settings/Settings.module.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* Settings.module.css - Centro de configuración */

/* Layout grid igual que query-generator */
.Settings_layoutGrid__LsH0t {
  display: grid;
  grid-template-areas:
    'header header'
    'sidebar main';
  grid-template-rows: 64px 1fr;
  grid-template-columns: var(--sidebar-width, 280px) 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.Settings_container__SyC6v {
  grid-area: main;
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
  overflow: hidden;
}

/* Layout de 3 columnas:
   - SettingsSidebar (320px fijo)
   - SettingsList (flex: 1)
   - SettingsEditorPanel (420px fijo, solo cuando hay selección)
*/

/* Responsivo */
@media (max-width: 768px) {
  .Settings_container__SyC6v {
    flex-direction: column;
  }
  
  .Settings_placeholder__pBf_b h2 {
    font-size: 1.25rem;
  }
  
  .Settings_placeholderIcon__Ba6vI {
    font-size: 3rem;
  }
}

