/*
 * KOrder styles · public/css/13-sales-report.css
 * Sales report page and the payment-method pick modal.
 *
 * public/css/*.css used to be one public/styles.css. The files are cut from it in order
 * and index.html loads them in that same order, which is the CSS cascade order: do not
 * reorder the <link> tags, and add a rule to the file that owns its screen.
 * Map: public/css/README.md
 */
/* ---- Sales report ---- */
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 14px;
}

.report-presets {
  display: flex;
  flex-wrap: wrap;
}

.report-custom {
  display: flex;
  gap: 6px;
  align-items: center;
}

.report-custom .field {
  width: auto;
}

.report-exports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.report-card .report-list {
  align-content: start;
}

.report-card h4 {
  margin: 14px 0 6px;
}

.report-orders {
  margin-top: 14px;
}

.report-order-table {
  display: grid;
  gap: 4px;
}

.report-order-row {
  display: grid;
  grid-template-columns: 70px 130px minmax(90px, 1fr) 80px 70px 110px 150px 100px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.report-order-row strong {
  text-align: right;
}

.report-order-row.is-cancelled {
  opacity: 0.6;
}

.report-order-row.is-cancelled strong {
  text-decoration: line-through;
}

.payment-pick-modal {
  width: min(460px, 100%);
}

.payment-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-pick-grid .button {
  min-height: 56px;
  font-size: 17px;
}

@media (max-width: 900px) {
  .report-order-row {
    grid-template-columns: 1fr 1fr;
  }

  .report-exports {
    margin-left: 0;
  }
}
