/* Pilot Car Helper v43 - IRS-Ready Expense & Receipt Helper */
.pe-alert {
  background: #FEF3C7;
  border: 1.5px solid #D97706;
  color: #78350F;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.pe-alert.is-info {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0C4A6E;
}
.pe-photo-box {
  border: 2px dashed #94A3B8;
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}
.pe-photo-box.has-img { border-style: solid; border-color: #059669; background: #ECFDF5; }
.pe-thumb {
  max-width: 100%;
  max-height: 190px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  margin: 8px auto 4px;
  display: block;
}
.pe-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #0F172A;
}
.pe-badge.is-ok { background: #DCFCE7; color: #166534; }
.pe-badge.is-warn { background: #FEF3C7; color: #92400E; }
.pe-item {
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 0;
}
.pe-item:last-child { border-bottom: none; padding-bottom: 0; }
.pe-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.pe-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.pe-xs-btn {
  min-height: 32px !important;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #0B1528;
  font-size: 12px !important;
  font-weight: 800;
  cursor: pointer;
}
.pe-xs-btn.is-del { border-color: #FCA5A5; color: #B91C1C; background: #FEF2F2; }
#peReceiptModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 40, 0.85);
  z-index: 97000;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}
.pe-modal-card {
  background: #FFFFFF;
  color: #0F172A;
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 14px;
}
.pe-modal-card img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #CBD5E1; }
