/* METAL BURGUES - Identidade visual base
   Azul moderno + branco + cinza claro/escuro. Preto só para contraste. */

:root {
  --mb-blue: #0b3d91;
  --mb-blue-dark: #072a66;
  --mb-blue-light: #e8f0fe;
  --mb-gray-50: #f7f8fa;
  --mb-gray-100: #f2f4f7;
  --mb-gray-300: #d1d5db;
  --mb-gray-600: #6b7280;
  --mb-gray-900: #1f2933;
  --mb-danger: #a3242c;
  --mb-success: #146c2e;
  --mb-radius: 12px;
}

body {
  background: var(--mb-gray-100);
  color: var(--mb-gray-900);
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}

.mb-shell {
  display: flex;
  min-height: 100vh;
}

.mb-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #0b1220;
  color: #d5dbe6;
  display: flex;
  flex-direction: column;
}

.mb-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mb-sidebar-brand img { width: 32px; height: 32px; border-radius: 6px; }

.mb-sidebar-nav { padding: 10px 0; flex: 1; overflow-y: auto; }

.mb-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: #c3cadb;
  text-decoration: none;
  cursor: pointer;
}
.mb-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.mb-nav-item.active { background: var(--mb-blue); color: #fff; }
.mb-nav-item.disabled {
  opacity: .45;
  cursor: not-allowed;
  justify-content: space-between;
}
.mb-nav-item.disabled:hover { background: transparent; color: #c3cadb; }
.mb-nav-badge {
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
}

.mb-sidebar-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--mb-gray-900);
}

.mb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mb-content { flex: 1; }

@media (max-width: 900px) {
  .mb-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 1000;
  }
  .mb-sidebar.open { transform: translateX(0); }
  .mb-sidebar-toggle { display: inline-block; }
}

.mb-topbar {
  background: #fff;
  border-bottom: 1px solid var(--mb-gray-300);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb-topbar .user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.mb-topbar .role-badge {
  background: var(--mb-blue-light);
  color: var(--mb-blue);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.mb-topbar a.logout {
  color: var(--mb-danger);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.mb-container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.mb-card {
  background: #fff;
  border-radius: var(--mb-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: 24px;
}

.mb-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--mb-blue) 0%, var(--mb-blue-dark) 100%);
}

.mb-login-card {
  background: #fff;
  border-radius: var(--mb-radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.mb-login-card img.logo {
  width: 88px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
}

.mb-login-card h1 {
  text-align: center;
  font-size: 20px;
  color: var(--mb-blue);
  margin-bottom: 2px;
}

.mb-login-card p.subtitle {
  text-align: center;
  color: var(--mb-gray-600);
  font-size: 13px;
  margin-bottom: 24px;
}

.mb-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.mb-alert.error { background: #fdecec; color: var(--mb-danger); }
.mb-alert.success { background: #e7f6ec; color: var(--mb-success); }

.btn-mb-primary {
  background: var(--mb-blue);
  border-color: var(--mb-blue);
}
.btn-mb-primary:hover {
  background: var(--mb-blue-dark);
  border-color: var(--mb-blue-dark);
}

table.mb-table th {
  background: var(--mb-blue);
  color: #fff;
  font-size: 13px;
}
table.mb-table td, table.mb-table th {
  vertical-align: middle;
}

.badge-role-admin { background: var(--mb-blue); }
.badge-role-gerente { background: #3455a4; }
.badge-role-caixa { background: var(--mb-gray-600); }
