/* 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;
}

.home-ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.home-ops-metrics > button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  min-height: 88px;
  padding: 13px 15px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.home-ops-metrics > button:hover { border-color: #9fc2ef; background: #f8fbff; }
.home-ops-metrics span { color: #667386; font-size: 12px; font-weight: 700; }
.home-ops-metrics strong { color: #1e2a39; font-size: 24px; line-height: 1; }
.home-ops-metrics small { grid-column: 1 / -1; overflow: hidden; color: #929baa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.home-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 14px; }
.home-action-list,.home-smart-settings { overflow: hidden; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; }
.home-action-list > header,.home-smart-settings > header { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid #e8edf3; }
.home-action-list h4,.home-smart-settings h4 { margin: 0; font-size: 14px; }
.home-action-list header small,.home-smart-settings header small { display: block; margin-top: 3px; color: #929baa; font-size: 11px; }
.home-action-list header button,.home-smart-settings header button { min-height: 32px; margin-left: auto; padding: 0 10px; border: 1px solid #d9e2ee; border-radius: 7px; background: #fff; color: #2867d5; font-size: 12px; font-weight: 700; }
.home-order-row { display: grid; grid-template-columns: minmax(0,1fr) 120px 90px; align-items: center; gap: 10px; width: 100%; min-height: 55px; padding: 7px 14px; border: 0; border-bottom: 1px solid #eef1f5; background: #fff; text-align: left; cursor: pointer; }
.home-order-row:hover { background: #f8fbff; }
.home-order-row:last-child { border-bottom: 0; }
.home-order-row span { min-width: 0; }
.home-order-row span b,.home-order-row span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-order-row span b { color: #2867d5; font-size: 12px; }
.home-order-row span small { margin-top: 3px; color: #7e8998; font-size: 11px; }
.home-order-row em { justify-self: start; font-style: normal; font-size: 11px; }
.home-order-row > strong { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.home-empty { padding: 28px 14px; color: #8c96a4; text-align: center; }
.home-smart-settings > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 51px; padding: 8px 14px; border-bottom: 1px solid #eef1f5; font-size: 12px; }
.home-smart-settings > div:last-child { border-bottom: 0; }
.home-smart-settings > div span { color: #6e7989; }
.home-smart-settings > div b { max-width: 55%; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.home-smart-settings > div b.is-on { color: #168b59; }

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

  .home-ops-metrics { grid-template-columns: 1fr 1fr; }
  .home-dashboard-grid { grid-template-columns: 1fr; }
  .home-order-row { grid-template-columns: minmax(0,1fr) 105px; }
  .home-order-row > strong { display: none; }
}

.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; }
}

/* Staff manager */
dialog.user-manager { max-width: min(720px, calc(100vw - 32px)); width: 100%; }
.user-manager-body { max-height: min(60vh, 520px); overflow-y: auto; overflow-x: hidden; margin: 6px 0 14px; padding-right: 2px; }
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid rgba(128, 128, 128, 0.18); border-radius: 14px; background: rgba(128, 128, 128, 0.04); }
.user-card .user-id { flex: 1 1 190px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #3b6df1; color: #fff; }
.user-id-text { min-width: 0; }
.user-id-text b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-id-text small { opacity: 0.6; }
.user-card .um-field { display: flex; flex-direction: column; gap: 4px; }
.user-card .um-field > span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.55; }
.user-card .um-role { padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(128, 128, 128, 0.3); background: transparent; color: inherit; }
.user-card .um-actions { display: flex; gap: 8px; margin-left: auto; }
.user-card .um-actions .mini { padding: 7px 13px; border-radius: 9px; cursor: pointer; border: 1px solid rgba(128, 128, 128, 0.3); background: transparent; color: inherit; font-size: 13px; }
.user-card .um-actions .mini.danger { color: #d13b3b; border-color: rgba(209, 59, 59, 0.4); }
#manageUsers { display: block; width: 100%; text-align: left; }
@media (max-width: 560px) {
  .user-card { gap: 10px; }
  .user-card .um-actions { margin-left: 0; width: 100%; }
  .user-card .um-actions .mini { flex: 1; }
}

/* Orders: keep the decision controls compact and make every table value readable. */
#ordersView .status-tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(94px, 1fr));
  gap: 6px;
  margin: 0 -2px 10px;
  padding: 2px 2px 3px;
  scrollbar-color: #cfd8e5 transparent;
  scrollbar-width: thin;
}

#ordersView .status-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  line-height: 1.15;
}

#ordersView .status-tabs button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

#ordersView .order-range-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 10px;
  margin: 0 0 12px;
}

#ordersView .order-range-summary article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 11px 14px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
}

#ordersView .order-range-summary span { color: #667386; font-size: 12px; font-weight: 700; }
#ordersView .order-range-summary strong { color: #1d2735; font-size: 18px; }
#ordersView .order-range-summary small { grid-column: 1 / -1; color: #929baa; font-size: 11px; }

#ordersView .status-tabs button b {
  flex: 0 0 auto;
  min-width: 22px;
  height: 19px;
  margin: 0 0 0 5px;
  font-size: 11px;
}

#ordersView .search-row {
  gap: 12px;
  margin-bottom: 10px;
}

#ordersView .search-row input {
  width: min(365px, 100%);
}

#ordersView .total {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
  color: #384250;
  font-size: 14px;
}

#ordersView .total small {
  color: #8792a2;
  font-size: 12px;
}

#ordersView .filters {
  gap: 7px;
  margin: 0 0 14px;
}

#ordersView .filters .order-filter {
  padding-inline: 12px;
  font-weight: 600;
}

#ordersView .order-selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: -4px 0 10px;
  padding: 8px 12px;
  border: 1px solid #b9d1f4;
  border-radius: 9px;
  background: #eef6ff;
  color: #294f83;
  font-size: 13px;
}

#ordersView .order-selection-bar[hidden] { display: none; }
#ordersView .order-selection-bar span { color: #6680a4; }
#ordersView .order-selection-bar button { min-height: 34px; margin-left: auto; padding: 0 12px; border: 1px solid #a9c5eb; border-radius: 7px; background: #fff; color: #245fae; font-weight: 700; }

#ordersView .table-wrap {
  min-height: 0;
  max-height: calc(100dvh - 270px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c4cfde transparent;
  scrollbar-width: thin;
}

#ordersView .table-wrap table {
  width: 100%;
  min-width: 1780px;
  table-layout: fixed;
}

#ordersView .table-wrap th,
#ordersView .table-wrap td {
  overflow: hidden;
  padding-inline: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ordersView .table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 50px;
  color: #637287;
  font-size: 12px;
  letter-spacing: .01em;
}

#ordersView .table-wrap td {
  height: 58px;
  color: #25303d;
  font-size: 13px;
}

#ordersView .table-wrap th:nth-child(1),
#ordersView .table-wrap td:nth-child(1) { width: 46px; text-align: center; }
#ordersView .table-wrap th:nth-child(2),
#ordersView .table-wrap td:nth-child(2) { width: 54px; text-align: center; }
#ordersView .table-wrap th:nth-child(3),
#ordersView .table-wrap td:nth-child(3) { width: 70px; text-align: center; }
#ordersView .table-wrap th:nth-child(4),
#ordersView .table-wrap td:nth-child(4) { width: 130px; }
#ordersView .table-wrap th:nth-child(5),
#ordersView .table-wrap td:nth-child(5) { width: 126px; }
#ordersView .table-wrap th:nth-child(6),
#ordersView .table-wrap td:nth-child(6) { width: 128px; }
#ordersView .table-wrap th:nth-child(7),
#ordersView .table-wrap td:nth-child(7) { width: 128px; }
#ordersView .table-wrap th:nth-child(8),
#ordersView .table-wrap td:nth-child(8) { width: 118px; }
#ordersView .table-wrap th:nth-child(9),
#ordersView .table-wrap td:nth-child(9) { width: 176px; }
#ordersView .table-wrap th:nth-child(10),
#ordersView .table-wrap td:nth-child(10) { width: 128px; }
#ordersView .table-wrap th:nth-child(11),
#ordersView .table-wrap td:nth-child(11) { width: 102px; }
#ordersView .table-wrap th:nth-child(12),
#ordersView .table-wrap td:nth-child(12) { width: 110px; }
#ordersView .table-wrap th:nth-child(13),
#ordersView .table-wrap td:nth-child(13) { width: 102px; text-align: center; }
#ordersView .table-wrap th:nth-child(14),
#ordersView .table-wrap td:nth-child(14) { width: 144px; }
#ordersView .table-wrap th:nth-child(15),
#ordersView .table-wrap td:nth-child(15) { width: 78px; text-align: center; }

#ordersView .order-product-thumb {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

#ordersView .order-product-thumb img,
#ordersView .order-product-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

#ordersView .order-product-thumb img { display: block; border: 1px solid #e2e7ee; object-fit: cover; }
#ordersView .order-product-placeholder { display: grid; place-items: center; background: #eef3fb; color: #56709b; font-weight: 800; }
#ordersView .order-product-placeholder[hidden] { display: none; }
#ordersView .order-product-thumb small { position: absolute; right: -5px; bottom: -4px; min-width: 19px; padding: 2px 4px; border: 2px solid #fff; border-radius: 10px; background: #2d405d; color: #fff; font-size: 9px; }

#ordersView .order-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 4px 0; color: #758194; font-size: 12px; }
#ordersView .order-pagination div { display: flex; align-items: center; gap: 8px; }
#ordersView .order-pagination button { height: 32px; padding: 0 10px; border: 1px solid #dbe2eb; border-radius: 7px; background: #fff; color: #445267; }
#ordersView .order-pagination button:disabled { opacity: .45; cursor: default; }

#ordersView .order-check {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin: -10px;
  place-items: center;
  cursor: pointer;
}

#ordersView .order-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

#ordersView .order-check span {
  display: grid;
  width: 23px;
  height: 23px;
  border: 2px solid #aab5c4;
  border-radius: 6px;
  background: #fff;
  place-items: center;
  transition: .15s ease;
}

#ordersView .order-check input:checked + span,
#ordersView .order-check input:indeterminate + span {
  border-color: #1f9d65;
  background: #1f9d65;
  box-shadow: 0 0 0 3px rgba(31,157,101,.13);
}

#ordersView .order-check input:checked + span::after { content: '✓'; color: #fff; font-size: 16px; font-weight: 900; line-height: 1; }
#ordersView .order-check input:indeterminate + span::after { content: '−'; color: #fff; font-size: 18px; font-weight: 900; line-height: 1; }
#ordersView .order-check input:focus-visible + span { outline: 3px solid rgba(36,106,213,.25); outline-offset: 2px; }
#ordersView .order-check input:disabled + span { opacity: .45; cursor: not-allowed; }
#ordersView tr.order-row-selected td { background: #f1f8ff; }

/* Portal-wide control baseline: readable fields and dependable touch targets. */
button, input, select, textarea { font: inherit; }
button:not(.link-order):not(.square):not(.rail-action):not(.icon-button):not(.profile-trigger):not(.brand-home) { min-height: 38px; }
input:not([type="checkbox"]):not([type="radio"]), select { min-height: 40px; }
.config-table-wrap input[type="checkbox"]:not(.toggle input), .tracking-table input[type="checkbox"] { width: 22px; height: 22px; accent-color: #1f9d65; cursor: pointer; }

#ordersView .link-order {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  color: #2374df;
  font: 700 13px inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ordersView .order-status {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  #ordersView .status-tabs { display: flex; margin-bottom: 10px; overflow-x: auto; }
  #ordersView .status-tabs button { flex: 0 0 145px; }

  #ordersView .search-row .total {
    margin-left: 0;
  }

  #ordersView .table-wrap {
    max-height: calc(100dvh - 330px);
  }
}

@media (max-width: 560px) {
  #ordersView .status-tabs button {
    flex-basis: 106px;
    min-height: 52px;
    font-size: 12px;
  }

  #ordersView .total small {
    display: none;
  }

  #ordersView .order-range-summary { grid-template-columns: 1fr 1fr; }
  #ordersView .order-range-summary article { padding: 9px 10px; }
  #ordersView .order-pagination { align-items: flex-start; flex-direction: column; }

  #ordersView .table-wrap {
    max-height: calc(100dvh - 342px);
  }
}

/* Device-login approval */
.login-requests-area:empty { display: none; }
.login-req-box { border: 1px solid rgba(230, 160, 30, 0.5); background: rgba(230, 160, 30, 0.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.login-req-box h4 { margin: 0 0 8px; font-size: 13px; color: #b8791a; }
.login-req { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid rgba(230, 160, 30, 0.2); }
.login-req:first-of-type { border-top: 0; }

/* Full report suite */
.report-intro { margin:0 0 16px; color:#687181; }
.report-links { display:grid; grid-template-columns:repeat(3,minmax(180px,1fr)); gap:14px; }
.report-links button { min-height:110px; padding:18px; text-align:left; border:1px solid #e3e8ef; border-radius:12px; background:#fff; }
.report-links b,.report-links span { display:block; }
.report-links b { font-size:16px; margin-bottom:8px; }
.report-links span,.report-metric span { color:#8a909c; font-size:12px; }
.report-actionbar { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.report-actionbar button,.report-actionbar select { height:38px; max-width:100%; border:1px solid #e1e6ed; background:#fff; border-radius:8px; padding:0 12px; white-space:nowrap; }
.report-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:4px 0 20px; }
.report-metric { padding:15px 16px; border:1px solid #e3e8ef; border-radius:10px; background:#fff; min-height:86px; }
.report-metric small,.report-metric strong,.report-metric span { display:block; }
.report-metric small { color:#697180; margin-bottom:8px; }
.report-metric strong { font-size:20px; }
.report-tools { display:flex; align-items:center; gap:9px; margin:0 0 14px; flex-wrap:wrap; }
.report-tools input,.report-tools select { height:39px; border:1px solid #dfe5ed; border-radius:8px; padding:0 11px; min-width:180px; }
.report-tools input { flex:1 1 280px; max-width:360px; }
.report-tools span { margin-left:auto; color:#707784; }
.segmented { display:flex; gap:0; border:1px solid #dfe5ed; border-radius:8px; overflow:hidden; }
.segmented button { border:0; border-right:1px solid #dfe5ed; border-radius:0; }
.segmented button:last-child { border-right:0; }
.segmented .selected { background:#2767d7; color:#fff; }
.report-tabs { width:max-content; margin-bottom:14px; }
.report-table-wrap { width:100%; max-width:100%; border:1px solid #e1e6ed; border-radius:10px; overflow:auto; background:#fff; }
.report-table { width:max-content; min-width:100%; border-collapse:collapse; table-layout:auto; }
.report-table th,.report-table td { min-width:110px; padding:12px 14px; border-right:1px solid #edf0f4; border-bottom:1px solid #edf0f4; text-align:left; white-space:nowrap; overflow:visible; }
.report-table th:first-child,.report-table td:first-child { width:auto; min-width:140px; text-align:left; }
.report-table th:nth-child(2),.report-table td:nth-child(2){width:auto;min-width:130px}
.report-table th:nth-child(3),.report-table td:nth-child(3){width:auto;min-width:140px}
.report-table th:last-child,.report-table td:last-child { border-right:0; }
.report-table.report-cols-3 { width:100%; table-layout:auto; }
.report-table.report-cols-3 th,.report-table.report-cols-3 td { width:33.333%; min-width:180px; }
.report-table.report-cols-7 th,.report-table.report-cols-7 td,
.report-table.report-cols-8 th,.report-table.report-cols-8 td { min-width:130px; }
.report-table th { background:#f7f9fc; color:#667080; font-size:12px; text-transform:uppercase; }
.report-table .profit { color:#118a55; font-weight:700; }
.order-payment-summary{margin:0 0 16px;padding:14px;border:1px solid #dfe7f3;border-radius:10px;background:#f7faff}.order-payment-summary h4{margin:0 0 10px;font-size:15px}.order-payment-summary>div{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px}.order-payment-summary span{display:flex;flex-direction:column;gap:3px;color:#697386;font-size:12px}.order-payment-summary b{color:#172033;font-size:14px}.order-payment-summary small{display:block;margin-top:10px;color:#7b8494}@media(max-width:720px){.order-payment-summary>div{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media(max-width:1050px){.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.report-links{grid-template-columns:1fr}.report-metrics{grid-template-columns:repeat(2,1fr)}.report-tools span{margin-left:0;width:100%}.report-actionbar{justify-content:flex-start}.report-actionbar button,.report-actionbar select{flex:1 1 160px}}
@media(max-width:520px){.report-metrics{grid-template-columns:1fr}.report-actionbar button,.report-actionbar select{width:100%;flex-basis:100%}.report-tools input,.report-tools select{width:100%;min-width:0}.segmented{width:100%;overflow-x:auto}.segmented button{flex:1 0 auto}}
.login-req-info { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.login-req-info small { opacity: 0.65; }
.login-req-info .req-device { font-size: 11px; opacity: 0.8; }
.login-req .req-actions { display: flex; gap: 8px; margin-left: auto; }
.login-req .req-actions .mini { padding: 6px 12px; border-radius: 9px; cursor: pointer; border: 1px solid rgba(128, 128, 128, 0.3); background: transparent; color: inherit; font-size: 13px; }
.login-req .req-actions .mini.primary { background: #3b6df1; color: #fff; border-color: #3b6df1; }
.login-req .req-actions .mini.danger { color: #d13b3b; border-color: rgba(209, 59, 59, 0.4); }
.pending-spinner { opacity: 0.75; margin-top: 6px; }
#pendingOverlay #pendingCancel { margin-top: 10px; }

/* Gán shop cho nhân viên (phân quyền xem PII theo shop) */
.um-shop-field { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.um-shop-title { font-weight: 600; font-size: 0.85rem; }
.um-field-shops { align-items: flex-start; }
.um-shop-list { display: flex; flex-wrap: wrap; gap: 6px 12px; max-height: 140px; overflow-y: auto; padding: 2px 0; }
.um-shop { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; white-space: nowrap; }
.um-shop input { width: auto; margin: 0; }
