/* hoy.css - Dashboard styles */

#view-hoy {
  padding: 0 24px;
}

.hoy-header {
  font-size: 22px;
  font-weight: 700;
  padding: 20px 0 16px;
}

/* Payment breakdown bar */
.payment-bar-container {
  margin-bottom: 20px;
}

.payment-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 10px;
}

.payment-bar-segment {
  transition: width 0.3s ease;
  min-width: 2px;
}

.payment-bar-segment:first-child {
  border-radius: 6px 0 0 6px;
}

.payment-bar-segment:last-child {
  border-radius: 0 6px 6px 0;
}

.payment-bar-segment:only-child {
  border-radius: 6px;
}

.payment-bar-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted-dark);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Rug status summary */
.rug-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.rug-summary-item {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
}

.rug-summary-item.pending {
  border-left-color: var(--orange);
}

.rug-summary-item.done {
  border-left-color: var(--green);
}

.rug-summary-item.picked {
  border-left-color: var(--gray);
}

.rug-summary-count {
  font-size: 28px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}

.rug-summary-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted-dark);
}

@media (min-width: 1024px) {
  #view-hoy {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Locked day badge */
.hoy-locked-badge {
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  margin-left: 10px;
  vertical-align: middle;
  color: var(--text-muted-dark);
}

/* Anomaly alerts */
.hoy-alerts {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.alert-item {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 180px;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Sale card status variants */
.tx-card-voided {
  opacity: 0.55;
}

.tx-card-refunded {
  border-left: 3px solid #3b82f6;
}

/* Status badges inline with description */
.tx-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}

.badge-voided {
  background: #fecaca;
  color: #991b1b;
}

.badge-refunded {
  background: #dbeafe;
  color: #1e40af;
}

/* Amount line-through for voided */
.tx-amount-voided {
  text-decoration: line-through;
  color: var(--text-muted-dark);
}

.tx-amount-refunded {
  color: var(--text-muted-dark);
}

.tx-refund-note {
  font-size: 12px;
  color: #3b82f6;
  font-weight: 600;
}

/* Action buttons container */
.tx-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.tx-action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s;
  color: var(--text-secondary);
}

.tx-action-btn:hover {
  background: var(--bg-hover);
}

.tx-void-btn:hover {
  background: #fecaca;
  color: #991b1b;
  border-color: #fca5a5;
}

.tx-refund-btn:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

@media (max-width: 480px) {
  #view-hoy { padding: 0 16px; }
  .rug-summary { gap: 8px; }
  .rug-summary-count { font-size: 22px; }
  .hoy-alerts { flex-direction: column; }
  .alert-item { min-width: auto; }
}
