﻿:root {
  --erp-bg: #f5f7ff;
  --erp-card: #ffffff;
  --erp-text: #0f172a;
  --erp-muted: #64748b;
  --erp-border: rgba(15, 23, 42, 0.09);

  --erp-blue: #2563eb;
  --erp-blue-dark: #1d4ed8;
  --erp-cyan: #06b6d4;
  --erp-green: #22c55e;
  --erp-amber: #f59e0b;
  --erp-red: #ef4444;

  --erp-radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--erp-text);
  background:
    radial-gradient(1050px 560px at 12% 4%, rgba(37, 99, 235, 0.14), transparent 62%),
    radial-gradient(950px 520px at 86% 18%, rgba(6, 182, 212, 0.1), transparent 58%),
    radial-gradient(860px 480px at 50% 96%, rgba(148, 163, 184, 0.12), transparent 58%),
    var(--erp-bg);
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24;
  line-height: 1;
  vertical-align: middle;
}

.erp-app {
  min-height: 100vh;
  display: flex;
}

.erp-sidebar {
  width: 286px;
  flex: 0 0 auto;
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background:
    radial-gradient(520px 250px at 18% -8%, rgba(56, 189, 248, 0.16), transparent 62%),
    linear-gradient(180deg, #11223b 0%, #122741 58%, #1a3d66 100%);
  color: rgba(255, 255, 255, 0.92);
}

.erp-sidebar::-webkit-scrollbar {
  width: 8px;
}

.erp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.erp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.erp-brand:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.erp-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.erp-brand-name {
  font-weight: 800;
  line-height: 1.1;
}

.erp-brand-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

.erp-side-section {
  margin-top: 14px;
}

.erp-side-title {
  padding: 10px 12px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.58);
}

.erp-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.erp-side-link:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.erp-side-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.16));
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.24), 0 10px 24px rgba(2, 6, 23, 0.24);
}

.erp-side-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
}

.erp-side-text {
  flex: 1;
  min-width: 0;
  font-weight: 650;
}

.erp-side-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.erp-side-footer {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.erp-side-user {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.erp-side-user-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

.erp-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.erp-page-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
}

.erp-page-sub {
  font-size: 0.82rem;
  color: var(--erp-muted);
  margin-top: 2px;
}

.erp-user {
  font-weight: 650;
  color: var(--erp-text);
}

.erp-main {
  flex: 1;
  padding: 20px 18px 34px;
}

.erp-footer {
  padding: 14px 18px;
  color: var(--erp-muted);
  border-top: 1px solid var(--erp-border);
  background: rgba(255, 255, 255, 0.5);
}

.erp-offcanvas {
  background: linear-gradient(180deg, #10203a 0%, #112847 45%, #1f4d7f 100%);
  color: rgba(255, 255, 255, 0.95);
}

.erp-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.erp-offcanvas .erp-side-link {
  color: rgba(255, 255, 255, 0.9);
}

.erp-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.page-header,
.dashboard-hero {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.74));
  border: 1px solid var(--erp-border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
  padding: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 1rem;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(1.28rem, 2.2vw, 1.94rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dashboard-subtitle,
.text-muted {
  color: var(--erp-muted) !important;
}

.stat-card {
  border: 1px solid var(--erp-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.85rem 1rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--erp-muted);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.card,
.app-card {
  border: 1px solid var(--erp-border) !important;
  border-radius: var(--erp-radius) !important;
  background: var(--erp-card);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
}

.card .card-body {
  padding: 18px;
}

.quick-grid .card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.1);
}

.card-title {
  font-weight: 800;
}

.alert {
  border-radius: 14px;
  border-width: 1px;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--erp-text);
  --bs-table-hover-color: var(--erp-text);
  margin-bottom: 0;
}

.table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(71, 85, 105, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.table > :not(caption) > * > * {
  border-color: rgba(15, 23, 42, 0.06);
  padding: 0.78rem;
}

.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.table-responsive {
  border-radius: 16px;
}

.badge {
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-weight: 700;
}

.badge.text-bg-light {
  background: rgba(37, 99, 235, 0.1) !important;
  color: rgba(30, 64, 175, 0.98) !important;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.form-label {
  font-weight: 650;
  color: rgba(15, 23, 42, 0.86);
}

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.55rem 0.82rem;
}

.form-control::placeholder {
  color: rgba(100, 116, 139, 0.76);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn:active:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.btn {
  border-radius: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--erp-blue), var(--erp-blue-dark));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  filter: brightness(0.98);
}

.btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--erp-blue);
}

.btn-outline-primary:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--erp-blue-dark);
  border-color: rgba(37, 99, 235, 0.45);
}

.btn-outline-secondary {
  border-color: rgba(100, 116, 139, 0.32);
}

.btn-outline-secondary:hover {
  background: rgba(100, 116, 139, 0.08);
}

.btn-danger {
  border: 0;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.19);
}

.btn-link {
  text-decoration: none;
  font-weight: 700;
}

.dashboard-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 1rem 0 0.75rem;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(34, 197, 94, 0.11);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .erp-main {
    padding: 16px 12px 24px;
  }

  .erp-topbar {
    padding: 0 12px;
  }
}

