:root {
  --doit-ink: #172033;
  --doit-muted: #667085;
  --doit-line: #d9e1ea;
  --doit-panel: #ffffff;
  --doit-canvas: #f5f7fa;
  --doit-navy: #152033;
  --doit-teal: #0f766e;
  --doit-blue: #2563eb;
  --doit-amber: #b45309;
  --doit-red: #b42318;
}

html {
  background: var(--doit-canvas);
}

.doit-body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--doit-ink);
  background:
    linear-gradient(180deg, rgba(21, 32, 51, .04), rgba(21, 32, 51, 0) 220px),
    var(--doit-canvas);
  letter-spacing: 0;
}

.doit-mobilebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  border-bottom: 1px solid var(--doit-line);
  background: rgba(255, 255, 255, .94);
  padding: 10px 14px;
}

.doit-menu-button,
.doit-icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--doit-line);
  border-radius: 8px;
  background: #fff;
  color: var(--doit-ink);
}

.doit-shell {
  min-height: 100vh;
}

.doit-sidebar {
  width: 100%;
  flex-shrink: 0;
  border-right: 1px solid var(--doit-line);
  background: #fbfcfe;
}

.doit-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--doit-line);
}

.doit-brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--doit-navy);
  color: #fff;
  font-weight: 800;
}

.doit-brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.doit-brand-subtitle {
  margin-top: 2px;
  color: var(--doit-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.doit-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  font-size: 14px;
}

.doit-nav-section {
  margin: 12px 8px 4px;
  color: #7a8594;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doit-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #344054;
  font-weight: 600;
}

.doit-nav-link:hover {
  background: #eef4f7;
  color: var(--doit-ink);
}

.doit-nav-link.is-active {
  background: #e6f2f0;
  color: #0b5f59;
}

.doit-badge {
  display: inline-flex;
  min-width: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--doit-amber);
  padding: 2px 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.doit-main {
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.doit-page {
  width: min(100%, 1480px);
  margin-inline: auto;
}

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

.doit-eyebrow {
  color: var(--doit-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doit-title {
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 850;
}

.doit-subtitle {
  margin-top: 7px;
  color: var(--doit-muted);
  font-size: 14px;
}

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

.doit-backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--doit-muted);
  font-size: 13px;
  font-weight: 700;
}

.doit-backlink:hover {
  color: var(--doit-ink);
  text-decoration: underline;
}

.doit-card {
  border: 1px solid var(--doit-line);
  border-radius: 8px;
  background: var(--doit-panel);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.doit-card-pad {
  padding: 16px;
}

.doit-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.doit-form-wide {
  max-width: 1040px;
}

.doit-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.doit-field {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.doit-field-hint {
  color: var(--doit-muted);
  font-size: 12px;
  font-weight: 500;
}

.doit-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.doit-offer-card {
  position: relative;
  display: grid;
  gap: 14px;
}

.doit-offer-card.is-cheapest {
  border-color: #9bd3bd;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.doit-offer-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-inline: 4px;
  color: var(--doit-ink);
  font-size: 15px;
  font-weight: 850;
}

.doit-file-input {
  width: 100%;
  color: var(--doit-muted);
  font-size: 14px;
}

.doit-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doit-thumb {
  width: 82px;
  height: 82px;
  border: 1px solid var(--doit-line);
  border-radius: 8px;
  object-fit: cover;
}

.doit-danger-zone {
  border-color: #f3c5bf;
  background: #fffafa;
}

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

.doit-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.doit-stat-grid > * {
  min-width: 0;
}

.doit-stat-grid .doit-table {
  min-width: 0;
}

.doit-report-link {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--doit-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: var(--doit-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.doit-report-link:hover {
  border-color: #b8c5d4;
  background: #f9fbfc;
}

.doit-report-title {
  font-size: 15px;
  font-weight: 850;
}

.doit-report-desc {
  color: var(--doit-muted);
  font-size: 13px;
}

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

.doit-kpi {
  position: relative;
  overflow: hidden;
  min-height: 98px;
  padding: 14px;
}

.doit-kpi::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px auto;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: .24;
}

.doit-kpi-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
}

.doit-kpi-label {
  margin-top: 8px;
  color: var(--doit-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doit-kpi.is-warning {
  color: var(--doit-amber);
  background: #fff8ed;
  border-color: #f3d6a8;
}

.doit-kpi.is-danger {
  color: var(--doit-red);
  background: #fff4f2;
  border-color: #f3c5bf;
}

.doit-kpi.is-info {
  color: var(--doit-blue);
  background: #f3f7ff;
  border-color: #c8d7ff;
}

.doit-kpi.is-active {
  color: var(--doit-teal);
  background: #ecf8f3;
  border-color: #9bd3bd;
}

.doit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.doit-input,
.doit-select {
  min-height: 40px;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--doit-ink);
  font-size: 14px;
}

.doit-input:focus,
.doit-select:focus {
  border-color: var(--doit-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
  outline: none;
}

.doit-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.doit-button-primary {
  background: var(--doit-navy);
  color: #fff;
}

.doit-button-primary:hover {
  background: #0f172a;
}

.doit-button-secondary {
  border: 1px solid var(--doit-line);
  background: #fff;
  color: var(--doit-ink);
}

.doit-button-secondary:hover {
  background: #f3f6f8;
}

.doit-button-danger {
  background: var(--doit-red);
  color: #fff;
}

.doit-button-success {
  background: var(--doit-teal);
  color: #fff;
}

.doit-button-success:hover {
  background: #0b5f59;
}

.doit-button-ghost {
  color: var(--doit-muted);
}

.doit-button-ghost:hover {
  background: #eef2f7;
  color: var(--doit-ink);
}

.doit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--doit-line);
  border-radius: 8px;
  background: #fff;
}

.doit-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 14px;
}

.doit-table th {
  border-bottom: 1px solid var(--doit-line);
  background: #f8fafc;
  padding: 11px 12px;
  color: var(--doit-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doit-table td {
  border-bottom: 1px solid #edf1f5;
  padding: 12px;
  vertical-align: top;
}

.doit-table tr:last-child td {
  border-bottom: 0;
}

.doit-table tbody tr:hover {
  background: #f9fbfc;
}

.doit-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef2f7;
  padding: 4px 9px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.doit-status.is-active {
  background: #e6f2f0;
  color: #0b5f59;
}

.doit-status.is-danger {
  background: #fff4f2;
  color: var(--doit-red);
}

.doit-alert {
  border: 1px solid #f3d6a8;
  border-radius: 8px;
  background: #fff8ed;
  padding: 12px;
  color: #7a3d05;
}

.doit-alert-danger {
  border-color: #f3c5bf;
  background: #fff4f2;
  color: #8d2118;
}

.doit-alert-success {
  border-color: #9bd3bd;
  background: #ecf8f3;
  color: #0b5f59;
}

.doit-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 14px;
}

.doit-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.doit-stack > * {
  min-width: 0;
}

.doit-section-title {
  margin-bottom: 10px;
  color: var(--doit-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.doit-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(140deg, rgba(15, 118, 110, .16), transparent 34%),
    linear-gradient(320deg, rgba(37, 99, 235, .12), transparent 36%),
    #f5f7fa;
}

.doit-login-card {
  width: min(100%, 410px);
  border: 1px solid var(--doit-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  padding: 24px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .14);
}

@media (min-width: 48rem) {
  .doit-mobilebar {
    display: none;
  }

  .doit-shell {
    display: flex;
  }

  .doit-sidebar {
    display: block;
    width: 264px;
    min-height: 100vh;
    position: sticky;
    top: 0;
  }

  .doit-main {
    padding: 24px;
  }
}

@media (max-width: 58rem) {
  .doit-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doit-page-header {
    flex-direction: column;
  }

  .doit-actions {
    justify-content: flex-start;
  }

  .doit-detail-grid {
    grid-template-columns: 1fr;
  }

  .doit-form-grid,
  .doit-report-grid,
  .doit-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36rem) {
  .doit-main {
    padding: 14px;
  }

  .doit-kpi-grid {
    grid-template-columns: 1fr;
  }

  .doit-title {
    font-size: 24px;
  }

  .doit-card-pad {
    padding: 14px;
  }
}
