:root {
  --brand: #286c6a;
  --brand-hover: #1f5755;
  --brand-dark: #184644;
  --brand-border: #488886;
  --brand-soft: #eef6f6;
  --bg-canvas: #eef2f6;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-panel: #d6e1e6;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas) !important;
  background-image: none !important;
  color: var(--text-body);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Tarjeta KPI estilo Aasim (Borde fino Teal + Fondo Blanco Puro) */
.aasim-kpi-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(24, 70, 68, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.aasim-kpi-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(40, 108, 106, 0.1);
}

/* Mini insignia superior derecha de las tarjetas Aasim */
.aasim-trend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 19px;
  border-radius: 3px;
  background-color: var(--brand);
  color: #ffffff;
}

/* Paneles de Contenido Principales (Estilo Aasim Orders / Global) */
.card-bg {
  background: #ffffff;
  border: 1px solid #cddcdf;
  border-top: 2px solid var(--brand);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

/* Sub-paneles estructurados dentro de tarjetas */
.subcard-bg {
  background: #f8fbfb;
  border: 1px solid #d5e4e4;
  border-radius: 5px;
}

/* Superficie Destacada Teal Corporativo */
.surface-dark {
  background: linear-gradient(135deg, #286c6a 0%, #1d5250 100%);
  color: #ffffff;
  border: 1px solid #184644;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(24, 70, 68, 0.18);
}

/* Botón Primario Teal Aasim */
.button-theme {
  background-color: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand-dark);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(40, 108, 106, 0.2);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button-theme:hover:not(:disabled) {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 108, 106, 0.28);
}

.button-theme:active:not(:disabled) {
  transform: translateY(0);
}

/* Selectores desplegables con chevron Teal */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23286c6a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 1rem !important;
  padding-right: 2.35rem !important;
}

/* Cifras tabulares alineadas */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Botones de acciones en Gestión (Tonos Teal coherentes con Aasim) */
.gest-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 5px;
  border: 1px solid #bed3d2;
  background: #ffffff;
  color: #1e293b;
  padding: 0.52rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
}

.gest-btn-outline svg {
  color: var(--brand) !important;
}

.gest-btn-outline:hover:not(:disabled) {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.gest-btn-validar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #ffffff;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(40, 108, 106, 0.22);
  transition: all 0.15s ease;
  cursor: pointer;
}

.gest-btn-validar:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.gest-btn-caducidad {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 5px;
  border: 1px solid var(--brand-border);
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.15s ease;
  cursor: pointer;
}

.gest-btn-caducidad:hover:not(:disabled) {
  background: #dff0ef;
  border-color: var(--brand);
}

.gest-btn-anular {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
}

.gest-btn-anular:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Foco limpio en Teal Aasim */
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(40, 108, 106, 0.12) !important;
}

/* Scrollbars discretos */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(40, 108, 106, 0.22);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(40, 108, 106, 0.4);
}
