/* SVS admin: same colours and fonts as the website (assets/style.css), calmer and denser for daily work. */
.admin-body { --tint: var(--mist); --violet: var(--teal); --violet-deep: var(--navy); --violet-soft: var(--teal-soft);
  --ink-2: var(--slate); --muted: var(--slate); --display: var(--serif); --text: var(--sans); --blue: #1E5F9E; --green: #1C7A4C; }
.admin-body { background: var(--tint); font-size: 1rem; }
.admin-top { position: sticky; top: 0; z-index: 10; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(24px, calc((100% - 1360px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.admin-top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.admin-top .brand img { width: 150px; }
.admin-badge { font-size: .8rem; font-weight: 600; color: var(--violet-deep); background: var(--violet-soft); padding: 3px 10px; border-radius: 999px; }
.admin-top > div { display: flex; gap: 8px; }
.admin-top > div a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.admin-top > div a:hover { background: var(--tint); color: var(--ink); }
.admin-shell { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.admin-side { padding: 24px 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); background: #fff; }
.side-label { font-size: .82rem; font-weight: 600; color: var(--muted); padding: 18px 12px 6px; }
.side-label:first-child { padding-top: 4px; }
.admin-side a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.admin-side a:hover { background: var(--tint); color: var(--ink); }
.admin-side a[aria-current="page"] { background: var(--violet-soft); color: var(--violet-deep); font-weight: 600; box-shadow: inset 3px 0 0 var(--violet); }
.admin-main { padding: 32px clamp(18px, 3vw, 40px) 48px; min-width: 0; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-title h1 { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); }
.admin-user { font-size: .9rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card, .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.stat-card span { display: block; color: var(--muted); font-weight: 500; font-size: .92rem; }
.stat-card strong { display: block; font: 600 2.2rem/1.1 var(--display); color: var(--navy); margin-top: 8px; }
.stat-card:nth-child(1) { border-top: 4px solid var(--violet); } .stat-card:nth-child(2) { border-top: 4px solid var(--red); }
.stat-card:nth-child(3) { border-top: 4px solid var(--blue); } .stat-card:nth-child(4) { border-top: 4px solid var(--green); }
.admin-panel { margin-bottom: 20px; }
.admin-panel h2 { font-size: 1.3rem; margin-bottom: 16px; }
.admin-table-wrap { overflow-x: auto; margin: 0 -8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--tint); vertical-align: top; }
.admin-table tr:hover td { background: #FAFBFC; }
.admin-table a { font-weight: 600; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-deep); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.admin-form input, .admin-form textarea, .admin-form select, .search-row input, .search-row select {
  min-height: 46px; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r); font: 400 1rem var(--text); color: var(--ink); background: #fff; }
.admin-form textarea { min-height: 120px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .search-row input:focus, .search-row select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.admin-form .btn { justify-self: start; }
.admin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; font-weight: 500; border-left: 4px solid; }
.admin-alert.success { background: #E7F5EE; color: #1E6B47; border-color: var(--green); }
.admin-alert.error { background: #FCEBEA; color: #8E2A22; border-color: var(--red); }
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.pagination a, .pagination span { padding: 8px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.pagination .current { border-color: var(--ink); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; }
.login-card .brand { display: inline-block; margin-bottom: 28px; }
.login-card .brand img { width: 180px; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.login-card .admin-form { margin-top: 22px; }
.login-card .btn { width: 100%; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.detail-item small { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; margin-bottom: 2px; }
.detail-item b { font-weight: 600; word-break: break-word; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search-row input { flex: 1 1 240px; }
.empty-state { padding: 32px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r); }
/* names used by the older admin pages */
.btn-gold, .btn-dark { background: var(--violet); color: #fff; } .btn-gold:hover, .btn-dark:hover { background: var(--violet-deep); color: #fff; }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: #fff; } .btn-outline-dark:hover { border-color: var(--ink); }
.text-link { font-weight: 600; color: var(--violet-deep); }
.form-help { font-size: .92rem; color: var(--muted); margin-top: 16px; }
.check-list { margin: 0; padding-left: 20px; }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .side-label { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .detail-grid { grid-template-columns: 1fr; } .admin-top .brand img { width: 120px; } .admin-top > div a { padding: 8px; } }
