:root {
  --bg-page: #f3f7fb;
  --bg-surface: rgba(248, 250, 252, 0.94);
  --bg-surface-strong: rgba(255, 255, 255, 0.82);
  --bg-soft: #eef4f8;
  --line-soft: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-panel: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 22px 55px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-2xl: 28px;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text-main);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 20%),
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent 24%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.55);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.34);
  border-radius: 999px;
  border: 2px solid rgba(241, 245, 249, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.5);
}

.glass {
  background: var(--bg-surface-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.surface-soft {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.panel-soft {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(244, 247, 250, 0.94));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-panel);
}

.kpi-card-soft {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  box-shadow: var(--shadow-soft);
}

.kpi-card-soft::after {
  content: "";
  position: absolute;
  inset-inline-end: -24px;
  top: -24px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(6px);
}

.soft-ring {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.12), 0 10px 30px rgba(15, 23, 42, 0.05);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.table-card-row td {
  vertical-align: top;
}

input,
select,
textarea,
button {
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.09);
}

button:active {
  transform: translateY(1px);
}

@media (max-width: 1024px) {
  :root {
    --radius-xl: 22px;
    --radius-2xl: 24px;
  }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at top center, rgba(20, 184, 166, 0.07), transparent 22%),
      linear-gradient(180deg, #f7fafc 0%, #edf3f8 100%);
  }

  .mobile-stack-table thead {
    display: none;
  }

  .mobile-stack-table,
  .mobile-stack-table tbody,
  .mobile-stack-table tr,
  .mobile-stack-table td {
    display: block;
    width: 100%;
  }

  .mobile-stack-table tr {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    padding: 14px;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    margin-bottom: 12px;
  }

  .mobile-stack-table td {
    border: none !important;
    padding: 8px 0 !important;
  }

  .mobile-stack-table td::before {
    content: attr(data-label);
    display: block;
    color: rgb(100 116 139);
    font-size: 12px;
    margin-bottom: 4px;
  }
}
