:root {
  color-scheme: light;
  --bg: #efe7da;
  --panel: rgba(253, 249, 241, 0.9);
  --panel-strong: #fffdf8;
  --text: #171816;
  --muted: #686457;
  --line: rgba(23, 24, 22, 0.12);
  --shadow: 0 24px 60px rgba(92, 74, 31, 0.12);
  --accent: #0b6d67;
  --accent-2: #a04b27;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 109, 103, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(160, 75, 39, 0.14), transparent 30%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
}

.layout {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.panel,
.message-bar {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero,
.panel,
.message-bar {
  border-radius: 28px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px;
  margin-bottom: 18px;
}

.brand-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(11, 109, 103, 0.14);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1;
}

h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.hero-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
}

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

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}

button,
input {
  font: inherit;
}

input[type="search"] {
  width: min(320px, 100%);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 12px 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #164e70 0%, var(--accent) 100%);
  color: #fff;
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

button.button-loading {
  position: relative;
  padding-left: 44px;
}

button.button-loading::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
}

.acumulat-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}

.range-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.range-field input[type="datetime-local"] {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 8px 10px;
  min-width: 11.5rem;
}

.acumulat-stats-msg {
  margin: 0 0 12px;
  font-size: 0.88rem;
}

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

.dashboard-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

.dashboard-table-simple {
  min-width: 420px;
}

.dashboard-table-acumulat {
  min-width: 720px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.dashboard-table thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 251, 244, 0.98);
  color: var(--muted);
  z-index: 1;
}

.row-name {
  min-width: 240px;
  background: rgba(255, 251, 244, 0.72);
}

.cell-value {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
}

.cell-date {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.empty-value {
  color: var(--muted);
}

.empty-cell {
  padding: 28px 12px;
  color: var(--muted);
  text-align: center;
}

.message-bar {
  padding: 14px 18px;
  color: #8a2f17;
  background: rgba(255, 241, 235, 0.94);
}

@media (max-width: 860px) {
  .hero,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-heading {
    align-items: flex-start;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .layout {
    width: min(100vw - 20px, 1480px);
    padding-top: 20px;
  }

  .hero,
  .panel,
  .message-bar {
    border-radius: 20px;
  }
}
