/* style.css – Layout Delphi-FMX com Responsividade para Celulares */

/* ===== Estilos Gerais – Desktop (padrão) ===== */
body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background-color: #e6e6e6;
}

.top-panel {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.main-container {
    display: flex;
    height: calc(100vh - 42px); /* Compensa altura do top-panel */
}

.sidebar {
    width: 180px;
    background-color: #f0f0f0;
    border-right: 1px solid #a0a0a0;
    padding-top: 20px;
    box-sizing: border-box;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #000;
    display: block;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 4px;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #d0d0d0;
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #ffffff;
    overflow-y: auto;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: #004080;
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
}

form input[type="text"],
form input[type="number"],
form select {
    padding: 6px;
    margin-top: 5px;
    width: 200px;
    max-width: 100%;
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

form button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

form button:hover {
    background-color: #003060;
}

/* Search bar */
.search-barcode {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-barcode h3 {
    margin-top: 0;
    color: #004080;
    font-size: 18px;
}

.barcode-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.barcode-input-group input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    font-size: 14px;
}

.barcode-input-group .btn-search {
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}

.barcode-input-group .btn-search:hover {
    background-color: #003060;
}

.barcode-input-group .btn-camera {
    font-size: 18px;
    background-color: #fff;
    border: 1px solid #004080;
    color: #004080;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.barcode-input-group .btn-camera:hover {
    background-color: #e6e6e6;
}

/* Detalhes do produto encontrado */
.product-detail {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #004080;
    background-color: #f0f8ff;
    border-radius: 4px;
}

.product-detail h4 {
    margin: 0 0 10px 0;
    color: #004080;
    font-size: 16px;
}

.product-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-detail ul li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Vídeo de scanner */
video#video {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0.9;
    font-size: 14px;
}

/* ===== Responsividade – Até 768px (Tablet e Celular) ===== */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        height: auto; /* Ajusta a altura para rolar normalmente */
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding-top: 0;
        border-right: none;
        border-bottom: 1px solid #a0a0a0;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 5px 0;
    }

    .sidebar li {
        margin: 5px 0;
    }

    .sidebar a {
        display: inline-block;
        padding: 8px 12px;
        font-size: 14px;
    }

    .content {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }

    table, .list-products table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        padding: 6px;
        font-size: 13px;
    }

    .search-barcode {
        padding: 10px;
        margin-bottom: 15px;
    }

    .search-barcode h3 {
        font-size: 16px;
    }

    .barcode-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .barcode-input-group input[type="text"],
    .barcode-input-group .btn-search,
    .barcode-input-group .btn-camera {
        width: 100%;
    }

    .barcode-input-group .btn-search {
        margin-top: 10px;
        font-size: 14px;
    }

    .barcode-input-group .btn-camera {
        margin-top: 10px;
        font-size: 20px;
    }

    .product-detail {
        font-size: 14px;
        padding: 8px;
    }

    .product-detail ul li {
        margin-bottom: 3px;
        font-size: 13px;
    }

    /* Vídeo scanner ocupa largura total */
    video#video {
        width: 100%;
        height: auto;
    }
}

/* ===== Responsividade – Até 480px (Smartphones Pequenos) ===== */
@media (max-width: 480px) {
    .top-panel {
        padding: 10px;
        font-size: 18px;
    }

    .sidebar a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .search-barcode h3 {
        font-size: 15px;
    }

    .barcode-input-group input[type="text"] {
        font-size: 13px;
    }

    .barcode-input-group .btn-search {
        font-size: 13px;
        padding: 6px 10px;
    }

    .barcode-input-group .btn-camera {
        font-size: 22px;
    }

    table th,
    table td {
        padding: 5px;
        font-size: 12px;
    }
}

/* ===== Login Page Center & Animated Background ===== */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(-45deg, #004080, #0066cc, #0099ff, #00ccff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
}

/* ===== Dashboard Improvements ===== */
.container {
    padding: 1rem;
}

.box-dashboard {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.columns.is-multiline {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.column.is-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.count {
    font-size: 1.5rem;
    font-weight: bold;
}

.count_top {
    font-size: 1rem;
    color: #777;
}

.count_bottom {
    font-size: 0.875rem;
    color: #555;
}

@media (max-width: 768px) {
    .column.is-3 {
        flex: 1 1 100%;
    }
    .box-dashboard {
        text-align: center;
    }
    #line_chart, #pie_chart, #bar_chart, #hbar_chart {
        height: 200px !important;
    }
}

/* Login Page Styling */
body.login-page {
  background: #1e2a47; /* mantem cor de fundo da página */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #1e2a47;
}

.box-login {
  background: #fafafa;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
  transition: transform 0.2s ease;
}
.box-login:hover {
  transform: translateY(-4px);
}

.logo-container {
  text-align: center;
  margin-bottom: 24px;
}
.logo-container img {
  max-width: 160px;
}

.box-login h1 {
  font-size: 28px;
  color: #0b1c3f;
  text-align: center;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  color: #0b1c3f;
  margin-bottom: 8px;
}

.control select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s;
}
.control input {
  width: 100%;
  padding: 10px 0px;
  font-size: 15px;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s;
}

.control select:focus,
.control input:focus {
  outline: none;
  border-color: #3b7ddd;
  box-shadow: 0 0 0 2px rgba(59, 125, 221, 0.2);
}

.field .control button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #0b1c3f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.field .control button:hover {
  background-color: #1a2d68;
}

.field .control button:active {
  transform: scale(0.98);
}

.has-error {
  color: #e74c3c;
  margin-bottom: 24px;
  text-align: center;
}

@media (max-width: 480px) {
  .box-login {
    padding: 30px 20px;
    max-width: 90%;
  }
  .box-login h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}
body.login-page {
    background: linear-gradient(to right, #1f2c4c, #3e5a98);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.login-container {
    width: 90%;
    max-width: 400px;
    padding: 20px;
}

/* TABELA EM CARDS MOBILE: cada tr é um card vertical */
@media (max-width: 720px) {
  .product-table, .product-table thead, .product-table tbody { display: block; width: 100%; }
  .product-table thead { display: block; }
  .product-table tr.product-card-row {
    display: block;
    background: #f7fbff;
    border-radius: 14px;
    box-shadow: 0 2px 8px #a2b6d825;
    margin-bottom: 13px;
    padding: 9px 14px 11px 14px;
    border: 1px solid #e1e5f3;
  }
  .product-table tr.product-card-row td {
    display: flex;
    align-items: center;
    border: none;
    font-size: 1rem;
    padding: 7px 0;
    min-width: 0;
    width: 100%;
    word-break: break-word;
    background: none;
  }
  .product-table tr[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #1a2b4c;
    flex-shrink: 0;
    font-size: 0.98rem;
    letter-spacing: .01em;
  }
  .product-card-row td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #1a2b4c;
    flex-shrink: 0;
    font-size: 0.98rem;
    letter-spacing: .01em;
  }  
  .product-table tr.product-card-row .td-editar {
    justify-content: flex-end;
    padding-top: 14px;
    padding-bottom: 5px;
  }
}

.dashboard2-main {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 26px 0 6px 0;
}
.dashboard2-title {
  font-size: 1.36rem;
  font-weight: 700;
  color: #112248;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.dashboard2-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 30px;
}
.dashboard2-card {
  flex: 1 1 240px;
  min-width: 190px;
  background: linear-gradient(110deg,#f5f8fd 85%,#e8f3ff 100%);
  border-radius: 19px;
  box-shadow: 0 3px 18px #1741c120;
  padding: 24px 22px 19px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  border: 1px solid #e2e8f7;
}
.dashboard2-card:hover {
  box-shadow: 0 6px 36px #1741c133;
  transform: translateY(-4px) scale(1.025);
}
.dash2-label {
  font-size: 1.09rem;
  color: #1741c1;
  font-weight: 600;
  margin-bottom: 9px;
  letter-spacing: .01em;
}
.dash2-value {
  font-size: 2.62rem;
  color: #222f55;
  font-weight: 900;
  letter-spacing: -0.01em;
}
@media (max-width: 860px) {
  .dashboard2-cards { flex-direction: column; gap: 16px; }
  .dashboard2-card { min-width: 0; width: 100%; }
}

/* HEADER E MENU */
.main-header {
  width: 100%;
  background: #1741c1;
  color: #fff;
  box-shadow: 0 2px 12px #24397c18;
  z-index: 100;
  height: 58px; /* Exemplo, ajuste para o valor do seu cabeçalho real */
  min-height: 58px;
}

.footer {
  height: 58px;   /* Igual ao header */
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
}
.header-brand .empresa-fantasia {
  font-size: 1.19rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  margin-right: 22px;
}
.main-nav.desktop-menu {
  display: flex;
  gap: 17px;
}
.main-nav.desktop-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .12s;
}
.main-nav.desktop-menu a:hover {
  background: #24397c28;
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  z-index: 102;
}
.hamburger span {
  height: 4px;
  width: 25px;
  background: #fff;
  border-radius: 5px;
  display: block;
}
/* Menu mobile retrátil */
.mobile-slide-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 220px;
  background: #fff;
  box-shadow: -2px 0 19px #0002;
  z-index: 2000;
  padding: 19px 12px 6px 22px;
  transition: right .22s;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.mobile-slide-menu.open {
  display: flex;
  animation: slideInMenu .2s;
}
@keyframes slideInMenu {
  from { right: -220px; opacity: 0.4;}
  to { right: 0; opacity: 1; }
}
.mobile-slide-menu a {
  color: #1741c1;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.09rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 4px 10px 2px;
  border-radius: 6px;
  transition: background .14s;
}
.mobile-slide-menu a:hover {
  background: #e9edfb;
}
.close-mobile {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #1741c1;
  position: absolute;
  top: 9px; right: 17px;
  cursor: pointer;
  line-height: 0.9;
  z-index: 201;
}
/* Responsividade */
@media (max-width: 780px) {
  .main-nav.desktop-menu { display: none !important; }
  .hamburger { display: flex; }
}
@media (min-width: 781px) {
  .mobile-slide-menu, .hamburger { display: none !important; }
}

/* MENU HAMBURGER E RESPONSIVIDADE */
@media (max-width: 780px) {
  .main-nav.desktop-menu { display: none !important; }
  .hamburger { display: flex !important; }
  .mobile-slide-menu { display: none; }
}
@media (min-width: 781px) {
  .main-nav.desktop-menu { display: flex !important; }
  .hamburger, .mobile-slide-menu { display: none !important; }
}
.dashboard-min-card { min-width: 0 !important; width: 100% !important; font-size: 0.93rem; height: 140px; padding: 6px 3px 6px 3px;}
/* DASHBOARD MINIMAL - CARDS MAIS COMPACTOS E EMPILHADOS */
@media (max-width: 700px) {
  .dashboard-min-cards { flex-direction: column; gap: 10px !important; align-items: stretch; }
  .dashboard-min-card { min-width: 0 !important; width: 100% !important; font-size: 0.93rem; min-height: 38px; height: 52px; padding: 6px 3px 6px 3px;}
  .dashboard-min-card .min-title { font-size: 0.82rem; }
  .dashboard-min-card .min-value { font-size: 1.49rem; }
  .dashboard-min-card .min-ico { width: 22px; height: 22px; margin-bottom: 1px; }
}

/* TABLE RESPONSIVA */
@media (max-width: 720px) {
  .table-responsive {
    width: 100%;
    overflow-x: auto;
  }
  .product-table      { min-width: 420px; width: 100%; }
  .product-table th, .product-table td {
    font-size: 0.98rem;
    padding: 9px 5px;
    vertical-align: middle;
  }
}

.main-header{
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;	
}
.footer {
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #f7f7fb;
}
.has-background-white-ter { background: #f7f7fb !important; }
.content.has-text-centered p { margin: 0; }

.mobile-slide-menu.open { display: flex; }

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 17px 4px 17px;
  position: relative;
}
.header-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}
.empresa-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.13;
}

.empresa-fantasia {
  font-size: 1.19rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.empresa-cnpj {
  font-size: 0.93rem;
  color: #e5e9f5;
  margin-top: 1px;
  letter-spacing: 0.03em;
}
.hamburger {
  margin-left: auto;
  display: none;
}
@media (max-width: 780px) {
  .hamburger { display: flex !important; }
  .header-container {
    padding: 9px 6px 4px 6px;
  }
  .empresa-fantasia {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 780px) {
  .main-header, .header-container {
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 8px 8px 3px 8px !important;
  }
  .header-container {
    justify-content: space-between !important;
    width: 100vw !important;
  }
  .header-brand {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .empresa-fantasia {
    margin-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    font-size: 1.19rem !important;
  }
  .hamburger {
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: flex !important;
  }
}

/* Tabela responsiva SEM rolagem lateral e SEM virar card */
.product-table, .product-table thead, .product-table tbody {
  width: 100%;
}
.product-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: auto;
}
.product-table th, .product-table td {
  padding: 8px 7px;
  font-size: 1rem;
  word-break: break-word;
  vertical-align: middle;
}
.product-table thead th {
  background: #1741c1;
  color: #fff;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #e5e9f6;
}
/* No mobile: coluna quebra texto, cabeçalho sempre visível, sem rolagem lateral */
@media (max-width: 700px) {
  .product-table th, .product-table td {
    font-size: 0.91rem;
    padding: 7px 5px;
    white-space: normal;
  }
  .product-table th, .product-table td {
    min-width: 0;
    max-width: 99vw;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .product-table tr {
    display: table-row;
  }
}
.container-modern {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}
.search-section {
  margin-bottom: 20px;
}
.search-wrapper {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: auto;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  color: #333;
}
.search-input::placeholder {
  color: #999;
}
.search-input:focus {
  outline: none;
}
.search-btn, .camera-btn {
  width: 48px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.search-btn:hover, .camera-btn:hover {
  background: #e0e0e0;
}
.page-title {
  text-align: center;
  font-size: 1.8rem;
  color: #1a237e;
  margin-bottom: 16px;
}
.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.product-table {
  width: 100%;
  border-collapse: collapse;
}
.product-table thead {
  background: #3f51b5;
  color: #fff;
}
.product-table th, .product-table td {
  padding: 12px 16px;
  text-align: left;
}
.product-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}
.product-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}
.product-table tbody tr:hover {
  background: #eef3fc;
}
.no-data {
  text-align: center;
  padding: 20px 0;
  color: #666;
}
.edit-btn {
  text-decoration: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.edit-btn:hover {
  color: #000;
}

/* Modal de câmera (igual ao que você já tinha) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}

.modal-overlay-edit {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none; /* escondido por padrão */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content-edit {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close-edit {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}
.inline-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.inline-group .field {
  flex: 1;
  min-width: 45%;
}
.field {
  margin-bottom: 0.5rem;
}
.input {
  width: 100%;
}
.update-btn {
  width: 100%;
}
@media (max-width: 800px) {
  table.responsiva {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  table.responsiva th, table.responsiva td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 7px 4px;
    height: 46px;
    border-bottom: 1px solid #eee;
  }
  table.responsiva th:nth-child(1), table.responsiva td:nth-child(1) { /* Descrição */
    width: 40%;
    max-width: 55vw;
    min-width: 70px;
    text-align: left;
  }
  table.responsiva th:nth-child(2), table.responsiva td:nth-child(2) { /* Estoque */
    width: 40%;
    max-width: 25vw;
    min-width: 50px;
    text-align: right;
    font-weight: bold;
  }
  table.responsiva th:nth-child(3), table.responsiva td:nth-child(3) { /* Ações */
    width: 20%;
    max-width: 20vw;
    min-width: 40px;
    text-align: center;
  }
}
/* Desktop: garante layout bonito */
table.responsiva th, table.responsiva td {
    padding: 8px 6px;
    font-size: 15px;
}
table.responsiva th {
    background: #284b9c;
    color: #fff;
    text-align: center;
    font-weight: bold;
}
table.responsiva tr:nth-child(even) td {
    background: #284b9c;
}
table.responsiva td {
    background: #fff;
}


/* ========== CORREÇÃO CIRÚRGICA HEADER E DASHBOARD MOBILE ========== */
@media (max-width: 780px) {
  .header-container {
    padding-left: 17px !important;
    padding-right: 8px !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .hamburger {
    margin-right: 0 !important;
    margin-left: auto !important;
    display: flex !important;
  }
}
@media (max-width: 860px) {
  .dashboard2-cards {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .dashboard2-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 700px) {
  .dashboard2-main {
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin: 0 auto !important;
  }
}


@media (max-width: 800px) {
  table.responsiva {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  table.responsiva th, table.responsiva td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 7px 4px;
    height: 46px;
    border-bottom: 1px solid #eee;
  }
  table.responsiva th:nth-child(1), table.responsiva td:nth-child(1) { /* Descrição */
    width: 50%;
    max-width: 60vw;
    min-width: 50px;
    text-align: left;
  }
  table.responsiva th:nth-child(2), table.responsiva td:nth-child(2) { /* Estoque */
    width: 30%;
    max-width: 25vw;
    min-width: 40px;
    text-align: right;
    font-weight: bold;
  }
  table.responsiva th:nth-child(3), table.responsiva td:nth-child(3) { /* Ações */
    width: 20%;
    max-width: 20vw;
    min-width: 30px;
    text-align: center;
  }
}
/* === ESTOQUE RESPONSIVO, MODERNO, PADRÃO ERP PHP === */
.table-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px #dee4fa33;
    overflow: hidden;
    width: 100%;
    margin: 0 auto 24px auto;
    padding: 0;
    max-width: 670px;
}

.estoque-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.estoque-table th, .estoque-table td {
    padding: 12px 12px;
    text-align: left;
    font-size: 1rem;
    background: #fff;
    border-bottom: 1px solid #eaeef6;
    word-break: break-word;
}

.estoque-table th {
    background: #1741c1;
    color: #fff;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #e0e4f7;
}

.estoque-table tbody tr:hover {
    background: #f0f7ff;
}

.estoque-table td:last-child,
.estoque-table th:last-child {
    text-align: center;
    width: 98px;
}

@media (max-width: 700px) {
    .table-container {
        max-width: 99vw;
        border-radius: 7px;
        box-shadow: 0 1px 5px #d7ddf455;
        padding: 10px;
    }
    .estoque-table th, .estoque-table td {
        font-size: 0.97rem;
        padding: 10px 15px;
    }
    .estoque-table th, .estoque-table td {
        min-width: 0;
        max-width: 99vw;
        word-break: break-word;
    }
	.search-section {
	  margin-bottom: 20px;
	}
	.search-wrapper {
	  display: flex;
	  max-width: 99vw;
	  background: #f5f5f5;
	  border-radius: 8px;
	  overflow: hidden;
	  padding: 10px 10px;
	  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.modal.show { display: flex; }
.modal-dialog {
  background: #fff;
  max-width: 500px;
  width: 90%;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  text-align: left;
}

.modal-dialog h5 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #1741c1;
}

#listaSolicitacoes li {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  background: #f9f9f9;
  padding: 0.5rem;
  border-radius: 4px;
}

#listaSolicitacoes button {
  margin-left: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: none;
  background: #1741c1;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#listaSolicitacoes button:nth-child(3) {
  background: #e74c3c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}