/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.1.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.1.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/app/globals.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-foreground: #ffffff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --ring: rgba(14, 165, 233, 0.35);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
  content: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
  flex: 1 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-content {
  display: block;
}

.button {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.06s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button--secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.button--secondary:hover {
  background: #f8fafc;
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}

.button--ghost:hover {
  background: #f1f5f9;
}

.button--danger {
  background: var(--danger);
  color: #ffffff;
}

.button:hover {
  background: var(--primary-hover);
}

.button:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.button--success {
  background: var(--success);
  color: #ffffff;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  margin-bottom: 8px;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.nav {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  align-items: center;
  position: relative;
  z-index: 2;
  justify-content: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  gap: 12px;
  padding: 0 24px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 12px;
  margin-left: 16px;
  align-items: center;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
}

.badge--success {
  color: #14532d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.badge--warning {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fed7aa;
}

.badge--danger {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}

.badge--gold {
  color: #0f172a;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: min(520px, 92vw);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  animation: fadeUp 0.25s ease;
}

.login-logo {
  border-radius: 14px;
  padding: 0;
  display: inline-block;
  margin-bottom: 12px;
}

.login-logo img {
  width: min(220px, 70vw);
  height: auto;
  display: block;
}

.login-subtitle {
  color: var(--muted);
  margin: 0 0 16px 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.sidebar-brand img {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}

.sidebar-link:hover {
  background: #f1f5f9;
}

.sidebar-link.active {
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content {
  padding: 24px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kpi-title {
  color: var(--muted);
  font-size: 13px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.text-muted {
  color: var(--muted);
}

.footer {
  margin-top: auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  padding: 0 24px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

table {
  border-collapse: collapse;
}

thead th {
  background: #f8fafc;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
}

tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

tbody tr:hover {
  background: #f8fafc;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

