/* LoginPage.css - Estilos modernos para el login admin usando colores de colores.css */

.login-root {
  height: 100vh;
  display: grid;
  place-items: center;
  background: var(--color-bg); /* fondo claro */
}

.login-paper {
  padding: var(--space-lg) var(--space-md);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
}

.login-title {
  font-weight: 800;
  margin-bottom: var(--space-lg);
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
}

.login-form {
  display: grid;
  gap: var(--space-md);
}

.login-btn {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 0;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-black);
  transition: var(--transition-fast);
}
.login-btn:disabled {
  background: var(--color-border-light);
  color: var(--text-disabled);
}

.login-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.login-alert {
  margin-bottom: var(--space-sm);
  color: var(--color-error);
}

.login-form .MuiInputBase-input {
  background: var(--color-surface-light);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.login-form .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border-light);
}

@media (max-width: 500px) {
  .login-paper {
    padding: var(--space-md) var(--space-xs);
    max-width: 98vw;
  }
  .login-title {
    font-size: 1.1rem;
  }
}
/* src/views/dashboard/Sidebar.css */

/* Sidebar root */
.sidebar-root { 
  z-index: 1400;
}

/* Paper del Drawer */
.sidebar-paper {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  background: var(--color-surface) !important;
  border: none !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  overflow-y: auto !important;
  height: 100vh !important;
  top: 70px !important;
  height: calc(100vh - 70px) !important;
}

/* Encabezado del sidebar */
.sidebar-header{
  padding: 20px 16px;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 8px;
  background: var(--color-surface);
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Lista y items del menú */
.sidebar-list{
  padding: 16px 12px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100% !important;
}

.sidebar-item{
  border-radius: 8px !important;
  margin-bottom: 4px !important;
  transition: all 0.2s ease !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

.sidebar-item:hover{ 
  background: rgba(245, 182, 24, 0.1) !important; 
  color: var(--color-primary) !important;
  transform: translateX(4px) !important;
}

.sidebar-item.Mui-selected{
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-item.Mui-selected:hover{ 
  background: var(--color-primary-dark) !important;
  transform: translateX(0) !important;
}

.sidebar-icon{ 
  color: inherit !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sidebar-item.Mui-selected .sidebar-icon{ 
  color: var(--color-white) !important; 
}

.sidebar-text{ 
  color: inherit;
}

.sidebar-backdrop {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px);
  top: 70px !important;
  height: calc(100vh - 70px) !important;
}

/* Scrollbar personalizado */
.sidebar-list::-webkit-scrollbar{ 
  width: 6px; 
}

.sidebar-list::-webkit-scrollbar-track{
  background: transparent;
}

.sidebar-list::-webkit-scrollbar-thumb{
  background: var(--color-border);
  border-radius: 3px;
  transition: background 0.2s;
}

.sidebar-list::-webkit-scrollbar-thumb:hover{
  background: rgba(245, 182, 24, 0.3);
}
/* ==========================
   CONTENT VIEW – LAYOUT BASE
   ========================== */

/* Asegura contraste del área de contenido */
:where(#root, body) {
  background-color: var(--color-bg);
  color: var(--text-primary);
}

/* ==========================
   HERO (Card superior)
   ========================== */

/* Primer Card dentro de la vista de contenido: típico "hero" */
.MuiCard-root:first-of-type {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
}

/* Espaciado interno homogéneo */
.MuiCardContent-root {
  padding: 16px;
}

/* Tipografía base del bloque izquierdo del hero (no crea nuevas clases) */
.MuiCardContent-root :is(h1, h2, .MuiTypography-root) {
  color: var(--text-primary);
}

/* Botonera del hero (recarga, engranaje) */
.MuiButton-contained {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.MuiButton-contained:hover {
  filter: brightness(1.05);
  transition: all 0.2s ease;
}

/* ==========================
   TABLA (Card de tabla)
   ========================== */

/* Segundo Card (usualmente donde vive la tabla) */
.MuiCard-root + .MuiCard-root .MuiCardContent-root {
  background-color: var(--color-surface);
  padding: 0;
}

/* Tabla y cabecera */
.MuiTable-root {
  background-color: var(--color-surface);
}
.MuiTableHead-root th {
  background: var(--color-surface);
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  text-align: center;
  white-space: nowrap;
}

/* Filas y celdas */
.MuiTableBody-root td {
  color: var(--text-primary);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  vertical-align: top;
  padding: 4px 8px;
}

/* Hover de fila */
.MuiTableRow-hover:hover {
  background-color: var(--color-surface-light);
}

/* Campos en <pre> (JSON) */
pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  white-space: pre-wrap;
  line-height: 1.4;
  max-height: 9.5rem;
  overflow: auto;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  color: var(--text-secondary);
}

/* Paginación */
.MuiTablePagination-root {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 0 8px 8px 8px;
}

/* ==========================
   CHIPS DE ESTADO (sin tocar JSX)
   ========================== */

/* Pendiente -> usa color="warning" en JSX */
.MuiChip-outlined.MuiChip-colorWarning {
  border-color: var(--color-pending);
  color: var(--color-pending);
}

/* Completado -> color="success" */
.MuiChip-outlined.MuiChip-colorSuccess {
  border-color: var(--color-success);
  color: var(--color-success);
}

/* Proceso -> color="info" en JSX, pero tu paleta pide --color-warning */
.MuiChip-outlined.MuiChip-colorInfo {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

/* Rechazado -> color="error" */
.MuiChip-outlined.MuiChip-colorError {
  border-color: var(--color-error);
  color: var(--color-error);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 1024px) {
  .MuiCardContent-root {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .MuiTableCell-root {
    padding: 6px 8px;
  }
}
/* ==========================
   HEADER – CONTENEDOR
   ========================== */

/* Fondo del header coherente */
header,
.header,
.MuiAppBar-root {
  background-color: var(--color-surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Botones e iconos */
.MuiIconButton-root {
  color: var(--text-secondary);
}
.MuiIconButton-root:hover {
  color: var(--text-primary);
}

/* ==========================
   DIALOG PERFIL (AdminProfileDialog.jsx)
   ========================== */

.MuiDialog-paper {
  background-color: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.MuiDialogTitle-root {
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 16px 8px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.MuiDialogContent-root {
  padding: 12px 16px;
  background: var(--color-bg);
}

.MuiDialogActions-root {
  padding: 8px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* Inputs oscuros */
.MuiTextField-root { background-color: var(--color-surface) !important; border-radius: 4px; }
.MuiInputBase-root { color: var(--text-primary) !important; }
.MuiInputLabel-root { color: var(--text-muted) !important; }
.Mui-focused .MuiInputLabel-root { color: var(--color-primary) !important; }
.MuiOutlinedInput-notchedOutline { border-color: var(--color-border) !important; }
.Mui-focused .MuiOutlinedInput-notchedOutline { border-color: var(--color-primary) !important; }

.app-header,
header,
.header,
.MuiAppBar-root {
  padding-left: 2vw;
  padding-right: 2vw;
}

@media (max-width: 600px) {
  .app-header,
  header,
  .header,
  .MuiAppBar-root {
    padding-left: 8px;
    padding-right: 8px;
  }
}
:root {
  --header-h: 70px;
  --sidebar-w: 300px;
}

/* ========== LAYOUT GENERAL ========== */
.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--text-primary);
}

/* ========== HEADER FIJO ========== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1300;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}

/* ========== CUERPO DEL LAYOUT ========== */
.app-body {
  display: flex;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  position: relative;
}

/* ========== CONTENIDO PRINCIPAL ========== */
.admin-main-content {
  flex: 1;
  margin-left: 0;
  padding: 24px;
  background: var(--color-bg);
  color: var(--text-primary);
  height: calc(100vh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-sizing: border-box;
  transition: padding 0.2s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .admin-main-content {
    margin-left: 0;
    padding: 16px;
    height: calc(100vh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
  }
}

:root {
  --color-process: var(--color-warning);
}
.orders-page-container {
  padding: 32px;
}
.orders-table-container {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.orders-table-head {
  background: var(--color-surface-light);
}
.orders-status-badge {
  border-radius: 8px;
  padding: 2px 12px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  text-align: center;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  color: var(--text-primary);
}

.orders-table-container .MuiTableCell-root {
  vertical-align: middle;
}

.orders-table-container .orders-status-badge,
.orders-table-container .MuiTableCell-alignCenter {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.orders-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}
.orders-toolbar .orders-search {
  flex: 1 1 auto;
  min-width: 0;
}
.orders-toolbar .orders-combo {
  flex: 0 0 180px;
}
.order-details-dialog {
  background: var(--color-surface);
  color: var(--text-primary);
  font-family: 'Roboto', Arial, sans-serif;
}

.order-details-dialog .MuiPaper-root {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.order-details-dialog .MuiDialogTitle-root {
  background: var(--color-surface-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.order-details-dialog .MuiDialogContent-root {
  background: var(--color-surface);
  color: var(--text-primary);
}

.order-details-dialog .MuiDialogActions-root {
  background: var(--color-surface-light);
  padding: 16px;
}

.order-details-dialog .MuiButton-root {
  color: var(--color-primary);
  font-weight: 700;
}

.order-details-grid {
  margin-top: 4px;
}

.order-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0;
  min-height: 40px;
}

.label {
  min-width: 140px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.value {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  border-radius: 0;
  padding: 0;
  font-size: 1rem;
  border: none;
}

.order-details-pre,
.order-details-result {
  background: var(--color-surface);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--color-border);
  max-height: 320px;
  overflow: auto;
}

.udb-status-chip {
  font-weight: 700;
  font-size: 0.95rem;
}

.udb-status-completed {
  background: var(--color-success) !important;
  color: var(--color-black) !important;
  border: none !important;
}

.udb-status-failed, .udb-status-rejected {
  background: var(--color-error) !important;
  color: var(--color-white) !important;
  border: none !important;
}

.udb-status-pending, .udb-status-in-progress {
  background: var(--color-warning) !important;
  color: var(--color-black) !important;
  border: none !important;
}

.udb-status-not-found {
  background: var(--color-border) !important;
  color: var(--text-primary) !important;
  border: none !important;
}

.udb-status-cancelled {
  background: color-mix(in srgb, var(--color-white) 40%, transparent) !important;
  color: var(--color-black) !important;
  border: none !important;
}

.udb-status-unknown {
  background: color-mix(in srgb, var(--color-black) 55%, transparent) !important;
  color: var(--text-primary) !important;
  border: none !important;
}

.orders-status-badge {
  border-radius: 8px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  text-align: center;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.order-status-completed {
  background: var(--color-success);
  color: var(--color-black);
}

.order-status-in_progress {
  background: var(--color-warning);
  color: var(--color-black);
}

.order-status-pending {
  background: var(--color-pending);
  color: var(--color-black);
}

.order-status-failed {
  background: var(--color-error);
  color: var(--color-white);
}

.order-status-cancelled {
  background: var(--color-border);
  color: var(--text-primary);
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/assets/layers-BWBAp2CZ.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/assets/layers-2x-Bpkbi35X.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/assets/marker-icon-hN30_KVU.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
.map-panel {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.map-toolbar {
  position: absolute;
  z-index: 1000;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}

.map-presets {
  display: flex;
  gap: 4px;
  align-items: center;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}

.map-error {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--color-error);
  color: #fff;
  font-size: 0.78rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.map-leaflet {
  height: 100%;
  width: 100%;
}

.map-loading-text {
  padding: var(--space-md);
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .map-panel {
    min-height: 280px;
  }
}
.providers-panel {
  height: 100%;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  gap: 6px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.providers-panel .loading-container {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.providers-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.table-container td {
  padding: 8px 6px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--color-border);
}

.table-container tr:last-child td {
  border-bottom: 0;
}

.table-container tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.provider-info {
  font-weight: 600;
  color: var(--text-primary);
}

.balance-cell {
  font-weight: 600;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.balance-cell[data-balance-level="low"] {
  color: var(--color-error) !important;
}

.balance-cell[data-balance-level="mid"] {
  color: var(--color-info) !important;
}

.balance-cell[data-balance-level="high"] {
  color: var(--color-success) !important;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 0.78rem;
  position: sticky;
  bottom: 0;
  z-index: 1;
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
  .total-row {
    border-top: 2px solid var(--color-border);
    background: var(--color-bg);
  }
}
/* Grid & Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: var(--space-2);
}

.summary-error {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  background: rgba(230, 66, 66, 0.06);
}

.summary-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 172px;
  display: flex;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.summary-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent, var(--color-primary)), transparent);
}

.summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
}

.summary-card.loading {
  opacity: 0.8;
  pointer-events: none;
}

.summary-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) !important;
  width: 100%;
}

.summary-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.summary-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.summary-icon {
  color: inherit !important;
}

.summary-card__title {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  letter-spacing: 0.01em;
  font-size: 0.92rem !important;
}

.summary-card__extra {
  margin-left: auto;
}

/* Layout splits */
.summary-custom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.summary-split {
  flex-direction: row;
  align-items: stretch;
  gap: var(--space-md);
}

.summary-split.align-top {
  align-items: flex-start;
}

.summary-progress-wrapper {
  flex: 1;
}

/* Chips */
.summary-periods {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  width: 100%;
}

.summary-periods.vertical {
  flex-direction: column;
  max-width: 110px;
}

.summary-periods.horizontal {
  flex-direction: row;
}

.summary-chip {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  height: 24px !important;
  border-radius: var(--radius-sm) !important;
}

.summary-chip-period {
  background-color: var(--color-surface-light) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--color-border) !important;
}

.summary-chip-period.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 3px 10px rgba(214, 164, 25, 0.25) !important;
}

/* Progress bars */
.summary-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.summary-progress {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
}

.summary-progress-bar {
  height: 8px !important;
  border-radius: 999px !important;
  background: var(--color-border) !important;
}

.summary-progress-bar .MuiLinearProgress-bar {
  border-radius: 999px !important;
}

.summary-value {
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  color: var(--text-primary) !important;
}

.summary-total {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  text-align: right !important;
  border-top: 1px dashed var(--color-border) !important;
  padding-top: var(--space-xs) !important;
}

/* Users */
.summary-total-users,
.summary-today-users {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 90px;
  text-align: center;
}

.summary-value-users {
  font-weight: 900 !important;
  color: var(--color-primary) !important;
  font-size: 1.45rem !important;
  line-height: 1;
}

.summary-value-today-users {
  font-weight: 900 !important;
  color: var(--color-success) !important;
  font-size: 2.4rem !important;
  line-height: 1;
}

.summary-label-today-users {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.summary-last-user {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.summary-info-last-user {
  font-weight: 800 !important;
  color: var(--color-primary) !important;
  font-size: 1rem !important;
  letter-spacing: 0.01em;
}

.summary-date-last-user {
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
}

/* Users rotation */
.summary-chip-users-mode {
  background: rgba(214, 164, 25, 0.12) !important;
  border: 1px solid rgba(214, 164, 25, 0.35) !important;
  color: var(--text-primary) !important;
  font-weight: 800 !important;
}

.summary-users {
  align-items: center;
  justify-content: center;
}

.summary-users-rotate {
  width: 100%;
  animation: usersRotateIn 420ms ease both;
}

.summary-users-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.summary-users-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 200ms ease, background 200ms ease;
}

.summary-users-dot.active {
  background: var(--color-primary);
  transform: scale(1.15);
}

@keyframes usersRotateIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-users-rotate {
    animation: none;
  }
}

/* Recharges rotation */
.summary-recharge-header {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-chip-recharge-mode {
  background: rgba(234, 179, 8, 0.12) !important;
  border: 1px solid rgba(234, 179, 8, 0.35) !important;
  color: var(--text-primary) !important;
  font-weight: 800 !important;
}

.summary-recharge {
  align-items: center;
  justify-content: center;
}

.summary-recharge-rotate {
  width: 100%;
  animation: rechargeRotateIn 420ms ease both;
}

.summary-recharge-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.summary-recharge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 200ms ease, background 200ms ease;
}

.summary-recharge-dot.active {
  background: var(--color-warning);
  transform: scale(1.15);
}

@keyframes rechargeRotateIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-recharge-rotate {
    animation: none;
  }
}

/* Services (line chart) */
.summary-card-services {
  min-height: 160px;
}

.summary-card-services .summary-card__icon {
  width: 32px;
  height: 32px;
}

.summary-card-services .summary-icon {
  font-size: 1.1rem !important;
}

.summary-services-header {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.summary-services-chart {
  width: 100%;
}

.summary-services-empty {
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.02);
}

.summary-services-svg {
  width: 100%;
  height: 96px;
  display: block;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.05), rgba(0, 0, 0, 0));
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-services-svg .grid line {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-dasharray: 3 4;
}

.summary-services-svg .hoverline {
  stroke: rgba(0, 0, 0, 0.18);
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}

.summary-services-svg .line {
  fill: none;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.summary-services-svg .line.imei {
  stroke: var(--color-primary);
}

.summary-services-svg .line.server {
  stroke: var(--color-pending);
}

.summary-services-svg .dot {
  vector-effect: non-scaling-stroke;
}

.summary-services-svg .dot.imei {
  fill: var(--color-primary);
}

.summary-services-svg .dot.server {
  fill: var(--color-pending);
}

.summary-services-svg .dot.hover {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.summary-services-tooltip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
  pointer-events: none;
  min-width: 140px;
  max-width: 220px;
}

.summary-services-tooltip .t-title {
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
  margin-bottom: 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-services-tooltip .t-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 700;
  line-height: 1.2;
}

.summary-services-tooltip .t-row strong {
  margin-left: auto;
  color: var(--text-primary);
  font-weight: 900;
}

.summary-services-svg .xlabels text {
  font-size: 8px;
  fill: rgba(0, 0, 0, 0.5);
}

.summary-services-legend {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.summary-services-legend .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.summary-services-legend .item strong {
  color: var(--text-primary);
  font-weight: 900;
}

.summary-services-legend .swatch {
  width: 10px;
  height: 3px;
  border-radius: 999px;
}

.summary-services-legend .swatch.imei {
  background: var(--color-primary);
}

.summary-services-legend .swatch.server {
  background: var(--color-pending);
}

/* Recharges */
.summary-value-recharges-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  padding: 0 !important;
}

.summary-value-panel {
  width: 100%;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(214, 164, 25, 0.22);
  box-shadow: 0 6px 16px rgba(214, 164, 25, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px !important;
  justify-content: center !important;
  padding: 0.55rem 0.75rem !important;
}

.summary-value-panel.highlight {
  border-radius: var(--radius-md) !important;
  background: linear-gradient(90deg, rgba(234,179,8,0.05) 0%, rgba(234,179,8,0.12) 100%) !important;
  box-shadow: 0 2px 6px rgba(234,179,8,0.08) !important;
  min-width: 120px;
  min-height: 40px;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.summary-value-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-value-col.align-start {
  align-items: flex-start;
  justify-content: flex-start;
}

.summary-value-recharges-big {
  font-weight: 900 !important;
  color: var(--color-primary) !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 6px 14px rgba(214, 164, 25, 0.16) !important;
}

.summary-value-recharges-currency {
  font-size: 0.55rem !important;
  font-weight: 700 !important;
  color: var(--color-warning) !important;
  margin-left: 2px !important;
  align-self: flex-start !important;
  opacity: 0.9;
}

.summary-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.summary-chip-average {
  background: rgba(234, 179, 8, 0.16) !important;
  color: #8a6a00 !important;
  border: 1px solid rgba(234, 179, 8, 0.32) !important;
  font-weight: 700 !important;
}

/* Extras */
.summary-extra {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.summary-chip-success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: var(--color-success) !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
}

.summary-chip-warning {
  background: rgba(234, 179, 8, 0.1) !important;
  color: var(--color-warning) !important;
  border: 1px solid rgba(234, 179, 8, 0.25) !important;
}

.summary-chip-error {
  background: rgba(230, 66, 66, 0.12) !important;
  color: var(--color-error) !important;
  border: 1px solid rgba(230, 66, 66, 0.2) !important;
}

.summary-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.is-rotating {
  animation: spin 1s linear infinite;
}

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

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

@media (max-width: 768px) {
  .summary-split {
    flex-direction: column;
  }

  .summary-periods.vertical {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .summary-value-col {
    justify-content: flex-start;
  }

  .summary-card__extra {
    margin-left: 0;
  }
}
/* Users Page - Modo Oscuro Optimizado */
.users-view { 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  min-height: 0; 
  color: var(--text-primary);
  background: var(--color-bg);
  flex: 1;
  padding: 0 var(--space-lg);
}

.users-tabs-wrap { 
  padding: 0 var(--space-md) var(--space-md); 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.users-content { 
  flex: 1 1 auto; 
  min-height: 0; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden;
}

.users-tabpanel { 
  flex: 1 1 auto; 
  min-height: 0; 
  display: flex; 
  flex-direction: column; 
}

.users-panel-inner { 
  flex: 1 1 auto; 
  min-height: 0; 
  display: flex; 
  flex-direction: column; 
  gap: var(--space-lg);
  overflow: hidden;
}

.users-toolbar, .users-form { 
  padding: var(--space-sm); 
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.users-toolbar {
  align-items: center;
}

.users-toolbar .MuiTextField-root {
  min-width: 260px;
}

.users-toolbar .MuiOutlinedInput-root {
  height: 38px;
  background: var(--color-surface-light);
}

.users-toolbar .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.users-toolbar .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.users-table-wrap { 
  flex: 1 1 auto; 
  min-height: 0; 
  overflow: auto; 
  border-radius: var(--radius-md); 
  background: var(--color-surface); 
  box-shadow: var(--shadow-2); 
  padding: var(--space-lg); 
  border: 1px solid var(--color-border);
  color: var(--text-primary);
}

.users-table-wrap table { 
  width: 100%; 
  table-layout: fixed;
  color: var(--text-primary);
  border-collapse: collapse;
}

.users-table-wrap th {
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  background: var(--color-surface-light);
}

.users-table-wrap td {
  color: var(--text-secondary);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.users-table-wrap tr:hover td {
  background: var(--color-surface-light);
  color: var(--text-primary);
}
/* ===== Recarga de créditos (usa variables globales) ===== */

/* Diálogo principal */
.recharge-dialog .MuiPaper-root {
  background: var(--color-bg) !important;
}

.recharge-dialog .MuiDialogTitle-root {
  background: var(--color-bg) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}

.recharge-dialog .MuiDialogContent-root {
  background: var(--color-bg) !important;
  padding: 0 !important;
}

.recharge-dialog .MuiDialogActions-root {
  background: var(--color-bg) !important;
  border-top: 1px solid var(--color-border);
}

.recharge {
  padding: 16px;
  background: var(--color-bg);
  min-height: 100%;
  border-radius: 8px;
}

/* Stack base */
.recharge__stack {
  color: var(--text-primary);
}

/* -------- Card genérico -------- */
.recharge__card {
  background: var(--color-surface); /* ✅ fondo oscuro */
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  padding: 16px;
}


/* Card usuario */
.recharge__card--user .recharge__title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.recharge__subtitle {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.recharge__credits .recharge__label {
  font-weight: 600;
  color: var(--text-primary);
}

/* Chip créditos */
.recharge__chip.MuiChip-root {
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
  color: var(--text-primary);
  font-weight: 700;
  border: 1px solid var(--color-primary);
  height: 26px;
}

/* Alertas */
.recharge__alert.MuiAlert-root {
  background: color-mix(in srgb, var(--color-error) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-error) 40%, transparent);
  color: var(--text-primary);
}

/* Quick actions */
.recharge__quick-title {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.recharge__quick-grid {
  gap: 8px;
}

/* Botones base */
.recharge__btn.MuiButton-root {
  text-transform: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  line-height: 1.1;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  outline: none;
}

/* Ghost */
.recharge__btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-secondary);
}
.recharge__btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Primary */
.recharge__btn--primary {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-black);
  box-shadow: 0 6px 14px rgba(245, 182, 24, 0.22);
}
.recharge__btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Outlined (quick amounts) */
.recharge__btn--outlined {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-primary);
  min-width: 80px;
}
.recharge__btn--outlined:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Disabled (coherente) */
.recharge__btn.Mui-disabled {
  opacity: .5;
  filter: grayscale(.2);
}

/* Focus visible */
.recharge__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 65%, transparent);
  outline-offset: 2px;
}

/* Inputs */
.recharge__input .MuiInputBase-root,
.recharge__textarea .MuiInputBase-root {
  background: var(--color-surface);
  border-radius: 10px;
  color: var(--text-primary);
}

.recharge__input .MuiOutlinedInput-notchedOutline,
.recharge__textarea .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.recharge__input:hover .MuiOutlinedInput-notchedOutline,
.recharge__textarea:hover .MuiOutlinedInput-notchedOutline {
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

.recharge__input .Mui-focused .MuiOutlinedInput-notchedOutline,
.recharge__textarea .Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
}

.recharge__input .MuiFormLabel-root,
.recharge__textarea .MuiFormLabel-root {
  color: var(--text-muted);
}

.recharge__input .MuiFormHelperText-root {
  color: var(--text-secondary);
}

/* Summary card */
.recharge__card--summary {
  border-color: color-mix(in srgb, var(--color-success) 45%, var(--color-border));
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.18);
}

.recharge__summary-title {
  font-weight: 700;
  color: color-mix(in srgb, var(--color-success) 80%, var(--text-primary));
  margin-bottom: 8px;
}

.recharge__row {
  margin-top: 4px;
}

.recharge__row-label {
  color: var(--text-secondary);
}

.recharge__row-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--text-primary);
}

.recharge__row-value--plus {
  color: var(--color-success);
  font-weight: 700;
}

.recharge__row--total {
  border-top: 1px solid color-mix(in srgb, var(--color-success) 40%, transparent);
  padding-top: 6px;
  margin-top: 6px;
}

.recharge__row-total-label {
  font-weight: 700;
  color: var(--text-primary);
}

.recharge__row-total-value {
  font-weight: 800;
  color: var(--color-success);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* Actions */
.recharge__actions {
  gap: 8px;
}

.recharge__mode {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recharge__btn--danger {
  background: color-mix(in srgb, var(--color-error) 70%, transparent);
  border: 1px solid var(--color-error);
  color: var(--color-black);
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.22);
}
.recharge__btn--danger:hover {
  background: color-mix(in srgb, var(--color-error) 80%, transparent);
  border-color: color-mix(in srgb, var(--color-error) 90%, transparent);
  transform: translateY(-1px);
}
.recharge__row-value--minus {
  color: var(--color-error);
  font-weight: 700;
}
.recharge__row-total-value--warning {
  color: color-mix(in srgb, var(--color-warning) 70%, var(--text-primary));
}

/* Responsive */
@media (min-width: 600px) {
  .recharge { padding: 20px; }
}
@media (min-width: 900px) {
  .recharge { padding: 24px; }
}
/* Credits Page - Modo Oscuro Optimizado */
.credits-view { 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  min-height: 0;
  color: var(--text-primary);
  background: var(--color-bg);
  flex: 1;
  padding: 0 var(--space-lg);
}

.credits-tabs-wrap { 
  padding: 0 var(--space-md) var(--space-md); 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.credits-content { 
  flex: 1 1 auto; 
  min-height: 0; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden;
}

.credits-tabpanel { 
  flex: 1 1 auto; 
  min-height: 0; 
  display: flex; 
  flex-direction: column; 
}

.credits-panel-inner { 
  flex: 1 1 auto; 
  min-height: 0; 
  display: flex; 
  flex-direction: column; 
  gap: var(--space-lg);
  overflow: hidden;
}

.credits-toolbar { 
  padding: var(--space-md); 
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.credits-table-wrap {
  flex: 1 1 auto; 
  min-height: 0; 
  overflow: auto;
  border-radius: var(--radius-md); 
  background: var(--color-surface); 
  box-shadow: var(--shadow-2); 
  padding: var(--space-lg); 
  border: 1px solid var(--color-border);
}

.credits-table-wrap table { 
  width: 100%; 
  table-layout: fixed;
  color: var(--text-primary);
  border-collapse: collapse;
}

.credits-table-wrap th {
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  background: var(--color-surface-light);
}

.credits-table-wrap td {
  color: var(--text-secondary);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.credits-table-wrap tr:hover td {
  background: var(--color-surface-light);
  color: var(--text-primary);
}
/* Actions cell for compact, spaced, colored icons */
.actions-cell {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.edit-btn {
  color: var(--color-accent);
}
.deactivate-btn {
  color: var(--color-danger);
}
.activate-btn {
  color: var(--color-success);
}
/* Estilos extraídos de ManageTab.jsx. Usar variables de colores.css para consistencia. */

/* Estilos para ManageTab extraídos del JSX. Usa variables de colores.css */
.credits-toolbar {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.credits-table-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

/* Compacta el layout para mejor visual en modo oscuro */
.credits-table-wrap {
  padding: var(--space-md);
}
.credits-toolbar {
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* Mejoras para botones en fondo oscuro */
.credits-table-wrap .MuiIconButton-root,
.credits-table-wrap .MuiButton-root {
  color: var(--color-white) !important;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-1);
}
.credits-table-wrap .MuiButton-root[variant="outlined"] {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}/* Estilos para EditServiceDialog extraídos del JSX. Usa variables de colores.css */
.edit-service-dialog-paper {
  width: 95vw !important;
  max-width: 1400px !important;
  margin: var(--space-sm) !important;
  background: var(--color-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
}
.edit-service-dialog-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
}
.edit-service-dialog-tabs {
  padding-left: var(--space-md);
  padding-top: var(--space-sm);
}
.edit-service-dialog-tabpanel {
  padding: var(--space-md);
  position: relative;
  min-height: 240px;
}
.edit-service-dialog-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  opacity: 0.5;
  z-index: 1;
}
/* Mejoras para acciones en fondo oscuro */
.edit-service-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  padding-bottom: var(--space-md);
  padding-top: var(--space-sm);
}
/* Mejoras para botones en fondo oscuro */
.edit-service-dialog-actions button {
  color: var(--color-white) !important;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-1);
}
.edit-service-dialog-actions button[variant="outlined"] {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}/* Estilos extraídos de GeneralTab.jsx. Usar variables de colores.css para consistencia. */

/* Estilos para GeneralTab extraídos del JSX. Usa variables de colores.css */
.general-tab-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.general-tab-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.image-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-slot.has-image {
  background: var(--color-surface);
}

.image-slot-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slot-placeholder {
  padding: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.image-slot-add {
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-sm) - 4px);
  border: 1px dashed var(--color-border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  appearance: none;
  outline: none;
  padding: 0;
}

.image-slot-add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.image-slot-add:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.image-slot-add:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.image-slot-delete {
  position: absolute !important;
  top: 6px;
  left: 6px;
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: var(--color-error);
  padding: 2px;
}

.image-slot-delete:hover {
  background: var(--color-surface);
}

@media (max-width: 900px) {
  .general-tab-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .general-tab-image-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.links-row {
  width: 100%;
}

.links-list {
  background: #f8f9fb;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 10px 12px;
}

.links-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2933;
}

.links-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.links-list .link-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.links-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.editor-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f6 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #2b2b2b;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.editor-btn:hover {
  background: #e8f0ff;
  border-color: #d0dcff;
  color: #004aad;
}

.editor-btn:active {
  transform: translateY(1px);
}

.editor-btn.is-active {
  background: #0f3d8f;
  border-color: #0f3d8f;
  color: #fff;
}

.editor-sep {
  width: 1px;
  height: 22px;
  background: rgba(0, 0, 0, 0.08);
  margin: 0 4px;
}

.editor-color-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.editor-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fdfdfd;
}

.emoji-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 16px;
  line-height: 1;
}

.emoji-btn:hover {
  background: #eef4ff;
  border-color: #d0dcff;
}

.editor-surface {
  min-height: 180px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #1f2933;
  outline: none;
  overflow-y: auto;
}

.editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 74, 173, 0.15);
}

.editor-surface:empty::before {
  content: attr(data-placeholder);
  color: #9aa4b5;
  pointer-events: none;
}

.editor-html-input {
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #1f2933;
  resize: vertical;
  outline: none;
  background: #f9fafb;
}
/* ============================================
   front-admin/src/views/credits/PriceTab.css
   — Estilos para la pestaña de precios (PriceTab)
   — Respetando el sistema de diseño global del admin
   ============================================ */

/* Contenedor principal del tab */
.price-tab-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 520px;          /* ancho cómodo para formularios */
  min-width: 0;
}

/* Cada fila (Stack) del formulario */
.price-tab-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
}

/* Asegurar que los campos ocupen buen ancho en desktop */
.price-tab-form .MuiTextField-root,
.price-tab-form .MuiFormControl-root {
  flex: 1 1 0;
}

/* Ajustes visuales de inputs coherentes con el tema */
.price-tab-form .MuiInputBase-root {
  background-color: var(--color-surface);
  border-radius: 8px;
}

.price-tab-form .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.price-tab-form .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
}

/* Label de los campos */
.price-tab-form .MuiInputLabel-root {
  color: var(--text-secondary);
}

.price-tab-form .MuiInputLabel-root.Mui-focused {
  color: var(--color-primary);
}

/* Checkbox "Usar" alineado y sin márgenes extra */
.price-tab-form .MuiFormControlLabel-root {
  margin: 0;
  color: var(--text-secondary);
}

/* HelperText debajo del precio final */
.price-tab-form .MuiFormHelperText-root {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Pequeño énfasis en el texto en negrita dentro del helper */
.price-tab-form .MuiFormHelperText-root strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Select de modo de precio */
.price-tab-form .MuiSelect-select {
  display: flex;
  align-items: center;
}

/* Responsivo: en pantallas pequeñas, columnas */
@media (max-width: 768px) {
  .price-tab-row {
    flex-direction: column;
    align-items: stretch;
  }

  .price-tab-form {
    max-width: 100%;
  }
}
/* Estilos extraídos de ApiTab.jsx. Usar variables de colores.css para consistencia. */

/* Estilos para ApiTab extraídos del JSX. Usa variables de colores.css */
.api-tab-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.api-tab-autocomplete li {
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}/* ==========================
   front-admin/src/views/credits/FieldsTab.css
   — Mejora de organización y estructura visual
   — Ajustes de color/contraste con variables globales
   ========================== */

/* ===== Layout Base Mejorado ===== */
.fields-root {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  min-width: 0;
  color: var(--text-primary);
}

/* Estilos para FieldsTab extraídos del JSX. Usa variables de colores.css */
.fields-tab-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.fields-tab-table {
  background: var(--color-surface-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-top: var(--space-md);
}
.fields-tab-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  align-items: center;
}

/* ===== Normalización de color en contenedores MUI dentro del scope ===== */
.fields-root .MuiPaper-root {
  background: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
}

/* ===== Tabs Mejorados ===== */
.fields-root .MuiTabs-root {
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
}
.fields-root .MuiTab-root {
  text-transform: none;
  font-weight: 500;
  min-height: 48px;
  padding: 8px 16px;
  color: var(--text-secondary) !important;
}
.fields-root .MuiTab-root.Mui-selected {
  color: var(--color-primary) !important;
  font-weight: 600;
}
.fields-root .MuiTabs-indicator {
  background: var(--color-primary) !important;
}

/* ===== Secciones Mejoradas ===== */
.section-title {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  display: block;
  color: var(--text-primary);
}

/* ===== Header de Controles ===== */
.fields-tab__header {
  padding: 8px 0;
  margin-bottom: 8px;
}
.fields-tab__row { margin-bottom: 16px; }
.fields-tab__input { margin-bottom: 4px; }

/* ===== Layout de Controles Agrupados ===== */
.quantities-row {
  padding: 8px 0;
  margin-bottom: 8px;
}
.range-row {
  gap: 16px;
  margin: 12px 0;
}

/* ===== Labels y Checkbox (contraste) ===== */
.fields-root .MuiFormControlLabel-root .MuiTypography-root {
  color: var(--text-secondary);
}
.fields-root .MuiCheckbox-root.Mui-checked {
  color: var(--color-primary) !important;
}

/* ===== Inputs (TextField / Select) — colores/estados ===== */
.fields-root .MuiFormControl-root .MuiInputLabel-root {
  color: var(--text-secondary);
}
.fields-root .MuiFormControl-root .MuiInputLabel-root.Mui-focused {
  color: var(--color-primary);
}
.fields-root .MuiOutlinedInput-root {
  background: var(--color-surface);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}
.fields-root .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}
.fields-root .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border-light);
}
.fields-root .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(245, 182, 24, 0.18);
}
.fields-root .MuiFormHelperText-root {
  color: var(--text-muted);
}

/* Select desplegado (menu) — contraste */
.MuiPopover-paper,
.MuiMenu-paper {
  background: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2) !important;
}

/* ===== Chips ===== */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px 0;
  padding: 4px 0;
}
.fields-root .MuiChip-root {
  background: var(--color-surface-light);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
}
.fields-root .MuiChip-root.MuiChip-colorSuccess {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}
.fields-root .MuiChip-outlined.MuiChip-colorError {
  border-color: rgba(239, 68, 68, 0.55);
}
.fields-root .MuiChip-deleteIcon {
  color: var(--text-secondary);
}

/* ===== Botones ===== */
.btn-fixed {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.fields-root .MuiButton-contained {
  background: var(--color-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-1);
}
.fields-root .MuiButton-contained:hover {
  background: var(--color-primary-dark) !important;
}
.fields-root .MuiButton-outlined {
  border-color: var(--color-border-light) !important;
  color: var(--text-primary) !important;
}
.fields-root .MuiButton-outlined:hover {
  border-color: var(--color-primary) !important;
}

/* ===== IconButtons ===== */
.fields-root .MuiIconButton-root {
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}
.fields-root .MuiIconButton-root:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ===== Tablas Mejoradas ===== */
.table-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.table-wrapper .MuiTableHead-root {
  position: sticky;
  top: 0;
  z-index: 10;
}
.table-wrapper .MuiTableCell-head {
  background: var(--color-surface-light) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border) !important;
  padding: 12px 16px;
}
.table-wrapper .MuiTableCell-body {
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
  vertical-align: top;
}
.table-wrapper .MuiTableRow-root:hover {
  background-color: var(--color-surface-light);
  transition: background-color 0.2s ease;
}

/* Estado vacío */
.empty-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  font-style: italic;
}

/* Estados de Edición */
.table-wrapper .MuiTableRow-root:has(.MuiTextField-root) {
  background-color: var(--color-surface-light);
}

/* ===== Tooltips ===== */
.MuiTooltip-tooltip {
  background: var(--color-surface-light);
  color: var(--text-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
  font-size: 0.85rem;
}

/* ===== Espaciado y Divider Mejorados ===== */
.divider-spaced {
  margin: 24px 0;
  border-color: var(--color-border);
}
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mt-1-5 { margin-top: 12px; }

/* ===== Texto Helper ===== */
.qty-hint {
  display: block;
  margin: 4px 0 12px 0;
  color: var(--text-muted);
  font-style: italic;
}
.muted { color: var(--text-muted); }
.block { display: block; }

/* ===== Sistema de Anchos Consistentes ===== */
.minw-160 { min-width: 160px; }
.minw-200 { min-width: 200px; }
.minw-220 { min-width: 220px; }
.minw-260 { min-width: 260px; }
.input-flex { flex: 1; min-width: 120px; }
.select-width { min-width: 160px; max-width: 200px; }
.maxw-200 { max-width: 200px; }

/* ===== Utilidades de Flex ===== */
.flex-1 { flex: 1; }

/* ===== Responsive Mejorado ===== */
@media (max-width: 900px) {
  .fields-tab__header,
  .fields-tab__row,
  .quantities-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .single-line-scroll {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    overflow-x: visible;
  }
  .single-line-scroll > * {
    width: 100%;
    max-width: none;
  }
  .minw-160, .minw-200, .minw-220, .minw-260 {
    min-width: auto;
    width: 100%;
  }
  .btn-fixed {
    width: auto;
    align-self: flex-start;
  }
}
@media (max-width: 600px) {
  .fields-root .MuiTab-root {
    min-width: auto;
    padding: 6px 12px;
    font-size: 0.875rem;
  }
  .table-wrapper .MuiTableCell-head,
  .table-wrapper .MuiTableCell-body {
    padding: 8px 12px;
  }
  .section-title { font-size: 1rem; }
}

/* ===== Scrollbar Personalizado (Opcional) ===== */
.single-line-scroll::-webkit-scrollbar { height: 6px; }
.single-line-scroll::-webkit-scrollbar-track {
  background: var(--color-surface-light);
  border-radius: 3px;
}
.single-line-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
.single-line-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-light);
}

/* ===== Accesibilidad: foco visible ===== */
.fields-root *:focus-visible {
  outline: 2px solid rgba(245, 182, 24, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== API Custom Fields (preview informativo) ===== */
.api-fields-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}
.api-fields-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-sm);
}
.api-fields-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.api-fields-table th,
.api-fields-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  color: var(--text-primary);
}
.api-fields-table th {
  font-weight: 600;
  background: var(--color-surface-light);
}
.api-fields-table tbody tr:nth-of-type(odd) {
  background: var(--color-surface-light);
}
.api-fields-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 18px;
  font-style: italic;
}

/* ===== API Service Details (preview informativo) ===== */
.api-details-card {
  margin-top: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}

.api-details-pre {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--text-primary);
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}
/* Helper text en gris claro para mejor contraste */
.seo-tab-input .MuiFormHelperText-root {
  color: var(--text-muted) !important;
  background: transparent;
  font-size: 0.95em;
  letter-spacing: 0.01em;
}
/* Estilos extraídos de SeoTab.jsx. Usar variables de colores.css para consistencia. */

/* Estilos para SeoTab extraídos del JSX. Usa variables de colores.css */
.seo-tab-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.seo-tab-chip {
  height: 22px !important;
  font-size: 12px !important;
}
/* ===== Admin Comments – tabla y toolbar ===== */

.adm-comments-root {
  display: grid;
  gap: 12px;
}

/* Toolbar */
.adm-toolbar {
  background: color-mix(in srgb, var(--color-black) 6%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.adm-title {
  font-weight: 900 !important;
  letter-spacing: .2px;
}

.adm-chip {
  background: color-mix(in srgb, var(--color-primary) 22%, transparent) !important;
  color: var(--text-primary) !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 40%, var(--color-border)) !important;
}

.adm-toolbar-actions .adm-search .MuiOutlinedInput-root {
  background: var(--color-bg);
}

/* Papel tabla */
.adm-paper {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

/* Loading & Empty */
.adm-loading,
.adm-empty {
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--text-secondary);
}

/* Tabla */
.adm-table {
  min-width: 760px;
  color: var(--text-primary);
}

.adm-table .th {
  font-weight: 800;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-black) 6%, transparent);
}

.adm-table .th.wide {
  width: 45%;
}

.adm-table .th.actions {
  width: 220px;
  text-align: right;
}

.adm-table .td {
  border-bottom: 1px solid var(--color-border);
  color: var(--text-primary);
  vertical-align: middle;
}

.adm-text {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* clamp 2 líneas */
  line-clamp: 2; /* standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adm-author {
  font-weight: 700;
}

/* Chips estado */
.chip-pending {
  background: color-mix(in srgb, var(--color-warning) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--color-warning) 38%, var(--color-border)) !important;
  color: var(--text-primary) !important;
}
.chip-accepted {
  background: color-mix(in srgb, var(--color-success) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--color-success) 38%, var(--color-border)) !important;
  color: var(--text-primary) !important;
}

/* Estrellas compactas */
.adm-stars {
  font-size: 18px;
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.adm-star {
  color: color-mix(in srgb, var(--color-white) 18%, transparent);
  filter: drop-shadow(0 0 0 transparent);
  transition: color var(--t-base), filter var(--t-base);
}
.adm-star.active {
  color: var(--color-warning);
  filter: drop-shadow(0 0 8px rgba(250,204,21,.25));
}

/* Acciones */
.td-actions {
  white-space: nowrap;
  text-align: right;
}

.btn-accept {
  background: var(--color-success) !important;
  border-color: var(--color-success) !important;
  color: var(--color-black) !important;
  font-weight: 800 !important;
  text-transform: none !important;
  margin-right: 4px !important;
}
.btn-accept:hover {
  filter: brightness(1.05);
}

.btn-delete {
  border-color: var(--color-error) !important;
  color: var(--color-error) !important;
  text-transform: none !important;
  font-weight: 700 !important;
}
.icon-delete {
  color: var(--color-error) !important;
}

/* Hover filas */
.adm-table tbody tr:hover {
  background: color-mix(in srgb, var(--color-white) 6%, transparent);
}

/* Responsive soft */
@media (max-width: 880px) {
  .adm-table .th.actions { width: 160px; }
  .btn-accept { padding: 4px 8px !important; }
}

/* Estilos para CommentsTab extraídos del JSX. Usa variables de colores.css */
.comments-tab-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.comments-table {
  background: var(--color-surface-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-top: var(--space-md);
}
.comments-table-cell {
  white-space: pre-wrap;
}
/* Two-column layout for form */
.twocol-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  min-width: 620px;
  width: 100%;
  margin: 0 auto;
}

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

.image-col {
  flex: 0 0 220px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface-light);
  border-radius: 8px;
  padding: 1rem;
  min-height: 340px;
  box-shadow: 0 0 0 1px var(--color-border);
}

.new-service-image-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.new-service-image-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-service-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.new-service-image-add {
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  border: 1px dashed var(--color-border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font: inherit;
  appearance: none;
  outline: none;
}

.new-service-image-add:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.new-service-image-add:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.new-service-image-add:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.new-service-image-delete {
  position: absolute !important;
  top: 6px;
  left: 6px;
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  color: var(--color-error);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 2px;
}

@media (max-width: 520px) {
  .new-service-image-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Estilos para el formulario de servicio */
.new-service-form {
  display: flex;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,248,255,0.9));
  padding: var(--space-lg, 1.5rem);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.04);
  width: 100%;
}

.new-service-row {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  width: 100%;
  align-items: flex-start;
}

/* Fila especial para precio, tiempo y unidad - los 3 en una línea */
.new-service-row.price-time-unit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm, 0.6rem);
}

.new-service-row.dual-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm, 0.6rem);
}

.new-service-input {
  flex: 1;
  width: 100%;
}

.new-service-image-input {
  display: none;
}

.new-service-actions-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  justify-content: flex-end;
  margin-top: var(--space-md, 1rem);
  width: 100%;
}

/* Estilos para los botones de acciones */
.new-service-actions-row button {
  border-radius: 10px;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 10px 18px;
  font-weight: 600;
  text-transform: none;
  min-width: 130px;
  letter-spacing: 0.01em;
}

.new-service-actions-row button:first-child {
  background: linear-gradient(135deg, #5de0e6, #004aad);
  color: #fff;
  width: 100%;
}

.new-service-actions-row button:last-child {
  width: 100%;
}

.new-service-actions-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.rich-editor-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


/* Estilos para el texto del helper */
.helper-text-white .MuiFormHelperText-root {
  color: var(--text-muted) !important;
  background: transparent;
  font-size: 0.95em;
  letter-spacing: 0.01em;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .twocol-layout {
    flex-direction: column;
    min-width: unset;
    gap: 1rem;
  }

  .image-col {
    flex: none;
    width: 100%;
    max-width: none;
    align-items: center;
  }

  .new-service-row {
    flex-direction: column;
  }

  .new-service-row.price-time-unit {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .new-service-row.dual-row {
    grid-template-columns: 1fr;
  }

}
/* Actions cell for compact, spaced, colored icons */
.actions-cell {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.edit-btn {
  color: var(--color-accent);
}
.delete-btn {
  color: var(--color-danger);
}
/* Estilos extraídos de CategoriesTab.jsx. Usar variables de colores.css para consistencia. */

/* Estilos para CategoriesTab extraídos del JSX. Usa variables de colores.css */
.uc-toolbar {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.uc-table-wrap {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

/* Compacta el layout para mejor visual en modo oscuro */

/* Mejoras para acciones en fondo oscuro */
.uc-table-wrap .MuiIconButton-root,
.uc-table-wrap .MuiButton-root {
  color: var(--color-white) !important;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-1);
}
.uc-table-wrap .MuiButton-root[variant="outlined"] {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}/* Estilos extraídos de EditCategoryDialog.jsx. Usar variables de colores.css para consistencia. */

/* Estilos para EditCategoryDialog extraídos del JSX. Usa variables de colores.css */
.edit-category-dialog-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--space-md);
}
.edit-category-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.edit-category-input {
  flex: 1;
  margin-bottom: var(--space-sm);
}
.edit-category-image-row {
  align-items: stretch;
}
.edit-category-image-upload {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.edit-category-image-input {
  display: none;
}
.edit-category-image-card {
  max-width: 360px;
  flex: 0 0 auto;
  background: var(--color-surface-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-2);
}
.edit-category-image-actions {
  justify-content: flex-end;
}
/* Mejoras para acciones en fondo oscuro */
.edit-category-actions-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-md);
}
.edit-category-actions-row button {
  color: var(--color-white) !important;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-1);
}
.edit-category-actions-row button[variant="outlined"] {
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary);
}/* Estilo para el helper text de los TextField (ejemplo: slug) */
.new-category-input .MuiFormHelperText-root {
  color: var(--text-muted) !important;
  background: transparent;
}
/* Two-column layout for form */
.twocol-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  min-width: 600px;
  width: 100%;
  /* max-width removed to allow full container width */
  margin: 0 auto;
}

.fields-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.image-col {
  flex: 0 0 220px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface-light);
  border-radius: 8px;
  padding: 1rem;
  min-height: 340px;
  box-shadow: 0 0 0 1px var(--color-border);
}

/* Estilos para el formulario */
.new-category-form {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  background: var(--color-surface);
  padding: var(--space-md, 1rem);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-1, 0 2px 4px rgba(0, 0, 0, 0.1));
  width: 100%;
}

.new-category-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm, 0.5rem);
  width: 100%;
}

.new-category-input {
  flex: 1;
  width: 100%;
}

.new-category-image-upload {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
  align-items: center;
  width: 100%;
}

.new-category-image-input {
  display: none;
}

.new-category-image-card {
  width: 100%;
  max-width: 240px;
  background: var(--color-surface-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-2, 0 4px 8px rgba(0, 0, 0, 0.2));
  border-radius: 8px;
  overflow: hidden;
}

.new-category-image-actions {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  background: var(--color-surface-light);
}

.new-category-actions-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm, 0.5rem);
  justify-content: flex-end;
  margin-top: var(--space-md, 1rem);
  width: 100%;
}

/* Estilos para los botones de acciones */
.new-category-actions-row button {
  border-radius: var(--radius-md, 8px);
  border: none;
  box-shadow: var(--shadow-1, 0 2px 4px rgba(0, 0, 0, 0.1));
  padding: 8px 16px;
  font-weight: 500;
  text-transform: none;
}

.new-category-actions-row button:first-child {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.new-category-actions-row button:last-child {
  background: var(--color-primary);
  color: var(--color-black);
}

.new-category-actions-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .twocol-layout {
    flex-direction: column;
    min-width: unset;
    gap: 1rem;
  }
  
  .image-col {
    flex: none;
    width: 100%;
    max-width: none;
    align-items: center;
  }
  
  .new-category-row {
    flex-direction: column;
  }
}
/* Remote Page - Modo Oscuro Optimizado */
.remote-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: var(--text-primary);
  background: var(--color-bg);
  flex: 1;
  padding: 0 var(--space-lg);
}

.remote-tabs-wrap {
  padding: 0 var(--space-md) var(--space-md);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.remote-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.remote-tabpanel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.remote-panel-inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow: hidden;
}

.remote-toolbar {
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.remote-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-2);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.remote-table-wrap table {
  width: 100%;
  table-layout: fixed;
  color: var(--text-primary);
  border-collapse: collapse;
}

.remote-table-wrap th {
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  background: var(--color-surface-light);
}

.remote-table-wrap td {
  color: var(--text-secondary);
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.remote-table-wrap tr:hover td {
  background: var(--color-surface-light);
  color: var(--text-primary);
}
.remote-table-wrap table {
  width: 100%;
  table-layout: fixed;
  color: var(--text-primary);
}
.finance-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.finance-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.finance-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  background: var(--color-surface);
}

.finance-tabs {
  background: var(--color-surface-light);
}

.finance-panel {
  padding: var(--space-lg);
  background: var(--color-surface);
}

@media (max-width: 900px) {
  .finance-panel {
    padding: var(--space-md);
  }
}
/* src/pages/publicidad/tabs/CarruselTab.css */

/* ===== Contenedor raíz ===== */
.carrusel-root { width: 100%; }

/* ===== Card formulario ===== */
.carrusel-card { margin-bottom: 12px; }

/* Input file oculto */
.carrusel-input-file { display: none; }

/* Preview contenedor */
.carrusel-preview {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface-light);
}
.carrusel-preview-img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
}

/* Acciones del formulario */
.carrusel-actions {
  margin-top: 16px;
  justify-content: flex-end;
}

/* ===== Tabla ===== */
.carrusel-thumb {
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.carrusel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carrusel-thumb-fallback {
  display: none; /* se activa en onError */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-surface-light);
  color: var(--text-muted);
  font-size: 12px;
}

/* URL con saltos seguros */
.carrusel-url { word-break: break-all; }

/* Acciones por fila */
.carrusel-row-actions { justify-content: center; }

/* Snackbar */
.carrusel-snackbar { width: 100%; }

/* ===== Responsive ===== */
@media (min-width: 900px) {
  .carrusel-card { margin-bottom: 16px; }
  .carrusel-preview-img { height: 170px; }
}
/* src/pages/publicidad/tabs/FijosTab.css */

/* ===== Contenedor raíz ===== */
.fijos-root { width: 100%; }

/* ===== Card formulario ===== */
.fijos-card { margin-bottom: 12px; }

/* Input file oculto */
.fijos-input-file { display: none; }

/* Preview contenedor */
.fijos-preview {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface-light);
}
.fijos-preview-img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}

/* Acciones del formulario */
.fijos-actions {
  margin-top: 16px; /* reemplaza mt:4 (~16px en MUI base=4px) */
  justify-content: flex-end;
}

/* ===== Tabla ===== */
.fijos-thumb {
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.fijos-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fijos-thumb-fallback {
  display: none;               /* se activa en onError */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-surface-light);
  color: var(--text-muted);
  font-size: 12px;
}

/* URL con saltos seguros */
.fijos-url { word-break: break-all; }

/* Acciones por fila */
.fijos-row-actions { justify-content: center; }

/* ===== Snackbar ===== */
.fijos-snackbar { width: 100%; }

/* ===== Responsive ===== */
@media (min-width: 900px) {
  .fijos-card { margin-bottom: 16px; }
  .fijos-preview-img { height: 220px; }
}
/* src/pages/publicidad/PublicidadPage.css */

/* Raíz del módulo */
.publicidad-root {
  width: 100%;
}

/* Header card */
.publicidad-header {
  padding: 16px;      /* p:2 */
  margin-bottom: 16px;/* mb:2 */
}

/* Contenedor del bloque de tabs + contenido */
.publicidad-tabsPaper {
  width: 100%;
}

/* Borde inferior bajo las pestañas */
.publicidad-tabsBorder {
  border-bottom: 1px solid var(--mui-palette-divider, rgba(0,0,0,0.12));
}

/* Panel de cada pestaña */
.publicidad-tabpanel {
  width: 100%;
}

/* Espaciado interno del contenido del panel (equivalente a py:3) */
.publicidad-panel-body {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Responsivo mínimo: aumenta respiro en pantallas grandes */
@media (min-width: 900px) {
  .publicidad-header {
    padding: 24px;
    margin-bottom: 20px;
  }
  .publicidad-panel-body {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
/* Tickets.css */

.tickets-root {
  display: flex;
  height: calc(100% - 64px);
  gap: 16px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface-light) 100%);
  overflow: hidden;
}

/* Columna izquierda - Lista de tickets */
.tickets-column-left {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* Columna derecha - Detalle del ticket */
.tickets-column-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* Lista de tickets */
.tickets-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -4px;
  padding: 0 4px !important;
}

.tickets-filter-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.9));
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.tickets-filter-select .MuiOutlinedInput-root {
  background: white;
  border-radius: 10px;
}

.tickets-filter-select .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.tickets-filter-select .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
}

/* Scrollbar personalizado */
.tickets-list::-webkit-scrollbar,
.tickets-chat-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.tickets-list::-webkit-scrollbar-track,
.tickets-chat-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
  margin: 4px;
}

.tickets-list::-webkit-scrollbar-thumb,
.tickets-chat-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.tickets-list::-webkit-scrollbar-thumb:hover,
.tickets-chat-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-border);
}

.tickets-list::-webkit-scrollbar-corner,
.tickets-chat-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

/* Área de chat */
.tickets-chat-scroll {
  scroll-behavior: smooth;
}

/* Efectos de hover mejorados */
.tickets-column-left .MuiListItemButton-root {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tickets-column-left .MuiListItemButton-root:hover {
  transform: translateX(4px) scale(1.01) !important;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Animación de entrada para mensajes */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tickets-chat-scroll .MuiPaper-root {
  animation: messageSlideIn 0.3s ease-out;
}

/* Efecto glassmorphism para los mensajes */
.tickets-chat-scroll .MuiPaper-root {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.tickets-msg-internal {
  background: linear-gradient(145deg, rgba(214, 164, 25, 0.15), rgba(255, 255, 255, 0.82)) !important;
  border: 1px dashed rgba(214, 164, 25, 0.45) !important;
  box-shadow: 0 6px 18px rgba(214, 164, 25, 0.18);
}

.tickets-internal-chip {
  background: rgba(229, 89, 63, 0.12) !important;
  color: var(--color-accent-dark) !important;
  border: 1px solid rgba(229, 89, 63, 0.25) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

/* Mejora para los chips */
.tickets-column-left .MuiChip-root {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease;
}

.tickets-column-left .MuiChip-root:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Efecto de selección suave */
.tickets-column-left .Mui-selected {
  background: linear-gradient(135deg, rgba(214, 164, 25, 0.18) 0%, rgba(214, 164, 25, 0.08) 100%) !important;
  border: 1px solid rgba(214, 164, 25, 0.35) !important;
}

/* Mejora para el área de texto de respuesta */
.tickets-column-right .MuiOutlinedInput-root {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tickets-column-right .MuiOutlinedInput-root:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Efecto para el botón enviar */
.tickets-column-right .MuiButton-contained {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.tickets-column-right .MuiButton-contained::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.tickets-column-right .MuiButton-contained:focus::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0) translate(-50%, -50%);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25) translate(-50%, -50%);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40) translate(-50%, -50%);
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .tickets-root {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .tickets-column-left {
    flex: none;
    height: 400px;
  }
  
  .tickets-column-right {
    flex: none;
    min-height: 500px;
  }
}

@media (max-width: 600px) {
  .tickets-root {
    padding: 12px;
    gap: 12px;
  }
  
  .tickets-column-left,
  .tickets-column-right {
    padding: 12px;
    border-radius: 12px;
  }
}

/* Efecto de gradiente sutil en el fondo */
.tickets-root::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(214, 164, 25, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(229, 89, 63, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Mejora para los títulos de sección */
.tickets-column-left .MuiTypography-subtitle2 {
  position: relative;
  padding-left: 12px;
}

.tickets-column-left .MuiTypography-subtitle2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: 2px;
}

/* Transiciones suaves para filtros y búsqueda */
.tickets-column-left .MuiTextField-root {
  transition: all 0.3s ease;
}

/* Mejora de legibilidad para texto largo */
.tickets-column-left .MuiTypography-caption {
  word-break: break-word;
  line-height: 1.4;
}

/* Sombra suave al hacer scroll */
.tickets-column-left,
.tickets-column-right {
  position: relative;
}

.tickets-column-left::after,
.tickets-column-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
  border-radius: 0 0 16px 16px;
}
:root {
  /* PALETA PRINCIPAL (gris + mostaza light) */
  --color-primary: #d6a419;
  --color-primary-dark: #b48912;
  --color-primary-light: #e4be46;
  --color-accent: #e5593f;
  --color-accent-dark: #c94a35;

  /* FONDOS */
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-surface-light: #f0f1f3;
  --color-border: #dcdfe3;
  --color-border-light: #c7ccd3;

  /* TEXTOS */
  --text-primary: #1f242d;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-disabled: #9ca3af;

  /* ESTADOS */
  --color-pending: #0ea5e9;
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-error: #e64242;
  --color-info: #2563eb;

  /* NEUTROS */
  --color-white: #ffffff;
  --color-black: #000000;

  /* ESPACIADO */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;

  /* BORDES */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* SOMBRAS */
  --shadow-1: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 4px 10px rgba(15, 23, 42, 0.12);
  --shadow-3: 0 12px 30px rgba(15, 23, 42, 0.16);

  /* TRANSICIONES */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ESTILOS GLOBALES PARA MODO OSCURO */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg) !important;
  color: var(--text-primary) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

/* MEJORAS PARA INPUTS EN MODO OSCURO */
input, textarea, select {
  background-color: var(--color-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 182, 24, 0.2);
}

/* Ayuda para labels con tooltip */
.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  cursor: help;
  background: var(--color-surface);
}

.field-help-icon:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* MUI TextField: evitar doble borde y linea sobre el texto */
.MuiInputBase-root input,
.MuiInputBase-root textarea,
.MuiInputBase-root select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.MuiOutlinedInput-root {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

.MuiOutlinedInput-notchedOutline {
  border-color: var(--color-border);
}

.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(245, 182, 24, 0.18);
}

/* Label flotante visible y sin linea detrás */
.MuiInputLabel-root.MuiInputLabel-shrink {
  background: var(--color-surface);
  padding: 0 4px;
}

/* MEJORAS PARA BOTONES */
button {
  transition: all var(--transition-fast);
}

/* MEJORAS PARA TABLAS */
.MuiTableContainer-root {
  background-color: var(--color-surface) !important;
}

.MuiTableHead-root {
  background-color: var(--color-surface-light) !important;
}

.MuiTableCell-root {
  color: var(--text-primary) !important;
  border-bottom-color: var(--color-border) !important;
}

.MuiTableRow-root:hover {
  background-color: var(--color-surface-light) !important;
}

/* MEJORAS PARA TABS */
.MuiTabs-root {
  border-bottom: 1px solid var(--color-border);
}

.MuiTab-root {
  color: var(--text-secondary) !important;
  transition: all var(--transition-fast);
}

.MuiTab-root.Mui-selected {
  color: var(--color-primary) !important;
}

.MuiTabs-indicator {
  background-color: var(--color-primary) !important;
}

/* MEJORAS PARA PAPER/CARDS */
.MuiPaper-root {
  background-color: var(--color-surface) !important;
  color: var(--text-primary) !important;
}

html,
body,
#root {
  height: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--color-bg);
  color: var(--text-primary);
}

.container {
  padding: var(--space-4);
}


