html, body {
      overflow-x: hidden !important;
      max-width: 100vw !important;
    }
    @media print {
      body * { visibility: hidden; }
      #print-area, #print-area *, #print-area-bkl-eq, #print-area-bkl-eq * { visibility: visible; }
      #print-area, #print-area-bkl-eq {
        position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 6mm; background: white !important; color: black !important;
      }
      .no-print { display: none !important; }
      .print-avoid-break { break-inside: avoid !important; page-break-inside: avoid !important; }
    }
    .uppercase-input { text-transform: uppercase; }
    input[type="time"], input[type="date"] {
      min-width: 0;
      min-height: 42px;
      box-sizing: border-box;
      font-size: 15px;
      display: block;
      width: 100%;
    }
    input[type="time"]::-webkit-calendar-picker-indicator,
    input[type="date"]::-webkit-calendar-picker-indicator {
      cursor: pointer;
      opacity: 0.9;
      padding: 4px;
      margin: 0;
      min-width: 24px;
      min-height: 24px;
      box-sizing: border-box;
    }
    canvas { touch-action: none; }
    
    /* Feedback visual de campo preenchido */
    .field-filled {
      background-color: #f0fdf4 !important;
      border-color: #34d399 !important;
      color: #065f46 !important;
    }
    .dark .field-filled {
      background-color: #064e3b !important;
      border-color: #059669 !important;
      color: #a7f3d0 !important;
    }

    .sortable-th {
      cursor: pointer;
      user-select: none;
      transition: background-color 0.15s ease;
    }
    .sortable-th:hover {
      background-color: rgba(226, 232, 240, 0.5);
    }
    .dark .sortable-th:hover {
      background-color: rgba(51, 65, 85, 0.6);
    }

    .multi-select-menu {
      max-height: 220px;
      overflow-y: auto;
    }

    .sidebar-transition {
      transition: width 0.25s ease, padding 0.25s ease, transform 0.3s ease;
    }
    /* Padrão de Toque Industrial: 44x44px mínimo */
    .touch-target {
      min-height: 44px;
      min-width: 44px;
    }
    .pcm-drawer-open {
      transform: translateX(0) !important;
    }
    .has-tooltip:hover .tooltip-bubble {
      visibility: visible;
      opacity: 1;
    }
    .tooltip-bubble {
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.2s;
    }
      transition: width 0.25s ease, padding 0.25s ease;
    }
      /* Otimizações Mobile / Tablet Touch Ergonomics */
    @supports (-webkit-touch-callout: none) {
      input, select, textarea {
        font-size: 16px !important; /* Previne zoom indesejado no iOS Safari */
      }
    }
    
    .touch-target {
      min-height: 44px;
      min-width: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Scroll suave com inércia em tablets e celulares */
    .smooth-scroll {
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    /* Ocultar barra de rolagem estética preservando funcionalidade */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    /* ========================================================
       OTIMIZAÇÕES RESPONSIVAS MOBILE & TABLET (PWA v3.0)
       ======================================================== */
    @media (max-width: 768px) {
      /* Previne que modais e diálogos ultrapassem as bordas físicas da tela */
      .modal-card-mobile {
        max-width: 95vw !important;
        padding: 1rem !important;
      }

      /* Padronização de botões de rodapé no mobile */
      .wizard-nav-btn {
        min-height: 44px !important;
        font-size: 0.875rem !important;
      }

      /* Elimina sombras pesadas e bordas redundantes em telas compactas */
      .mobile-flat-section {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
      }
    }
