/*
 * 1.4.100: My Dashboard.
 * The theme menu uses a 40px gap. A sixth label wraps inside the header at
 * 1280px. Between 901px and 1400px the gap is 20px and labels stay on one line.
 * At 1920px the theme's 40px gap is unchanged.
 * Rows sit in the article column: no extra horizontal padding on top of the
 * theme's .track-info padding (40px desktop, 20px at 900px and below).
 */

@media (min-width: 901px) and (max-width: 1400px) {
  header .menu ul,
  .menu ul#menu-header-menu,
  .menu ul.primary_menu,
  .menu ul {
    gap: 20px;
    flex-wrap: nowrap;
  }
  header .menu ul a,
  .menu ul a,
  .menu li a {
    white-space: nowrap;
  }
}

.et-dash {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #2C242C;
  font-size: 14px;
  line-height: 1.4;
}

.track-info .et-dash,
.et-dash {
  padding-left: 0;
  padding-right: 0;
}

.et-dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.et-dash-bar h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.et-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.et-dash button.et-dash-refresh,
.et-dash button.et-dash-delete,
.et-dash button.et-dash-sync,
.track-box button.et-dash-add,
.et-recent-drop button.et-dash-add {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 37px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  opacity: 1;
  white-space: nowrap;
}

.et-dash button.et-dash-refresh {
  background: #F87E04;
  color: #fff;
  border: 0;
}

.et-dash button.et-dash-delete,
.et-dash button.et-dash-sync {
  background: #fff;
  color: #2C242C;
  border: 1px solid #e0d6c8;
}

.et-dash button.et-dash-delete:disabled,
.et-dash button.et-dash-sync:disabled,
.et-dash button.et-dash-refresh:disabled {
  opacity: 0.45;
  cursor: default;
}

.et-dash button.et-dash-refresh:focus,
.et-dash button.et-dash-delete:focus,
.et-dash button.et-dash-sync:focus,
.et-dash-row:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.et-dash-note,
.et-dash-msg {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5c534c;
}

.et-dash-msg:empty {
  display: none;
}

.et-dash-msg.is-stop {
  color: #8a3b12;
  font-weight: 600;
}

.main-content .et-dash ul.et-dash-list,
.track-info .et-dash ul.et-dash-list,
.et-dash ul.et-dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.et-dash-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 220px 140px;
  grid-template-areas:
    "check nick courier status"
    "check num when status"
    "check event . status";
  column-gap: 20px;
  row-gap: 2px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eee4d8;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

.et-dash-row:hover {
  background: #fffaf4;
}

.et-dash-check {
  grid-area: check;
  width: 18px;
  height: 18px;
  margin: 0;
  justify-self: start;
  accent-color: #F87E04;
  cursor: pointer;
}

.et-dash input.et-dash-nick {
  grid-area: nick;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 1px;
  border: 0;
  border-bottom: 1px dashed #e0d6c8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2C242C;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 1;
}

.et-dash input.et-dash-nick::placeholder {
  color: #8a817c;
  font-weight: 500;
}

.et-dash-num {
  grid-area: num;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.et-dash-courier {
  grid-area: courier;
  color: #5c534c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.et-dash-status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 600;
  text-align: left;
}

.et-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: #8a817c;
}

.et-dash-dot.is-ok { background: #1F8A4C; }
.et-dash-dot.is-go { background: #F87E04; }
.et-dash-dot.is-bad { background: #C0392B; }
.et-dash-dot.is-idle { background: #8a817c; }

.et-dash-when {
  grid-area: when;
  color: #5c534c;
  font-size: 13px;
}

.et-dash-event {
  grid-area: event;
  color: #5c534c;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.et-dash-empty {
  margin: 12px 0 0;
  color: #5c534c;
}

.track-box button.et-dash-add,
button.et-dash-add {
  background: #fff;
  color: #c45f00;
  border: 1px solid #f3d9bf;
  margin-top: 8px;
}

.et-recent-drop button.et-dash-add {
  flex: none;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
  background: transparent;
  color: #c45f00;
  border: 0;
  text-decoration: underline;
}

.et-dash-sync-panel {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 4px 0 8px;
  box-sizing: border-box;
  color: #2C242C;
}

.et-dash-sync-panel h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.et-dash-sync-blurb {
  margin: 0 0 14px;
  max-width: 40em;
  color: #2C242C;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.et-dash-qr {
  display: inline-block;
  background: #fff;
  line-height: 0;
}

.et-dash-qr svg {
  display: block;
}

.et-dash-sync-code {
  margin: 12px 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #2C242C;
}

.et-dash-sync-exp {
  margin: 0 0 12px;
  color: #5c534c;
  font-size: 13px;
}

.et-dash-sync-panel button.et-dash-sync-cancel {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 37px;
  border: 1px solid #e0d6c8;
  background: #fff;
  color: #2C242C;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.et-dash-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #2C242C;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  z-index: 50;
}

@media (max-width: 700px) {
  .et-dash-bar h2 {
    font-size: 22px;
  }
  .et-dash-row {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "check nick"
      "check num"
      "check courier"
      "check status"
      "check when"
      "check event";
  }
  .et-dash-status {
    justify-content: flex-start;
    text-align: left;
  }
  .et-dash-event,
  .et-dash-num,
  .et-dash-courier {
    white-space: normal;
  }
}
