/* A compact, clean information layout inspired by the supplied portal video. */
:root {
  --line: #e8ecf1;
  --soft: #f6f8fb;
  --text: #20242a;
  --muted: #7c8796;
  --blue: #2278e8;
}

body,
main,
.app-shell {
  background: #fff;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.topbar {
  height: 64px;
  gap: 34px;
  padding: 0 30px;
  background: #fff;
}

.topbar h1,
.topbar h2 {
  font-size: 22px;
}

.top-actions {
  gap: 8px;
}

.top-actions button {
  height: 38px;
  min-width: 122px;
  border-radius: 8px;
  background: #f5f7fa;
  box-shadow: none;
}

.top-actions .date {
  min-width: 194px;
}

.dialog-note {
  margin: -4px 0 14px;
  color: #6b7280;
  font-size: 13px;
}

.quick-settings-list {
  border: 1px solid #e5e9f0;
  border-radius: 9px;
  overflow: hidden;
}

.quick-setting {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 12px 14px;
}

.quick-setting + .quick-setting {
  border-top: 1px solid #e5e9f0;
}

.quick-setting b,
.quick-setting small {
  display: block;
}

.quick-setting small {
  margin-top: 4px;
  color: #737b89;
  font-size: 12px;
}

.quick-market {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #53606d;
  font-size: 13px;
}

.quick-market select {
  height: 40px;
  border: 1px solid #e5e9f0;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  font: 14px inherit;
}

.topbar.config-mode #pullTracking,
.topbar.config-mode #importOrders,
.topbar.config-mode #dateRange {
  display: none;
}

.topbar.workspace-mode h2 {
  display: none;
}

.topbar.workspace-mode #topActions {
  display: flex;
  margin-left: auto;
}

.topbar.workspace-mode #topAddConfig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 38px;
  background: #f4f7fb !important;
  color: #20242a !important;
  border-color: #dde5ef !important;
}

#topAddConfig[hidden] {
  display: none !important;
}

.content,
.workspace {
  padding: 20px 30px 32px;
}

.workspace-head {
  margin-bottom: 14px;
}

.workspace-head h3,
.extension-header h3,
.tracking-title h3,
.auto-title h3,
.log-head h3,
.check-title h3 {
  font-size: 20px;
}

/* Keep labels, controls and secondary menu entries compact and easy to scan. */
.nav-row,
.quick-menu-item {
  font-size: 14px;
}

.subnav-row,
.quick-submenu button {
  font-size: 13px;
}

.filters,
.config-tools,
.mapping-tools,
.vendor-tools,
.design-tools,
.etsy-tools {
  margin-bottom: 13px;
}

.filters button,
.workspace button,
.config-tools button,
.mapping-tools button,
.vendor-tools button,
.design-tools button {
  height: 36px;
  border-color: #e2e7ee;
  border-radius: 7px;
  box-shadow: none;
}

.table-wrap,
.config-table-wrap,
.client-table-wrap {
  border-color: #e8ecf1;
  border-radius: 8px;
  box-shadow: none;
}

th,
.vendor-table th,
.product-vendor-table th,
.design-task-table th,
.mapping-table th,
.team-table th,
.points-table th {
  background: #f5f7fa;
  color: #697789;
  font-size: 13px;
}

td,
.vendor-table td,
.product-vendor-table td,
.design-task-table td,
.mapping-table td,
.team-table td,
.points-table td {
  border-color: #edf0f4;
}

/* Values are contained in their own cells. Long values stay readable via hover. */
.mapping-table {
  min-width: 1120px;
  table-layout: fixed;
}

.mapping-table th:nth-child(1) { width: 90px; }
.mapping-table th:nth-child(2) { width: 100px; }
.mapping-table th:nth-child(3) { width: 135px; }
.mapping-table th:nth-child(4) { width: 245px; }
.mapping-table th:nth-child(5) { width: 275px; }
.mapping-table th:nth-child(6) { width: 90px; }
.mapping-table th:nth-child(7) { width: 105px; }
.mapping-table th:nth-child(8) { width: 80px; }

.mapping-table td {
  overflow: hidden;
}

.mapping-table .key-pill {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 11px;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.config-table-wrap {
  scrollbar-color: #cfd8e5 transparent;
  scrollbar-width: thin;
}

.card,
.wide-card,
.auto-card,
.active-extensions,
.check-title {
  border-color: #e5eaf0;
  border-radius: 9px;
  box-shadow: none;
}

.card {
  min-height: 94px;
  padding: 15px 17px;
}

.wide-card {
  min-height: 0;
  padding: 14px 17px;
}

.metric {
  font-size: 24px;
  margin-top: 8px;
}

.status-tabs {
  gap: 8px;
  padding-bottom: 11px;
}

.status-tabs button,
.design-tabs button,
.listing-tabs button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.search-row input,
.config-tools input,
.mapping-tools input,
.vendor-tools input,
.design-tools input,
.etsy-tools input {
  height: 38px;
  border-color: #dfe5ed;
  border-radius: 7px;
}

.square {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 4px;
  border-radius: 6px;
  color: #20242a;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.square:hover {
  border-color: #a9c8ee;
  background: #f5f9ff;
  color: #176ad7;
}

.square:active {
  transform: scale(.96);
}

.action-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.rail {
  border-right-color: #e8ecf1;
}

.sidebar,
.brand {
  border-color: #e8ecf1;
}

.brand-account {
  display: grid;
  min-width: 0;
  flex: 1;
}

.brand-home {
  width: fit-content;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.brand-home strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-home:hover strong {
  color: var(--blue);
}

.brand-account .profile-trigger {
  width: 100%;
  min-height: 19px;
  gap: 7px;
}

.brand-account .profile-trigger small {
  margin: 0;
}

.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7fbff, #fff);
}

.home-eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-welcome h3 {
  margin: 4px 0;
  font-size: 20px;
}

.home-welcome p {
  margin: 0;
  color: var(--muted);
}

.home-shortcuts {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
}

.home-shortcuts h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.home-shortcuts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

@media (max-width: 650px) {
  .home-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
}

.nav-row,
.subnav-row {
  border-radius: 7px;
}

.quick-menu {
  background: #fff;
  box-shadow: 4px 0 14px #18223712;
}

.quick-menu-item {
  border-radius: 10px;
}

@media (max-width: 1180px) {
  .topbar {
    gap: 18px;
    padding: 0 20px;
  }

  .topbar h1,
  .topbar h2 {
    font-size: 20px;
  }

  .topbar p {
    flex: 0 0 108px;
    margin-left: auto;
  }

  .top-actions {
    max-width: min(54vw, 560px);
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .content,
  .workspace {
    padding: 18px 20px 28px;
  }
}

@media (max-width: 900px) {
  .topbar { padding: 0 16px; }
  .content,
  .workspace { padding: 16px; }
}
