/* ==========================================================================
   BADUCHI SYNC - INDUSTRIAL MOBILE DESIGN SYSTEM
   Mobile-First, High Contrast, Touch-Optimized Chão de Fábrica
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-app: #080d1a;
  --bg-card: #111827;
  --bg-card-elevated: #1f293d;
  --bg-input: #172033;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.25);
  --color-green-dark: #064e3b;

  --color-amber: #f59e0b;
  --color-amber-glow: rgba(245, 158, 11, 0.25);
  --color-amber-dark: #78350f;

  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.35);
  --color-red-dark: #7f1d1d;

  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.25);
  --color-blue: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --touch-target: 54px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 2px 8px var(--color-green-glow);
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 6px var(--color-green);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-red);
  border-color: var(--color-red);
}

/* ==========================================================================
   NAVIGATION TABS (CHÃO DE FÁBRICA / REVISÃO / CAIXAS)
   ========================================================================== */

.nav-tabs-wrapper {
  background: #0f172a;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-tabs {
  display: flex;
  gap: 6px;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  min-height: 44px;
}

.tab-btn.active {
  background: var(--bg-card-elevated);
  color: #fff;
  border-color: var(--border-highlight);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-btn.tab-costura.active {
  border-bottom: 2px solid var(--color-green);
}

.tab-btn.tab-revisao.active {
  border-bottom: 2px solid var(--color-cyan);
}

.tab-btn.tab-caixas.active {
  border-bottom: 2px solid var(--color-blue);
}

/* ==========================================================================
   MAIN CONTAINER & SECTIONS
   ========================================================================== */

.app-main {
  flex: 1;
  padding: 14px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-content {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.tab-content.active {
  display: flex;
}

/* ==========================================================================
   CARDS E COMPONENTES DE ESTADO
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ==========================================================================
   BOTOES GIGANTES INDUSTRIAIS (TOUCH >= 54px)
   ========================================================================== */

.btn-primary {
  width: 100%;
  min-height: var(--touch-target);
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--color-green-glow);
  transition: all 0.15s ease-in-out;
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 6px var(--color-green-glow);
}

.btn-danger {
  width: 100%;
  min-height: var(--touch-target);
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--color-red-glow);
  transition: all 0.15s ease-in-out;
}

.btn-danger:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-secondary {
  width: 100%;
  min-height: 48px;
  background: var(--bg-card-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-warning-outline {
  width: 100%;
  min-height: 48px;
  background: transparent;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-warning-outline:active:not(:disabled) {
  background: rgba(245, 158, 11, 0.15);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   INPUTS TOUCH-FRIENDLY & LEITURA DE CÓDIGO DE BARRAS
   ========================================================================== */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.input-barcode-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-barcode-wrapper input {
  padding-left: 44px;
}

.barcode-icon {
  position: absolute;
  left: 14px;
  font-size: 20px;
  color: var(--text-dim);
  pointer-events: none;
}

.input-control {
  width: 100%;
  min-height: var(--touch-target);
  background-color: var(--bg-input);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-control:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-glow);
}

.input-control::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
}

/* Select */
select.input-control {
  font-family: var(--font-sans);
  font-size: 15px;
  cursor: pointer;
}

/* ==========================================================================
   CRONÔMETRO PROGRESSIVO AO VIVO
   ========================================================================== */

.stopwatch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 6px 0;
}

.stopwatch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.stopwatch-digits {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stopwatch-digits.pulsing {
  color: #f87171;
  animation: pulse-danger 1.5s infinite;
}

@keyframes pulse-danger {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   ESTADO: PARADA (TELA PULSANTE)
   ========================================================================== */

.card-parada-pulsante {
  border: 2px solid var(--color-red);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(17, 24, 39, 0.95) 100%);
  animation: border-pulse-red 2s infinite ease-in-out;
}

@keyframes border-pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   ESTADO: OCIOSO
   ========================================================================== */

.card-ocioso {
  border: 1px solid var(--color-amber);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(17, 24, 39, 0.95) 100%);
}

/* ==========================================================================
   GRADE DE SALDOS POR OPERAÇÃO
   ========================================================================== */

.saldos-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.saldo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-elevated);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border-left: 3px solid var(--color-blue);
}

.saldo-item.active {
  border-left-color: var(--color-green);
  background: rgba(16, 185, 129, 0.12);
}

.saldo-item-nome {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.saldo-item-qtd {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.saldo-item.active .saldo-item-qtd {
  color: var(--color-green);
}

/* ==========================================================================
   MODAIS DE DECISÃO E DIÁLOGOS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* Operações Seletor em Lista no Modal */
.op-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.btn-op-choice {
  min-height: 52px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.btn-op-choice:active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--color-green);
  color: #34d399;
}

/* ==========================================================================
   MÓDULO DE REVISÃO FINAL
   ========================================================================== */

.people-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-input);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.btn-counter {
  width: 44px;
  height: 44px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-highlight);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-counter:active {
  background: var(--color-blue);
}

.counter-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.switch-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Switch Toggle */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--color-cyan);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   BOTÕES RÁPIDOS DE TAMANHO (CADASTRO DE CAIXA)
   ========================================================================== */

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-size {
  min-height: 48px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-size.active {
  background: var(--color-blue);
  color: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 440px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-highlight);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease-out;
  pointer-events: auto;
}

.toast-success {
  border-left: 4px solid var(--color-green);
}

.toast-error {
  border-left: 4px solid var(--color-red);
}

.toast-warning {
  border-left: 4px solid var(--color-amber);
}

@keyframes toast-in {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   TELA DE LOGIN (NOVO MODELO MULTI-EMPRESA FIEL AO PRINT)
   ========================================================================== */

.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #111215;
}

.login-box-modelo {
  width: 100%;
  max-width: 400px;
  background: #1e1f23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.login-logo-img {
  width: 135px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 26px auto;
  object-fit: contain;
}

.login-field-group {
  margin-bottom: 18px;
  text-align: left;
}

.login-field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a4abb8;
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.login-field-input {
  width: 100%;
  background: #272930;
  border: 1px solid #373b47;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: inherit;
}

.login-field-input::placeholder {
  color: #5c6270;
  font-size: 0.92rem;
}

.login-field-input:focus {
  border-color: #f15a24;
  background: #2a2d36;
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.2);
}

.login-field-input:-webkit-autofill,
.login-field-input:-webkit-autofill:hover,
.login-field-input:-webkit-autofill:focus,
.login-field-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #272930 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  border: 1px solid #373b47 !important;
  transition: background-color 50000s ease-in-out 0s;
}

.login-field-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2a2d36 inset, 0 0 0 3px rgba(241, 90, 36, 0.2) !important;
  border-color: #f15a24 !important;
}

.login-password-box {
  position: relative;
  width: 100%;
}

.login-password-box input {
  padding-right: 46px;
}

.btn-eye-toggle-mobile {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #7b8292;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: color 0.2s;
  z-index: 10;
}

.btn-eye-toggle-mobile i {
  pointer-events: none;
}

.btn-eye-toggle-mobile:hover,
.btn-eye-toggle-mobile:active {
  color: #ffffff;
}

.btn-entrar-modelo {
  background: #F15A24;
  color: #ffffff;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-entrar-modelo:hover {
  background: #d84b1a;
  transform: translateY(-1px);
}

.btn-entrar-modelo:active {
  transform: translateY(0);
}

/* ==========================================================================
   NOVO HUB DE SELEÇÃO DE AÇÕES (IMAGE 3) & TELAS CHÃO DE FÁBRICA (IMAGES 4 E 5)
   ========================================================================== */

.mobile-fullscreen-view {
  min-height: 100vh;
  width: 100%;
  background: #0f1013;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 1. HUB DE AÇÕES (IMAGE 3) */
.hub-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #0f1013;
}

.hub-card {
  width: 100%;
  max-width: 410px;
  background: #191b22;
  border: 1px solid #272a36;
  border-radius: 20px;
  padding: 36px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.hub-logo-box {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.hub-logo-img {
  width: 130px;
  height: auto;
  object-fit: contain;
}

.hub-greeting {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  text-align: center;
}

.hub-nome-destaque {
  color: #F15A24;
}

.hub-subtitle {
  font-size: 0.95rem;
  color: #949aab;
  margin-bottom: 28px;
  text-align: center;
}

.hub-actions-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-hub-item {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 10px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-transform: uppercase;
  color: #ffffff;
}

.btn-hub-item i {
  font-size: 1.15rem;
}

.btn-hub-orange {
  background: #F15A24;
}
.btn-hub-orange:hover, .btn-hub-orange:active {
  background: #d84b1a;
  transform: translateY(-1px);
}

.btn-hub-dark {
  background: #272930;
}
.btn-hub-dark:hover, .btn-hub-dark:active {
  background: #32353e;
  transform: translateY(-1px);
}

.btn-hub-blue {
  background: #0096e6;
}
.btn-hub-blue:hover, .btn-hub-blue:active {
  background: #0084cc;
  transform: translateY(-1px);
}

.btn-hub-logout-link {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-hub-logout-link:hover, .btn-hub-logout-link:active {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

/* 2. CONTAINER COMUM DE TELA CHÃO DE FÁBRICA (IMAGES 4 E 5) */
.mobile-screen-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px 20px;
  box-sizing: border-box;
  background: #0f1013;
}

/* Top bar com botão voltar e saudação */
.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 4px;
}

.btn-mobile-back {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.btn-mobile-back i {
  font-size: 0.95rem;
  color: #ff5722;
}
.btn-mobile-back:hover, .btn-mobile-back:active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.mobile-user-greeting {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-align: right;
  flex: 1;
}

/* Linha de resumo da OP e Box de Peças */
.mobile-op-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.mobile-op-left {
  display: flex;
  flex-direction: column;
}

.mobile-op-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.mobile-tam-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #d1d5db;
  margin-top: 2px;
}

.mobile-sub-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 4px;
}

.mobile-pecas-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.mobile-pecas-box {
  width: 96px;
  height: 64px;
  background: #24262d;
  border: 1px solid #333640;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.mobile-pecas-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F15A24;
  margin-top: 5px;
  text-align: center;
}

/* Campos de entrada padrão chão de fábrica */
.mobile-field-group {
  margin-bottom: 16px;
  width: 100%;
}

.mobile-field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 6px;
}

.mobile-barcode-wrapper {
  position: relative;
  width: 100%;
}

.mobile-barcode-input {
  width: 100%;
  height: 50px;
  background: #24262d;
  border: 1px solid #333640;
  border-radius: 10px;
  padding: 12px 58px 12px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mobile-barcode-input::placeholder {
  color: #6b7280;
}
.mobile-barcode-input:focus {
  border-color: #F15A24;
  background: #2a2d36;
}

.barcode-visual-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff5722;
  background: rgba(241, 90, 36, 0.15);
  border: 1px solid rgba(241, 90, 36, 0.35);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.barcode-visual-icon:hover {
  background: rgba(241, 90, 36, 0.25);
  border-color: #f15a24;
  color: #ffffff;
}
.barcode-visual-icon:active {
  transform: translateY(-50%) scale(0.92);
  background: #f15a24;
  color: #ffffff;
}

#camera-scanner-viewport video {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px;
  object-fit: cover;
}
#camera-scanner-viewport {
  width: 100% !important;
  border: none !important;
}

.mobile-display-input {
  width: 100%;
  height: 50px;
  background: #24262d;
  border: 1px solid #333640;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  outline: none;
  box-sizing: border-box;
}

/* Botão largo laranja vibrante de ação principal */
.btn-mobile-action-orange {
  width: 100%;
  height: 52px;
  background: #F15A24;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(241, 90, 36, 0.35);
}
.btn-mobile-action-orange:hover, .btn-mobile-action-orange:active {
  background: #d84b1a;
  transform: translateY(-1px);
}

.mobile-custom-divider {
  border: none;
  border-top: 1px solid #23252d;
  margin: 22px 0 20px 0;
  width: 100%;
}

/* Bloco Controle de Paradas (Image 4) */
.mobile-paradas-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.mobile-section-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f1f5f9;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.mobile-select-dark {
  width: 100%;
  height: 48px;
  background: #24262d;
  border: 1px solid #333640;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.mobile-select-dark:focus {
  border-color: #F15A24;
}

.mobile-parada-btns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn-parada-orange {
  height: 48px;
  background: #F15A24;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-parada-orange:hover, .btn-parada-orange:active {
  background: #d84b1a;
}

.btn-parada-dark {
  height: 48px;
  background: #272930;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-parada-dark:hover, .btn-parada-dark:active {
  background: #32353e;
}

/* Seção de Defeitos (Image 5) */
.mobile-defeitos-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.defeitos-header-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 10px;
  padding: 0 4px;
}

.defeitos-rows-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.defeito-slot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.select-defeito-slot {
  flex: 1;
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
  height: 44px !important;
}

.stepper-qtd-box {
  width: 120px;
  height: 44px;
  background: #24262d;
  border: 1px solid #333640;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  box-sizing: border-box;
}

.btn-step-action {
  width: 32px;
  height: 36px;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: #F15A24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}
.btn-step-action:active {
  transform: scale(0.85);
}

.btn-step-minus {
  color: #f87171;
}

.step-qtd-display {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  min-width: 28px;
  text-align: center;
}

/* Rodapé de Status Chão de Fábrica */
.mobile-bottom-status-bar {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
}

.status-prefix {
  color: #F15A24;
  margin-right: 4px;
}

.status-text-green {
  color: #00e676;
}

/* 3. TELA DE SUPERVISÃO / ADMIN MOBILE (IMAGE 2) */
.supervisao-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
}

.supervisao-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  flex: 1;
  letter-spacing: 0.3px;
  margin-right: 32px; /* balancear o botão voltar */
}

.supervisao-group-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #a4abb8;
  margin-top: 14px;
  margin-bottom: 12px;
  padding-left: 2px;
}

.supervisao-cards-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.supervisao-card-item {
  width: 100%;
  background: #1e2025;
  border: 1px solid #282a33;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.supervisao-card-item:hover, .supervisao-card-item:active {
  background: #252830;
  border-color: rgba(241, 90, 36, 0.4);
  transform: translateY(-1px);
}

.supervisao-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.supervisao-icon-box {
  width: 48px;
  height: 48px;
  background: #2a2020;
  border: 1px solid rgba(241, 90, 36, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F15A24;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.supervisao-text-block {
  display: flex;
  flex-direction: column;
}

.supervisao-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.supervisao-card-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: #8b92a2;
  margin-top: 4px;
}

.supervisao-chevron {
  color: #64748b;
  font-size: 1.15rem;
  margin-left: 10px;
}

/* 4. SUBTELAS DO ADMIN MOBILE (OPS, CAIXAS, ROTEIROS, USUÁRIOS) */
.subview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.subview-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-subview-action {
  background: #F15A24;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-subview-action:hover, .btn-subview-action:active {
  background: #d84b1a;
}

.mobile-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
  padding-bottom: 20px;
}

.mobile-data-card {
  background: #1e2025;
  border: 1px solid #282a33;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}
.mobile-data-card:hover {
  border-color: #3b3f4d;
}

.mobile-data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-data-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.mobile-data-card-sub {
  font-size: 0.86rem;
  color: #94a3b8;
}

.mobile-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.badge-tag-orange { background: #ff5722; color: #fff; }
.badge-tag-dark { background: #343a40; color: #fff; }
.badge-tag-amber { background: #ff9800; color: #000; }
.badge-tag-blue { background: #00a2ff; color: #fff; }
.badge-tag-green { background: #10b981; color: #fff; }
.badge-tag-red { background: #ef4444; color: #fff; }

/* Modal Mobile estilizado para CRUD */
.mobile-modal-dark {
  background: #191b22;
  border: 1px solid #2c2f3d;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  padding: 24px 20px;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.mobile-perm-box {
  background: #24262f;
  border: 2px solid #F15A24;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.mobile-perm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.mobile-perm-check input {
  accent-color: #F15A24;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.mobile-perm-check.active-user {
  color: #10b981;
}
.mobile-perm-check.active-user input {
  accent-color: #10b981;
}

/* ==========================================================================
   5. FORMULÁRIOS DE SUPERVISÃO / ADMIN MOBILE (PRINTS 2, 3, 4, 5)
   ========================================================================== */

/* Linha com Checkbox Alinhado à Direita */
.form-inline-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 2px 0;
}

.form-inline-check-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

.custom-checkbox-square {
  width: 20px;
  height: 20px;
  accent-color: #F15A24;
  cursor: pointer;
  border-radius: 4px;
}

/* Inputs Gerais dos Formulários de Supervisão */
.mobile-form-input {
  width: 100%;
  height: 48px;
  background: #23252b;
  border: 1px solid #30333d;
  border-radius: 10px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mobile-form-input:focus {
  border-color: #F15A24;
  box-shadow: 0 0 0 2px rgba(241, 90, 36, 0.2);
}

.mobile-form-input::placeholder {
  color: #727785;
  font-size: 0.9rem;
}

/* Input de Data Customizado no Dark */
.date-input-custom::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
}

/* Linha com 2 Colunas (Sequência e Tempo) */
.mobile-two-col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Botão Link Laranja (+ Novo Utilizador) */
.btn-link-orange {
  color: #F15A24;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-link-orange:hover, .btn-link-orange:active {
  opacity: 0.85;
  text-decoration: underline;
}

/* Card Escuro de Permissões de Acesso (Print 5) */
.permissoes-card-box {
  background: #191b22;
  border: 1px solid #282a35;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.permissoes-card-title {
  color: #F15A24;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.perm-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.perm-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
}

.perm-item-icon {
  width: 18px;
  text-align: center;
  color: #8a91a0;
  font-size: 0.95rem;
}

.perm-divider-dotted {
  border-top: 1px dashed #2d313e;
  margin: 8px 0;
}

.perm-item-green {
  color: #10b981 !important;
}

.perm-item-green .perm-item-icon {
  color: #10b981 !important;
}

/* ==========================================================================
   SELETOR DE OPERAÇÕES & EFEITO MARQUEE (COSTURA)
   ========================================================================== */
.mobile-op-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mobile-op-badge {
  background: rgba(255, 87, 34, 0.2);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Container relativo para dropdown customizado da operação */
.mobile-op-dropdown-container {
  position: relative;
  width: 100%;
}

/* Caixa customizada de escolha de operação com Marquee interno */
.mobile-op-select-box {
  position: relative;
  width: 100%;
  height: 48px;
  background: #24262d;
  border: 1px solid #333640;
  border-radius: 10px;
  padding: 0 40px 0 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.mobile-op-select-box:hover,
.mobile-op-select-box.open {
  border-color: #F15A24;
  box-shadow: 0 0 0 1px rgba(241, 90, 36, 0.4);
}

.mobile-op-select-box.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

/* Faixa de rolagem horizontal interna */
.mobile-op-marquee-track {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Texto estático quando curto */
.mobile-op-text-static {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

/* Texto animado com efeito Marquee contínuo e suave quando longo */
.mobile-op-text-marquee {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  -webkit-animation: mobile-op-marquee-loop 12s linear infinite;
  animation: mobile-op-marquee-loop 12s linear infinite;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.mobile-op-select-box:hover .mobile-op-text-marquee,
.mobile-op-select-box:active .mobile-op-text-marquee {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

@keyframes mobile-op-marquee-loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@-webkit-keyframes mobile-op-marquee-loop {
  0% {
    -webkit-transform: translateX(0%);
  }
  100% {
    -webkit-transform: translateX(-50%);
  }
}

/* Seta discreta alinhada à direita da caixa */
.mobile-op-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

/* Menu Dropdown 100% Dark para escolha de operação com mesma cor do CSS */
.mobile-op-custom-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #1c1e24;
  border: 1px solid #3d414e;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(241, 90, 36, 0.2);
  z-index: 9999;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: -6px;
  box-sizing: border-box;
}

.mobile-op-custom-menu::-webkit-scrollbar {
  width: 6px;
}
.mobile-op-custom-menu::-webkit-scrollbar-track {
  background: #181a20;
  border-radius: 4px;
}
.mobile-op-custom-menu::-webkit-scrollbar-thumb {
  background: #424654;
  border-radius: 4px;
}
.mobile-op-custom-menu::-webkit-scrollbar-thumb:hover {
  background: #F15A24;
}

.mobile-op-menu-list {
  display: flex;
  flex-direction: column;
}

.mobile-op-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #24262d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, border-left 0.15s ease;
  user-select: none;
}

.mobile-op-menu-item:last-child {
  border-bottom: none;
}

.mobile-op-menu-item:hover,
.mobile-op-menu-item:active {
  background: #2f323c;
}

.mobile-op-menu-item.selected {
  background: rgba(241, 90, 36, 0.18);
  border-left: 4px solid #F15A24;
}

/* Faixa de texto dentro de cada item da lista */
.mobile-op-item-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-right: 12px;
}

.mobile-op-item-static {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
}

/* Marquee contínuo em cada item longo da lista */
.mobile-op-item-marquee {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  -webkit-animation: mobile-op-marquee-loop 12s linear infinite;
  animation: mobile-op-marquee-loop 12s linear infinite;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.mobile-op-menu-item:hover .mobile-op-item-marquee,
.mobile-op-menu-item:active .mobile-op-item-marquee {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

/* Badge de saldo (peças) alinhado à direita de cada item */
.mobile-op-item-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #ff8a65;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid rgba(255, 138, 101, 0.2);
}

.mobile-op-item-badge.zero {
  color: #8c909e;
  border-color: rgba(140, 144, 158, 0.2);
}

.mobile-op-menu-item.selected .mobile-op-item-badge {
  background: #F15A24;
  color: #ffffff;
  border-color: #F15A24;
}
