/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f4f6f9;
}

/* SIDEBAR (NAVY ERP) */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  background: #0b1f3a;
  color: #fff;
  padding: 20px;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.sidebar .nav {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.sidebar .nav:hover {
  background: #1e3a5f;
  color: #fff;
}

.sidebar .nav.active {
  background: #2563eb;
  color: #fff;
}

.logout-btn {
  margin-top: 20px;
  background: #dc2626;
  color: #fff;
  padding: 10px;
  border: none;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
}

/* MAIN */
.content {
  margin-left: 260px;
  padding: 25px;
}

/* VIEWS */
.view {
  margin-top: 20px;
}

.hidden {
  display: none;
}

/* PANELS */
.panel {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}

/* CARDS */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 15px;
}

/* FORM */
.form-group {
  margin-bottom: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

textarea {
  min-height: 80px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* BUTTONS */
.primary-btn {
  background: #2563eb;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.secondary-btn {
  background: #6b7280;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* TABLE */
table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

/* STATUS */
.status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.status.APPROVED {
  background: #d1fae5;
  color: #065f46;
}

.status.PENDING {
  background: #fef3c7;
  color: #92400e;
}

.status.REJECTED {
  background: #fee2e2;
  color: #7f1d1d;
}

/* BALANCE CARDS */
.balance-summary {
  margin-bottom: 15px;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 12px;
}

.mini-card span {
  font-size: 12px;
  color: #6b7280;
}

.mini-card strong {
  font-size: 22px;
  display: block;
}

/* LOGIN */
.login-page {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.login-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  width: 350px;
}

/* LOADER */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  display: none;
}