
/* Orivo Brand Design Tokens */
:root {
  --orivo-navy: #0e1b2a;
  --orivo-navy-surface: #132538;
  --orivo-teal: #169388;
  --orivo-mint: #34d2be;
  --orivo-orange: #f08a0d;
  --orivo-page: #f4f7f8;
  --orivo-surface: #ffffff;
  --orivo-line: #e2e8ec;
  --orivo-text-main: #142330;
  --orivo-text-muted: #5e7382;
  --orivo-shadow: 0 10px 30px -5px rgba(14, 27, 42, 0.08);
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--orivo-page);
  color: var(--orivo-text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.orivo-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0e1b2a 0%, #112236 60%, #0a1624 100%);
  color: #cfdce3;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 40;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.orivo-main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.orivo-topbar {
  height: 66px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--orivo-line);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #647b8c;
  text-transform: uppercase;
  padding: 18px 20px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  margin: 2px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #b1c6d1;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.nav-link:hover {
  background: rgba(52, 210, 190, 0.12);
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(22, 147, 136, 0.35) 0%, rgba(52, 210, 190, 0.18) 100%);
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid var(--orivo-mint);
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--orivo-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--orivo-shadow);
  transition: transform 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-settled, .badge-active, .badge-complete {
  background: #e6f8f2;
  color: #0d8361;
  border: 1px solid #bcead8;
}

.badge-pending, .badge-warning {
  background: #fff8eb;
  color: #a5610d;
  border: 1px solid #f9dfaf;
}

.badge-failed, .badge-rejected, .badge-error {
  background: #feeff0;
  color: #b9323f;
  border: 1px solid #f8c9cf;
}

.badge-bank {
  background: #edf4fe;
  color: #2762ba;
  border: 1px solid #c7ddfc;
}

.pill-demo {
  background: #fff4e5;
  color: #a85f06;
  border: 1px solid #fcdba9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #169388 0%, #10776e 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(22, 147, 136, 0.25);
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-accent {
  background: linear-gradient(135deg, #f08a0d 0%, #d87604 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(240, 138, 13, 0.25);
}

.btn-secondary {
  background: #ffffff;
  color: var(--orivo-text-main);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--orivo-line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #f8fafb;
}

.btn-disabled {
  background: #eef2f5;
  color: #9cb0bc;
  border: 1px solid #e2e8ec;
  cursor: not-allowed;
  padding: 8px 16px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Modal styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 680px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--orivo-line);
}

/* Custom Table fallback */
.fallback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fallback-table th {
  background: #f6f9fa;
  color: #556c7d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--orivo-line);
  text-align: left;
}

.fallback-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f5;
  color: #1a2c38;
}

.fallback-table tr:hover td {
  background: #fbfdfe;
}
