/* ===== Root básico ===== */


body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 24px;
}


/* ------------------------------------------------ Login ------------------------------------------------ */

.card {
  max-width: 520px;
  margin: 60px auto;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 26px 24px;
}

h2 {
  margin: 0;
  text-align: center;
  font-size: 44px;
  line-height: 1.05;
}

.spacer {
  height: 18px;
  /* separación entre título y Email */
}

label {
  display: block;
  margin: 12px 0 6px;
  color: #333;
  font-size: 14px;
}

input {
  width: 90%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: left;
  /* ✅ justificar a la derecha */
  font-size: 14px;
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

button {
  width: 200px;
  /* ✅ botón más pequeño */
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #eee;
  /* ✅ background botón color #0b5 */
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.err {
  background: #fde8e8;
  color: #8a1f1f;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.small {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
  text-align: center;
}


/* ------------------------------------------- Dashboard Layout ------------------------------------------- */

/* .dashboard-container {
  background-color: #d4d4d4;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden; */
/* min-height: calc(100vh - 80px); */
/* border: 2px solid #fff; */
/* } */

.dashboard {
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; */
  background-color: #fdfdfd;
}

/* .separator {
  margin: 0 8px;
  color: #bdbdbd;
  font-size: 16px;
} */


/* ----------------------------- Header ----------------------------- */
.header {
  background-color: #fdfdfd;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*border-bottom: 2px solid #999;*/
}

/*user label*/
.header-left .user-label {
  /*font-weight: bold;*/
  font-size: 24px;
  color: #333;
}

/*header right*/
.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  padding: 4px;
  border-radius: 4px;
  will-change: filter;
  transition: filter 300ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-btn,
.logout-btn {
  font-size: 28px;
  display: inline-block;
  transition: all 300ms;
}

/* Hover sobre el botón afecta al span */
.icon-btn:hover .settings-btn {
  text-shadow: 0 0 20px #000000, 0 0 30px #000000;
}

.icon-btn:hover .logout-btn {
  text-shadow: 0 0 20px #ff1515, 0 0 30px #ff1515;
}

/* Active (click) sobre el botón afecta al span */
.icon-btn:active .settings-btn {
  text-shadow: 0 0 25px #000000, 0 0 35px #000000, 0 0 45px #000000;
  transform: scale(0.90);
}

.icon-btn:active .logout-btn {
  text-shadow: 0 0 25px #ff1515, 0 0 35px #ff1515, 0 0 45px #ff1515;
  transform: scale(0.90);
}

/* ----------------------------- Main Content ----------------------------- */
.main-content {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Cards Section */
.top-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  max-width: 1000px;
}

/* Lista de Clientes Section */
.clientes-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------- Card Base Styles --------------------------- */
.card {
  background-color: #fff;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
  overflow: hidden;
}

.card-header {
  background-color: #fff;
  padding: 6px 12px;
  /* Más espacio para "respirar" */
  border-bottom: 1px solid #ebedf0;
  display: flex;
  justify-content: space-between;
  /* Separa izquierda y derecha */
  align-items: center;
}

.card-header-left {
  width: 240px;
  display: flex;
  align-items: center;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 1px;
  /* Separación entre los botones de la derecha */
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  letter-spacing: 0.5px;
}

.card-body {
  padding: 14px;
}

/* ----------------------------- Cliente Card ----------------------------- */
.cliente-card .card-icons {
  width: 100px;
  display: flex;
  gap: 8px;
}

.cliente-card .card-icons .icon-placeholder {
  font-size: 16px;
  transition: all 300ms;
}

.icon-btn-link {
  background: transparent;
  width: 50px;
  border: none;
  cursor: pointer;
  padding: 8px;
  /* Un poco más de área cliqueable */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s;
}

.icon-btn-link:hover {
  background-color: #f7f9fc;
  /* Fondo sutil al hacer hover */
}

.icon-btn-link:active {
  transform: scale(0.95);
}


.icon-btn-link .icon-placeholder {
  font-size: 18px;
  line-height: 1;
}

/* Hover sobre botones de la card afecta al icono */
.icon-btn-link:hover .icon-placeholder {
  text-shadow: 0 0 20px #4e4743, 0 0 30px #4e4743;
}

/* Active (click) sobre botones de la card */
.icon-btn-link:active .icon-placeholder {
  text-shadow: 0 0 25px #4e4743, 0 0 35px #4e4743, 0 0 45px #4e4743;
  transform: scale(0.90);
}

.input-group {
  margin-bottom: 12px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #555;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-container {
  flex: 1;

  position: relative;
  display: flex;
  align-items: center;
}

.input-container input {
  width: 60%;
  padding: 8px 12px 8px 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  background-color: #fff;
}

.input-container .icon-placeholder {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: all 300ms;
}

/* Hover sobre icono de búsqueda en input */
.input-container .icon-placeholder:hover {
  text-shadow: 0 0 20px #4e4743, 0 0 30px #4e4743;
}

/* Active (click) sobre icono de búsqueda en input */
.input-container .icon-placeholder:active {
  text-shadow: 0 0 25px #4e4743, 0 0 35px #4e4743, 0 0 45px #4e4743;
  transform: translateY(-50%) scale(0.90);
}

.search-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: all 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn-left {
  left: 4px;
}

.search-btn-external {
  position: static;
  flex-shrink: 0;
}

.search-btn .icon-placeholder {
  position: static;
  font-size: 14px;
  color: #666;
  transition: all 300ms;
}

/* Hover sobre search-btn afecta al icono */
.search-btn:hover .icon-placeholder {
  text-shadow: 0 0 20px #4e4743, 0 0 30px #4e4743;
}

/* Active (click) sobre search-btn */
.search-btn:active .icon-placeholder {
  text-shadow: 0 0 25px #4e4743, 0 0 35px #4e4743, 0 0 45px #4e4743;
  transform: scale(0.90);
}







h1 {
  margin: 0 0 8px;
}

.meta {
  color: #555;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ok {
  background: #e7f7ee;
  color: #0c6b2f;
}

.bad {
  background: #fde8e8;
  color: #8a1f1f;
}

.muted {
  background: #f2f2f2;
  color: #444;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 12px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.small {
  font-size: 12px;
  color: #666;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
  flex-wrap: wrap;
}

.toolbar input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  min-width: 280px;
}

.toolbar a {
  color: #0b5;
  text-decoration: none;
  font-weight: 700;
}

.right {
  text-align: right;
}