body {
  background-color: #f5f7fb;
}

/* Login page */
.login-card {
  margin-top: 100px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.card-header {
  background: #111827;
  color: white;
  font-size: 20px;
  font-weight: 600;
  padding: 15px;
}

.form-control {
  height: 45px;
}

.btn-login {
  height: 45px;
  font-weight: 600;
}
/* Navigation */

.navbar-custom {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 1px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin-left: 10px;
  transition: 0.3s ease;
  border-radius: 8px;
  padding: 8px 14px !important;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  transform: translateY(-1px);
}

.role-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.logout-btn {
  background: #fff;
  color: #dc3545 !important;
  border-radius: 8px;
  font-weight: 600;
}

.logout-btn:hover {
  background: #dc3545;
  color: #fff !important;
}

.dashboard-card {
  transition: all 0.2s ease-in-out;
  border-radius: 14px;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.navbar-custom .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-weight: 600;
}

.navbar-custom .nav-link {
  padding: 8px 14px;
}

/* order */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 12px 0;
  padding: 12px 14px;

  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  gap: 5px;
}

.total {
  margin-left: auto;

  font-size: 16px;
  font-weight: 700;

  color: #198754;

  padding: 4px 10px;

  background: #f1fff5;
  border: 1px solid #cfe9d8;
  border-radius: 6px;
}
/* .total-box {
  background: #eaf7ea;
  border: 1px solid #cfe8cf;
  border-radius: 8px;
  padding: 12px;
  font-size: 28px;
  font-weight: bold;
  color: #198754;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 100%;
} */

@media (max-width: 576px) {
  .top-bar .btn {
    width: 100%;
  }

  .total-box {
    font-size: 24px;
    text-align: center;
  }
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* -----------------------------
     FIXED TABULATOR ROW HEIGHT
  ------------------------------ */

/* FIXED ROW HEIGHT */
.editable-col {
  background: #fff8e1 !important;

  font-weight: 700;

  text-align: center;

  color: #212529;

  transition: all 0.15s ease;
}

/* hover */
.editable-col:hover {
  background: #ffe9a8 !important;

  border-color: #ff9800;

  cursor: text;
}

/* empty qty highlight */
.editable-col:empty::before {
  content: "0";
  color: #999;
}

/* editing mode */
.tabulator-cell.tabulator-editing {
  background: #fff !important;

  border: 2px solid #0d6efd !important;

  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);

  border-radius: 4px;
  padding: 0 !important;
}

/* only AFTER actual change */
.modified-cell {
  background: #e9f9ee !important;
}

.tabulator {
  border-radius: 8px;
}

.tabulator-header {
  background: #f8f9fa;
  font-weight: 700;
}

/* Ensure buttons within cells don't stretch */
.tabulator-row .tabulator-cell button {
  margin-top: auto;
  margin-bottom: auto;
}
.tabulator-cell.tabulator-editing input {
  height: 100% !important;

  width: 100% !important;

  display: flex;
  align-items: center;

  border: none !important;
  outline: none !important;

  background: transparent !important;

  font-size: 14px;
  font-weight: 700;

  text-align: center;

  /* 🔥 KEY FIX: remove baseline shift */
  line-height: normal !important;

  /* 🔥 vertical centering fix */
  padding: 0 !important;
  margin: 0 !important;

  box-sizing: border-box !important;
}

/* qty has value */
.qty-filled {
  background: #d1f7dc !important;

  border: 1px solid #198754 !important;

  color: #0f5132;

  font-weight: 700;
}

/* hover filled */
.qty-filled:hover {
  background: #bdf0cb !important;
}
