@import url("/gocentral-admin/vendor-admin.css");

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/gocentral-admin/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/gocentral-admin/archivo-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/gocentral-admin/space-mono-latin.woff2") format("woff2");
}

:root {
  --gc-cream: #f4f1e9;
  --gc-navy: #0e1b2c;
  --gc-navy-2: #16283f;
  --gc-navy-3: #1e3452;
  --gc-lime: #8fc63f;
  --gc-lime-bright: #a7e04b;
  --gc-ink: #172234;
  --gc-muted: #647083;
  --gc-border: #d9d5ca;
  --gc-white: #ffffff;
  --gc-shadow: 0 16px 42px rgba(14, 27, 44, 0.13);
}

html,
body,
button,
input,
select,
textarea,
.form-control,
.btn {
  font-family: "Archivo", Arial, sans-serif;
}

body {
  background: var(--gc-cream);
  color: var(--gc-ink);
}

a {
  color: #416f12;
}

a:hover,
a:focus {
  color: #294b08;
}

:focus-visible {
  outline: 3px solid var(--gc-lime-bright) !important;
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn {
  font-weight: 700;
}

.navbar-inverse,
.navbar-default,
.navbar {
  background: var(--gc-navy);
  border: 0;
  box-shadow: 0 8px 24px rgba(14, 27, 44, 0.2);
}

/* alf.io 2.0-M5 renders the brand as a bare <a data-ui-sref="index"> wrapping
   an <img>, inside .navbar-header. There is no .navbar-brand element anywhere
   in this version, so a .navbar-brand rule silently matches nothing and the
   vendor mark stays on screen. Target the real element. */
.navbar-header > a[data-ui-sref="index"] {
  display: inline-block;
  width: 150px;
  height: 50px;
  margin-right: 10px;
  background: url("/gocentral-admin/lactigo-logo-white.png") left center / 150px auto no-repeat;
  text-decoration: none;
  vertical-align: middle;
}

.navbar-header > a[data-ui-sref="index"] img {
  display: none;
}

.navbar-inverse .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a,
.navbar .navbar-nav > li > a,
.navbar-text,
.navbar .glyphicon {
  color: rgba(255, 255, 255, 0.88) !important;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus {
  background: var(--gc-lime) !important;
  color: var(--gc-navy) !important;
}

.panel,
.modal-content,
.well,
.thumbnail,
.jumbotron,
.card {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: 16px;
  box-shadow: var(--gc-shadow);
}

.panel-heading,
.modal-header {
  background: var(--gc-navy) !important;
  border: 0;
  border-radius: 15px 15px 0 0;
  color: var(--gc-white) !important;
}

.panel-heading a,
.modal-header .close,
.modal-title {
  color: var(--gc-white) !important;
}

.btn-primary,
.btn-success,
.label-success {
  background: var(--gc-lime);
  border-color: var(--gc-lime);
  color: var(--gc-navy);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background: var(--gc-lime-bright);
  border-color: var(--gc-lime-bright);
  color: var(--gc-navy);
}

.btn-default {
  background: var(--gc-white);
  border-color: var(--gc-navy-3);
  color: var(--gc-navy);
}

.form-control {
  border: 1px solid #aab2bd;
  border-radius: 8px;
  box-shadow: none;
}

.form-control:focus {
  border-color: var(--gc-lime);
  box-shadow: 0 0 0 3px rgba(143, 198, 63, 0.25);
}

.table > thead > tr > th {
  background: var(--gc-navy-2);
  border-color: var(--gc-navy-3);
  color: var(--gc-white);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background: #faf9f5;
}

.badge,
.label,
.nav-pills > li > a {
  border-radius: 999px;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: var(--gc-navy-2);
}

.modal-backdrop.in {
  opacity: 0.62;
}

/* The authentication template shares admin.css but has no admin navigation.
   It also carries NO class on <body> and no .panel, so the earlier
   body.login / body[class*="login"] rules matched nothing and the login screen
   rendered unstyled. The login form is the only reliable marker on the page. */
body:has(form[name="loginForm"]) {
  background:
    radial-gradient(circle at 85% 10%, rgba(167, 224, 75, 0.18), transparent 34rem),
    var(--gc-navy);
  min-height: 100vh;
}

/* Cap the form, not .container: the vendor markup puts the form in a
   col-md-6 col-md-push-3, so squeezing the container squeezes the card to
   half of whatever cap is set. */
body:has(form[name="loginForm"]) form[name="loginForm"] {
  max-width: 400px;
  margin: 8vh auto 0;
  background: var(--gc-white);
  border-radius: 16px;
  box-shadow: var(--gc-shadow);
  overflow: hidden;
}

body:has(form[name="loginForm"]) .page-header h2 + span {
  display: block;
}

body:has(form[name="loginForm"]) .form-group {
  margin-left: 28px;
  margin-right: 28px;
}

/* The two buttons sit in a col-md-push-8 / col-md-pull-4 grid, whose offsets
   are positioned with left/right and collapse the primary action to a third
   of a 400px card. Flatten the grid to a flex row and keep the vendor's
   intended order: Cancel quiet on the left, Login primary on the right. */
body:has(form[name="loginForm"]) form[name="loginForm"] > .row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 28px 26px;
}

body:has(form[name="loginForm"]) form[name="loginForm"] > .row > [class*="col-"] {
  position: static;
  left: auto;
  right: auto;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body:has(form[name="loginForm"]) form[name="loginForm"] > .row > [class*="col-"]:first-child {
  flex: 1 1 auto;
}

/* Navy band carrying the official white mark. The tracked asset is the white
   lockup, so it needs a dark ground rather than a redrawn dark variant. */
body:has(form[name="loginForm"]) .page-header {
  margin: 0 0 22px;
  padding: 26px 20px 22px;
  background: var(--gc-navy);
  border-bottom: 0;
  text-align: center;
}

body:has(form[name="loginForm"]) .page-header::before {
  content: "";
  display: block;
  height: 38px;
  margin: 0 auto 16px;
  background: url("/gocentral-admin/lactigo-logo-white.png") center / auto 38px no-repeat;
}

body:has(form[name="loginForm"]) .page-header h2 {
  color: var(--gc-white);
  font-size: 20px;
  margin: 0 0 6px;
}

body:has(form[name="loginForm"]) .page-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* The vendor "reset" button clears the form; it reads as a second action and
   is never what an admin wants next. Keep it reachable, stop it competing. */
body:has(form[name="loginForm"]) .btn-default[type="reset"] {
  background: transparent;
  border-color: transparent;
  color: var(--gc-muted);
  margin-bottom: 8px;
}

/* Injected affordance (lactigo-admin.js). Styled here so that if the script
   is ever removed the stylesheet degrades to dead rules rather than the other
   way round: unstyled links appearing in the admin. */
.lactigo-tile-link {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gc-border);
  text-align: right;
}

.lactigo-tile-link a {
  font-size: 13px;
  font-weight: 700;
}

.lactigo-tile-link a::after {
  content: " \2192";
}

@media (max-width: 767px) {
  .navbar-header > a[data-ui-sref="index"] {
    width: 132px;
    height: 42px;
    background-size: 132px auto;
  }

  .panel,
  .modal-content,
  .well,
  .thumbnail,
  .jumbotron,
  .card {
    border-radius: 12px;
  }

  .modal-dialog {
    margin: 10px;
  }
}
