/* Shared tokens and base styles for the backoffice — theme: docs/img.png */

:root {
  --primary: #0f7c80;
  --primary-dark: #0b5c63;
  --primary-light: #e3f2f1;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1d2433;
  --text-secondary: #5b6474;
  --text-muted: #8a93a3;
  --border: #e3e7ec;
  --danger: #d93a45;
  --danger-light: #fdecee;
  --success: #1f9d55;
  --success-light: #e5f6ec;
  --warning: #b7791f;
  --warning-light: #fdf3e1;
  --info: #2f6fd6;
  --info-light: #e8f0fd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .04);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; }

/* The hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Icon defaults; third-party widgets (Swagger UI) keep their own SVG styles */
svg:where(:not(.swagger-ui *)) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}

.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--primary);
  -webkit-mask: url("../../img/amblem_512x512.png") center / contain no-repeat;
  mask: url("../../img/amblem_512x512.png") center / contain no-repeat;
}

.logo__text b { font-weight: 700; color: var(--primary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
