/* Tema Jausticab para el gestor de pedidos (06-11-2026).
   Mismo estilo que jausticab.es: blanco y negro, títulos en Alata, texto sobrio.
   Compatible con iOS 9 (sin variables CSS ni gap en flex). */

@font-face {
  font-family: 'Alata';
  font-style: normal;
  font-weight: 400;
  src: url('marca/alata-normal-latin-400.woff2') format('woff2');
}

body.tema-jausticab {
  background: #f5f5f5 !important;
  color: #333 !important;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
body.tema-jausticab h1, body.tema-jausticab h2, body.tema-jausticab h3,
body.tema-jausticab .card-title, body.tema-jausticab .historial-title,
body.tema-jausticab .tab-button, body.tema-jausticab .stat-number {
  font-family: 'Alata', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  letter-spacing: .02em;
}

/* Cabecera */
.tj-topbar { background: #000; height: 6px; }
.tj-header { background: #fff; border-bottom: 1px solid #e6e6e6; }
.tj-header-in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; }
.tj-brand { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; }
.tj-brand img { height: 40px; width: auto; display: block; }
.tj-brand-sep { width: 1px; height: 30px; background: #ddd; margin: 0 14px; }
.tj-brand-txt { font-family: 'Alata', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; color: #111; text-transform: uppercase; letter-spacing: .08em; }
.tj-user { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; font-size: 14px; color: #555; }
.tj-user-name { margin-right: 14px; text-align: right; line-height: 1.2; }
.tj-user-name small { display: block; color: #999; font-size: 12px; }
.tj-salir { display: inline-block; border: 1px solid #111; color: #111 !important; padding: 8px 16px; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tj-salir:hover { background: #111; color: #fff !important; }
@media (max-width: 600px) {
  .tj-brand img { height: 30px; }
  .tj-brand-sep, .tj-brand-txt, .tj-user-name { display: none; }
}

/* Contenedores */
body.tema-jausticab .card, body.tema-jausticab .historial-container {
  background: #fff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.tema-jausticab .card-title, body.tema-jausticab .historial-title {
  color: #111 !important; font-size: 22px !important; text-transform: uppercase; font-weight: 400 !important;
}

/* Pestañas */
body.tema-jausticab .dashboard-tabs .tab-button, body.tema-jausticab .tabs .tab-button {
  background: transparent !important; color: #777 !important; border: 0 !important;
  border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  padding: 12px 18px !important; text-transform: uppercase; font-size: 14px !important; box-shadow: none !important;
}
body.tema-jausticab .tab-button.active { color: #111 !important; border-bottom-color: #111 !important; }
body.tema-jausticab .tabs { border-bottom: 1px solid #e6e6e6 !important; background: transparent !important; }

/* Pedidos pendientes */
body.tema-jausticab .order-item {
  background: #fff !important; border: 0 !important; border-bottom: 1px solid #ececec !important;
  border-radius: 0 !important; padding: 16px 6px !important; margin: 0 !important; box-shadow: none !important;
}
body.tema-jausticab .order-item:last-child { border-bottom: 0 !important; }
body.tema-jausticab .order-title, body.tema-jausticab .item-title { color: #111 !important; font-weight: 600 !important; font-size: 16px !important; }
body.tema-jausticab .order-meta, body.tema-jausticab .historial-item-meta, body.tema-jausticab .meta-text { color: #888 !important; font-size: 13px !important; }
body.tema-jausticab .status-pending, body.tema-jausticab .badge-month, body.tema-jausticab .status-badge {
  display: inline-block; background: #f2f2f2 !important; color: #555 !important; border: 0 !important;
  border-radius: 2px !important; padding: 2px 8px !important; font-size: 11px !important;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600 !important;
}
body.tema-jausticab .status-badge.completed { background: #e8f3ea !important; color: #2e7d32 !important; }
body.tema-jausticab .status-badge.cancelled { background: #fbeaea !important; color: #c62828 !important; }
body.tema-jausticab .item-icon, body.tema-jausticab .stat-icon, body.tema-jausticab .meta-icon, body.tema-jausticab .empty-icon { display: none !important; }

/* Botones */
body.tema-jausticab .btn-legacy, body.tema-jausticab .historial-btn, body.tema-jausticab .filter-btn,
body.tema-jausticab .clear-filter-btn, body.tema-jausticab button.btn-primary {
  border-radius: 0 !important; box-shadow: none !important; text-transform: uppercase; letter-spacing: .05em;
  font-size: 13px !important; font-weight: 600 !important; padding: 11px 16px !important; min-height: 44px;
  background-image: none !important;
}
body.tema-jausticab .btn-primary-legacy, body.tema-jausticab .filter-btn, body.tema-jausticab button.btn-primary {
  background: #111 !important; color: #fff !important; border: 1px solid #111 !important;
}
body.tema-jausticab .btn-secondary-legacy, body.tema-jausticab .historial-btn, body.tema-jausticab .clear-filter-btn {
  background: #fff !important; color: #111 !important; border: 1px solid #111 !important;
}
body.tema-jausticab .btn-danger {
  background: #fff !important; color: #c62828 !important; border: 1px solid #e3b4b4 !important;
}
body.tema-jausticab .btn-legacy[disabled] { opacity: .45; }

/* Estadísticas del historial */
body.tema-jausticab .historial-stat-card {
  background: #fff !important; border: 1px solid #ececec !important; border-radius: 0 !important; box-shadow: none !important;
  color: #333 !important;
}
body.tema-jausticab .stat-number { color: #111 !important; font-weight: 400 !important; }
body.tema-jausticab .stat-label { color: #888 !important; text-transform: uppercase; font-size: 11px !important; letter-spacing: .05em; }
body.tema-jausticab .historial-item {
  background: #fff !important; border: 0 !important; border-bottom: 1px solid #ececec !important; border-radius: 0 !important;
  box-shadow: none !important; border-left: 3px solid #ddd !important;
}
body.tema-jausticab .historial-item.terminado { border-left-color: #2e7d32 !important; }
body.tema-jausticab .historial-item.cancelado { border-left-color: #c62828 !important; }
body.tema-jausticab .historial-filtros { background: #fafafa !important; border-color: #e6e6e6 !important; border-radius: 0 !important; }

/* Campos */
body.tema-jausticab input[type=search], body.tema-jausticab input[type=date],
body.tema-jausticab input[type=text], body.tema-jausticab input[type=password], body.tema-jausticab select {
  border: 1px solid #ccc !important; border-radius: 0 !important; background: #fff !important; color: #222 !important;
  -webkit-appearance: none;
}
body.tema-jausticab input:focus, body.tema-jausticab select:focus { outline: none; border-color: #111 !important; }

/* Login */
body.tema-jausticab .login-container { border: 1px solid #e6e6e6 !important; border-radius: 0 !important; box-shadow: none !important; }
body.tema-jausticab .login-title { font-family: 'Alata', 'Helvetica Neue', Arial, sans-serif !important; text-transform: uppercase; font-weight: 400 !important; }

/* Visor PDF */
body.tema-jausticab .pdf-modal-header { background: #fff !important; border-bottom: 1px solid #e6e6e6 !important; }

/* Ajustes historial */
body.tema-jausticab .historial-title { background: none !important; border: 0 !important; border-bottom: 1px solid #e6e6e6 !important; border-radius: 0 !important; box-shadow: none !important; }
body.tema-jausticab .historial-stats { display: block !important; text-align: center; margin-bottom: 18px; }
body.tema-jausticab .historial-stat-card { display: inline-block !important; vertical-align: top; width: 15%; min-width: 105px; margin: 4px !important; padding: 14px 6px !important; box-sizing: border-box; }

/* Pestañas en línea también en tablet */
body.tema-jausticab .tabs, body.tema-jausticab .dashboard-tabs .tabs { display: block !important; text-align: center; }
body.tema-jausticab .tabs .tab-button { display: inline-block !important; width: auto !important; margin: 0 !important; }
@media (max-width: 480px) { body.tema-jausticab .tabs .tab-button { padding: 10px 8px !important; font-size: 12px !important; } }
