@charset "UTF-8";
/* ============================================================
   1. VARIÁVEIS, TEMA E CORES
   ============================================================ */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #0084ff;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --light: #ecf0f1;
  --dark: #1a1a1a;
  --bg-gradient: linear-gradient(135deg, #aee0e3 0%, #8bd8dd 100%);
  --bg-configs: #0f172a;
  --card-dark: #1e293b;
  --border-radius: 12px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   2. RESET E CONFIGURAÇÕES GERAIS
   ============================================================ */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  outline: none;
}
*::-webkit-scrollbar {
  display: none;
}
* {
  /* Scroll invisível global */
}

html,
body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #aee0e3;
}

/* Classes de Estado Sincronizadas com JavaScript */
.hide {
  display: none !important;
}

.show {
  display: flex !important;
}

/* ============================================================
   3. SISTEMA DE ANIMAÇÕES
   ============================================================ */
@keyframes crescer {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes diminuir {
  from {
    height: auto;
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(0.97);
    filter: brightness(0.8);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
@keyframes push {
  0% {
    top: -100%;
  }
  10%, 90% {
    top: 0;
  }
  100% {
    top: -100%;
  }
}
.crescer {
  animation: crescer 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: flex !important;
}

.diminuir {
  display: none !important;
}

.pulsar {
  animation: pulse 1.5s infinite;
}

/* ============================================================
   4. ESTRUTURA DO TOPO (LOGO E HEADER)
   ============================================================ */
#logo {
  background: #96eef2;
  width: 100%;
  height: 10vh;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
#logo #ikeda_nome {
  font-weight: 900;
  font-size: 24px;
  color: var(--primary);
  letter-spacing: 1px;
}
#logo #imagem_logo img {
  height: 45px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}
#logo .btn_header {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 10px;
  padding: 10px;
}
#logo .btn_header .tresp {
  background: white;
  height: 3px;
  width: 100%;
  border-radius: 10px;
}
#logo .btn_header.coloron {
  background: var(--accent);
}

/* ============================================================
   5. MENU DE NAVEGAÇÃO PRINCIPAL
   ============================================================ */
#menu {
  background: #aee0e3;
  width: 100%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow-y: scroll;
}
#menu .btn_menu {
  background: #5da1e1;
  color: white;
  border: none;
  width: 88%;
  min-height: 75px;
  font-size: 26px;
  font-weight: 900;
  border-radius: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  flex-shrink: 0;
  margin: 10px 0;
}
#menu .btn_menu:active {
  transform: scale(0.96);
  background: var(--secondary);
}

/* ============================================================
   6. CONTAINER PRINCIPAL E TELAS DE DADOS
   ============================================================ */
#app {
  width: 100vw;
  height: 90vh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
}

.pagetabela {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Estilo para Abastecimento, Validades e Giro */
}
.pagetabela .input_adicionar {
  width: 95%;
  background: rgba(255, 255, 255, 0.4);
  padding: 18px;
  border-radius: 15px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--box-shadow);
}
.pagetabela .input_adicionar .inpute {
  height: 50px;
  border-radius: 10px;
  border: 1px solid #999;
  text-align: center;
  font-size: 18px;
  background: white;
  color: black;
  width: 100%;
}
.pagetabela .input_adicionar button {
  height: 50px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  width: 100%;
}
.pagetabela {
  /* Estilo de Tabelas Original Restaurado */
}
.pagetabela .tabelas {
  width: 100%;
  text-align: center;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.pagetabela .tabelas th,
.pagetabela .tabelas td {
  padding: 14px 5px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0px 10px 0px 10px;
}
.pagetabela .tabelas th {
  background: var(--primary);
  color: white;
  font-weight: 800;
}
.pagetabela .tabelas td {
  background: white;
  color: black;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}
.pagetabela .tabelas .resultado {
  background: var(--success);
  color: white;
  font-weight: bold;
}
.pagetabela .tabelas .pedido {
  background: var(--primary);
  color: white;
}

/* ============================================================
   7. ESTOQUE (GRADE DE 2 COLUNAS)
   ============================================================ */
#itens {
  background: var(--secondary);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 15px 0;
}
#itens .class_categoria {
  font-size: 28px;
  font-weight: 900;
  width: 92%;
  color: var(--primary);
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  border-radius: 15px;
  margin: 0 auto 12px;
  border: 2px solid var(--primary);
  box-shadow: var(--box-shadow);
}
#itens .class_produto {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-evenly;
}
#itens .class_produto .produto {
  width: 46%;
  background: var(--primary);
  color: white;
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
#itens .class_produto .produto .texto_descritivo {
  font-size: 13px;
  text-align: center;
  font-weight: 600;
  height: 55px;
  overflow: hidden;
  margin-bottom: 10px;
}
#itens .class_produto .produto img {
  width: 90%;
  border-radius: 12px;
  background: white;
  padding: 5px;
  margin-bottom: 10px;
  -o-object-fit: contain;
     object-fit: contain;
}
#itens .class_produto .produto p {
  font-weight: 900;
  font-size: 16px;
  color: var(--success);
}

/* ============================================================
   8. DASHBOARD (PROGRESS BARS E MÉTRICAS)
   ============================================================ */
#dashboard .card-full,
#dashboard .dash-grid-4,
#dashboard .filter-bar {
  width: 95vw;
}

/* ============================================================
   9. CONFIGURAÇÕES (PROFISSIONAL DARK)
   ============================================================ */
#configs {
  background: var(--bg-dark) !important;
  color: white;
  padding: 25px 15px;
  overflow-y: auto;
  width: 100%;
}
#configs .bloco {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
#configs .bloco .p {
  width: 60%;
  font-size: 18px;
  color: #94a3b8;
  text-align: center;
}
#configs .config_container {
  width: 100%;
}
#configs .config_card {
  background: var(--card-dark);
  padding: 22px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  width: 100%;
}
#configs .config_card h3 {
  color: #38bdf8;
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
}
#configs .config_card .inpute {
  height: 50px;
  border-radius: 10px;
  border: 1px solid #999;
  text-align: center;
  font-size: 18px;
  background: white;
  color: black;
  width: 40%;
}
#configs .config_card .legenda_config {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 18px;
}
#configs .config_card .input_group {
  margin-bottom: 15px;
}
#configs .config_card .input_group label {
  font-size: 13px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 6px;
}
#configs .config_card .input_group input {
  background: #0f172a;
  border: 1px solid #334155;
  color: white;
  padding: 14px;
  border-radius: 12px;
  width: 100%;
  font-size: 16px;
}
#configs {
  /* Lista Arrastável (Drag and Drop) */
}
#configs #lista_marcas_sortable {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#configs #lista_marcas_sortable .marca_item {
  display: flex;
  align-items: center;
  background: #334155;
  padding: 16px;
  border-radius: 15px;
  border-left: 6px solid #38bdf8;
  transition: 0.2s;
  touch-action: none;
}
#configs #lista_marcas_sortable .marca_item.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  background: #1e293b;
  border: 2px dashed #38bdf8;
}
#configs #lista_marcas_sortable .marca_item .handle {
  font-size: 26px;
  color: #64748b;
  margin-right: 18px;
  cursor: grab;
}
#configs #lista_marcas_sortable .marca_item .nome {
  flex-grow: 1;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  color: #f1f5f9;
}
#configs #salvar_configs {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 18px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 900;
  font-size: 18px;
  margin: 25px 0;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Componente Switch Pro */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #475569;
  transition: 0.3s;
  border-radius: 34px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #38bdf8;
}
.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* ============================================================
   10. LAYOUT, LOGIN E PUSH
   ============================================================ */
#layout {
  background: #90dee7;
  overflow-y: auto;
  padding: 15px;
  height: 100%;
  width: 100vw;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
#layout #lista_layout_dinamica {
  width: 100%;
}
#layout .marca_layout {
  width: 100%;
  background: #fff;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
#layout .marca_layout p.titulo_layout {
  background: #2c3e50;
  font-size: 20px;
  padding: 15px;
  text-align: center;
  color: white;
  font-weight: 900;
  margin: 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s;
}
#layout .marca_layout p.titulo_layout:active {
  background: #34495e;
}
#layout .marca_layout .corpo_layout {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#layout .marca_layout .corpo_layout.fechar {
  display: none;
}
#layout .marca_layout .corpo_layout.abrir {
  display: flex;
}
#layout .marca_layout .corpo_layout img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#layout .marca_layout .corpo_layout .btn_mudar_layout {
  width: 100%;
  padding: 12px;
  border: none;
  background: #e67e22;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
}
#layout .marca_layout .corpo_layout .btn_mudar_layout:active {
  background: #d35400;
}
#layout .marca_layout .corpo_layout .placeholder_upload {
  width: 100%;
  min-height: 250px;
  aspect-ratio: 1/1;
  border: 3px dashed #bdc3c7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.2s;
}
#layout .marca_layout .corpo_layout .placeholder_upload:hover {
  background: #ecf0f1;
  border-color: #95a5a6;
}
#layout .marca_layout .corpo_layout .placeholder_upload span {
  font-weight: bold;
  font-size: 14px;
  margin-top: 15px;
  text-align: center;
  padding: 0 10px;
}

#login {
  width: 95vw;
}

#alertas-validade {
  background: rgba(0, 0, 0, 0.92);
  position: absolute;
  width: 100%;
  z-index: 10000;
  padding: 25px;
  border-bottom: 6px solid black;
  top: -100%;
}
#alertas-validade.push {
  animation: push 8s ease-in-out forwards;
}
#alertas-validade .alerta-validade {
  background: var(--warning);
  color: white;
  padding: 15px;
  border-radius: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-align: center;
}
#alertas-validade .alerta-validade-venceu {
  background: var(--danger);
  color: white;
  padding: 15px;
  border-radius: 12px;
  font-weight: 900;
  text-align: center;
}

#giro_vendas {
  width: 100%;
}
#giro_vendas #lista_giros {
  width: 100%;
}
#giro_vendas {
  align-items: center;
}
#giro_vendas .giro_aba_header {
  background: #34495e;
  color: white;
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}
#giro_vendas .giro_aba_header.ativo {
  background: #e67e22;
  /* Laranja quando aberto */
  border-radius: 8px 8px 0 0;
  width: 100%;
}
#giro_vendas .giro_aba_corpo {
  width: 100%;
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 5px;
}
#giro_vendas {
  /* Classes de Estado */
}
#giro_vendas .fechar_giro {
  display: none !important;
}
#giro_vendas .abrir_giro {
  display: block !important;
}
#giro_vendas .giro_item_foto {
  margin-bottom: 20px;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
#giro_vendas .giro_btn_excluir {
  background: #c0392b;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
}

#validades {
  width: 100%;
}
#validades #imprimir_pdf {
  width: 100%;
  font-size: 18px;
}

#chat {
  background: #ffffff;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}
#chat .chat_view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
}
#chat .chat_header_top {
  background: #2c3e50;
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
#chat .chat_header_top h2 {
  font-size: 20px;
  flex: 1;
}
#chat .chat_header_top .btn_voltar_chat {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
#chat {
  /* Estilo da Lista de Conversas */
}
#chat .chat_item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
#chat .chat_item:active {
  background: #f5f5f5;
}
#chat .chat_item .chat_info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#chat .chat_item .chat_info strong {
  font-size: 16px;
  color: #333;
}
#chat .chat_item .chat_info span {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
#chat {
  /* FAB Button (Botão + flutuante) */
}
#chat .fab_button {
  position: absolute;
  bottom: 30px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2ecc71;
  color: white;
  border: none;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#chat {
  /* Tela da Conversa (Room) */
}
#chat #chat_view_room {
  background: #e5ddd5;
}
#chat #chat_view_room .chat_header_room {
  background: #2c3e50;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
#chat #chat_view_room .chat_header_room .chat_room_info {
  display: flex;
  flex-direction: column;
}
#chat #chat_view_room .chat_header_room .chat_room_info #chat_room_nome {
  font-weight: bold;
  font-size: 16px;
}
#chat #chat_view_room .chat_header_room .chat_room_info #chat_room_status {
  font-size: 11px;
  color: #2ecc71;
}
#chat #chat_view_room #chat_mensagens {
  flex: 1;
  overflow-y: auto;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#chat #chat_view_room #chat_mensagens::-webkit-scrollbar {
  display: none;
}
#chat {
  /* Bolhas de Mensagem */
}
#chat .msg_row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
#chat .msg_row.minha {
  flex-direction: row-reverse;
}
#chat .msg_row.minha .msg_corpo {
  background: #dcf8c6;
  border-radius: 15px 15px 0 15px;
}
#chat .msg_row.outra {
  flex-direction: row;
}
#chat .msg_row.outra .msg_corpo {
  background: #fff;
  border-radius: 15px 15px 15px 0;
}
#chat .chat_avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  background: #eee;
}
#chat .msg_corpo {
  max-width: 75%;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
#chat .msg_corpo .msg_user {
  font-size: 11px;
  font-weight: bold;
  color: #27ae60;
  display: block;
  margin-bottom: 3px;
}
#chat .msg_corpo .msg_texto {
  font-size: 15px;
  line-height: 1.3;
}
#chat .msg_corpo .msg_hora {
  font-size: 9px;
  color: #888;
  text-align: right;
  margin-top: 4px;
  display: block;
}
#chat .msg_corpo img.chat_img_msg {
  width: 100%;
  border-radius: 8px;
  margin: 5px 0;
}
#chat .msg_corpo .card_validade_chat {
  background: #fff3cd;
  border-left: 4px solid #f39c12;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#chat .msg_corpo .card_validade_chat .img_vld_mini {
  width: 45px;
  height: 45px;
  -o-object-fit: contain;
     object-fit: contain;
  background: white;
  border-radius: 4px;
}
#chat .msg_corpo .card_validade_chat .info_vld {
  font-size: 12px;
}
#chat .msg_corpo .card_validade_chat .info_vld strong {
  display: block;
  font-size: 13px;
}
#chat {
  /* Rodapé e Menus */
}
#chat #chat_input_area {
  padding: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}
#chat #chat_input_area #chat_input_texto {
  flex: 1;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
}
#chat #chat_input_area #btn_chat_menu, #chat #chat_input_area #btn_enviar_chat {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #3498db;
  color: white;
}
#chat #chat_input_area #btn_enviar_chat {
  background: #2ecc71;
}
#chat #chat_menu_opcoes {
  position: absolute;
  bottom: 70px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#chat #chat_menu_opcoes button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#chat #chat_menu_opcoes #opt_foto {
  background: #e67e22;
}
#chat #chat_menu_opcoes #opt_validade {
  background: #9b59b6;
}
#chat #modal_escolher_validade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}
#chat #modal_escolher_validade .modal_conteudo {
  background: white;
  width: 90%;
  max-height: 80%;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
#chat #modal_escolher_validade .modal_conteudo h3 {
  text-align: center;
  margin-bottom: 15px;
}
#chat #modal_escolher_validade .modal_conteudo #lista_validades_chat {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#chat #modal_escolher_validade .modal_conteudo .btn_fechar_modal {
  margin-top: 15px;
  padding: 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 10px;
}
#chat #modal_escolher_validade .modal_conteudo .item_vld_chat {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}/*# sourceMappingURL=style.css.map */