.dashboard {
  padding-top: 38px !important;
  padding-bottom: 60px;
}
.dashboard h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 3px solid transparent;
}
.tabs button.active {
  border-color: #00a89b;
  color: #008d83;
}
#notice:not(:empty) {
  background: #fff5d5;
  padding: 16px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 22px;
  line-height: 1.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat,
.panel,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #f8fbfa;
}
.stat strong {
  display: block;
  font-size: 30px;
  margin-bottom: 8px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  padding: 17px;
  background: #f1f6f5;
}
td {
  padding: 17px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  text-align: left;
}
td img {
  width: 65px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  float: left;
  margin-right: 13px;
}
.table-scroll {
  overflow: auto;
  margin-top: 20px;
}
.mini-btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  font-size: 11px;
  padding: 8px 10px;
  margin: 3px;
}
.mini-btn:hover {
  background: #dff4ee;
}
.danger {
  color: #b43b3b;
}
.badge {
  display: inline-block;
  border-radius: 12px;
  font-size: 10px;
  padding: 5px 10px;
  background: #e4f3ed;
  color: #247258;
}
.badge.pending {
  background: #fff0c6;
  color: #8c6d11;
}
.badge.rejected,
.badge.blocked {
  background: #ffe7e7;
  color: #a73f3f;
}
.category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 22px;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}
.report-card {
  margin-bottom: 15px;
}
.report-card h3 {
  margin: 0;
  font-size: 17px;
}
.report-card p {
  font-size: 13px;
  line-height: 1.7;
}
.report-card small {
  text-align: left;
}
.ad-actions,
.ad-status {
  padding: 0 12px 12px;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 480px;
}
#conversations {
  background: #f4f8f7;
  border-right: 1px solid var(--line);
}
.conversation {
  width: 100%;
  text-align: left;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.conversation.active {
  background: #dff3ef;
}
.conversation b,
.conversation span {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
.conversation small {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat {
  padding: 24px;
}
.chat h2 {
  font-size: 18px;
  margin: 0 0 20px;
}
#messageList {
  height: 300px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 5px;
}
.bubble {
  padding: 12px 15px;
  background: #f0f3f2;
  border-radius: 10px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.mine {
  align-self: flex-end;
  background: #d7f4e9;
}
.bubble small {
  text-align: right;
  font-size: 9px;
}
.chat textarea {
  min-height: 65px;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.account-link {
  font-size: 12px;
  font-weight: 700;
}
.text-link {
  font-size: 12px;
  text-decoration: underline;
  display: block;
  margin: 15px auto;
}
.dashboard section[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .dashboard h1 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 25px;
  }
  .category-list {
    grid-template-columns: 1fr;
  }
  .inbox-layout {
    grid-template-columns: 1fr;
  }
  #conversations {
    max-height: 220px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .conversation {
    padding: 14px;
  }
  .chat {
    padding: 17px;
  }
  .account-link {
    font-size: 10px;
    max-width: 65px;
  }
  .topbar {
    gap: 14px;
  }
  .topbar > a:not(.logo) {
    font-size: 11px;
  }
  .panel .form-row {
    flex-wrap: wrap;
  }
  .panel .form-row label {
    min-width: 110px;
  }
  .dashboard .section-heading {
    align-items: start;
    gap: 10px;
  }
  .dashboard .section-heading .primary {
    font-size: 10px;
    padding: 12px;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    padding: 12px;
  }
  .table-scroll td {
    min-width: 130px;
  }
}
