.admin-body { background: #F6F7F9; min-height: 100vh; }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 20px;
  font-weight: 800;
  color: var(--crimson);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.admin-sidebar nav a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.admin-sidebar nav a.active { color: var(--crimson); background: #FBEAF0; border-right: 3px solid var(--crimson); }
.admin-sidebar nav a:hover { background: #F6F7F9; }

.admin-main { flex: 1; padding: 28px 32px; overflow-x: auto; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-header h1 { margin: 0; font-size: 22px; }

.admin-user { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; }
.admin-user button { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 6px 12px; cursor: pointer; font-size: 12.5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs button {
  background: none; border: none; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--crimson); border-bottom-color: var(--crimson); }

.toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.toolbar input {
  flex: 1; max-width: 460px;
  background-image: none;
  padding-left: 14px;
}
.toolbar select { border-radius: 6px; }

table.claims-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); }
table.claims-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-muted); font-weight: 600; padding: 13px 18px; border-bottom: 1px solid var(--border); background: #FAFBFC;
}
table.claims-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
table.claims-table tr:last-child td { border-bottom: none; }
table.claims-table tr.clickable { cursor: pointer; transition: background 0.1s; }
table.claims-table tr.clickable:hover { background: #FAFBFC; }

.rma-link { color: var(--crimson); font-weight: 700; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }

.panel { background: #fff; border-radius: 6px; padding: 20px 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); margin-bottom: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--text); }

.back-link { color: var(--crimson); font-weight: 600; font-size: 13.5px; text-decoration: none; display: inline-block; margin-bottom: 8px; }

.detail-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.detail-title-row h1 { margin: 0; font-size: 22px; }
.detail-date { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }

.status-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-icon-row .status-icon-circle {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.status-icon-row .status-icon-label { font-weight: 700; font-size: 15px; }

.status-icon-circle.under_review { background: #D97706; }
.status-icon-circle.approved { background: #0369A1; }
.status-icon-circle.in_progress { background: #0369A1; }
.status-icon-circle.resolved { background: #16A34A; }
.status-icon-circle.rejected { background: #DC2626; }
.status-icon-circle.canceled { background: #64748B; }

.section-label { font-size: 12px; color: var(--text-muted); text-transform: none; margin: 18px 0 4px; font-weight: 500; }
.section-label:first-of-type { margin-top: 0; }
.section-value { font-size: 14px; color: var(--text); white-space: pre-wrap; }

.photo-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.photo-thumbs img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s;
}
.photo-thumbs img:hover { opacity: 0.85; }

.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox-overlay img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 30px; font-weight: 300;
  background: none; border: none; cursor: pointer;
  line-height: 1;
}

.add-tags-link { color: var(--crimson); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }

.quick-actions-row { display: flex; justify-content: flex-end; gap: 14px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.btn-reject { background: none; border: none; color: var(--danger); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.btn-approve, .btn-dark { background: #111; color: #fff; border: none; padding: 9px 22px; border-radius: 5px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.btn-approve:hover, .btn-dark:hover { background: #000; }

.btn-outline { background: #fff; color: #111; border: 1px solid #111; padding: 8px 20px; border-radius: 5px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.btn-outline:hover { background: #F5F5F5; }

.status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.status-row select { max-width: 220px; }

.kv { font-size: 13.5px; margin-bottom: 8px; line-height: 1.5; }
.kv strong { display: block; color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }

.kv-plain { font-size: 13.5px; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.kv-plain a { color: var(--crimson); }

.timeline-item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .meta { color: var(--text-muted); font-size: 11.5px; margin-top: 3px; }

.comment-box { display: flex; gap: 8px; margin-top: 12px; }
.comment-box input { flex: 1; }

.empty-state { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 14px; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-card { background: #fff; padding: 36px; border-radius: 8px; width: 360px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.login-card h2 { margin-top: 0; color: var(--crimson); }
.login-card label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }

/* ---------- Login (matches customer wizard) ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image:
    linear-gradient(180deg, rgba(20,20,15,0.08), rgba(20,20,15,0.18)),
    url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #C9BBA2;
}
.login-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 40px 48px 44px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 400px;
}
.login-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--ink);
  text-align: center;
}
.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--ink-soft);
}
.login-card .btn-primary {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 18px;
}
.login-card .btn-primary:hover { background: #000; }
