body { background: #f5f7fb; }
.card-stat { border: 0; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.table thead th { white-space: nowrap; }

.producto-thumb-form{width:120px;height:120px;object-fit:cover;border-radius:12px;}
.producto-thumb-list{width:64px;height:64px;object-fit:cover;border-radius:12px;}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;}
.product-card{background:#fff;border:1px solid #dfe5ee;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 6px 20px rgba(0,0,0,.05);transition:transform .12s ease, box-shadow .12s ease;border:none;text-align:left;}
.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,.10);}
.product-card-image-wrap{height:140px;background:#eef2f7;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.product-card-image{width:100%;height:100%;object-fit:cover;display:block;}
.product-card-placeholder{font-size:.95rem;color:#6c757d;}
.product-card-body{padding:12px 14px;}
.pedido-thumb{width:58px;height:58px;object-fit:cover;border-radius:12px;display:block;background:#eef2f7;}
.pedido-thumb-empty{display:flex;align-items:center;justify-content:center;font-size:.75rem;color:#6c757d;}


.product-grid-pedidos{grid-template-columns:repeat(4,minmax(0,1fr));}
.product-grid-pedidos .product-card-image-wrap{height:150px;}
.product-grid-pedidos .product-card-image,
.product-grid-pedidos .product-card-placeholder{width:100%;height:100%;}
.product-grid-pedidos .product-card-placeholder{display:flex;align-items:center;justify-content:center;background:#eef2f7;}
.product-grid-pedidos .product-card-body{min-height:74px;display:flex;flex-direction:column;justify-content:center;}
@media (max-width: 991.98px){
  .product-grid-pedidos{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 767.98px){
  .product-grid-pedidos{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 479.98px){
  .product-grid-pedidos{grid-template-columns:repeat(1,minmax(0,1fr));}
}

/* =========================================================
   MENU SUPERIOR - MODERNIZACION VISUAL
   No modifica comportamiento ni rutas del sistema.
   ========================================================= */
.app-navbar {
  background: linear-gradient(135deg, #111827 0%, #172554 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.app-navbar .app-navbar-brand {
  font-weight: 700;
  letter-spacing: .2px;
  padding: .48rem .85rem;
  border-radius: 10px;
  transition: background-color .22s ease, transform .22s ease, color .22s ease;
}

.app-navbar .app-navbar-brand:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

.app-navbar-menu {
  gap: .18rem;
}

.app-navbar .nav-link {
  position: relative;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
  border-radius: 10px;
  padding: .56rem .78rem !important;
  transition: color .22s ease, background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.app-navbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

.app-navbar .nav-link.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .30);
}

.app-navbar .nav-link.active:hover {
  background: #1d4ed8;
}

.app-logout-btn {
  border-radius: 9px;
  padding-left: .8rem;
  padding-right: .8rem;
  transition: background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.app-logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
}

@media (max-width: 991.98px) {
  .app-navbar-menu {
    gap: .28rem;
    padding-top: .7rem;
  }

  .app-navbar .nav-link {
    padding: .68rem .85rem !important;
  }

  .app-navbar-user {
    padding-top: .7rem;
    padding-bottom: .25rem;
  }
}

/* =========================================================
   BOTONES DE ACCION - VER / EDITAR / ELIMINAR
   Clases adicionales aplicadas solo a estas acciones.
   ========================================================= */
.btn-action-view,
.btn-action-edit,
.btn-action-delete {
  border-radius: 9px;
  font-weight: 600;
  border-width: 1px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn-action-view:hover,
.btn-action-edit:hover,
.btn-action-delete:hover {
  transform: translateY(-1px);
}

.btn-action-view {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.btn-action-view:hover,
.btn-action-view:focus {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .20);
}

.btn-action-edit {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.btn-action-edit:hover,
.btn-action-edit:focus {
  color: #fff;
  background: #d97706;
  border-color: #d97706;
  box-shadow: 0 5px 14px rgba(217, 119, 6, .20);
}

.btn-action-delete {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.btn-action-delete:hover,
.btn-action-delete:focus {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 5px 14px rgba(220, 38, 38, .20);
}
