/* ===============================
   SETTLEMENT PAGE STYLES
================================ */

/* Stats Cards */
.stats-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  text-align: center;
}
.stats-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stats-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.stats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ossi-navy);
}

/* Shop info */
.shop-name {
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  text-decoration: none;
}
.shop-name:hover {
  text-decoration: underline;
}
.shop-id {
  font-size: 0.75rem;
  color: var(--text-light);
}
.shop-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
  margin-right: 0.5rem;
}
.bank-details {
  font-size: 0.8rem;
  color: var(--gray-600);
}
.bank-details i {
  font-size: 0.7rem;
  width: 16px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-requested {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.status-approved {
  background-color: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}
.status-paid {
  background-color: rgba(34, 197, 94, 0.25);
  color: #0c6b2c;
}
.status-rejected {
  background-color: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}
.status-cancelled {
  background-color: rgba(107, 114, 128, 0.15);
  color: #4b5563;
}

.settlement-aging-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.settlement-aging-waiting {
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
}

.settlement-aging-late {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.settlement-aging-paid {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.settlement-aging-closed {
  background: rgba(107, 114, 128, 0.14);
  color: #4b5563;
}

.settlement-aging-detail {
  margin-top: 0.25rem;
  color: var(--text-light);
  font-size: 0.72rem;
  line-height: 1.3;
}

.settlement-aging-line {
  min-height: 32px;
}

/* Table */
.table th {
  background-color: var(--gray-100);
  font-weight: 600;
  color: var(--text-medium);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem;
}
.table td {
  padding: 0.75rem;
  vertical-align: middle;
  font-size: 0.875rem;
}
.table tbody tr:hover {
  background-color: rgba(67, 97, 238, 0.03);
}

/* Action buttons */
.btn-sm i {
  margin-right: 0.25rem;
}

/* Modal styles */
#detailModal .card-header {
  background-color: var(--gray-100);
  font-weight: 600;
  padding: 0.75rem 1rem;
}
#modalOrdersList tr:hover {
  background-color: rgba(67, 97, 238, 0.03);
}
#modalOrdersList .sticky-top {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--gray-100);
}

/* Responsive */
@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 1rem;
  }
  .table-responsive {
    font-size: 0.8rem;
  }
  .table th,
  .table td {
    white-space: nowrap;
  }
  .bank-details {
    font-size: 0.75rem;
  }
}
