@charset "UTF-8";
/* theme-name: PA Gold */
:root[data-glpi-theme=pagold] {
  --tblr-primary: #2430a0;
  --tblr-primary-rgb: 36, 48, 160;
  --tblr-primary-fg: #ffffff;
  --tblr-secondary: #282828;
  --tblr-secondary-fg: #ffffff;
  --tblr-link-color: #2430a0;
  --tblr-link-color-rgb: 36, 48, 160;
  --tblr-body-bg: #f2f2f2;
  --tblr-body-color: #282828;
  --tblr-navbar-color: #2430a0;
  --tblr-input-bg: #ffffff;
  --tblr-input-disabled-bg: #eef2f5;
  --glpi-mainmenu-bg: #2430a0;
  --glpi-mainmenu-fg: #ffffff;
  --glpi-mainmenu-active-bg: #ffc91c;
  /* Explicit native Helpdesk tokens avoid the automatic lilac hue. */
  --glpi-helpdesk-header: #f2f2f2;
  --glpi-helpdesk-tiles-section-bg: #ffffff;
  --glpi-helpdesk-tabs-section-bg: #f2f2f2;
  --glpi-illustrations-background: #ffffff;
  --glpi-illustrations-header-dark: #2430a0;
  --glpi-illustrations-header-light: #f2f2f2;
  --glpi-illustrations-primary: #2430a0;
  --glpi-illustrations-gradient-1: #ffffff;
  --glpi-illustrations-gradient-2: #fff3c5;
  --glpi-illustrations-gradient-3: #ffc91c;
  --glpi-palette-color-1: #2430a0;
  --glpi-palette-color-2: #282828;
  --glpi-palette-color-3: #ffc91c;
  --glpi-palette-color-4: #f2f2f2;
  --glpi-logo-light: url("/pa-gold-branding/pagold-logo-light.png");
  --glpi-logo-dark: url("/pa-gold-branding/pagold-logo-header.png");
  --glpi-logo-light-reduced: url("/pa-gold-branding/pagold-favicon.png");
  --glpi-logo-dark-reduced: url("/pa-gold-branding/pagold-favicon.png");
  --glpi-logo-dark-login: url("/pa-gold-branding/pagold-logo-header.png");
  --glpi-logo-light-login: url("/pa-gold-branding/pagold-logo-light.png");
}

/* Keep the native catalogue, search and forms; adjust presentation only. */
:root[data-glpi-theme=pagold] .page-body:has(.helpdesk-home-container) {
  max-width: none;
}
:root[data-glpi-theme=pagold] .helpdesk-home-container.force-full-width {
  width: 100%;
  margin-inline-start: 0;
}
:root[data-glpi-theme=pagold] .helpdesk-home-container .search-banner {
  border-bottom: 3px solid #ffc91c;
}
:root[data-glpi-theme=pagold] .helpdesk-home-container .search-banner .search-banner-content {
  padding-top: 64px;
  padding-bottom: 40px;
}
:root[data-glpi-theme=pagold] .helpdesk-home-container h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2 !important;
  color: #282828;
}
:root[data-glpi-theme=pagold] .helpdesk-home-container .search-bar-container {
  padding: 24px 0 0;
}
@media (max-width: 767px) {
  :root[data-glpi-theme=pagold] .helpdesk-home-container .search-banner .search-banner-content {
    padding-top: 32px;
    padding-bottom: 28px;
  }
}

/* Keep the original assets' aspect ratio within GLPI's native logo slots. */
:root[data-glpi-theme=pagold] .glpi-logo {
  background-size: contain;
  background-position: center;
  object-fit: contain;
}

/* Login presentation only. Native form, CSRF, SAML POST and controls stay intact.
   Unsupported selectors fail open: the original local form remains available.
   A fragment reveals the local form; errors also reveal it to prevent lockout. */
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) {
  background: radial-gradient(ellipse at top, #e9edf9 0, #f5f7fb 65%);
  color: #202a44;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .page-anonymous > .flex-fill {
  margin-top: 0 !important;
  padding: 24px 0 !important;
  min-height: 100dvh;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .container-tight {
  max-width: 420px !important;
  width: 100%;
  padding: 0 16px !important;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .glpi-logo {
  width: 180px;
  height: 68px;
  margin-bottom: 22px !important;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .main-content-card {
  border: 1px solid #e0e5ef;
  border-top: 3px solid #ffc91c;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(28, 43, 81, 0.0705882353);
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .main-content-card > .card-body {
  padding: 28px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form:has(#login_name) {
  display: flex;
  flex-direction: column;
  reading-flow: flex-visual;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form > .rich_text_container {
  display: contents;
  reading-order: 1;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-heading {
  order: 0;
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-corporate-copy, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-local-copy {
  order: 1;
  text-align: center;
  color: #58657b;
  font-size: 14px;
  margin: 0 0 24px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-local-copy {
  display: none;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form > .row {
  order: 2;
  margin: 0;
  gap: 20px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form > .row > .col-md-5, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form > .row > .col-auto {
  width: 100%;
  padding: 0 !important;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form > .row > .col-md-5 > .card-header, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_header {
  display: none;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .form-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .form-control {
  min-height: 42px;
  border-radius: 8px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) form > .row > .col-md-5 > .mb-4 {
  margin-bottom: 16px !important;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .form-check-label {
  font-size: 13px;
  color: #58657b;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .form-footer {
  margin-top: 20px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .form-footer > .btn {
  min-height: 44px;
  border-radius: 8px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons {
  max-width: none !important;
  margin: 0 !important;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons > div {
  width: 100%;
  padding: 0;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons button {
  width: 100% !important;
  min-height: 50px;
  margin: 0 !important;
  padding: 12px 18px;
  background: #ffc91c;
  border: 1px solid #edb80a;
  color: #202a44;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(211, 158, 0, 0.1098039216);
  font-size: 16px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons button:hover {
  background: #f4bd10;
  border-color: #d6a000;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons button > div {
  margin: 0 !important;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons button .flex-column {
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) #saml_buttons button i {
  font-size: 23px;
  line-height: 1;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-switch {
  order: 3;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e7ebf2;
  text-align: center;
  font-size: 13px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-switch a {
  color: #34456a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-back {
  display: none;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-help {
  order: 4;
  text-align: center;
  font-size: 12px;
  margin: 14px 0 0;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .pa-login-help a {
  color: #58657b;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .page-anonymous .text-muted:has(> a[title]) {
  font-size: 11px;
  line-height: 1.5;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .page-anonymous .text-muted > a {
  color: #637087;
  font-size: 11px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) a:focus-visible, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) button:focus-visible {
  outline: 3px solid #2430a0;
  outline-offset: 4px;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):not(:has(#saml_buttons button)) .pa-login-corporate-copy, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):not(:has(#saml_buttons button)) .pa-login-switch {
  display: none;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):not(:has(#saml_buttons button)) .pa-login-local-copy {
  display: block;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):has(#saml_buttons button):not(:has(#login_name:target)):not(:has(.alert)) form > .row > .col-md-5 {
  display: none;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):has(#saml_buttons button):has(#login_name:target) .pa-login-corporate-copy, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):has(#saml_buttons button):has(#login_name:target) .pa-login-open-local, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):has(#saml_buttons button):has(#login_name:target) form > .row > .col-auto {
  display: none;
}
:root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):has(#saml_buttons button):has(#login_name:target) .pa-login-local-copy, :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading):has(#saml_buttons button):has(#login_name:target) .pa-login-back {
  display: block;
}
@media (max-width: 480px) {
  :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .page-anonymous > .flex-fill {
    padding: 20px 0 !important;
  }
  :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .main-content-card > .card-body {
    padding: 24px;
  }
  :root[data-glpi-theme=pagold] body.welcome-anonymous:has(#login_name):has(.pa-login-heading) .glpi-logo {
    width: 164px;
    height: 60px;
    margin-bottom: 18px !important;
  }
}

/* Menu lateral: o GLPI usa a cor primária no item em foco, aberto ou ativo.
   No tema PA Gold ela é igual ao fundo do menu e o texto ficava ilegível. */
:root[data-glpi-theme=pagold] .sidebar #navbar-menu {
  /* Mesmo caso dentro do grupo aberto (regra nativa mais específica). */
}
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .nav-item .nav-link.show,
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .nav-item .nav-link.active,
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .nav-item .nav-link:hover,
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .nav-item .nav-link:focus {
  color: #ffffff;
  border-left-color: #ffc91c;
}
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .dropdown-menu .dropdown-item:hover,
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .dropdown-menu .dropdown-item:focus,
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .dropdown-menu .dropdown-item.active {
  color: #ffffff;
}
:root[data-glpi-theme=pagold] .sidebar #navbar-menu .nav-item .nav-link:is(.active, .show) + .dropdown-menu .dropdown-item:is(:hover, :focus, .active) {
  color: #ffffff;
}

/* Catálogo de serviços: cartões em 3 colunas cortavam o texto (bloco de texto sem permissão para encolher
   e ilustração fixa de 100 px). O texto passa a quebrar dentro do cartão e a ilustração fica menor, acima do texto. */
:root[data-glpi-theme=pagold] section.card-body[aria-labelledby^=service-catalog-tree-] > .d-flex {
  flex-direction: column;
  gap: 0.75rem;
}
:root[data-glpi-theme=pagold] section.card-body[aria-labelledby^=service-catalog-tree-] > .d-flex > svg {
  width: 64px;
  height: 64px;
}
:root[data-glpi-theme=pagold] section.card-body[aria-labelledby^=service-catalog-tree-] > .d-flex > .ms-4 {
  min-width: 0;
  margin-inline-start: 0 !important;
}
:root[data-glpi-theme=pagold] section.card-body[aria-labelledby^=service-catalog-tree-] .card-title {
  min-width: 0;
  overflow-wrap: break-word;
}
:root[data-glpi-theme=pagold] section.card-body[aria-labelledby^=service-catalog-tree-] .card-title + .ti-pin {
  flex-shrink: 0;
  margin-inline-start: 0.5rem;
}
:root[data-glpi-theme=pagold] section.card-body[aria-labelledby^=service-catalog-tree-] [data-testid=service-catalog-description] {
  overflow-wrap: break-word;
}