        /* ==========================================================================
           TOPBAR MOBILE - PADRÃO WMS (ALINHADO EM LINHA COM FUNDO AZUL CLARO)
           ========================================================================== */
        * {
            font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #f8fafc;
            color: #1e293b;
            padding-bottom: 30px;
        }

        .mobile-only {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 5px;
            background: #fff; 
            border: 1px solid #e5e7eb; 
            padding: 10px 14px;
            margin-bottom: 15px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            width: 100%;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .logo-box {
            width: 30px;
            height: 30px;
            border-radius: 10px;
            background: #e0ebff;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .logo-text h2 {
            display: block;
            font-size: 12px;
            font-weight: bold;
            unicode-bidi: isolate;
        }

        .logo-text span {
            font-size: 8px;
            color: #64748b;
        }

        .top-right {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-left: auto;
        }

        .clock {
            font-weight: bold;
            color: #1e293b;
            background: #e0ebff;
            padding: 6px 12px;
            border-radius: 8px;
            font-variant-numeric: tabular-nums;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
        }

        .topbar-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: bold;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
            cursor: pointer;
            white-space: nowrap;
            border: 1px solid transparent;
        }

        .topbar-btn.btn-exit {
            background: #ffffff;
            color: #ef4444;
            border-color: #fee2e2;
        }

        .topbar-btn.btn-exit:hover {
            background: #fef2f2;
            color: #b91c1c;
            border-color: #ef4444;
        }

        .topbar-btn.btn-voltar {
            background: #ffffff;
            color: #2563eb;
            border-color: #dbeafe;
        }

        .topbar-btn.btn-voltar:hover {
            background: #eff6ff;
            color: #1d4ed8;
            border-color: #2563eb;
        }

        /* ==========================================================================
           MÓDULO DE CONSULTA - BOTÕES DE ALTERNÂNCIA (TABS MOBILE)
           ========================================================================== */
        .modo-consulta-container {
            display: flex;
            gap: 10px;
            padding: 0 15px;
            margin-bottom: 12px;
        }

        .btn-modo {
            flex: 1;
            padding: 12px 14px;
            font-size: 14px;
            font-weight: bold;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #f8fafc;
            color: #475569;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s ease-in-out;
            -webkit-tap-highlight-color: transparent;
        }

        .btn-modo.active {
            background: #e0ebff;
            color: #2563eb;
            border-color: #2563eb;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
        }

        .btn-modo:active {
            transform: scale(0.98);
        }

        /* ==========================================================================
           ESTILOS ESPECÍFICOS DA TELA DE ENTREGA
           ========================================================================== */
        .container-content {
            padding: 0 15px;
        }

        .card-busca {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: 10px;
        }

        .input-group label {
            font-size: 13px;
            font-weight: bold;
            color: #334155;
        }

        .input-group input {
            padding: 10px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
        }

        .input-group input:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
        }

        .btn-primary-wms {
            width: 100%;
            background: #2563eb;
            color: #fff;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-primary-wms:hover {
            background: #1d4ed8;
        }

        /* Estilização da Nota Fiscal */
        .nf-card {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            border-left: 4px solid #2563eb;
        }

        .nf-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 8px;
        }

        .nf-title {
            font-size: 15px;
            font-weight: bold;
            color: #1e293b;
        }

        .status-options {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
        }

        .status-btn {
            flex: 1;
            padding: 8px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            background: #f8fafc;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            text-align: center;
        }

        .status-btn.entregue.active {
            background: #dcfce7;
            color: #16a34a;
            border-color: #16a34a;
        }

        .status-btn.nao-entregue.active {
            background: #fee2e2;
            color: #dc2626;
            border-color: #dc2626;
        }

        /* Área de Fotos */
        .fotos-container {
            margin-top: 10px;
        }

        .fotos-label {
            font-size: 12px;
            font-weight: bold;
            color: #64748b;
            margin-bottom: 6px;
            display: block;
        }

        .fotos-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }

        .foto-slot {
            aspect-ratio: 1;
            border: 2px dashed #cbd5e1;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafc;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .foto-slot img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .foto-slot span {
            font-size: 20px;
            color: #94a3b8;
        }

        .foto-input-file {
            display: none;
        }

        .hidden {
            display: none !important;
        }