* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  color: #222;
  background: #f7f7f7;
}
h1 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: #666; margin-top: 0; margin-bottom: 24px; }
.card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
label { display: block; font-weight: 600; margin-bottom: 4px; margin-top: 12px; }
input, textarea, select {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}
button {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #333;
  color: #fff;
}
button:hover { opacity: 0.85; }
button.secondary { background: #fff; color: #333; }
button.approve { background: #2e7d32; border-color: #2e7d32; }
button.reject { background: #c62828; border-color: #c62828; }
button.revoke { background: #c62828; border-color: #c62828; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  position: relative;
  background: #fff;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 7px 16px;
}
.tab.active { background: #8e5fa8; color: #fff; border-color: #8e5fa8; }
.error { color: #c62828; font-size: 13px; margin-top: 8px; }
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #f7f5f8; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
tr:hover { background: #faf8fb; cursor: pointer; }
.empty { color: #888; padding: 24px; text-align: center; }
.detail-row { margin-bottom: 10px; }
.detail-label { font-weight: 600; color: #555; font-size: 13px; }
.detail-value { font-size: 15px; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; display: block; }
.section-title { font-size: 16px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; border-top: 1px solid #eee; padding-top: 16px; }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-revoked { background: #f8d7da; color: #721c24; }
.status-appeal_pending { background: #fff3cd; color: #856404; }
.status-closed { background: #333; color: #fff; }
.status-active { background: #d4edda; color: #155724; }
.status-expired { background: #f8d7da; color: #721c24; }
.status-no_package { background: #eee; color: #666; }
.status-superseded { background: #eee; color: #888; }
.status-payment_expired { background: #ffe4c4; color: #8a4b08; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
a.back-link { color: #333; text-decoration: none; font-size: 14px; }
.text-block {
  white-space: pre-wrap;
  background: #faf9f6;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
}

/* Individual "new" marker inside a list row — see admin-notifications.js */
.notif-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E53935;
  margin-right: 7px;
  vertical-align: middle;
}
