.today-page {
  max-width: 1540px;
  margin: auto;
}
.today-page .heading {
  align-items: center;
}
.today-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.today-card {
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  color: inherit;
  min-width: 0;
  font-weight: 400;
}
.today-card > span:first-child,
.today-context-card > span {
  font-weight: 650;
}
.today-card small,
.today-context-card small {
  font-size: 12px;
  color: #697260;
  font-weight: 400;
}
.today-card > span:first-child small,
.today-context-card > span small {
  float: right;
  margin-left: 12px;
}
.today-card .today-value {
  font-size: 36px;
  line-height: 1.1;
}
.today-counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.today-count strong {
  font-size: 14px;
}
.today-count.overdue,
.today-late {
  color: #a23832;
}
.today-count.today {
  color: #8c610c;
}
.today-count.next {
  color: #3b6199;
}
.today-card.selected,
.today-context-card.selected {
  border-color: #6f923e;
  box-shadow: 0 0 0 1px #6f923e;
}
.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
.today-actions {
  overflow: hidden;
  min-width: 0;
}
.today-actions > header {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.today-actions h2 {
  font-size: 18px;
}
.today-total {
  font-size: 13px;
  background: #eef2e7;
  border-radius: 20px;
  padding: 3px 9px;
  margin-left: 6px;
}
.today-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid #e0e4da;
}
.today-filters button {
  font-size: 12px;
  padding: 7px 10px;
}
.today-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 19px 20px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e4e8de;
  border-radius: 0;
  text-align: left;
  color: inherit;
  font-weight: 400;
  background: #fff;
}
.today-item:hover {
  background: #f7f9f3;
}
.today-item-marker {
  width: 7px;
  height: 36px;
  border-radius: 4px;
  background: #799d4b;
  flex-shrink: 0;
}
.today-item-marker.overdue {
  background: #c26a5f;
}
.today-item-marker.today {
  background: #d6ab4d;
}
.today-item-marker.next {
  background: #7c9ac5;
}
.today-item-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.today-item-copy > span,
.today-item-copy small {
  font-size: 12px;
  color: #697260;
  overflow-wrap: anywhere;
}
.today-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: end;
  font-size: 12px;
  flex-shrink: 0;
}
.today-item-meta small {
  font-size: 11px;
  color: #567c2a;
}
.today-more {
  padding: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.today-empty {
  padding: 28px 20px;
  color: #697260;
}
.today-goal {
  position: sticky;
  top: 52px;
  min-width: 0;
}
.today-goal .billing-goal {
  margin: 0;
  padding: 20px;
}
.today-goal .billing-goal header {
  flex-wrap: wrap;
  gap: 12px;
}
.today-goal .billing-goal h2 {
  font-size: 17px;
}
.today-goal .billing-goal-target {
  text-align: left;
  font-size: 12px;
  line-height: 1.3;
}
.today-goal .billing-goal-target strong {
  font-size: 18px;
}
.today-goal .billing-goal-legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
}
.today-goal .billing-goal-legend > div {
  gap: 7px;
}
.today-goal .billing-goal-legend strong {
  margin-top: 2px;
}
.today-goal .billing-goal-swatch {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  margin-top: 3px;
}
.today-goal .billing-goal-position {
  margin-bottom: 14px;
}
.today-goal .billing-goal-summary {
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.35;
}
.today-goal .billing-goal-summary > div > strong {
  margin: 3px 0;
}
.today-goal .billing-goal-summary strong {
  font-size: 13px;
}
.today-goal .billing-goal-segment {
  font-size: 11px;
}
.today-goal .billing-goal-track {
  height: 38px;
}
.today-context-title {
  font-size: 18px;
  margin: 26px 0 14px;
}
.today-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.today-context-card {
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}
.today-context-card > strong {
  font-size: 27px;
}
.today-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.today-updated {
  margin-top: 20px;
}
.today-actions > .help {
  padding: 0 20px;
}
.today-page [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .today-layout {
    grid-template-columns: 1fr;
  }
  .today-goal {
    position: static;
  }
  .today-goal .billing-goal-summary {
    grid-template-columns: 1fr 1fr;
  }
  .today-cards {
    gap: 12px;
  }
  .today-counts {
    gap: 6px;
  }
}
@media (max-width: 650px) {
  .today-cards {
    grid-template-columns: 1fr;
  }
  .today-card {
    padding: 16px;
  }
  .today-card .today-value {
    font-size: 30px;
  }
  .today-page .heading {
    align-items: start;
    gap: 12px;
  }
  .today-actions > header {
    flex-direction: column;
  }
  .today-item {
    padding: 16px 12px;
    gap: 8px;
  }
  .today-item-meta {
    max-width: 105px;
  }
  .today-preferences {
    grid-template-columns: 1fr;
  }
  .today-goal .billing-goal-summary {
    grid-template-columns: 1fr;
  }
  .today-context {
    grid-template-columns: 1fr 1fr;
  }
  .today-context-card {
    padding: 12px;
  }
}
@media (max-width: 650px) {
  .today-page .heading {
    flex-direction: column;
    align-items: stretch;
  }
  .today-page .heading .actions {
    justify-content: flex-start;
  }
}

.today-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.today-context .today-value {
  font-size: 28px;
}
.today-card-empty {
  background: #f8f9f6;
  border-color: #e2e6dc;
}
.today-card-empty .today-value {
  color: #737c6a;
}
.today-order-table th:first-child,
.today-order-table td:first-child {
  width: 65px;
  text-align: center;
}
.today-order-table td:last-child {
  width: 95px;
}
.today-order-table .check {
  margin: 0;
}
.today-order-table .smallbutton {
  min-width: 30px;
  padding: 5px 9px;
}
.today-order-table {
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .today-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .today-cards {
    grid-template-columns: 1fr;
  }
  .today-order-table td,
  .today-order-table th {
    padding: 9px 6px;
  }
}

/* Cantidad e importe en una fila, sin una línea adicional de altura. */
.today-card{padding:16px;gap:8px;}
.today-card-metrics{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.today-card .today-amount{font-size:14px;font-weight:600;color:#353b30;margin-left:auto;text-align:right;}
