/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-strong: #eef4f2;
  --text: #17211f;
  --muted: #62706c;
  --line: #d9e2df;
  --teal: #087f73;
  --teal-strong: #05665d;
  --green: #24845a;
  --yellow: #a66b00;
  --red: #b42318;
  --red-bg: #fff1ef;
  --yellow-bg: #fff7df;
  --green-bg: #eaf7ef;
  --info-bg: #eaf4ff;
  --info: #1769aa;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
.button-link {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
}

button:hover,
.button-link:hover {
  background: var(--teal-strong);
}

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

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

button:disabled,
.button-disabled {
  background: #c9d4d1;
  color: #65716e;
  cursor: not-allowed;
}

input,
select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 7px 9px;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-block h1,
.page-header h2 {
  margin: 0;
}

.brand-block h1 {
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.muted,
.page-description {
  color: var(--muted);
}

.sidebar-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 112px;
  overflow: hidden;
}

.sidebar-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.nav-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.nav-link {
  border-radius: 6px;
  color: #33413d;
  font-weight: 700;
  padding: 10px 12px;
}

.nav-link:hover,
.nav-link-active {
  background: var(--surface-strong);
  color: var(--teal-strong);
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  margin-top: auto;
  overflow-wrap: anywhere;
  padding-top: 14px;
}

.sidebar-footer strong {
  color: var(--text);
  font-size: 12px;
}

.user-block {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 12px;
}

.user-block span {
  color: var(--text);
  font-weight: 800;
}

.user-block form,
.user-block button {
  width: 100%;
}

.main-content {
  min-width: 0;
  padding: 28px;
}

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

.page-header h2 {
  font-size: 28px;
  line-height: 1.15;
}

.page-description {
  margin: 8px 0 0;
  max-width: 760px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.metric-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 28px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.metric-good {
  border-top-color: var(--green);
}

.metric-warning {
  border-top-color: var(--yellow);
}

.metric-critical {
  border-top-color: var(--red);
}

.content-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.split-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

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

.panel-header h3 {
  margin: 0;
}

.panel-header p {
  color: var(--muted);
  margin: 4px 0 0;
}

.market-list,
.summary-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-list li,
.summary-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
}

.market-list li:last-child,
.summary-list li:last-child {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-transform: uppercase;
}

td {
  overflow-wrap: break-word;
}

td .small-text {
  overflow-wrap: anywhere;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.badge-critical {
  background: var(--red-bg);
  color: var(--red);
}

.badge-warning {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.badge-good {
  background: var(--green-bg);
  color: var(--green);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-muted {
  background: #edf1ef;
  color: #53615d;
}

.filter-form {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  grid-gap: 5px;
  gap: 5px;
}

.notice,
.empty-state {
  border-radius: 8px;
  padding: 16px;
}

.notice p,
.empty-state p {
  margin: 6px 0 0;
}

.notice-error {
  background: var(--red-bg);
  border: 1px solid #ffd0ca;
  color: var(--red);
}

.notice-warning {
  background: var(--yellow-bg);
  border: 1px solid #ffe3a0;
  color: #5c4300;
}

.empty-state {
  background: #f1f5f4;
  border: 1px dashed #b8c7c3;
  color: var(--muted);
}

.trend-chart {
  align-items: flex-end;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  min-height: 190px;
}

.trend-column {
  align-items: center;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-width: 0;
}

.trend-value,
.trend-label {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.trend-bar-shell {
  align-items: flex-end;
  background: #e6eeeb;
  border-radius: 6px;
  display: flex;
  height: 128px;
  justify-content: center;
  width: 100%;
}

.trend-bar {
  background: var(--teal);
  border-radius: 6px 6px 0 0;
  max-width: 36px;
  width: 62%;
}

.chart-loading {
  align-items: center;
  background: #f1f5f4;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  min-height: 190px;
  padding: 20px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgb(23 33 31 / 24%);
  max-width: min(920px, calc(100vw - 48px));
  padding: 0;
  width: 920px;
}

.settings-dialog::-webkit-backdrop {
  background: rgb(23 33 31 / 42%);
}

.settings-dialog::backdrop {
  background: rgb(23 33 31 / 42%);
}

.settings-dialog-body {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  padding: 22px;
}

.settings-dialog-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.settings-dialog-header h3 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}

.settings-dialog-header p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 680px;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  min-height: 100vh;
}

.login-hero {
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgb(8 127 115 / 8%), rgb(23 33 31 / 72%)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  padding: 48px;
}

.login-hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
}

.login-hero p:last-child {
  font-size: 18px;
  line-height: 1.5;
  margin: 14px 0 0;
  max-width: 560px;
}

.login-panel {
  align-content: center;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: grid;
  grid-gap: 22px;
  gap: 22px;
  padding: 42px;
}

.login-panel h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.login-panel .muted {
  margin: 8px 0 0;
}

.login-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.login-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  grid-gap: 6px;
  gap: 6px;
}

.login-form input,
.login-form button {
  width: 100%;
}

.settings-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setting-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  padding: 12px;
}

.setting-field span {
  display: grid;
  font-weight: 800;
  grid-gap: 4px;
  gap: 4px;
}

.setting-field small,
.setting-field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
}

.setting-field input,
.setting-field select {
  width: 100%;
}

.settings-note {
  background: #eef4f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.settings-note p,
.form-error {
  margin: 6px 0 0;
}

.form-error {
  color: var(--red);
  font-weight: 700;
}

.settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.small-text {
  color: var(--muted);
  font-size: 13px;
}

.table-link {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

  .sidebar-image,
  .sidebar-footer {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
  }

  .metric-grid,
  .split-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 320px;
  }

  .login-panel {
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .main-content {
    padding: 18px;
  }

  .page-header {
    display: grid;
  }

  .metric-grid,
  .split-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-dialog-header,
  .settings-actions {
    display: grid;
  }

  .filter-form {
    align-items: stretch;
    display: grid;
  }

  button,
  .button-link {
    width: 100%;
  }

  .login-hero {
    min-height: 260px;
    padding: 28px;
  }

  .login-hero h1 {
    font-size: 34px;
  }

  .login-panel {
    padding: 28px;
  }
}

