/* EU Warranty & GARAN — admin UI, styled after BigCommerce BigDesign */
:root {
  --bc-blue: #3c64f4;
  --bc-blue-dark: #2f4ec3;
  --eu-blue: #034ea2;
  --text: #313440;
  --muted: #5e637a;
  --border: #d9dce9;
  --bg: #f6f7fc;
  --white: #fff;
  --green: #208831;
  --green-bg: #e6f5e8;
  --red: #c42f20;
  --red-bg: #fdefee;
  --amber: #8a5a00;
  --amber-bg: #fff7e0;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--bc-blue); }

.shell { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }

.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.topbar h1 { font-size: 22px; margin: 0; font-weight: 600; }
.topbar .by { color: var(--muted); font-size: 13px; }
.brandmark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: var(--eu-blue); color: #ffde00; font-weight: 800; font-size: 13px; letter-spacing: -.02em; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a.active { color: var(--bc-blue); border-bottom-color: var(--bc-blue); }

.panel { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 6px rgba(49, 52, 64, .15); padding: 24px; margin-bottom: 24px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.panel > p.lead { margin: 0 0 16px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.grid-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 800px) { .grid-2, .grid-edit { grid-template-columns: 1fr; } }

.stat { font-size: 36px; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: var(--green-bg); border-color: var(--green); }
.alert-error { background: var(--red-bg); border-color: var(--red); }
.alert-warning { background: var(--amber-bg); border-color: #f5a623; }
.alert-info { background: #eef2ff; border-color: var(--bc-blue); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.checklist .ok { background: var(--green); }
.checklist .no { background: #f5a623; }
.checklist small { display: block; color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data th { font-size: 13px; color: var(--muted); font-weight: 600; }
table.data td.actions { text-align: right; white-space: nowrap; }
.thumb { width: 40px; height: 40px; object-fit: contain; background: var(--bg); border-radius: var(--radius); display: block; }
.thumb-empty { width: 40px; height: 40px; background: var(--bg); border-radius: var(--radius); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-grey { background: #eceef5; color: var(--muted); }

.btn { display: inline-block; border: 1px solid var(--bc-blue); background: var(--bc-blue); color: #fff; padding: 8px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--bc-blue-dark); }
.btn-secondary { background: #fff; color: var(--bc-blue); }
.btn-secondary:hover { background: #eef2ff; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 13px; }

.field { margin-bottom: 16px; }
.field label.title { display: block; font-weight: 600; margin-bottom: 4px; }
.field .help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.field .error { color: var(--red); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bc-blue); outline-offset: -1px; }
.has-error input { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: 0 0 16px; }
.check small { display: block; color: var(--muted); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; }
legend { font-weight: 600; padding: 0 4px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 320px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 16px; }

.preview { background: var(--bg); border-radius: var(--radius); padding: 16px; text-align: center; }
.preview img { max-width: 100%; height: auto; background: #fff; }
.preview .nested { height: 44px; width: auto; margin-bottom: 16px; }

pre.code { background: #1f2330; color: #e6e8f0; padding: 16px; border-radius: var(--radius); overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.muted { color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
