:root {
  --bg: #c2c9cc;
  --surface: #edeff0;
  --surface-alt: #f3f7f3;
  --border: #cfe0cf;
  --text: #000e00;
  --text-muted: #4b614c;
  --primary: #007f00;
  --primary-hover: #006600;
  --success: #007f00;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: #000e00;
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* Barra superior general */
.topbar {
  background: #000e00;
  border-bottom: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 3px 12px rgba(0, 14, 0, 0.18);
}

/* Barra superior exclusiva de Recepción y Administración (degradado #000e00 a #007f00) */
.topbar-recepcion {
  background: linear-gradient(90deg, #000e00 0%, #07260d 48%, #007f00 100%);
  border-bottom: 3px solid #007f00;
  padding: 1.15rem 1.65rem;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 14, 0, 0.2);
}

.brand-recepcion {
  gap: 0.8rem;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-recepcion img {
  height: 42px;
  max-width: 160px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1.5px solid #007f00;
  background: #ffffff;
  flex-shrink: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-left: auto;
  min-width: 0;
}

.topbar-recepcion .search-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 290px;
  max-width: 38vw;
  min-width: 0;
}

.topbar-recepcion .search-bar input {
  background: #ffffff;
  color: #000e00;
  border: 1.5px solid #000e00;
  border-radius: 10px;
  min-width: 0;
  width: 100%;
}

.topbar-recepcion .search-bar input::placeholder {
  color: #4b614c;
}

.btn-buscar-topbar {
  background: #000e00;
  border: 1px solid #000e00;
  color: #ffffff;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-buscar-topbar:hover {
  background: #0b240b;
  color: #ffffff;
  box-shadow: none;
}

.btn-topbar-nav {
  background: #000e00;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-topbar-nav:hover {
  background: #0b240b;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: none;
}

.btn-salir {
  background: #000e00;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-salir:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.brand:hover {
  color: #bbf7d0;
}

.brand img {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  color: #f2fbf2;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #0b1f0b;
  border: 1px solid #1b3d1b;
  transition: all 0.15s ease;
}

.nav-links a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.nav-links a.nav-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.nav-links a.nav-cta:hover {
  background: #009c00;
  color: #ffffff;
}

.nav-links a.nav-logout {
  color: #a3bfa4;
}

.nav-links a.nav-logout:hover {
  border-color: var(--danger);
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
}

.search-bar {
  display: flex;
  gap: 0.4rem;
}

.search-bar input {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #234d23;
  background: #071707;
  color: #ffffff;
  min-width: 0;
}

.search-bar input::placeholder {
  color: #8fa891;
}

/* Contenedor principal */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
}

/* ==========================================================================
   Hub de Navegación Principal — Administración y Recepción
   ========================================================================== */
.container.container-admin-hub {
  max-width: 1320px;
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.container.container-admin-hub.is-panel-open {
  justify-content: flex-start;
  padding-top: 1.5rem;
}

.admin-hub {
  width: 100%;
}

.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.recepcion-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
}

.admin-nav-card,
a.admin-nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 290px;
  padding: 2.35rem 1.4rem 1.75rem;
  background-color: #edeff0;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 14, 0, 0.1);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: #000e00;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.admin-nav-card:hover,
a.admin-nav-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 127, 0, 0.16);
  color: #000e00;
}

.admin-nav-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 127, 0, 0.28);
}

.admin-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  min-width: 78px;
  border-radius: 50%;
  background: #f3f9f3;
  border: 1.5px solid #cfe0cf;
  margin-bottom: 1.25rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-nav-card:hover .admin-nav-icon,
a.admin-nav-card:hover .admin-nav-icon {
  background: #e6f5e6;
  border-color: var(--primary);
  transform: scale(1.04);
}

.admin-nav-title {
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  color: #000e00;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.admin-nav-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.4rem;
}

.admin-nav-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f9f3;
  border: 1px solid #cfe0cf;
  color: var(--primary);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-nav-card:hover .admin-nav-arrow,
a.admin-nav-card:hover .admin-nav-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateX(3px);
}

.admin-panel-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.65rem;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Tarjetas estándar */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 14, 0, 0.06);
}

.card.card-folio,
.card.card-evidencias,
.card.card-refacciones,
.card.card-finalizar,
.card.admin-panel-detalle {
  background-color: #edeff0;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0, 14, 0, 0.12);
}

.card.admin-panel-detalle {
  margin-top: 0;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Formularios */
.form-group {
  margin-bottom: 0.95rem;
}

label {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  color: #000e00;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #000e00;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 127, 0, 0.16);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.05rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: #ffffff;
  background: var(--primary);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 127, 0, 0.25);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: #000e00;
}

.btn-secondary:hover {
  background: #e4efe4;
  border-color: var(--primary);
  color: #000e00;
  box-shadow: none;
}

.btn-success {
  background: #007f00;
  color: #ffffff;
}

.btn-success:hover {
  background: #006600;
}

.btn-info {
  background: #000e00;
  border: 1px solid #000e00;
  color: #ffffff;
}

.btn-info:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-sm {
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
}

.btn-diagnosticar-principal {
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.95rem 2.25rem;
  border-radius: 12px;
  background: rgba(0, 127, 0, 0.7);
  border: 1px solid rgba(0, 127, 0, 0.85);
  box-shadow: 0 4px 14px rgba(0, 127, 0, 0.22);
}

.btn-diagnosticar-principal:hover {
  background: rgba(0, 127, 0, 0.92);
  border-color: #007f00;
  box-shadow: 0 6px 18px rgba(0, 127, 0, 0.34);
}

/* Tablas */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.72rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: #000e00;
  background: var(--surface-alt);
  border-bottom: 2px solid var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: #e4e8ea;
}

/* Estados (Badges) */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: #000e00;
}

.badge-recibido { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.badge-por-cotizar { background: #fef9c3; color: #a16207; border-color: #fde047; }
.badge-cotizado { background: #f3e8ff; color: #7e22ce; border-color: #d8b4fe; }
.badge-en-reparacion { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.badge-listo { background: #dcfce7; color: #007f00; border-color: #007f00; }
.badge-entregado { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

/* Alertas Flash tipo Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 380px;
  width: calc(100% - 2rem);
  pointer-events: none;
}

.flash {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 26px rgba(0, 14, 0, 0.2);
  pointer-events: auto;
  cursor: pointer;
  animation: toastEntrar 0.28s ease-out forwards;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash.toast-hide {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes toastEntrar {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-exito {
  background: #dcfce7;
  border: 1.5px solid var(--primary);
  border-left: 5px solid var(--primary);
  color: #004d00;
}

.flash-error {
  background: #fee2e2;
  border: 1.5px solid var(--danger);
  border-left: 5px solid var(--danger);
  color: #991b1b;
}

/* Login sobre fondo verde */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(to top, #092b17 0%, #164b2a 52%, #347b4a 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #edeff0;
  border: none;
  border-radius: 20px;
  padding: 1.5rem 1.85rem 2.1rem;
  box-shadow:
    0 0 24px 5px rgba(88, 151, 100, 0.42),
    0 14px 28px rgba(0, 20, 4, 0.24),
    0 30px 55px rgba(11, 47, 25, 0.24),
    0 0 70px 16px rgba(46, 117, 69, 0.3),
    0 0 108px 38px rgba(46, 117, 69, 0.14);
}

.login-top-tag {
  display: block;
  text-align: left;
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #000e00;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.login-card label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #000e00;
  margin-bottom: 0.45rem;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.02rem;
  padding: 0.72rem 0.9rem;
}

.login-card .btn {
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.2rem;
  border-radius: 16px;
  margin-top: 0.35rem;
}

/* Evidencias */
.evidencias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.evidencias-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.evidencias-grid img:hover {
  border-color: var(--primary);
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Dashboard Perfil de Técnico (Modular)
   ========================================================================== */
.container.container-tech-wide {
  max-width: 100%;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.tech-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: calc(100vh - 125px);
}

.tech-top-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.tech-profile-card,
.tech-summary-card,
.tech-table-card {
  margin-bottom: 0;
  min-width: 0;
}

.tech-summary-card,
.tech-table-card {
  background-color: #edeff0;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0, 14, 0, 0.14);
}

.tech-profile-card {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tech-profile-inner {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  width: 100%;
}

.tech-avatar {
  width: 104px;
  height: 104px;
  min-width: 104px;
  border-radius: 50%;
  background: #edeff0;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 14, 0, 0.14);
}

.tech-profile-info {
  flex: 1;
  min-width: 0;
}

.tech-profile-name {
  font-size: 2.1rem;
  font-weight: 700;
  color: #000e00;
  line-height: 1.2;
  margin: 0;
}

.tech-profile-divider {
  border: none;
  border-top: 1px solid rgba(0, 14, 0, 0.16);
  margin: 0.85rem 0;
}

.tech-profile-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
}

.tech-status-label {
  color: #1f3320;
  font-weight: 600;
}

.tech-status-value {
  color: var(--primary);
  font-weight: 700;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.96rem;
}

.tech-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
}

.tech-summary-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.tech-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #000e00;
}

.tech-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}

.tech-summary-divider {
  width: 1px;
  height: 100%;
  min-height: 54px;
  background: var(--border);
}

.tech-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.2rem 0.4rem;
}

.tech-metric-number {
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #000e00;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.tech-metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  flex: 1;
}

.tech-table-card {
  display: flex;
  flex-direction: column;
}

.tech-table-header {
  margin-bottom: 0.85rem;
}

.tech-table-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tech-table-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #000e00;
}

.tech-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.65rem;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-family: "Conthrax", "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.tech-table-scroll {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tech-table td {
  overflow-wrap: break-word;
}

.tech-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-alt);
}

.tech-col-ver {
  text-align: center;
  width: 64px;
}

.tech-btn-eye {
  padding: 0.36rem 0.55rem;
  border-radius: 8px;
}

.tech-btn-eye:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.tech-empty-msg {
  padding: 1.25rem 0.5rem;
  text-align: center;
}

/* ==========================================================================
   Ajuste exclusivo para pantallas de celular (no afecta PC)
   ========================================================================== */
@media (max-width: 768px) {
  .topbar,
  .topbar-recepcion {
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }

  .brand-recepcion {
    font-size: 1.05rem;
    gap: 0.55rem;
  }

  .brand-recepcion img {
    height: 34px;
    padding: 3px 8px;
  }

  .topbar-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .btn-topbar-nav,
  .btn-salir {
    order: 1;
  }

  .topbar-recepcion .search-bar,
  .search-bar {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .container.container-admin-hub {
    min-height: auto;
    justify-content: flex-start;
    padding: 1.25rem 1rem;
  }

  .recepcion-cards-grid,
  .admin-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-nav-card,
  a.admin-nav-card {
    min-height: auto;
    padding: 1.65rem 1.25rem 1.4rem;
  }

  .admin-nav-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    margin-bottom: 0.9rem;
  }

  .admin-nav-desc {
    margin-bottom: 1rem;
  }

  .container.container-tech-wide {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tech-top-grid,
  .tech-tables-grid {
    grid-template-columns: 1fr;
  }
}