.pending-dashboard-card {
  min-height: 0;
  margin-top: clamp(18px, 2.4vw, 34px);
}

.pending-dashboard-card[hidden] {
  display: none;
}

.pending-dashboard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 18px;
}

.pending-dashboard-summary > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--nav);
  background: var(--accent-pale);
  font-size: .78rem;
}

.pending-dashboard-summary strong {
  font-size: 1rem;
}

.pending-dashboard-summary .pending-overdue-summary {
  color: #9b2c23;
  background: #fae9e7;
}

.pending-dashboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pending-dashboard-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  background: #f8fafc;
}

.pending-dashboard-item > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pending-dashboard-item strong,
.pending-dashboard-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-dashboard-item strong {
  color: var(--nav);
  font-size: .9rem;
}

.pending-dashboard-item > div > span {
  color: var(--muted);
  font-size: .74rem;
}

.pending-dashboard-marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(202, 168, 100, .16);
}

.pending-dashboard-item-overdue .pending-dashboard-marker {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

.pending-dashboard-item-today .pending-dashboard-marker {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(179, 107, 20, .13);
}

.pending-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pending-module-head h2 {
  margin: 3px 0 6px;
  color: var(--nav);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -.035em;
}

.pending-module-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.pending-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.pending-summary-grid article {
  display: grid;
  gap: 7px;
  padding: 19px 21px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 27px rgba(16, 38, 64, .06);
}

.pending-summary-grid span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.pending-summary-grid strong {
  color: var(--nav);
  font-size: 2rem;
  line-height: 1;
}

.pending-summary-grid .pending-summary-overdue {
  border-color: #f0cfcb;
  background: #fff9f8;
}

.pending-summary-grid .pending-summary-overdue strong {
  color: var(--danger);
}

.pending-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.pending-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-top: 4px solid var(--accent);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 38, 64, .06);
}

.pending-section-overdue {
  border-top-color: var(--danger);
}

.pending-section-completed {
  border-top-color: var(--ok);
}

.pending-section-today {
  border-top-color: var(--warning);
}

.pending-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 21px 16px;
  border-bottom: 1px solid #edf0f4;
}

.pending-section h3 {
  margin: 3px 0 0;
  color: var(--nav);
  font-size: 1.2rem;
}

.pending-section > header > strong {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--nav);
  background: var(--accent-pale);
}

.pending-section-overdue > header > strong {
  color: #9b2c23;
  background: #fae9e7;
}

.pending-section-completed > header > strong {
  color: #116b40;
  background: #e7f5ed;
}

.pending-section-kicker {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.pending-list {
  display: grid;
  gap: 0;
}

.pending-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 21px;
  border-bottom: 1px solid #edf0f4;
}

.pending-card:last-child {
  border-bottom: 0;
}

.pending-card-main,
.pending-card-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.pending-card-side {
  justify-items: end;
  min-width: 150px;
}

.pending-card-title-line {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.pending-card h4 {
  min-width: 0;
  margin: 0;
  color: var(--nav);
  font-size: .98rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pending-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #596579;
  font-size: .82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pending-priority {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #4c5a6f;
  background: #edf1f5;
  font-size: .61rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pending-priority-importante {
  color: #80590d;
  background: #fff2cf;
}

.pending-priority-urgente {
  color: #9b2c23;
  background: #fae3e0;
}

.pending-contact,
.pending-due {
  color: var(--muted);
  font-size: .73rem;
}

.pending-contact a {
  color: var(--blue);
  text-decoration: none;
}

.pending-card-overdue .pending-due {
  color: var(--danger);
  font-weight: 800;
}

.pending-card-today .pending-due {
  color: var(--warning);
  font-weight: 800;
}

.pending-card-completed {
  background: #fbfdfc;
}

.pending-card-completed h4 {
  color: #435164;
}

.pending-card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.pending-complete-action {
  color: #0e6a3e;
  border-color: #b9dfca;
  background: #edf9f2;
}

.pending-empty {
  grid-column: 1 / -1;
  padding: 24px 20px;
  border-radius: 11px;
  color: var(--muted);
  background: #f8fafc;
  font-size: .84rem;
  text-align: center;
}

.pending-list > .pending-empty {
  margin: 14px;
}

.pending-modal {
  width: min(760px, calc(100vw - 32px));
}

.pending-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pending-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #566277;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pending-field-full {
  grid-column: 1 / -1;
}

.pending-field input,
.pending-field select,
.pending-field textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.pending-field textarea {
  min-height: 100px;
  resize: vertical;
}

.pending-field input:focus,
.pending-field select:focus,
.pending-field textarea:focus {
  outline: 3px solid rgba(202, 168, 100, .18);
  border-color: var(--accent);
}

.pending-status-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #556175;
  background: #f4f7fa;
  font-size: .79rem;
  line-height: 1.45;
}

.pending-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--warning);
}

@media (max-width: 1050px) {
  .pending-summary-grid,
  .pending-sections,
  .pending-dashboard-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pending-module-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pending-module-head .button {
    justify-content: center;
  }

  .pending-summary-grid,
  .pending-sections,
  .pending-dashboard-list,
  .pending-form-grid {
    grid-template-columns: 1fr;
  }

  .pending-field-full {
    grid-column: auto;
  }

  .pending-card {
    grid-template-columns: 1fr;
  }

  .pending-card-side {
    min-width: 0;
    justify-items: start;
  }

  .pending-card-actions {
    justify-content: flex-start;
  }
}
