/*
 * Lavado de cara (opcional). Se carga solo si FACELIFT=true (config('app.facelift')).
 * Es SOLO CSS: no cambia estructura ni comportamiento. Para volver atrás: FACELIFT=false.
 * Respeta los skins por usuario de AdminLTE (skin-blue, skin-red, ...): no pisa sus colores de marca.
 */

:root {
  --sg-radius: 8px;
  --sg-radius-sm: 6px;
  --sg-bg: #f4f6f9;
  --sg-surface: #ffffff;
  --sg-border: #e3e8ee;
  --sg-text: #1f2a37;
  --sg-muted: #667085;
  --sg-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --sg-shadow-hover: 0 4px 12px rgba(16, 24, 40, .10);
  --sg-focus: rgba(60, 141, 188, .28);
}

/* ---- Base ---------------------------------------------------------------- */
body {
  color: var(--sg-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.content-wrapper,
.right-side {
  background-color: var(--sg-bg);
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -.01em;
}

a { transition: color .12s ease; }

/* ---- Barra superior --------------------------------------------------------
   Los skins de SUIGA pintan la barra con un degradé (background-image) y no con un color de fondo:
   NO se toca el fondo (quitar el degradé la deja blanca). Solo una sombra más suave. */
.main-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* ---- Menú lateral ----------------------------------------------------------- */
.main-sidebar {
  box-shadow: 1px 0 8px rgba(0, 0, 0, .10);
}

.sidebar-menu > li > a {
  padding: 11px 15px;
  transition: background-color .15s ease, color .15s ease;
}

.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > .fas,
.sidebar-menu > li > a > .far {
  width: 22px;
  text-align: center;
}

.treeview-menu > li > a {
  padding: 7px 5px 7px 15px;
  transition: color .12s ease;
}

/* ---- Tarjetas (box) ---------------------------------------------------------- */
.box {
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  border-color: var(--sg-border);
}

.box-header:first-child,
.box > .box-header {
  border-top-left-radius: var(--sg-radius);
  border-top-right-radius: var(--sg-radius);
}

.box-footer {
  border-bottom-left-radius: var(--sg-radius);
  border-bottom-right-radius: var(--sg-radius);
}

.small-box,
.info-box {
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}

.small-box:hover,
.info-box:hover {
  box-shadow: var(--sg-shadow-hover);
  transform: translateY(-1px);
}

.small-box > .small-box-footer {
  border-bottom-left-radius: var(--sg-radius);
  border-bottom-right-radius: var(--sg-radius);
}

/* ---- Botones ------------------------------------------------------------------ */
.btn,
.btn.btn-flat {
  border-radius: var(--sg-radius-sm) !important;
  font-weight: 600;
  transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn:focus,
.btn:active:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--sg-focus) !important;
}

.btn-default {
  border-color: var(--sg-border);
}

/* ---- Formularios -------------------------------------------------------------- */
.form-control {
  border-radius: var(--sg-radius-sm);
  border-color: #d0d5dd;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 3px var(--sg-focus);
}

.input-group-addon {
  border-radius: var(--sg-radius-sm);
  border-color: #d0d5dd;
}

/* ---- Insignias ------------------------------------------------------------------ */
.label,
.badge {
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ---- Tablas y filas de listado ----------------------------------------------------- */
.table > thead > tr > th {
  color: var(--sg-muted);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom-width: 1px;
}

.table-hover > tbody > tr:hover,
.table-striped > tbody > tr:nth-of-type(odd):hover {
  background-color: #eef3f8;
}

.listRow {
  border-radius: var(--sg-radius-sm);
}

/* ---- Paginador ---------------------------------------------------------------------- */
.pagination > li > a,
.pagination > li > span {
  margin: 0 2px;
  border-radius: var(--sg-radius-sm) !important;
  border-color: var(--sg-border);
}

/* ---- Modales y avisos ---------------------------------------------------------------- */
.modal-content {
  border-radius: 10px;
  border: 0;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .18);
}

.callout,
.alert {
  border-radius: var(--sg-radius-sm);
}

/* ---- Portada pública (Bootstrap 4) ------------------------------------------------------ */
.sidebar .navigation ul li.nav-item,
.standalone-nav-btn {
  border-radius: var(--sg-radius-sm);
  box-shadow: var(--sg-shadow);
}

.articles-container .article .card {
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  transition: box-shadow .15s ease;
}

.articles-container .article .card:hover {
  box-shadow: var(--sg-shadow-hover);
}

.btn-round-small,
.btn-main {
  border-radius: 999px;
}

/* ---- Celular: zonas táctiles de 44 px --------------------------------------------------- */
@media (max-width: 767px) {
  .btn,
  .form-control {
    min-height: 44px;
  }

  .sidebar-menu > li > a {
    padding: 14px 15px;
  }

  .content-header > h1 {
    font-size: 22px;
  }

  .box {
    border-radius: var(--sg-radius-sm);
  }
}
