/* CSS simples e leve, sem frameworks pesados - roda bem em PCs antigos */
* { box-sizing: border-box; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  margin: 0;
  background: #f2f2f2;
  color: #222;
}
a { color: #1a5fb4; }

.topbar {
  background: #1a3d6d;
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.topbar .marca { font-weight: bold; font-size: 16px; }
.topbar nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 14px;
  font-size: 13px;
}
.topbar nav a:hover { text-decoration: underline; }
.topbar .usuario-info { font-size: 12px; opacity: 0.9; }
.topbar form { display: inline; }
.topbar button.link {
  background: none; border: none; color: #fff; cursor: pointer;
  text-decoration: underline; font-size: 12px; padding: 0;
}

.container {
  max-width: 960px;
  margin: 16px auto;
  background: #fff;
  padding: 16px 20px;
  border: 1px solid #ccc;
}

h1 { font-size: 20px; margin-top: 0; }
h2 { font-size: 16px; }

table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th, td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; font-size: 13px; }
th { background: #eaeaea; }

.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-weight: bold; margin-bottom: 3px; font-size: 13px; }
input[type=text], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 6px; border: 1px solid #999; font-size: 14px;
}
.form-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-row { margin-bottom: 0; flex: 1; min-width: 120px; }

button, .btn {
  background: #1a5fb4; color: #fff; border: none; padding: 8px 14px;
  cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: #164a8f; }
.btn-secundario { background: #777; }
.btn-perigo { background: #b71c1c; }
.btn-sucesso { background: #2e7d32; }

.erro { background: #fdecea; border: 1px solid #b71c1c; color: #b71c1c; padding: 8px; margin-bottom: 10px; }
.aviso { background: #fff8e1; border: 1px solid #f9a825; padding: 8px; margin-bottom: 10px; }

.login-box { max-width: 340px; margin: 60px auto; }

.tag { display: inline-block; padding: 2px 6px; font-size: 11px; border-radius: 3px; }
.tag-aberto { background: #fff3cd; color: #7a5c00; }
.tag-fechado { background: #d4edda; color: #155724; }
.tag-bloqueado { background: #f8d7da; color: #721c24; font-weight: bold; }

.total-linha { text-align: right; font-size: 16px; font-weight: bold; margin-top: 8px; }

.estoque-baixo { color: #b71c1c; font-weight: bold; }
textarea { width: 100%; padding: 6px; border: 1px solid #999; font-size: 14px; font-family: inherit; }
