/* ============================================================
   APP DO TÉCNICO — PWA Mobile
   Arquivo: css/app-tecnico.css
   ============================================================ */

/* Reset para mobile */
.pwa-root {
  font-family: var(--font-sans);
  background: #F0EEE9;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  color: var(--text-primary);
}

/* ── HEADER MOBILE ── */
.app-header-mobile {
  background: var(--brand);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-header-mobile .app-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.app-header-mobile .app-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.app-notif-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: white;
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--brand);
}

/* ── RESUMO DO DIA ── */
.day-summary {
  background: var(--brand);
  padding: 0 16px 16px;
  display: flex;
  gap: 10px;
}

.day-stat {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.day-stat .stat-num {
  font-size: 22px;
  font-weight: 600;
  color: white;
  line-height: 1;
}

.day-stat .stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ── LISTA DE OS MOBILE ── */
.os-list-mobile {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label-mobile {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 4px 4px;
}

/* Card mobile de OS */
.os-card-mobile {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--duration);
}

.os-card-mobile:active {
  transform: scale(0.98);
}

.card-mobile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 10px;
}

.card-mobile-status-bar {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  flex-shrink: 0;
  margin: -12px -14px -10px 0;
  margin-left: -12px;
}

.card-mobile-status-bar { margin: 0; width: 3px; border-radius: 2px; }

.card-mobile-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-mobile-info { flex: 1; min-width: 0; }

.card-mobile-nome {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.card-mobile-tipo {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.card-mobile-hora {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-light);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.card-mobile-body {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-mobile-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.card-mobile-row .icon { font-size: 13px; flex-shrink: 0; }

.card-mobile-footer {
  display: flex;
  border-top: 1px solid var(--border);
}

.card-mobile-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration);
  border: none;
  background: none;
  font-family: inherit;
}

.card-mobile-btn:hover { background: var(--bg-col); }
.card-mobile-btn + .card-mobile-btn { border-left: 1px solid var(--border); }

.card-mobile-btn.primary-action {
  color: var(--brand-light);
  font-weight: 600;
}

/* ── BOTTOM NAV MOBILE ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration);
  gap: 3px;
  border: none;
  background: none;
  font-family: inherit;
}

.bottom-nav-item .nav-icon { font-size: 20px; }

.bottom-nav-item.active {
  color: var(--brand);
}

.bottom-nav-item.active .nav-icon {
  filter: none;
}

/* Padding inferior para o bottom nav */
.os-list-mobile { padding-bottom: 80px; }
