/* Estilos complementarios a Tailwind */

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #dde8e2;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.label { font-size: .8rem; font-weight: 500; color: #3f5a51; }

.input {
  margin-top: .25rem;
  width: 100%;
  border: 1px solid #c7d6ce;
  border-radius: .5rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.input:disabled { background: #f1f5f4; color: #334155; cursor: default; border-color: #e2e8f0; }
.input:focus { outline: none; border-color: #2f8468; box-shadow: 0 0 0 3px rgb(47 132 104 / .2); }

/* Navegación lateral */
.nav-link {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .625rem .75rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 500; text-align: left;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: #185747; color: #fff; }
.nav-link.active { background: #1f6b57; color: #fff; }

/* Tabs */
.tab-btn {
  padding: .5rem 1rem; border-radius: .625rem;
  font-size: .875rem; font-weight: 500; color: #64748b;
  transition: all .15s;
}
.tab-btn.active { background: #1f6b57; color: #fff; box-shadow: 0 2px 6px rgb(31 107 87 / .3); }

/* Dropzone */
.dropzone:hover { border-color: #529f85; background: #f3f9f6; }
.dropzone.dragover {
  border-color: #1f6b57; background: #eef6f2;
  transform: scale(1.01);
}
.dropzone.dragover .dz-icon { animation: bounce .6s infinite alternate; }
@keyframes bounce { to { transform: translateY(-6px); } }

/* Barra de progreso */
.progress { height: 6px; background: #dde8e2; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #2f8468, #529f85); transition: width .2s; }

/* Tabla */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: #1f6b57; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #f3f8f5; }

/* Badges de estado */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Login: decoración */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.blob-1 { width: 380px; height: 380px; background: #82bfa8; top: -80px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: #e6b45e; bottom: -60px; left: -60px; }

/* Animaciones */
.view { animation: fadeIn .25s ease; }
.modal-panel { animation: pop .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.toast { animation: slideIn .25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ficha del proveedor a pantalla completa (ABM) */
#modal-panel.abm-full { max-width: none; margin: 0; min-height: 100vh; border-radius: 0; box-shadow: none; padding: 2rem clamp(1rem, 4vw, 3.5rem); }
#modal-panel.abm-full > div:first-child { position: sticky; top: 0; z-index: 5; background: #fff; margin: -2rem calc(-1 * clamp(1rem, 4vw, 3.5rem)) 0; padding: 1.25rem clamp(1rem, 4vw, 3.5rem) 1rem; border-bottom: 1px solid #e2e8f0; }
#modal-panel.abm-full #modal-title { font-size: 1.5rem; font-weight: 700; }
