:root {
  --erp-navy: #14243a;
  --erp-blue: #206bc4;
  --erp-bg: #f3f6fb;
  --erp-border: #e5eaf2;
  --erp-text: #182433;
  --erp-muted: #68788c;
  --erp-radius: 16px;
}

body {
  background: var(--erp-bg);
  color: var(--erp-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--erp-border);
  min-height: 72px;
  box-shadow: 0 2px 12px rgba(24, 36, 51, .035);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--erp-navy);
}

.page-header {
  padding-top: 26px;
  padding-bottom: 22px;
}

.page-title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.7px;
  color: var(--erp-navy);
}

.page-pretitle {
  color: var(--erp-blue);
  font-weight: 750;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 11px;
}

.card {
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  box-shadow: 0 5px 24px rgba(24, 36, 51, .045);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card-header {
  background: #fff;
  min-height: 64px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf0f5;
}

.card-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--erp-navy);
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 16px 22px;
  background: #fbfcfe;
  border-top: 1px solid #edf0f5;
}

.btn {
  border-radius: 9px;
  font-weight: 650;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #206bc4, #3788e8);
  border-color: #206bc4;
  box-shadow: 0 4px 10px rgba(32, 107, 196, .15);
}

.btn:hover {
  transform: translateY(-1px);
}

.form-label {
  color: #34465b;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}

.form-control, .form-select {
  min-height: 43px;
  border-radius: 9px;
  border-color: #dce3ed;
  background-color: #fff;
  color: var(--erp-text);
  box-shadow: none;
}

.form-control:focus, .form-select:focus {
  border-color: #70a7e8;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, .11);
}

.form-hint {
  color: var(--erp-muted);
  font-size: 12px;
  margin-top: 6px;
}

.table thead th {
  background: #f7f9fc;
  color: #64758a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .65px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--erp-border);
  padding-top: 15px;
  padding-bottom: 15px;
}

.table tbody td {
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom-color: #edf0f5;
}

.table tbody tr:hover {
  background: #f8fbff;
}

.badge {
  border-radius: 7px;
  padding: 6px 9px;
  font-weight: 700;
}

.alert {
  border-radius: 12px;
}

.page-body {
  padding-bottom: 40px;
}

.stat-card {
  position: relative;
  border: 0;
  min-height: 145px;
}

.stat-card .card-body {
  padding: 23px;
}

.stat-label {
  font-size: 13px;
  color: var(--erp-muted);
  font-weight: 650;
}

.stat-number {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -1px;
  margin-top: 12px;
  color: var(--erp-navy);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #e8f1fc;
  color: #206bc4;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  color: white;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(115deg, #14243a 0%, #1b4779 60%, #206bc4 100%);
  box-shadow: 0 12px 32px rgba(20, 36, 58, .15);
}

.dashboard-hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: -55px;
  top: -100px;
  box-shadow: 0 0 0 35px rgba(255,255,255,.035),
              0 0 0 75px rgba(255,255,255,.025);
  pointer-events: none;
}

.dashboard-hero .card-body {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 42px);
}

.dashboard-hero h1 {
  color: white;
  font-size: clamp(25px, 3.5vw, 36px);
  font-weight: 850;
  letter-spacing: -1px;
}

.dashboard-hero p {
  color: #dce8f7;
  max-width: 620px;
}

.module-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.module-card .card {
  height: 100%;
}

.module-card:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(24, 36, 51, .09);
  border-color: #c9d9ed;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 18px;
}

.module-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--erp-navy);
}

.module-description {
  font-size: 13px;
  color: var(--erp-muted);
  line-height: 1.6;
  margin-top: 7px;
}

.module-arrow {
  color: var(--erp-blue);
  font-weight: 800;
  margin-top: 18px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .navbar { min-height: 60px; }
  .page-header { padding-top: 20px; }
  .card-body { padding: 17px; }
  .card-header { padding: 15px 17px; }
  .table { min-width: 760px; }
  .dashboard-hero .card-body { padding: 25px 20px; }
}
