:root {
  --bg: #eff5ef;
  --bg-deep: #e4ece6;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --ink: #17231d;
  --muted: #607367;
  --line: rgba(23, 35, 29, 0.08);
  --accent: #15805c;
  --accent-soft: rgba(21, 128, 92, 0.11);
  --warning: #bc7a0a;
  --warning-soft: rgba(188, 122, 10, 0.14);
  --danger: #cb455b;
  --danger-soft: rgba(203, 69, 91, 0.12);
  --shadow: 0 24px 60px rgba(27, 41, 33, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 128, 92, 0.09), transparent 24%),
    radial-gradient(circle at top right, rgba(14, 52, 84, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

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

.sidebar {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 34, 25, 0.96), rgba(19, 39, 31, 0.98));
  color: #f2fff8;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9fe1c5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-eyebrow {
  color: var(--accent);
}

.sidebar h1 {
  margin: 0 0 14px;
  font-family: "Bahnschrift SemiBold", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.sidebar .muted {
  color: rgba(230, 245, 238, 0.74);
}

.sidebar-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(159, 225, 197, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.compact-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

.sidebar-label {
  display: block;
  margin-bottom: 8px;
  color: #9fe1c5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-copy {
  margin: 10px 0 0;
  color: rgba(230, 245, 238, 0.82);
  line-height: 1.6;
}

.main {
  padding: 28px;
}

.panel,
.hero-strip {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(21, 128, 92, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.92));
}

.hero-strip h2,
.login-panel h2 {
  margin: 0 0 8px;
  font-family: "Bahnschrift SemiBold", "Segoe UI Variable Display", sans-serif;
}

.hero-strip h2 {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 320px;
}

.toolbar-input,
input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.toolbar-input:focus,
input:focus,
select:focus {
  outline: none;
  border-color: rgba(21, 128, 92, 0.2);
  box-shadow: 0 0 0 4px rgba(21, 128, 92, 0.08);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(21, 128, 92, 0.18);
}

.login-panel {
  max-width: 500px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-tight {
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-help {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

button {
  font: inherit;
}

.primary-btn,
.ghost-btn {
  min-height: 50px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.primary-btn {
  border: none;
  background: linear-gradient(135deg, #14956a, #25cf96);
  color: #04140e;
  font-weight: 800;
  box-shadow: 0 16px 26px rgba(21, 128, 92, 0.18);
}

.ghost-btn {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.icon-btn {
  width: auto;
  min-width: 86px;
  margin-top: 0;
  padding: 0 14px;
}

.small-btn {
  width: auto;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 14px;
}

.danger-btn {
  border: 1px solid rgba(203, 69, 91, 0.2);
  background: linear-gradient(135deg, rgba(203, 69, 91, 0.12), rgba(203, 69, 91, 0.18));
  color: var(--danger);
}

.message {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--muted);
}

.message.is-ok {
  color: var(--accent);
}

.message.is-danger {
  color: var(--danger);
}

.dashboard.hidden,
.hidden {
  display: none;
}

.stats-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.content-grid {
  grid-template-columns: minmax(320px, 400px) minmax(320px, 420px) 1fr;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(21, 128, 92, 0.06);
}

.stat-card span {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  font-family: "Bahnschrift SemiBold", "Segoe UI Variable Display", sans-serif;
  font-size: 2.15rem;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(23, 35, 29, 0.07);
  background: var(--panel-strong);
}

.customer-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 14px;
}

.customer-editor .field {
  gap: 6px;
}

.customer-editor .field span {
  font-size: 0.74rem;
}

.approval-card {
  border-color: rgba(188, 122, 10, 0.16);
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 248, 234, 0.96));
}

.approval-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.approval-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  gap: 10px;
}

.approval-grid .field {
  gap: 6px;
}

.approval-grid .field span {
  font-size: 0.74rem;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: capitalize;
}

.tag.is-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.tag.is-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .stats-grid,
  .meta-grid,
  .password-wrap,
  .approval-grid,
  .customer-editor {
    grid-template-columns: 1fr;
  }
}
