/* LORE V2 SUPERADMIN FOUNDATION V1 START
Shared status language for all SuperAdmin modules.
RED = required missing / invalid / blocking
YELLOW = optional / non-blocking
GREEN = correct / complete / ready
NEUTRAL = informational / no readiness state
BLUE = information / active selection, never readiness
*/
:root {
  --lore-sa-red-a: #ff7272;
  --lore-sa-red-b: #ffb4b4;
  --lore-sa-red-border: #c92525;
  --lore-sa-red-badge: #b51f1f;
  --lore-sa-yellow-a: #ffd044;
  --lore-sa-yellow-b: #ffe995;
  --lore-sa-yellow-border: #c98500;
  --lore-sa-yellow-badge: #a96f00;
  --lore-sa-green-a: #52dda0;
  --lore-sa-green-b: #98efc1;
  --lore-sa-green-border: #008a50;
  --lore-sa-green-badge: #087847;
  --lore-sa-neutral-a: #eef3f8;
  --lore-sa-neutral-b: #f8fafc;
  --lore-sa-neutral-border: #94a3b8;
  --lore-sa-neutral-badge: #526174;
  --lore-sa-info-a: #75c7ff;
  --lore-sa-info-b: #c7eaff;
  --lore-sa-info-border: #1677bd;
  --lore-sa-info-badge: #125f98;
}

[data-lore-status-scope] .lore-status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 10px 12px;
  border: 2px solid #173f70;
  border-radius: 13px;
  background: linear-gradient(135deg, #143968, #0b2750);
  color: #fff;
  box-shadow: 0 7px 18px rgba(7,31,62,.18);
}

[data-lore-status-scope] .lore-status-legend > strong {
  margin-right: 2px;
  font-weight: 900;
}

.lore-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.lore-status-badge[data-lore-status="red"] { background: var(--lore-sa-red-badge); }
.lore-status-badge[data-lore-status="yellow"] { background: var(--lore-sa-yellow-badge); }
.lore-status-badge[data-lore-status="green"] { background: var(--lore-sa-green-badge); }
.lore-status-badge[data-lore-status="neutral"] { background: var(--lore-sa-neutral-badge); }
.lore-status-badge[data-lore-status="info"] { background: var(--lore-sa-info-badge); }

[data-lore-status-scope] .lore-status-surface {
  box-sizing: border-box;
  border-style: solid !important;
  border-width: 2px !important;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

[data-lore-status-scope] .lore-status-surface[data-lore-status="red"] {
  border-color: var(--lore-sa-red-border) !important;
  background: linear-gradient(135deg, var(--lore-sa-red-a), var(--lore-sa-red-b)) !important;
}

[data-lore-status-scope] .lore-status-surface[data-lore-status="yellow"] {
  border-color: var(--lore-sa-yellow-border) !important;
  background: linear-gradient(135deg, var(--lore-sa-yellow-a), var(--lore-sa-yellow-b)) !important;
}

[data-lore-status-scope] .lore-status-surface[data-lore-status="green"] {
  border-color: var(--lore-sa-green-border) !important;
  background: linear-gradient(135deg, var(--lore-sa-green-a), var(--lore-sa-green-b)) !important;
}

[data-lore-status-scope] .lore-status-surface[data-lore-status="neutral"] {
  border-color: var(--lore-sa-neutral-border) !important;
  background: linear-gradient(135deg, var(--lore-sa-neutral-a), var(--lore-sa-neutral-b)) !important;
}

[data-lore-status-scope] .lore-status-surface[data-lore-status="info"] {
  border-color: var(--lore-sa-info-border) !important;
  background: linear-gradient(135deg, var(--lore-sa-info-a), var(--lore-sa-info-b)) !important;
}

[data-lore-status-scope="forms"] label.lore-status-field {
  padding: 10px 11px !important;
  border-radius: 12px !important;
  min-width: 0;
}

[data-lore-status-scope="forms"] label.lore-status-field > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #17233a !important;
  font-weight: 900 !important;
}

[data-lore-status-scope="forms"] label.lore-status-field input,
[data-lore-status-scope="forms"] label.lore-status-field select,
[data-lore-status-scope="forms"] label.lore-status-field textarea {
  background: rgba(255,255,255,.84) !important;
  color: #132038 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05) !important;
}

[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="red"] input,
[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="red"] select,
[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="red"] textarea {
  border-color: #ad2020 !important;
}

[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="yellow"] input,
[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="yellow"] select,
[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="yellow"] textarea {
  border-color: #b37700 !important;
}

[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="green"] input,
[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="green"] select,
[data-lore-status-scope="forms"] label.lore-status-field[data-lore-status="green"] textarea {
  border-color: #007444 !important;
}

[data-lore-status-scope="forms"] label.lore-status-field:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(22,119,189,.20), 0 8px 18px rgba(12,52,91,.15) !important;
}
/* LORE V2 SUPERADMIN EXPLICIT CONFIG FIELDS V1 START */
[data-lore-status-scope="forms"] > .lore-status-legend {
  grid-column: 1 / -1;
  width: 100%;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field {
  padding: 10px 11px !important;
  border-radius: 12px !important;
  min-width: 0;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field > label,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field > strong {
  display: block;
  margin-bottom: 5px;
  color: #17233a !important;
  font-weight: 900 !important;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field input,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field select,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field textarea {
  background: rgba(255,255,255,.84) !important;
  color: #132038 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05) !important;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="red"] input,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="red"] select,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="red"] textarea {
  border-color: #ad2020 !important;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="yellow"] input,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="yellow"] select,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="yellow"] textarea {
  border-color: #b37700 !important;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="green"] input,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="green"] select,
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field[data-lore-status="green"] textarea {
  border-color: #007444 !important;
}
[data-lore-status-scope="forms"] [data-lore-status-field].lore-status-field:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(22,119,189,.20), 0 8px 18px rgba(12,52,91,.15) !important;
}
/* LORE V2 SUPERADMIN EXPLICIT CONFIG FIELDS V1 END */
/* LORE V2 SUPERADMIN FOUNDATION V1 END */
