/* Pallet que volta no caminhão (07/11/2026) + Gás Empilhadeira P20 da Alaska (18/11/2026). */
body.pallet-mode #video, body.pallet-mode #frame, body.pallet-mode #app > .hint,
body.pallet-mode #app > .controls, body.pallet-mode #err, body.pallet-mode #insp_acesso,
body.pallet-mode #btn_flash, body.pallet-mode #btn_painel,
body.gas-mode #video, body.gas-mode #frame, body.gas-mode #app > .hint,
body.gas-mode #app > .controls, body.gas-mode #err, body.gas-mode #insp_acesso,
body.gas-mode #btn_flash, body.gas-mode #btn_painel { display: none !important; }
body.pallet-mode .modes, body.gas-mode .modes { flex-wrap: wrap; gap: 8px 18px; padding-bottom: 10px; }
#pallet_wms[hidden], #gas_wms[hidden] { display: none; }
#pallet_wms, #gas_wms { grid-row: 3 / 5; grid-column: 1; min-height: 0; overflow: auto; padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); color: #142033; background: #fff; font-size: 16px; line-height: 1.5; }
#pallet_wms h2, #gas_wms h2 { font-size: 25px; margin: 0 0 4px; }
#pallet_wms h3, #gas_wms h3 { font-size: 18px; margin: 18px 0 6px; overflow-wrap: anywhere; }
#pallet_wms p, #gas_wms p { margin: 8px 0; overflow-wrap: anywhere; }
#pallet_wms fieldset, #gas_wms fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#pallet_wms .dv-actions, #gas_wms .dv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
#pallet_wms button, #pallet_wms .dv-foto, #gas_wms button, #gas_wms .dv-foto { min-height: 46px; border: 0; border-radius: 10px; padding: 11px 14px; font: inherit; font-weight: 600; background: #245fe5; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#pallet_wms button.dv-sec, #gas_wms button.dv-sec { background: #edf3ff; color: #1d438e; }
#pallet_wms button.dv-perigo, #gas_wms button.dv-perigo { background: #fde8e8; color: #9b1c1c; min-height: 38px; padding: 6px 10px; }
#pallet_wms button.dv-grande, #gas_wms button.dv-grande { width: 100%; background: #b45309; font-size: 17px; }
#pallet_wms button:disabled, #gas_wms button:disabled { opacity: .5; cursor: default; }
#pallet_wms label, #gas_wms label { display: block; margin: 12px 0; font-weight: 600; }
#pallet_wms input:not([type=file]):not([type=checkbox]), #pallet_wms textarea, #pallet_wms select,
#gas_wms input:not([type=file]):not([type=checkbox]), #gas_wms textarea, #gas_wms select { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 5px; padding: 12px; border: 1px solid #bdc9da; border-radius: 9px; background: #fff; color: #142033; font: inherit; font-weight: 400; }
#gas_wms label.dv-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dee3eb; border-radius: 10px; background: #f8fafc; cursor: pointer; }
#gas_wms label.dv-check input[type=checkbox] { width: 20px; height: 20px; margin: 0; }
#pallet_wms .dv-dupla, #gas_wms .dv-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
#pallet_wms [hidden], #gas_wms [hidden] { display: none !important; }
#pallet_wms .dv-passo, #gas_wms .dv-passo { padding: 14px; border: 1px solid #dee3eb; border-radius: 12px; margin: 12px 0; }
#pallet_wms .dv-passo.ok, #gas_wms .dv-passo.ok { border-color: #8bd3a8; }
#pallet_wms .dv-resumo, #gas_wms .dv-resumo { padding: 14px; border-radius: 12px; background: #edf5ff; margin: 12px 0; }
#pallet_wms .dv-resumo strong, #gas_wms .dv-resumo strong { font-size: 18px; }
#pallet_wms .dv-help, #gas_wms .dv-help { font-size: 13px; color: #566579; }
#pallet_wms .dv-message:empty, #gas_wms .dv-message:empty { display: none; }
#pallet_wms .dv-message, #pallet_wms .dv-pending, #gas_wms .dv-message, #gas_wms .dv-pending { padding: 12px; border-radius: 10px; background: #edf3ff; margin: 12px 0; overflow-wrap: anywhere; }
#pallet_wms .dv-message.error, #pallet_wms .dv-pending, #gas_wms .dv-message.error, #gas_wms .dv-pending { background: #fff2d7; color: #714300; }
#pallet_wms .dv-message.success, #gas_wms .dv-message.success { background: #dcf5e7; color: #125032; }
#pallet_wms .dv-fotos, #gas_wms .dv-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#pallet_wms .dv-fotos img, #gas_wms .dv-fotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #dee3eb; }
/* Lista de placas devendo */
#pallet_wms .dv-voltas, #gas_wms .dv-voltas { display: grid; gap: 6px; max-height: 280px; overflow: auto; margin: 6px 0; }
#pallet_wms .dv-voltas button, #gas_wms .dv-voltas button { justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; gap: 0; min-height: 52px; }
#pallet_wms .dv-voltas button .dv-help, #gas_wms .dv-voltas button .dv-help { color: inherit; opacity: .85; }
@media (max-width: 420px) { #pallet_wms, #gas_wms { padding-left: 16px; padding-right: 16px; } }
