
  body {
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
    background: #f4f4f4;
  }
  h1 { text-align: center; margin-bottom: 20px; }
  form {
    background: linear-gradient(180deg, #0e1630, #0b1224);;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  form input, form select, form button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  ul { list-style: none; padding: 0; }
  li {
    background: #0f172a;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  li img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
  }
  li button {
    background: #007BFF;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
  }
  li button:hover { background: #0056b3; }

 :root{
      --bg:#0f172a; --card:#0b1224; --muted:#94a3b8; --text:#e2e8f0;
      --brand:#22c55e; --brand-2:#3b82f6; --warn:#f59e0b; --danger:#ef4444;
      --ok:#10b981; --ring:#22c55e55;
    }
    *{ box-sizing: border-box }
    html,body{ height:100%; margin:0; font-family:'Montserrat', sans-serif; background: var(--bg); color:var(--text); }
    .wrapper{ max-width:1200px; margin:32px auto; padding:0 16px; }

    header{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px }
    .title{ font-weight:800; font-size:clamp(20px,2vw+12px,32px); display:flex; align-items:center; gap:10px }
    .title .badge{ font-size:12px; color:#0b1224; background:linear-gradient(90deg,var(--brand),var(--brand-2)); padding:4px 10px; border-radius:999px; font-weight:700 }

    .tabs{ display:flex; gap:8px; flex-wrap:wrap }
    .tab-btn{ cursor:pointer; border:1px solid #22315b; background:#0a1224; color:var(--text); padding:10px 14px; border-radius:12px; font-weight:700; transition:.2s }
    .tab-btn[aria-selected="true"], .tab-btn:hover{ outline:2px solid var(--ring); background:linear-gradient(180deg,#0e1a35,#0a1224) }

    .grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:16px }
    .card{ grid-column: span 12; background: linear-gradient(180deg,#0e1630,#0b1224); border:1px solid #1f2a4d; border-radius:20px; padding:18px; box-shadow:0 10px 30px rgba(0,0,0,.25) }
    @media(min-width:900px){ .card.half{ grid-column: span 12 } }

    @media(max-width: 1200px) {
  .card.half { grid-column: span 12 !important; } /* tablets */
}

#view-produtos .card {
  margin-bottom: 24px;
}


@media(max-width: 600px) {
  .row { grid-template-columns: 1fr; } /* inputs empilham verticalmente */
  .row .lbl { margin-bottom: 4px; }   /* melhor alinhamento em celular */
}

@media(max-width: 600px) {
  body, .wrapper {
    padding: 12px; /* menos espaço lateral */
  }
}

@media(max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .row .lbl {
    margin-bottom: 4px;
    font-size: 12px;
  }
  .row input, .row textarea, .row select {
    width: 100%;
  }
}


.btn { padding: 12px 16px; font-size: 16px; }


    .card h3{ margin:0 0 12px; font-size:18px; font-weight:800 }
    .muted{ color:var(--muted); font-size:13px }
    .hr{ height:1px; background:linear-gradient(90deg, transparent, #263463, transparent); margin:12px 0 }

    .row{ display:grid; grid-template-columns: 160px 1fr 1fr; gap:10px; align-items:center; margin-bottom:10px }
    .row .lbl{ color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase }
    .row input[type="time"], .row input[type="text"], .row input[type="number"], .row select, .row textarea{
      width:100%; padding:10px 12px; border-radius:12px; border:1px solid #22315b; background:#0a1224; color:var(--text); outline:none; font-weight:600
    }
    @media(max-width: 600px) {
  .row { grid-template-columns: 1fr; }
  .row input, .row textarea, .row select { width: 100%; }
}
    .row textarea{ resize: vertical; min-height:72px }
    .row input:focus, .row select:focus, .row textarea:focus{ box-shadow:0 0 0 4px var(--ring); border-color:#3856a3 }

    .row .inline{ display:flex; gap:10px; align-items:center }
    .chip{ padding:6px 10px; border-radius:999px; font-size:12px; border:1px solid #22315b; background:#0a1224; color:var(--muted); font-weight:700 }

    .btn{ cursor:pointer; border:none; padding:10px 14px; border-radius:14px; font-weight:800; transition:transform .04s ease, opacity .2s }
    .btn:active{ transform: translateY(1px) }
    .btn.save{ background:linear-gradient(90deg,var(--brand),#16a34a); color:#04120a }
    .btn.refresh{ background:linear-gradient(90deg,var(--brand-2),#2563eb); color:#081222 }
    .btn.pause{ background:linear-gradient(90deg,#64748b,#475569); color:#0c111b }
    .btn.danger{ background:linear-gradient(90deg,var(--danger),#dc2626); color:#1b0707 }
    .btn.ghost{ background:#0a1224; border:1px solid #22315b; color:var(--text) }

    .table{ width:100%; border-collapse:separate; border-spacing:0 10px }
    .table th{ text-align:left; font-size:12px; color:var(--muted); font-weight:800; text-transform:uppercase; padding:0 8px }
    .table td{ background: linear-gradient(180deg,#0d1633,#0b1224); border:1px solid #1f2a4d; border-left:none; border-right:none; padding:10px 8px; font-weight:600 }
    .table tr{ border-radius:12px }

    .table-wrapper {
  overflow-x: auto;
}

.table td, .table th { white-space: nowrap; }
@media(max-width: 600px) {
  .table-wrapper {
    overflow-x: auto; /* já existe */
  }
  .table td, .table th {
    white-space: normal; /* permite quebrar linhas */
    font-size: 11px;
    padding: 6px 4px;
  }
}

@media(max-width: 600px) {
  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media(max-width: 600px) {
  #view-produtos .card table {
    max-height: 300px;
  }
}


@media(max-width: 600px) {
  .table { font-size: 12px; }
}

/* Ajuste geral do card em mobile */
@media(max-width: 600px) {
  .card {
    padding: 12px;
    border-radius: 12px;
    grid-column: span 12; /* garante que o card ocupe toda a largura */
  }

  /* Força cada row do horário/formulário a empilhar verticalmente */
  #view-horarios .row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
  }

  #view-horarios .row .lbl {
    margin-bottom: 4px;
    font-size: 13px;
  }

  #view-horarios .row input[type="time"],
  #view-horarios .row input[type="text"],
  #view-horarios .row select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  /* Botões na aba horários */
  #view-horarios .btn {
    flex: 1;
    font-size: 14px;
    padding: 10px;
  }

  #view-horarios > .card > div[style*="display:flex"] {
    flex-direction: column;
    gap: 10px;
  }
}

    .actions{ display:flex; gap:8px; flex-wrap:wrap }

.tipos-legenda {
  background: #0a1224;
  border: 1px solid #22315b;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
}

.tipos-legenda .tipos-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--brand-2);
}

.tipos-legenda ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas */
  gap: 8px; /* espaço entre colunas e linhas */
}

.tipos-legenda ul li {
  padding: 6px 10px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #3aab49;
  font-size: 13px;
  color: #ffffff;
  text-align: center;
}

.tipos-legenda ul li:last-child {
  border-bottom: none;
}

@media(max-width:600px){
  .tipos-legenda ul {
    grid-template-columns: repeat(2, 1fr); /* em mobile, 2 colunas */
    gap: 6px;
  }
  .tipos-legenda ul li {
    font-size: 12px;
    padding: 6px 8px;
  }
}


    .dot{ width:10px; height:10px; border-radius:50%; display:inline-block; margin-right:6px }
    .dot.active{ background: var(--ok) }
    .dot.paused{ background: var(--warn) }

    .kbd{ font-family: ui-monospace, monospace; background:#0a1224; border:1px solid #22315b; padding:1px 6px; border-radius:6px; font-size:12px; color:var(--muted) }

    .hidden{ display:none !important }
    img.prodThumb{ width:40px; height:40px; object-fit:cover; border-radius:6px; margin-right:6px; vertical-align:middle }
  .table tbody tr:hover { background-color: #1a2035; cursor: pointer; }
.btn.save:active { transform: scale(0.98); }
.btn.save:hover { opacity: 0.9; }
.tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 0 0 auto; /* impede que encolha em mobile */
}
@media(max-width: 600px) {
  .card { padding: 12px; border-radius: 12px; }
}
