/* ==========================================================================
   MAIS OS — COCKPIT MOBILE DO TÉCNICO DE CAMPO (PWA / SMARTPHONE)
   ========================================================================== */

.mobile-container {
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header do Técnico */
.tech-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.tech-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #080d1a;
  box-shadow: var(--brand-glow);
}

.tech-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.tech-select-wrapper {
  margin-top: 0.2rem;
}

.tech-select-custom {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--brand-cyan);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Fila de Atendimentos */
.queue-header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.queue-badge {
  background: rgba(0, 210, 255, 0.15);
  color: var(--brand-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Card Mobile de O.S. */
.mobile-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 0.5rem 1.25rem 0.75rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: var(--transition);
}

.mobile-card.active-service {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
  background: rgba(21, 34, 56, 0.9);
}

.mobile-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-client-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.mobile-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mobile-info-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Ações Rápidas de Navegação (GPS & WhatsApp) */
.mobile-quick-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-nav-action {
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-action:hover, .btn-nav-action:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav-action.whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.1);
}

.btn-nav-action.waze {
  color: #33ccff;
  border-color: rgba(51, 204, 255, 0.3);
  background: rgba(51, 204, 255, 0.1);
}

/* Ações de 1 Toque de Campo */
.touch-action-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-touch {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-touch-transit {
  background: #f59e0b;
  color: #080d1a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-touch-start {
  background: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-touch-finish {
  background: var(--brand-green);
  color: #080d1a;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Medidor Óptico (Checklist) */
.optical-meter-card {
  background: rgba(8, 13, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signal-status-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.signal-status-indicator.signal-good {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.signal-status-indicator.signal-alert {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.signal-status-indicator.signal-bad {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Lousa de Assinatura Digital Touch */
.signature-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.signature-canvas {
  width: 100%;
  height: 150px;
  display: block;
  cursor: crosshair;
}

.signature-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

/* Barra Fixa Inferior Mobile */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 100;
}

.bottom-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.bottom-tab-btn.active {
  color: var(--brand-cyan);
}

.bottom-tab-icon {
  font-size: 1.25rem;
}
