.mba-app {
  --bg: #f5f7fb;
  --card: #fff;
  --ink: #162033;
  --muted: #6d7788;
  --line: #e5e9f0;
  --primary: #1f5eff;
  --danger: #c93434;
  --ok: #18794e;
  font-family: Arial, "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding: 24px;
  border-radius: 18px;
  min-height: 70vh;
  box-sizing: border-box;
}
.mba-app * {
  box-sizing: border-box;
}
.mba-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.mba-topbar h1 {
  font-size: 28px;
  margin: 0 0 5px;
}
.mba-topbar p {
  margin: 0;
  color: var(--muted);
}
.mba-user {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.mba-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.mba-kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: right;
  cursor: pointer;
  transition: 0.15s;
}
.mba-kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(22, 32, 51, 0.06);
}
.mba-kpi strong {
  display: block;
  font-size: 26px;
  margin-bottom: 4px;
}
.mba-kpi span {
  color: var(--muted);
}
.mba-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mba-tabs button {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.mba-tabs button.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 0 var(--line);
}
.mba-view {
  display: none;
}
.mba-view.is-active {
  display: block;
}
.mba-toolbar,
.mba-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 14px 14px 0 0;
}
.mba-toolbar input {
  flex: 1;
  min-width: 220px;
}
.mba-toolbar input,
.mba-toolbar select,
.mba-modal input,
.mba-modal select,
.mba-modal textarea {
  border: 1px solid #ccd3df;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.mba-toolbar select {
  max-width: 220px;
}
.mba-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}
.mba-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.mba-table th,
.mba-table td {
  padding: 13px 11px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}
.mba-table th {
  font-size: 12px;
  color: var(--muted);
  background: #fafbfc;
  position: sticky;
  top: 0;
}
.mba-table tr:last-child td {
  border-bottom: 0;
}
.mba-cell-main {
  font-weight: 700;
}
.mba-table small,
.mba-muted,
.mba-help {
  color: var(--muted);
}
.mba-actions {
  white-space: nowrap;
}
.mba-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 5px;
}
.mba-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.mba-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mba-btn-primary {
  background: var(--primary);
  color: #fff;
}
.mba-btn-secondary {
  background: #edf2ff;
  color: #1d4ed8;
}
.mba-btn-small {
  padding: 7px 10px;
  background: #edf2ff;
  color: #1d4ed8;
}
.mba-chip {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef1f5;
  color: #445065;
}
.mba-chip-allowed,
.mba-chip-paid,
.mba-chip-ready,
.mba-chip-remitted,
.mba-chip-completed {
  background: #e8f7ef;
  color: #18794e;
}
.mba-chip-review,
.mba-chip-new,
.mba-chip-awaiting_university,
.mba-chip-awaiting_exam_payment,
.mba-chip-ready_remittance,
.mba-chip-batched,
.mba-chip-draft {
  background: #fff5d9;
  color: #8a5a00;
}
.mba-chip-rejected {
  background: #fdecec;
  color: #b42318;
}
.mba-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.mba-pagination button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}
.mba-panel-head h2 {
  margin: 0 0 5px;
}
.mba-panel-head p {
  margin: 0;
  color: var(--muted);
}
.mba-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 38, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}
.mba-modal.is-open {
  display: flex;
}
.mba-modal-card {
  background: #fff;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.mba-modal-card h2 {
  margin: 0 0 16px;
  padding-left: 30px;
}
.mba-modal-close {
  position: absolute;
  left: 14px;
  top: 12px;
  border: 0;
  background: #f1f3f6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}
.mba-modal label {
  display: block;
  font-weight: 700;
  margin: 12px 0;
}
.mba-modal label input,
.mba-modal label select,
.mba-modal label textarea {
  margin-top: 6px;
  font-weight: 400;
}
.mba-modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
}
.mba-info-box {
  background: #f7f9fc;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  line-height: 1.8;
}
.mba-secret {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 24px;
  letter-spacing: 2px;
  background: #f4f6f9;
  padding: 18px;
  text-align: center;
  border-radius: 12px;
}
.mba-timeline-item {
  border-right: 3px solid #dbe5ff;
  padding: 0 13px 14px;
  margin: 0 0 8px;
}
.mba-timeline-item strong {
  display: block;
}
.mba-timeline-item span {
  font-size: 12px;
  color: var(--muted);
}
.mba-timeline-item p {
  margin: 4px 0 0;
}
.mba-toast {
  position: fixed;
  left: 22px;
  bottom: 22px;
  background: #172033;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s;
  z-index: 100000;
}
.mba-toast.is-visible {
  opacity: 1;
  transform: none;
}
.mba-toast.is-error {
  background: #a72828;
}
.mba-empty {
  text-align: center !important;
  color: var(--muted);
  padding: 30px !important;
}
.mba-login-required {
  direction: rtl;
  padding: 20px;
  border: 1px solid #e5e9f0;
  background: #fff;
  border-radius: 12px;
}
.mba-view-ready .mba-table,
.mba-view-batches .mba-table {
  min-width: 760px;
}
@media (max-width: 900px) {
  .mba-app {
    padding: 14px;
  }
  .mba-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mba-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .mba-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .mba-toolbar select {
    max-width: none;
  }
  .mba-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .mba-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .mba-kpi strong {
    font-size: 22px;
  }
  .mba-tabs {
    overflow: auto;
  }
  .mba-topbar h1 {
    font-size: 23px;
  }
}
.mba-app :focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
.mba-app input,
.mba-app textarea,
.mba-app .mba-secret,
.mba-table td {
  unicode-bidi: plaintext;
}
.mba-chip-pending_variance,
.mba-chip-pending_finance,
.mba-chip-awaiting_university_pin,
.mba-chip-awaiting_remittance_amount {
  background: #fff0db;
  color: #8a4b08;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
@media (prefers-reduced-motion: reduce) {
  .mba-app * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
