/*
  PA Gold Theme para GLPI.
  Camada visual reversível carregada por mount no Docker Compose.
  Objetivo: aproximar login, portal, navegação e telas internas da identidade PA Gold.
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,800;9..40,900&display=swap");

:root {
  --pagold-gold: #ffc211;
  --pagold-gold-dark: #bc802a;
  --pagold-gold-soft: #ffda70;
  --pagold-blue-deep: #084d6e;
  --pagold-blue-mid: #3b85a8;
  --pagold-navy: #0f324c;
  --pagold-ink: #132634;
  --pagold-bg: #f4f7fa;
  --pagold-cream: #f2f1ed;
  --pagold-text: #1d2b38;
  --pagold-text-muted: #5a7484;
  --pagold-white: #ffffff;
  --pagold-border: rgba(8, 77, 110, 0.14);
  --pagold-shadow: 0 14px 36px rgba(8, 77, 110, 0.14);
  --pagold-shadow-soft: 0 8px 24px rgba(8, 77, 110, 0.09);
  --pagold-radius-sm: 8px;
  --pagold-radius-md: 12px;
  --pagold-radius-lg: 18px;
  --pagold-font-body: "DM Sans", "Aptos", "Segoe UI", sans-serif;
  --pagold-font-display: var(--pagold-font-body);
}

/* Refinamento da tela de login PA Gold */
html:has(body.welcome-anonymous.pagold-login-page),
body.welcome-anonymous.pagold-login-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0 !important;
  color: var(--pagold-white) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 194, 17, 0.22), transparent 17rem),
    radial-gradient(circle at 88% 8%, rgba(60, 143, 179, 0.36), transparent 24rem),
    linear-gradient(135deg, #071722 0%, #08283b 46%, #0a5b78 100%) !important;
}

body.welcome-anonymous.pagold-login-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(315deg, rgba(255, 194, 17, 0.12), transparent 34%);
  opacity: 0.62;
}

body.welcome-anonymous.pagold-login-page .page,
body.welcome-anonymous.pagold-login-page .page-anonymous,
body.welcome-anonymous.pagold-login-page .pagold-login-canvas {
  width: 100%;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(14px, 2.5vw, 28px) !important;
  background: transparent !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-canvas {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
}

body.welcome-anonymous.pagold-login-page .pagold-login-shell {
  width: min(100%, 420px) !important;
  margin: 0 auto;
}

body.welcome-anonymous.pagold-login-page .pagold-login-brand {
  margin: 0 0 20px;
  text-align: center;
}

body.welcome-anonymous.pagold-login-page .pagold-login-logo {
  width: min(235px, 70vw) !important;
  max-width: 235px !important;
  height: auto;
}

body.welcome-anonymous.pagold-login-page .pagold-login-kicker {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card.card {
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 auto !important;
  border: 1px solid rgba(255, 194, 17, 0.26) !important;
  border-radius: 24px !important;
  color: var(--pagold-white) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08)),
    rgba(6, 31, 47, 0.88) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  backdrop-filter: blur(16px);
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .card-body {
  padding: clamp(22px, 4vw, 32px) !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .row {
  display: block !important;
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card [class^="col-"],
body.welcome-anonymous.pagold-login-page .pagold-login-card [class*=" col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  flex: 0 0 100% !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card form {
  width: min(100%, 336px) !important;
  margin: 0 auto !important;
}

body.welcome-anonymous.pagold-login-page .card-header {
  padding: 0 0 18px !important;
  border: 0 !important;
  background: transparent !important;
}

body.welcome-anonymous.pagold-login-page .card-header h2,
body.welcome-anonymous.pagold-login-page h2 {
  margin: 0 !important;
  color: var(--pagold-white) !important;
  font-family: var(--pagold-font-body) !important;
  font-size: clamp(1.15rem, 3.2vw, 1.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-transform: none;
  text-align: center;
}

body.welcome-anonymous.pagold-login-page .pagold-theme-toggle {
  position: fixed;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: 20;
  width: 42px;
  height: 42px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--pagold-white);
  background: rgba(6, 31, 47, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

html[data-pagold-theme="dark"] body.welcome-anonymous.pagold-login-page .pagold-theme-toggle {
  border-color: rgba(255, 194, 17, 0.34);
  color: var(--pagold-gold);
  background: rgba(6, 31, 47, 0.82);
}

body.welcome-anonymous.pagold-login-page .pagold-theme-toggle:hover,
body.welcome-anonymous.pagold-login-page .pagold-theme-toggle:focus-visible {
  border-color: var(--pagold-gold);
  background: rgba(8, 44, 64, 0.94);
  box-shadow: 0 0 0 3px rgba(255, 194, 17, 0.16), 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.welcome-anonymous.pagold-login-page .form-label,
body.welcome-anonymous.pagold-login-page label,
body.welcome-anonymous.pagold-login-page .form-check-label {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.welcome-anonymous.pagold-login-page .form-control,
body.welcome-anonymous.pagold-login-page .form-select,
body.welcome-anonymous.pagold-login-page .select2-container--default .select2-selection {
  min-height: 46px !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px !important;
  color: var(--pagold-white) !important;
  background: rgba(4, 24, 37, 0.58) !important;
  box-shadow: none !important;
}

body.welcome-anonymous.pagold-login-page .form-control:focus,
body.welcome-anonymous.pagold-login-page .form-select:focus,
body.welcome-anonymous.pagold-login-page .select2-container--focus .select2-selection {
  border-color: var(--pagold-gold) !important;
  box-shadow: 0 0 0 0.18rem rgba(255, 194, 17, 0.2) !important;
}

body.welcome-anonymous.pagold-login-page .select2-container--default .select2-selection__rendered {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.welcome-anonymous.pagold-login-page .btn-primary {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 12px !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.82rem;
  text-align: center;
}

body.welcome-anonymous.pagold-login-page .pagold-login-footer strong {
  color: var(--pagold-gold);
}

/* HML segura: aplica o visual PA Gold quando o login usa o template nativo do GLPI. */
body.welcome-anonymous.pagold-login-page .page-anonymous > .flex-fill {
  min-height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell > .pagold-login-brand {
  margin: 0 0 18px !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-logo-native.glpi-logo {
  display: none !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-logo-runtime {
  display: inline-block !important;
  width: min(260px, 72vw) !important;
  max-width: 260px !important;
  height: auto !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

body.welcome-anonymous.pagold-login-page .pagold-login-logo-native.glpi-logo::before,
body.welcome-anonymous.pagold-login-page .pagold-login-logo-native.glpi-logo::after {
  display: none !important;
  content: none !important;
}

body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell .pagold-login-kicker {
  margin: 8px 0 0 !important;
}

body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell .pagold-login-card.card-md {
  max-width: 520px !important;
}

body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell .copyright {
  color: inherit !important;
  pointer-events: none;
}

body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell .pagold-login-footer {
  margin-top: 16px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.86rem !important;
  font-weight: 500;
}

@media (max-width: 520px) {
  body.welcome-anonymous.pagold-login-page .page-anonymous,
  body.welcome-anonymous.pagold-login-page .pagold-login-canvas {
    align-items: start;
    padding: 22px 16px !important;
  }

  body.welcome-anonymous.pagold-login-page .pagold-login-logo {
    width: min(210px, 74vw) !important;
  }

  body.welcome-anonymous.pagold-login-page .pagold-login-card.card {
    border-radius: 20px !important;
  }
}

html,
body {
  color: var(--pagold-text);
  background:
    radial-gradient(circle at top left, rgba(255, 194, 17, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fbfd 0%, var(--pagold-bg) 44%, #eef4f7 100%);
  font-family: var(--pagold-font-body);
}

body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.select2-container,
.dropdown-menu {
  font-family: var(--pagold-font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.card-title {
  color: var(--pagold-ink);
  font-family: var(--pagold-font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
}

a,
.link-primary {
  color: var(--pagold-blue-deep);
}

a:hover,
a:focus,
.link-primary:hover,
.link-primary:focus {
  color: var(--pagold-gold-dark);
}

/* Login */
body.welcome-anonymous {
  min-height: 100vh;
  color: var(--pagold-white);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 194, 17, 0.2), transparent 18rem),
    radial-gradient(circle at 88% 12%, rgba(59, 133, 168, 0.34), transparent 24rem),
    linear-gradient(135deg, #092638 0%, var(--pagold-navy) 42%, var(--pagold-blue-deep) 100%) !important;
  overflow-x: hidden;
}

body.welcome-anonymous .page-anonymous {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7, 23, 34, 0.78), rgba(7, 23, 34, 0.22)),
    transparent !important;
}

.pagold-login-canvas {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.pagold-login-shell {
  width: min(100%, 430px);
}

.pagold-login-brand {
  margin-bottom: 24px;
  text-align: center;
}

.pagold-login-logo {
  display: inline-block;
  width: min(255px, 72vw);
  max-width: 255px;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.pagold-login-kicker {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pagold-login-card,
body.welcome-anonymous .pagold-login-card.card {
  width: 100%;
  border: 1px solid rgba(255, 194, 17, 0.2) !important;
  border-radius: 22px !important;
  color: var(--pagold-white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08)),
    rgba(8, 77, 110, 0.42) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.pagold-login-card .card-body {
  padding: clamp(24px, 4vw, 34px) !important;
}

body.welcome-anonymous .card-header,
body.welcome-anonymous .pagold-login-card .card-header {
  border: 0 !important;
  background: transparent !important;
}

body.welcome-anonymous .card-header h2 {
  margin-bottom: 18px;
  color: var(--pagold-white);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 850;
  text-align: center;
}

body.welcome-anonymous label,
body.welcome-anonymous .form-label,
body.welcome-anonymous .form-check-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 750;
}

body.welcome-anonymous .form-control,
body.welcome-anonymous .form-select,
body.welcome-anonymous .select2-container--default .select2-selection {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: var(--pagold-white) !important;
  background: rgba(5, 29, 45, 0.42) !important;
}

body.welcome-anonymous .form-control::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

body.welcome-anonymous .select2-container--default .select2-selection__rendered {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.welcome-anonymous .select2-container--default .select2-selection__arrow b {
  border-top-color: rgba(255, 255, 255, 0.72) !important;
}

body.welcome-anonymous .form-check-input {
  border-color: rgba(255, 194, 17, 0.66);
  background-color: rgba(255, 255, 255, 0.18);
}

body.welcome-anonymous .form-check-input:checked {
  border-color: var(--pagold-gold);
  background-color: var(--pagold-gold);
}

body.welcome-anonymous .btn-primary {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(255, 194, 17, 0.24);
}

.pagold-login-footer,
body.welcome-anonymous .pagold-login-footer,
body.welcome-anonymous .text-muted {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.54) !important;
  text-align: center;
}

.pagold-login-footer a,
body.welcome-anonymous .pagold-login-footer a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.pagold-login-footer a:hover,
body.welcome-anonymous .pagold-login-footer a:hover {
  color: var(--pagold-gold);
}

/* Navegação principal */
.topbar,
.navbar.topbar,
.navbar-dark.topbar,
body .navbar.navbar-expand-md,
body .navbar.navbar-expand-lg {
  background:
    linear-gradient(135deg, rgba(15, 50, 76, 0.98), rgba(8, 77, 110, 0.98) 62%, rgba(59, 133, 168, 0.95)) !important;
  border-bottom: 3px solid rgba(255, 194, 17, 0.86) !important;
  box-shadow: 0 12px 28px rgba(8, 77, 110, 0.22);
}

.navbar-brand .glpi-logo {
  display: inline-block;
  width: 176px;
  height: 52px;
  background: url("/pagold/assets/pagold-logo-header.png") center / contain no-repeat !important;
}

.navbar-dark .navbar-brand .glpi-logo,
.topbar .navbar-brand .glpi-logo,
body .navbar .navbar-brand .glpi-logo {
  background-image: url("/pagold/assets/pagold-logo-light.png") !important;
}

.sidebar .navbar-brand .glpi-logo {
  background-image: url("/pagold/assets/pagold-logo-header.png") !important;
}

.topbar .navbar-brand,
.sidebar .navbar-brand,
body .navbar .navbar-brand {
  min-width: 178px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.topbar .navbar-nav .nav-link,
.topbar .navbar-nav .dropdown-toggle,
.topbar .btn,
body .navbar .nav-link,
body .navbar .dropdown-toggle,
body .navbar .btn {
  color: rgba(255, 255, 255, 0.92) !important;
}

.topbar .navbar-nav .nav-link:hover,
.topbar .navbar-nav .nav-link:focus,
.topbar .navbar-nav .dropdown-toggle:hover,
.topbar .navbar-nav .dropdown-toggle:focus,
body .navbar .nav-link:hover,
body .navbar .nav-link:focus {
  color: var(--pagold-gold) !important;
}

.sidebar,
.layout-navbar,
.navbar-vertical {
  border-right: 1px solid rgba(8, 77, 110, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.sidebar .nav-link.active,
.navbar-vertical .nav-link.active,
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  color: var(--pagold-blue-deep) !important;
  background: rgba(255, 194, 17, 0.16) !important;
  border-color: rgba(255, 194, 17, 0.42) !important;
  font-weight: 800;
}

html[data-pagold-ui="ready"] .sidebar .nav-link.active,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active,
html[data-pagold-ui="ready"] .sidebar .nav-item.active > .nav-link,
html[data-pagold-ui="ready"] .navbar-vertical .nav-item.active > .nav-link {
  position: relative;
  border: 1px solid rgba(255, 194, 17, 0.42) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background:
    linear-gradient(90deg, rgba(255, 194, 17, 0.2), rgba(255, 194, 17, 0) 28%),
    linear-gradient(135deg, rgba(8, 77, 110, 0.98), rgba(13, 95, 128, 0.92)) !important;
  box-shadow: inset 4px 0 0 var(--pagold-gold), 0 12px 24px rgba(8, 36, 53, 0.18) !important;
}

html[data-pagold-ui="ready"] .sidebar .nav-link.active,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active,
html[data-pagold-ui="ready"] .sidebar .nav-link.active:visited,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active:visited,
html[data-pagold-ui="ready"] .sidebar .nav-link.active:hover,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active:hover,
html[data-pagold-ui="ready"] .sidebar .nav-link.active:focus,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active:focus,
html[data-pagold-ui="ready"] .sidebar .nav-item.active > .nav-link,
html[data-pagold-ui="ready"] .navbar-vertical .nav-item.active > .nav-link {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

html[data-pagold-ui="ready"] .sidebar .nav-link.active *,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active *,
html[data-pagold-ui="ready"] .sidebar .nav-item.active > .nav-link *,
html[data-pagold-ui="ready"] .navbar-vertical .nav-item.active > .nav-link * {
  color: #ffffff !important;
}

html[data-pagold-ui="ready"] .sidebar .nav-link.active i,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active i,
html[data-pagold-ui="ready"] .sidebar .nav-item.active > .nav-link i,
html[data-pagold-ui="ready"] .navbar-vertical .nav-item.active > .nav-link i {
  color: var(--pagold-gold) !important;
}

html[data-pagold-ui="ready"] .sidebar .nav-link.active .nav-link-title,
html[data-pagold-ui="ready"] .navbar-vertical .nav-link.active .nav-link-title,
html[data-pagold-ui="ready"] .sidebar .nav-item.active > .nav-link .nav-link-title,
html[data-pagold-ui="ready"] .navbar-vertical .nav-item.active > .nav-link .nav-link-title {
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Fallback sem depender do JS: estados ativos/abertos do menu lateral. */
.sidebar .nav-link.active,
.navbar-vertical .nav-link.active,
.sidebar .nav-link[aria-current="page"],
.navbar-vertical .nav-link[aria-current="page"],
.sidebar .nav-link[aria-expanded="true"],
.navbar-vertical .nav-link[aria-expanded="true"],
.sidebar .nav-item.active > .nav-link,
.navbar-vertical .nav-item.active > .nav-link,
.sidebar .nav-item.show > .nav-link,
.navbar-vertical .nav-item.show > .nav-link {
  border: 1px solid rgba(255, 194, 17, 0.62) !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  background:
    linear-gradient(90deg, rgba(255, 194, 17, 0.28), rgba(255, 194, 17, 0) 32%),
    linear-gradient(135deg, #084d6e, #0c5f80) !important;
  box-shadow: inset 4px 0 0 var(--pagold-gold), 0 10px 22px rgba(8, 36, 53, 0.24) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.sidebar .nav-link.active *,
.navbar-vertical .nav-link.active *,
.sidebar .nav-link[aria-current="page"] *,
.navbar-vertical .nav-link[aria-current="page"] *,
.sidebar .nav-link[aria-expanded="true"] *,
.navbar-vertical .nav-link[aria-expanded="true"] *,
.sidebar .nav-item.active > .nav-link *,
.navbar-vertical .nav-item.active > .nav-link *,
.sidebar .nav-item.show > .nav-link *,
.navbar-vertical .nav-item.show > .nav-link * {
  color: #ffffff !important;
}

.sidebar .nav-link.active i,
.navbar-vertical .nav-link.active i,
.sidebar .nav-link[aria-current="page"] i,
.navbar-vertical .nav-link[aria-current="page"] i,
.sidebar .nav-link[aria-expanded="true"] i,
.navbar-vertical .nav-link[aria-expanded="true"] i,
.sidebar .nav-item.active > .nav-link i,
.navbar-vertical .nav-item.active > .nav-link i,
.sidebar .nav-item.show > .nav-link i,
.navbar-vertical .nav-item.show > .nav-link i {
  color: var(--pagold-gold) !important;
}

.breadcrumb,
.breadcrumb-item,
.page-header {
  color: var(--pagold-text-muted);
}

/* Botões, campos e foco */
.btn-primary,
body.welcome-anonymous .btn-primary {
  border-color: var(--pagold-gold-dark) !important;
  color: #1c1c19 !important;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark)) !important;
  box-shadow: 0 8px 18px rgba(255, 194, 17, 0.24);
  font-weight: 800;
}

.btn-primary:hover,
.btn-primary:focus,
body.welcome-anonymous .btn-primary:hover,
body.welcome-anonymous .btn-primary:focus {
  border-color: var(--pagold-gold-dark) !important;
  color: #1c1c19 !important;
  background: linear-gradient(135deg, var(--pagold-gold-soft), var(--pagold-gold-dark)) !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: rgba(8, 77, 110, 0.32) !important;
  color: var(--pagold-blue-deep) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--pagold-blue-deep) !important;
  color: var(--pagold-white) !important;
  background: var(--pagold-blue-deep) !important;
}

.form-control,
.form-select,
.select2-container--default .select2-selection {
  border-color: rgba(8, 77, 110, 0.16);
  border-radius: var(--pagold-radius-sm);
}

.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection {
  border-color: var(--pagold-gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 194, 17, 0.22) !important;
}

/* Cartões, painéis, tabelas e badges */
.card,
.search-container .card,
.page-wrapper .card,
.tab_cadre_fixe,
.tab_cadre {
  border: 1px solid rgba(8, 77, 110, 0.1) !important;
  border-radius: var(--pagold-radius-md) !important;
  box-shadow: var(--pagold-shadow-soft);
}

.card-header,
.card-footer {
  border-color: rgba(8, 77, 110, 0.1) !important;
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.86), rgba(255, 255, 255, 0.92));
}

.table thead th,
table.tab_cadrehov thead th,
.tab_cadre_fixehov th {
  color: var(--pagold-blue-deep);
  background: rgba(8, 77, 110, 0.07) !important;
  border-color: rgba(8, 77, 110, 0.12) !important;
  font-weight: 850;
}

.table,
table.tab_cadrehov,
.tab_cadre_fixehov {
  overflow: hidden;
  border-radius: var(--pagold-radius-md);
}

.table tbody tr:hover,
table.tab_cadrehov tbody tr:hover {
  background: rgba(255, 194, 17, 0.08) !important;
}

.badge.bg-blue,
.badge.bg-primary,
.badge.text-bg-primary {
  background-color: var(--pagold-blue-deep) !important;
}

.badge.bg-warning,
.badge.text-bg-warning {
  color: #1c1c19 !important;
  background-color: var(--pagold-gold) !important;
}

.dropdown-menu {
  border: 1px solid rgba(8, 77, 110, 0.12);
  border-radius: var(--pagold-radius-md);
  box-shadow: var(--pagold-shadow);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: var(--pagold-blue-deep);
  background: rgba(255, 194, 17, 0.14);
}

/* Chamados e detalhes operacionais */
.page,
.page-wrapper {
  background: transparent;
}

.itil-object,
.timeline-item,
.rich_text_container,
.itilfollowup,
.itiltask {
  border: 1px solid rgba(8, 77, 110, 0.1) !important;
  border-radius: var(--pagold-radius-md) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--pagold-shadow-soft);
}

.timeline-item::before,
.timeline-item::after {
  border-color: rgba(255, 194, 17, 0.42) !important;
}

.ticket_timeline .timeline-item h2,
.ticket_timeline .timeline-item h3,
.itil-object .card-title {
  color: var(--pagold-blue-deep);
}

.status,
.priority,
.itilstatus,
.timeline-badge {
  border-radius: 999px !important;
  font-weight: 800;
}

.search-card,
.search-results,
.list-group-item {
  border-color: rgba(8, 77, 110, 0.1) !important;
}

.list-group-item:hover {
  background: rgba(255, 194, 17, 0.08);
}

/* Modais e mensagens */
.modal-content {
  border: 1px solid rgba(8, 77, 110, 0.16);
  border-radius: var(--pagold-radius-lg);
  box-shadow: 0 24px 60px rgba(8, 77, 110, 0.22);
}

.modal-header {
  color: var(--pagold-white);
  background: linear-gradient(135deg, var(--pagold-navy), var(--pagold-blue-deep));
  border-bottom: 2px solid rgba(255, 194, 17, 0.8);
  border-radius: var(--pagold-radius-lg) var(--pagold-radius-lg) 0 0;
}

.modal-header .modal-title {
  color: var(--pagold-white);
}

.modal-header .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.86;
}

.alert-info,
.toast.text-bg-info,
.callout-info {
  border-color: rgba(59, 133, 168, 0.28) !important;
  color: var(--pagold-blue-deep);
  background: rgba(59, 133, 168, 0.12) !important;
}

.alert-warning,
.toast.text-bg-warning,
.callout-warning {
  border-color: rgba(255, 194, 17, 0.42) !important;
  color: #6f4a05;
  background: rgba(255, 194, 17, 0.16) !important;
}

.alert-danger,
.toast.text-bg-danger,
.callout-danger {
  border-color: rgba(188, 80, 42, 0.28) !important;
  background: rgba(188, 80, 42, 0.1) !important;
}

.alert,
.toast,
[role="alert"] {
  border-radius: var(--pagold-radius-md) !important;
  box-shadow: var(--pagold-shadow-soft);
}

body.welcome-anonymous .alert,
body.welcome-anonymous [role="alert"] {
  border: 1px solid rgba(255, 194, 17, 0.24) !important;
  color: var(--pagold-text);
  background: rgba(255, 255, 255, 0.96) !important;
}

/* Portal do solicitante */
.pagold-service-portal {
  margin-bottom: 1.5rem;
  padding: 24px;
  border: 1px solid rgba(8, 77, 110, 0.1);
  border-radius: var(--pagold-radius-lg);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 194, 17, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(8, 77, 110, 0.97), rgba(15, 50, 76, 0.96)),
    var(--pagold-navy);
  box-shadow: 0 18px 38px rgba(8, 77, 110, 0.16);
}

.pagold-service-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.pagold-service-title {
  margin: 0;
  color: var(--pagold-white);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 850;
  line-height: 1.12;
}

.pagold-service-copy {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.pagold-service-primary-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #1c1c19;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark));
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 194, 17, 0.24);
}

.pagold-service-primary-action:hover,
.pagold-service-primary-action:focus {
  color: #1c1c19;
  background: linear-gradient(135deg, var(--pagold-gold-soft), var(--pagold-gold-dark));
}

.pagold-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pagold-service-card {
  display: grid;
  min-height: 174px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--pagold-white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pagold-service-card:hover,
.pagold-service-card:focus {
  border-color: rgba(255, 194, 17, 0.82);
  color: var(--pagold-white);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.pagold-service-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--pagold-gold);
  background: rgba(255, 194, 17, 0.14);
  font-size: 1.05rem;
}

.pagold-service-card-title {
  color: var(--pagold-white);
  font-size: 1rem;
  font-weight: 850;
}

.pagold-service-card-text {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pagold-service-card-action {
  align-self: end;
  margin-top: 4px;
  color: var(--pagold-gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagold-service-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.pagold-request-summary {
  margin-top: 1.25rem;
  padding: 20px;
  border: 1px solid rgba(8, 77, 110, 0.12);
  border-radius: var(--pagold-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--pagold-shadow-soft);
}

.pagold-request-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.pagold-request-summary-header h2 {
  margin: 0;
  color: var(--pagold-blue-deep);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.pagold-summary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pagold-blue-deep);
  background: rgba(8, 77, 110, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.pagold-summary-link:hover,
.pagold-summary-link:focus {
  color: #1c1c19;
  background: rgba(255, 194, 17, 0.22);
}

.pagold-request-summary-body .card,
.pagold-request-summary-body .list-group,
.pagold-request-summary-body table {
  border-radius: var(--pagold-radius-md);
}

@media (max-width: 1080px) {
  .pagold-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .navbar-brand .glpi-logo {
    width: 136px;
    height: 42px;
  }

  .topbar .navbar-brand,
  .sidebar .navbar-brand,
  body .navbar .navbar-brand {
    min-width: 140px;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 194, 17, 0.06), transparent 18rem),
      var(--pagold-bg);
  }

  .page,
  .page-wrapper,
  .container-xl,
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .card,
  .modal-content {
    border-radius: 12px !important;
  }

  .table-responsive,
  .table,
  .search-results {
    border-radius: 12px;
    box-shadow: var(--pagold-shadow-soft);
  }

  .btn,
  .form-control,
  .form-select,
  .select2-container--default .select2-selection {
    min-height: 42px;
  }

  .pagold-service-portal {
    padding: 18px;
    border-radius: 14px;
  }

  .pagold-service-hero {
    flex-direction: column;
  }

  .pagold-service-primary-action {
    width: 100%;
  }

  .pagold-service-grid {
    grid-template-columns: 1fr;
  }

  .pagold-service-card {
    min-height: auto;
  }

  .pagold-request-summary {
    padding: 16px;
  }

  .pagold-request-summary-header {
    flex-direction: column;
  }

  .pagold-summary-link {
    width: 100%;
    justify-content: center;
  }
}

/* Acabamento de contraste, bordas e painel técnico */
html[data-pagold-ui="ready"] .topbar .btn,
html[data-pagold-ui="ready"] header.navbar .btn,
html[data-pagold-ui="ready"] .topbar .btn-outline-secondary,
html[data-pagold-ui="ready"] header.navbar .btn-outline-secondary {
  border-color: rgba(8, 77, 110, 0.38) !important;
  color: #173349 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html[data-pagold-ui="ready"] .topbar .btn-primary,
html[data-pagold-ui="ready"] header.navbar .btn-primary,
html[data-pagold-ui="ready"] .topbar .btn.active,
html[data-pagold-ui="ready"] header.navbar .btn.active {
  border-color: rgba(8, 77, 110, 0.44) !important;
  color: #ffffff !important;
  background: #617094 !important;
}

html[data-pagold-theme="dark"] .topbar .btn,
html[data-pagold-theme="dark"] header.navbar .btn {
  border-color: rgba(161, 196, 216, 0.32) !important;
  color: #f6fbff !important;
  background: rgba(12, 44, 64, 0.86) !important;
}

html[data-pagold-ui="ready"] .topbar .btn:disabled,
html[data-pagold-ui="ready"] header.navbar .btn:disabled,
html[data-pagold-ui="ready"] .topbar .disabled,
html[data-pagold-ui="ready"] header.navbar .disabled {
  opacity: 0.72 !important;
  color: #566b7a !important;
  background: #eef3f6 !important;
}

html[data-pagold-ui="ready"] .btn:not(.btn-link) {
  border-radius: 10px !important;
}

html[data-pagold-ui="ready"] input[type="file"] {
  color: #173349 !important;
  background: #ffffff !important;
}

html[data-pagold-ui="ready"] input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-right: 1px solid rgba(8, 77, 110, 0.16);
  color: #173349;
  background: #eef5f8;
  font-weight: 800;
}

html[data-pagold-theme="dark"] input[type="file"],
html[data-pagold-theme="dark"] input[type="file"]::file-selector-button {
  color: #f6fbff !important;
  background: #0c2c40 !important;
}

html[data-pagold-ui="ready"] .card,
html[data-pagold-ui="ready"] .table-responsive,
html[data-pagold-ui="ready"] .tab-content.card {
  outline: 0 !important;
}

.pagold-tech-panel {
  margin: 0 0 24px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--pagold-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 12%, rgba(255, 194, 17, 0.16), transparent 18rem),
    var(--pagold-surface);
  box-shadow: 0 18px 48px rgba(8, 36, 53, 0.1);
}

.pagold-tech-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pagold-tech-panel-header span {
  color: var(--pagold-gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pagold-tech-panel-header strong {
  display: block;
  color: var(--pagold-strong-text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
}

.pagold-tech-panel-header small {
  color: var(--pagold-soft-text);
}

.pagold-tech-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagold-tech-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--pagold-line);
  border-radius: 12px;
  color: var(--pagold-blue-deep) !important;
  background: var(--pagold-surface-2);
  font-weight: 900;
  text-decoration: none !important;
}

.pagold-tech-action-primary {
  border-color: rgba(188, 128, 42, 0.36);
  color: #1f1a08 !important;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark));
}

.pagold-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pagold-tech-card {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--pagold-line);
  border-top: 4px solid var(--pagold-gold);
  border-radius: 18px;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface-2);
  text-decoration: none !important;
}

.pagold-tech-card span {
  color: var(--pagold-strong-text);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
}

.pagold-tech-card strong {
  font-weight: 900;
}

.pagold-tech-card small {
  color: var(--pagold-soft-text);
}

.pagold-tech-card-new {
  border-top-color: #48d17b;
}

.pagold-tech-card-progress {
  border-top-color: #42c7e8;
}

.pagold-tech-card-pending {
  border-top-color: #ffc211;
}

.pagold-tech-card-late {
  border-top-color: #ef6b6b;
}

html[data-pagold-theme="dark"] .pagold-tech-action {
  color: #f6fbff !important;
  background: #0c2c40;
}

html[data-pagold-theme="dark"] .pagold-tech-action-primary {
  color: #1f1a08 !important;
}

@media (max-width: 1100px) {
  .pagold-tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .pagold-tech-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagold-tech-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard dedicado: compartilha o escopo server-side da fila e do painel TV. */
.pagold-scope-dashboard {
  display: grid;
  gap: 22px;
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 34px);
  color: var(--pagold-strong-text);
}

.pagold-scope-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid rgba(255, 194, 17, 0.32);
  border-radius: 28px;
  color: #f6fbff;
  background:
    radial-gradient(circle at 94% 20%, rgba(255, 194, 17, 0.2), transparent 22rem),
    linear-gradient(135deg, #062b3f, #0b506a);
  box-shadow: 0 20px 54px rgba(6, 43, 63, 0.18);
}

.pagold-scope-dashboard-hero > div > span,
.pagold-scope-dashboard-card header span {
  color: var(--pagold-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pagold-scope-dashboard-hero h1 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.pagold-scope-dashboard-hero p {
  margin: 0;
  color: #bfe4f4;
}

.pagold-scope-dashboard-hero nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pagold-scope-dashboard-hero nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: #f6fbff !important;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-decoration: none !important;
}

.pagold-scope-dashboard-hero nav a.is-primary {
  border-color: var(--pagold-gold);
  color: #1f1a08 !important;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark));
}

.pagold-scope-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pagold-scope-metric {
  display: grid;
  gap: 3px;
  min-height: 126px;
  padding: 20px;
  border: 1px solid var(--pagold-line);
  border-top: 4px solid var(--pagold-gold);
  border-radius: 20px;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface);
  box-shadow: 0 14px 34px rgba(8, 36, 53, 0.08);
  text-decoration: none !important;
}

.pagold-scope-metric strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.pagold-scope-metric span {
  font-weight: 900;
}

.pagold-scope-metric small {
  color: var(--pagold-soft-text);
}

.pagold-scope-metric.is-new { border-top-color: #48d17b; }
.pagold-scope-metric.is-assigned { border-top-color: #42c7e8; }
.pagold-scope-metric.is-pending { border-top-color: #ffc211; }
.pagold-scope-metric.is-late { border-top-color: #ef6b6b; }

.pagold-scope-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.8fr);
  gap: 18px;
  align-items: start;
}

.pagold-scope-dashboard-card {
  overflow: hidden;
  border: 1px solid var(--pagold-line);
  border-radius: 22px;
  background: var(--pagold-surface);
  box-shadow: 0 14px 34px rgba(8, 36, 53, 0.08);
}

.pagold-scope-dashboard-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--pagold-line);
}

.pagold-scope-dashboard-card header h2 {
  margin: 3px 0 0;
  color: var(--pagold-strong-text);
  font-size: 1.25rem;
}

.pagold-scope-dashboard-card header > strong,
.pagold-scope-dashboard-card header > a {
  color: var(--pagold-blue) !important;
  font-weight: 900;
}

.pagold-scope-area-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.pagold-scope-area-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--pagold-line);
  border-radius: 14px;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface-2);
  font-weight: 800;
  text-decoration: none !important;
}

.pagold-scope-area-list strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  color: #1f1a08;
  background: var(--pagold-gold);
}

.pagold-scope-ticket-list {
  display: grid;
}

.pagold-scope-ticket-list > a {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) 126px 122px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--pagold-line);
  color: var(--pagold-strong-text) !important;
  text-decoration: none !important;
}

.pagold-scope-ticket-list > a:last-child {
  border-bottom: 0;
}

.pagold-scope-ticket-list > a:hover {
  background: var(--pagold-surface-2);
}

.pagold-scope-ticket-id,
.pagold-scope-ticket-main strong {
  color: var(--pagold-blue);
  font-weight: 900;
}

.pagold-scope-ticket-main {
  display: grid;
  min-width: 0;
}

.pagold-scope-ticket-main strong,
.pagold-scope-ticket-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagold-scope-ticket-main small,
.pagold-scope-ticket-list time {
  color: var(--pagold-soft-text);
}

.pagold-scope-ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #07314a;
  background: #dff3f8;
  font-size: 0.82rem;
  font-weight: 900;
}

.pagold-scope-ticket-status.is-new { background: #dff7e8; }
.pagold-scope-ticket-status.is-assigned { background: #dff3f8; }
.pagold-scope-ticket-status.is-planned { background: #f7e5e5; }
.pagold-scope-ticket-status.is-pending { background: #fff0bf; }

.pagold-scope-empty {
  margin: 0;
  padding: 38px 22px;
  color: var(--pagold-soft-text);
  text-align: center;
}

html[data-pagold-theme="dark"] .pagold-scope-metric,
html[data-pagold-theme="dark"] .pagold-scope-dashboard-card {
  background: #0b2d40;
}

html[data-pagold-theme="dark"] .pagold-scope-area-list a,
html[data-pagold-theme="dark"] .pagold-scope-ticket-list > a:hover {
  background: #10384d;
}

@media (max-width: 1100px) {
  .pagold-scope-dashboard-hero,
  .pagold-scope-dashboard-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagold-scope-dashboard-hero nav {
    justify-content: flex-start;
  }

  .pagold-scope-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pagold-scope-dashboard {
    gap: 14px;
    padding: 12px;
  }

  .pagold-scope-dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .pagold-scope-ticket-list > a {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .pagold-scope-ticket-status,
  .pagold-scope-ticket-list time {
    justify-self: start;
    grid-column: 2;
  }
}

@media (max-width: 440px) {
  .pagold-scope-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .pagold-scope-dashboard-hero nav,
  .pagold-scope-dashboard-hero nav a {
    width: 100%;
  }
}

/* Formulário dedicado de abertura de chamados */
body.welcome-anonymous.pagold-login-page:has(.pagold-dedicated-ticket) .pagold-login-shell {
  width: min(100%, 920px) !important;
}

body.welcome-anonymous.pagold-login-page:has(.pagold-dedicated-ticket) .pagold-login-card.card {
  max-width: 920px !important;
}

body.welcome-anonymous.pagold-login-page:has(.pagold-dedicated-ticket) .pagold-login-card .card-body {
  padding: clamp(24px, 4vw, 42px) !important;
}

.pagold-dedicated-ticket {
  color: #f6fbff;
}

.pagold-dedicated-ticket-header {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.pagold-dedicated-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pagold-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pagold-dedicated-ticket h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.pagold-dedicated-ticket-header p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.pagold-dedicated-ticket-form {
  display: grid;
  gap: 22px;
}

.pagold-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pagold-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pagold-field-full {
  grid-column: 1 / -1;
}

.pagold-field span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagold-field strong {
  color: var(--pagold-gold);
}

.pagold-field small {
  color: rgba(255, 255, 255, 0.56);
}

.pagold-dedicated-ticket .form-control,
.pagold-dedicated-ticket .form-select {
  min-height: 54px !important;
  border: 1px solid rgba(161, 196, 216, 0.28) !important;
  border-radius: 14px !important;
  color: #f6fbff !important;
  background: rgba(5, 26, 39, 0.62) !important;
  font-size: 1rem;
}

.pagold-dedicated-ticket .form-control::placeholder {
  color: rgba(246, 251, 255, 0.48);
}

.pagold-dedicated-ticket .form-control:focus,
.pagold-dedicated-ticket .form-select:focus {
  border-color: var(--pagold-gold) !important;
  box-shadow: 0 0 0 0.18rem rgba(255, 194, 17, 0.2) !important;
}

.pagold-dedicated-ticket textarea.form-control {
  min-height: 180px !important;
  resize: vertical;
}

.pagold-dedicated-help {
  padding: 16px 18px;
  border: 1px dashed rgba(255, 194, 17, 0.42);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 194, 17, 0.08);
}

.pagold-dedicated-help strong {
  color: var(--pagold-gold);
}

.pagold-dedicated-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  color: #1f1a08;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark));
  box-shadow: 0 18px 40px rgba(188, 128, 42, 0.26);
  font-size: 1.08rem;
  font-weight: 900;
}

.pagold-dedicated-submit:hover,
.pagold-dedicated-submit:focus {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .pagold-form-grid {
    grid-template-columns: 1fr;
  }

  body.welcome-anonymous.pagold-login-page:has(.pagold-dedicated-ticket) .pagold-login-shell,
  body.welcome-anonymous.pagold-login-page:has(.pagold-dedicated-ticket) .pagold-login-card.card {
    max-width: 100% !important;
  }
}

/* Override final: login PA Gold compacto e sem aparência padrão GLPI */
body.welcome-anonymous.pagold-login-page {
  margin: 0 !important;
  color: var(--pagold-white) !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 194, 17, 0.22), transparent 17rem),
    radial-gradient(circle at 88% 8%, rgba(60, 143, 179, 0.36), transparent 24rem),
    linear-gradient(135deg, #071722 0%, #08283b 46%, #0a5b78 100%) !important;
}

body.welcome-anonymous.pagold-login-page .page,
body.welcome-anonymous.pagold-login-page .page-anonymous,
body.welcome-anonymous.pagold-login-page .pagold-login-canvas {
  width: 100%;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(22px, 4.5vw, 48px) !important;
  background: transparent !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-canvas {
  display: grid;
  align-items: center;
  justify-items: center;
}

body.welcome-anonymous.pagold-login-page .pagold-login-shell {
  width: min(100%, 520px) !important;
  margin: 0 auto !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-logo {
  width: min(220px, 68vw) !important;
  max-width: 220px !important;
  height: auto;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card.card {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  border: 1px solid rgba(255, 194, 17, 0.26) !important;
  border-radius: 20px !important;
  color: var(--pagold-white) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.08)),
    rgba(6, 31, 47, 0.9) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
  backdrop-filter: blur(16px);
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .card-body {
  padding: clamp(18px, 3vw, 26px) !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .row {
  display: block !important;
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card [class^="col-"],
body.welcome-anonymous.pagold-login-page .pagold-login-card [class*=" col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  flex: 0 0 100% !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card form {
  width: min(100%, 390px) !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
}

body.welcome-anonymous.pagold-login-page .pagold-login-brand {
  margin-bottom: 10px !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-kicker {
  margin: 6px 0 10px !important;
  font-size: 0.78rem !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-panel {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .pagold-login-options {
  display: flex !important;
  width: 100% !important;
  max-width: 390px;
  margin: 0 auto !important;
  align-items: stretch !important;
  flex-direction: column !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-column,
body.welcome-anonymous.pagold-login-page .pagold-local-login-column {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-column {
  order: -1;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-panel > .card-header {
  display: none !important;
  padding: 0 !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-panel > .row {
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-panel .col-sm-6 {
  width: 100% !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-button.btn {
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(255, 194, 17, 0.7) !important;
  border-radius: 12px !important;
  color: #102433 !important;
  background: linear-gradient(135deg, #ffc211, #d99a20) !important;
  box-shadow: 0 10px 22px rgba(255, 194, 17, 0.2) !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-button > div {
  margin: 0 !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-button .d-flex {
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-button i {
  font-size: 1.25rem !important;
}

body.welcome-anonymous.pagold-login-page .pagold-sso-button span {
  font-size: 1rem;
}

body.welcome-anonymous.pagold-login-page .pagold-local-login-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

body.welcome-anonymous.pagold-login-page .pagold-local-login-label::before,
body.welcome-anonymous.pagold-login-page .pagold-local-login-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
}

body.welcome-anonymous.pagold-login-page .pagold-local-login-label span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
}

body.welcome-anonymous.pagold-login-page .pagold-local-login-label strong {
  font-weight: 500;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .mb-4,
body.welcome-anonymous.pagold-login-page .pagold-login-card .mb-3 {
  margin-bottom: 12px !important;
}

body.welcome-anonymous.pagold-login-page .card-header {
  padding: 0 0 18px !important;
  border: 0 !important;
  background: transparent !important;
}

body.welcome-anonymous.pagold-login-page .card-header h2,
body.welcome-anonymous.pagold-login-page h2 {
  margin: 0 !important;
  color: var(--pagold-white) !important;
  font-family: var(--pagold-font-body) !important;
  font-size: clamp(1.15rem, 3.2vw, 1.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-transform: none;
  text-align: center;
}

body.welcome-anonymous.pagold-login-page .form-label,
body.welcome-anonymous.pagold-login-page label,
body.welcome-anonymous.pagold-login-page .form-check-label {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.welcome-anonymous.pagold-login-page .form-control,
body.welcome-anonymous.pagold-login-page .form-select,
body.welcome-anonymous.pagold-login-page .select2-container--default .select2-selection {
  min-height: 46px !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px !important;
  color: var(--pagold-white) !important;
  background: rgba(4, 24, 37, 0.58) !important;
  box-shadow: none !important;
}

body.welcome-anonymous.pagold-login-page .form-control:focus,
body.welcome-anonymous.pagold-login-page .form-select:focus,
body.welcome-anonymous.pagold-login-page .select2-container--focus .select2-selection {
  border-color: var(--pagold-gold) !important;
  box-shadow: 0 0 0 0.18rem rgba(255, 194, 17, 0.2) !important;
}

body.welcome-anonymous.pagold-login-page .select2-container--default .select2-selection__rendered {
  color: rgba(255, 255, 255, 0.94) !important;
}

body.welcome-anonymous.pagold-login-page .btn-primary {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 12px !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-footer {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.82rem;
  text-align: center;
}

body.welcome-anonymous.pagold-login-page .pagold-login-footer strong {
  color: var(--pagold-gold);
}

@media (max-width: 520px) {
  body.welcome-anonymous.pagold-login-page .page-anonymous,
  body.welcome-anonymous.pagold-login-page .pagold-login-canvas {
    align-items: start;
    padding: 22px 16px !important;
  }

  body.welcome-anonymous.pagold-login-page .pagold-login-logo {
    width: min(190px, 70vw) !important;
  }

  body.welcome-anonymous.pagold-login-page .pagold-theme-toggle {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}

/* Etapa UI/UX: tema claro/escuro, painel e chamados */
html[data-pagold-theme="light"] {
  --pagold-app-bg: #edf2f6;
  --pagold-surface: #ffffff;
  --pagold-surface-2: #f7fafc;
  --pagold-surface-3: #eef5f8;
  --pagold-line: rgba(8, 77, 110, 0.13);
  --pagold-strong-text: #142737;
  --pagold-soft-text: #60798a;
  --pagold-input-bg: #ffffff;
  --pagold-menu-bg: linear-gradient(165deg, #0b3148 0%, #0e5b77 100%);
  --pagold-topbar-bg: rgba(255, 255, 255, 0.9);
}

html[data-pagold-theme="dark"] {
  --pagold-app-bg: #071621;
  --pagold-surface: #0b2638;
  --pagold-surface-2: #0e3045;
  --pagold-surface-3: #102f42;
  --pagold-line: rgba(113, 174, 202, 0.2);
  --pagold-strong-text: #f6fbff;
  --pagold-soft-text: #9bb8c9;
  --pagold-input-bg: #0a2232;
  --pagold-menu-bg: linear-gradient(165deg, #061924 0%, #0b4057 100%);
  --pagold-topbar-bg: rgba(8, 30, 44, 0.92);
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous) {
  color: var(--pagold-strong-text) !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 194, 17, 0.08), transparent 20rem),
    linear-gradient(180deg, var(--pagold-app-bg), var(--pagold-app-bg)) !important;
  font-family: var(--pagold-font-body) !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous) h1,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous) h2,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous) h3,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous) .page-title {
  color: var(--pagold-strong-text) !important;
  font-family: var(--pagold-font-body) !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em;
}

.pagold-theme-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 0 10px;
  place-items: center;
  border: 1px solid var(--pagold-line);
  border-radius: 12px;
  color: var(--pagold-blue-deep);
  background: var(--pagold-surface);
  box-shadow: var(--pagold-shadow-soft);
  font: 900 1.25rem/1 var(--pagold-font-body);
  cursor: pointer;
}

html[data-pagold-theme="dark"] .pagold-theme-toggle {
  color: var(--pagold-gold);
  background: #0b2638;
}

.pagold-theme-toggle:hover,
.pagold-theme-toggle:focus {
  border-color: var(--pagold-gold);
  transform: translateY(-1px);
}

html[data-pagold-ui="ready"] .topbar,
html[data-pagold-ui="ready"] .navbar.topbar,
html[data-pagold-ui="ready"] header.navbar {
  border-bottom: 2px solid var(--pagold-gold) !important;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-topbar-bg) !important;
  box-shadow: 0 12px 28px rgba(8, 36, 53, 0.1) !important;
  backdrop-filter: blur(16px);
}

html[data-pagold-theme="dark"] .topbar,
html[data-pagold-theme="dark"] .navbar.topbar,
html[data-pagold-theme="dark"] header.navbar {
  color: #f6fbff !important;
}

html[data-pagold-ui="ready"] .sidebar,
html[data-pagold-ui="ready"] .navbar-vertical {
  background: var(--pagold-menu-bg) !important;
  box-shadow: 18px 0 50px rgba(5, 24, 35, 0.18);
}

html[data-pagold-ui="ready"] .page-wrapper,
html[data-pagold-ui="ready"] .page-body {
  background: transparent !important;
}

html[data-pagold-ui="ready"] .card,
html[data-pagold-ui="ready"] .modal-content,
html[data-pagold-ui="ready"] .dropdown-menu {
  border: 1px solid var(--pagold-line) !important;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface) !important;
  box-shadow: 0 18px 46px rgba(8, 36, 53, 0.1) !important;
}

html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item a,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item span,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item i,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-header,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-title {
  color: var(--pagold-strong-text) !important;
}

html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item.active,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item:active,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item:hover,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item:focus,
html[data-pagold-ui="ready"] .dropdown-menu .show > .dropdown-item {
  color: #082638 !important;
  background: rgba(255, 194, 17, 0.18) !important;
}

html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item.active *,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item:active *,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item:hover *,
html[data-pagold-ui="ready"] .dropdown-menu .dropdown-item:focus *,
html[data-pagold-ui="ready"] .dropdown-menu .show > .dropdown-item * {
  color: #082638 !important;
}

html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item a,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item span,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item i,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-header,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-title {
  color: #eef8fc !important;
}

html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item.active,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item:active,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item:hover,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item:focus,
html[data-pagold-theme="dark"] .dropdown-menu .show > .dropdown-item {
  color: #101820 !important;
  background: rgba(255, 194, 17, 0.86) !important;
}

html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item.active *,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item:active *,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item:hover *,
html[data-pagold-theme="dark"] .dropdown-menu .dropdown-item:focus *,
html[data-pagold-theme="dark"] .dropdown-menu .show > .dropdown-item * {
  color: #101820 !important;
}

html[data-pagold-theme="dark"] .text-muted,
html[data-pagold-theme="dark"] .form-hint,
html[data-pagold-theme="dark"] .text-secondary {
  color: var(--pagold-soft-text) !important;
}

html[data-pagold-ui="ready"] .form-control,
html[data-pagold-ui="ready"] .form-select,
html[data-pagold-ui="ready"] .select2-container--default .select2-selection {
  border: 1px solid var(--pagold-line) !important;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-input-bg) !important;
}

html[data-pagold-theme="dark"] .select2-dropdown,
html[data-pagold-theme="dark"] .select2-results__option {
  color: #f6fbff !important;
  background: #0a2232 !important;
}

html[data-pagold-theme="dark"] .select2-results__option--highlighted {
  color: #101820 !important;
  background: var(--pagold-gold) !important;
}


/* Lista de chamados: tabela legível e sem sobreposição */
.pagold-ticket-list-page .page-body {
  padding-top: 20px !important;
}

.pagold-ticket-list-page .card,
.pagold-ticket-list-page .search-container,
.pagold-ticket-list-page .table-responsive {
  max-width: 100% !important;
  border-radius: 18px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.pagold-ticket-list-page table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  color: var(--pagold-strong-text) !important;
  background: transparent !important;
}

.pagold-ticket-list-page thead,
.pagold-ticket-list-page thead tr,
.pagold-ticket-list-page thead th {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  color: var(--pagold-blue-deep) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-pagold-theme="dark"] .pagold-ticket-list-page thead th {
  color: var(--pagold-gold) !important;
}

.pagold-ticket-list-page tbody tr {
  background: var(--pagold-surface) !important;
  box-shadow: none !important;
}

.pagold-ticket-list-page tbody td {
  border-top: 1px solid rgba(8, 76, 110, 0.08) !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  vertical-align: middle !important;
  background: transparent !important;
}

.pagold-ticket-list-page tbody td:first-child {
  border-radius: 0;
}

.pagold-ticket-list-page tbody td:last-child {
  border-radius: 0;
}

/* Formulário de chamado inspirado nas referências do portal */
.pagold-ticket-form-page .page-body,
.pagold-ticket-request-page .page-body {
  padding-top: 24px !important;
}

.pagold-ticket-form-page .page-body > .container-xl,
.pagold-ticket-request-page .page-body > .container-xl,
.pagold-ticket-form-page .page-body > .container-fluid,
.pagold-ticket-request-page .page-body > .container-fluid {
  max-width: 1180px !important;
}

.pagold-ticket-form-page form,
.pagold-ticket-request-page form {
  color: var(--pagold-strong-text);
}

.pagold-ticket-form-page .card,
.pagold-ticket-request-page .card,
.pagold-ticket-form-page .itil-object,
.pagold-ticket-request-page .itil-object {
  border-radius: 24px !important;
}

.pagold-ticket-form-page .picture-block,
.pagold-ticket-request-page .picture-block {
  display: none !important;
}

.pagold-ticket-form-page .content-block,
.pagold-ticket-request-page .content-block {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.pagold-ticket-form-page .itil-left-side,
.pagold-ticket-request-page .itil-left-side {
  border-top: 0 !important;
}

.pagold-ticket-form-page .timeline-content.left.card,
.pagold-ticket-request-page .timeline-content.left.card {
  width: 100% !important;
  border: 1px solid var(--pagold-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 194, 17, 0.04), transparent),
    var(--pagold-surface) !important;
}

.pagold-ticket-form-hero {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 194, 17, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 95% 20%, rgba(255, 194, 17, 0.18), transparent 12rem),
    linear-gradient(135deg, var(--pagold-surface-2), var(--pagold-surface));
}

.pagold-ticket-form-hero span {
  color: var(--pagold-gold-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pagold-ticket-form-hero strong {
  color: var(--pagold-strong-text);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pagold-ticket-form-hero small {
  color: var(--pagold-soft-text);
  font-size: 0.95rem;
}

html[data-pagold-theme="dark"] .pagold-ticket-form-hero {
  background:
    radial-gradient(circle at 95% 20%, rgba(255, 194, 17, 0.16), transparent 12rem),
    linear-gradient(135deg, #0b2638, #0d3148);
}

.pagold-ticket-form-page .pagold-advanced-field-hidden,
.pagold-ticket-request-page .pagold-advanced-field-hidden {
  display: none !important;
}

.pagold-ticket-form-page .itil-right-side,
.pagold-ticket-request-page .itil-right-side {
  border-left: 1px solid var(--pagold-line) !important;
  border-radius: 0 24px 24px 0 !important;
  background: color-mix(in srgb, var(--pagold-surface-2) 84%, transparent) !important;
}

.pagold-ticket-form-page .itil-right-side .accordion-item,
.pagold-ticket-request-page .itil-right-side .accordion-item {
  border: 0 !important;
  background: transparent !important;
}

.pagold-ticket-form-page .itil-right-side .accordion-body,
.pagold-ticket-request-page .itil-right-side .accordion-body {
  padding: 16px !important;
}

.pagold-ticket-form-page .card-body,
.pagold-ticket-request-page .card-body {
  padding: clamp(22px, 3vw, 36px) !important;
}

.pagold-ticket-form-page label,
.pagold-ticket-request-page label,
.pagold-ticket-form-page .form-label,
.pagold-ticket-request-page .form-label {
  color: var(--pagold-soft-text) !important;
  font-size: 0.78rem;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagold-ticket-form-page input.form-control,
.pagold-ticket-request-page input.form-control,
.pagold-ticket-form-page textarea.form-control,
.pagold-ticket-request-page textarea.form-control,
.pagold-ticket-form-page .select2-selection,
.pagold-ticket-request-page .select2-selection {
  min-height: 52px !important;
  border-radius: 13px !important;
  font-size: 1rem;
}

.pagold-ticket-form-page textarea.form-control,
.pagold-ticket-request-page textarea.form-control,
.pagold-ticket-form-page .tox-tinymce,
.pagold-ticket-request-page .tox-tinymce {
  min-height: 160px !important;
  border-radius: 16px !important;
}

.pagold-ticket-form-page .btn-primary,
.pagold-ticket-request-page .btn-primary,
.pagold-ticket-form-page button[name="add"],
.pagold-ticket-request-page button[name="add"] {
  min-height: 54px !important;
  border-radius: 14px !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
}

.pagold-ticket-form-page .form-buttons,
.pagold-ticket-request-page .form-buttons {
  justify-content: stretch !important;
}

.pagold-ticket-form-page .form-buttons button[name="add"],
.pagold-ticket-request-page .form-buttons button[name="add"] {
  width: 100% !important;
}

.pagold-ticket-form-page .card-footer,
.pagold-ticket-request-page .card-footer,
.pagold-ticket-form-page .submit,
.pagold-ticket-request-page .submit {
  border-top: 1px solid var(--pagold-line) !important;
  background: color-mix(in srgb, var(--pagold-surface) 88%, transparent) !important;
}

html[data-pagold-theme="dark"] .pagold-ticket-form-page .main-card,
html[data-pagold-theme="dark"] .pagold-ticket-request-page .main-card,
html[data-pagold-theme="dark"] .pagold-ticket-form-page .card,
html[data-pagold-theme="dark"] .pagold-ticket-request-page .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--pagold-surface) !important;
}

@media (max-width: 900px) {
  .pagold-ticket-list-page .table-responsive {
    overflow-x: auto !important;
  }

  .pagold-ticket-form-page .page-body,
  .pagold-ticket-request-page .page-body {
    padding: 16px 10px !important;
  }
}

/* Correções UI/UX v2: portal dedicado, contraste e espaçamento */
html[data-pagold-ui="ready"] body:not(.welcome-anonymous) {
  line-height: 1.5 !important;
}

html[data-pagold-ui="ready"] .topbar,
html[data-pagold-ui="ready"] .navbar.topbar,
html[data-pagold-ui="ready"] header.navbar {
  min-height: 64px !important;
  padding: 6px 18px !important;
}

html[data-pagold-ui="ready"] .topbar .navbar-nav,
html[data-pagold-ui="ready"] header.navbar .navbar-nav {
  align-items: center !important;
  gap: 8px !important;
}

html[data-pagold-ui="ready"] .topbar .btn,
html[data-pagold-ui="ready"] header.navbar .btn {
  min-height: 36px !important;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

html[data-pagold-theme="light"] .topbar .navbar-nav .nav-link,
html[data-pagold-theme="light"] .topbar .navbar-nav .dropdown-toggle,
html[data-pagold-theme="light"] header.navbar .navbar-nav .nav-link,
html[data-pagold-theme="light"] header.navbar .navbar-nav .dropdown-toggle,
html[data-pagold-theme="light"] .topbar .user-info,
html[data-pagold-theme="light"] header.navbar .user-info,
html[data-pagold-theme="light"] .topbar .user-info *,
html[data-pagold-theme="light"] header.navbar .user-info *,
html[data-pagold-theme="light"] .topbar .profile-info,
html[data-pagold-theme="light"] header.navbar .profile-info,
html[data-pagold-theme="light"] .topbar .profile-info *,
html[data-pagold-theme="light"] header.navbar .profile-info * {
  color: #0b3147 !important;
  opacity: 1 !important;
}

html[data-pagold-theme="light"] .topbar .text-muted,
html[data-pagold-theme="light"] header.navbar .text-muted,
html[data-pagold-theme="light"] .topbar small,
html[data-pagold-theme="light"] header.navbar small {
  color: #5d7280 !important;
  opacity: 1 !important;
}

html[data-pagold-theme="dark"] .topbar .navbar-nav .nav-link,
html[data-pagold-theme="dark"] .topbar .navbar-nav .dropdown-toggle,
html[data-pagold-theme="dark"] header.navbar .navbar-nav .nav-link,
html[data-pagold-theme="dark"] header.navbar .navbar-nav .dropdown-toggle,
html[data-pagold-theme="dark"] .topbar .user-info,
html[data-pagold-theme="dark"] header.navbar .user-info,
html[data-pagold-theme="dark"] .topbar .user-info *,
html[data-pagold-theme="dark"] header.navbar .user-info * {
  color: #f4fbff !important;
  opacity: 1 !important;
}

/* Fallback sem classes especificas: texto do usuario na topbar clara. */
html[data-pagold-theme="light"] .topbar .navbar-nav > .nav-item > .nav-link,
html[data-pagold-theme="light"] header.navbar .navbar-nav > .nav-item > .nav-link,
html[data-pagold-theme="light"] .topbar .navbar-nav > li > a,
html[data-pagold-theme="light"] header.navbar .navbar-nav > li > a,
html[data-pagold-theme="light"] .topbar .navbar-nav .dropdown > a,
html[data-pagold-theme="light"] header.navbar .navbar-nav .dropdown > a {
  color: #0b3147 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-pagold-theme="light"] .topbar .navbar-nav > .nav-item > .nav-link *,
html[data-pagold-theme="light"] header.navbar .navbar-nav > .nav-item > .nav-link *,
html[data-pagold-theme="light"] .topbar .navbar-nav > li > a *,
html[data-pagold-theme="light"] header.navbar .navbar-nav > li > a *,
html[data-pagold-theme="light"] .topbar .navbar-nav .dropdown > a *,
html[data-pagold-theme="light"] header.navbar .navbar-nav .dropdown > a * {
  color: #0b3147 !important;
  opacity: 1 !important;
}

/* Ajustes funcionais do portal do solicitante - 2026-08-07 */
.pagold-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pagold-searchable-select-ui {
  position: relative;
  z-index: 3;
}

.pagold-searchable-input,
.pagold-dedicated-ticket input[type="text"],
.pagold-dedicated-ticket textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(8, 77, 110, 0.2);
  border-radius: 14px;
  color: #0b2c40 !important;
  background: #ffffff !important;
  font-family: var(--pagold-font-body) !important;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: none;
}

.pagold-dedicated-ticket textarea {
  min-height: 180px;
}

.pagold-searchable-input,
.pagold-dedicated-ticket input[type="text"] {
  padding: 0 44px 0 16px;
}

.pagold-dedicated-ticket textarea {
  padding: 16px;
}

.pagold-searchable-input::placeholder,
.pagold-dedicated-ticket input[type="text"]::placeholder,
.pagold-dedicated-ticket textarea::placeholder {
  color: #6a7d8a !important;
  opacity: 1 !important;
}

.pagold-searchable-input:focus,
.pagold-dedicated-ticket input[type="text"]:focus,
.pagold-dedicated-ticket textarea:focus {
  border-color: var(--pagold-gold) !important;
  outline: 0;
  box-shadow: 0 0 0 0.18rem rgba(255, 194, 17, 0.2) !important;
}

.pagold-searchable-select-ui::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #5a7484;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.pagold-searchable-select-ui.is-open::after {
  transform: translateY(-30%) rotate(225deg);
}

.pagold-searchable-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  max-height: min(360px, 46vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(8, 77, 110, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 36, 53, 0.18);
}

.pagold-searchable-select-ui.is-open .pagold-searchable-list {
  display: grid;
  gap: 4px;
}

.pagold-searchable-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: #0b2c40;
  background: transparent;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.pagold-searchable-option:hover,
.pagold-searchable-option:focus,
.pagold-searchable-option.is-selected {
  color: #061f2f;
  background: rgba(255, 194, 17, 0.18);
}

.pagold-searchable-empty {
  padding: 14px 12px;
  color: #5a7484;
  font-size: 0.92rem;
}

.pagold-search-hidden {
  display: none !important;
}

html[data-pagold-theme="dark"] .pagold-searchable-input,
html[data-pagold-theme="dark"] .pagold-dedicated-ticket input[type="text"],
html[data-pagold-theme="dark"] .pagold-dedicated-ticket textarea {
  border-color: rgba(161, 196, 216, 0.3) !important;
  color: #f6fbff !important;
  background: rgba(5, 26, 39, 0.72) !important;
}

html[data-pagold-theme="dark"] .pagold-searchable-input::placeholder,
html[data-pagold-theme="dark"] .pagold-dedicated-ticket input[type="text"]::placeholder,
html[data-pagold-theme="dark"] .pagold-dedicated-ticket textarea::placeholder {
  color: rgba(246, 251, 255, 0.56) !important;
}

html[data-pagold-theme="dark"] .pagold-searchable-select-ui::after {
  color: rgba(246, 251, 255, 0.7);
}

html[data-pagold-theme="dark"] .pagold-searchable-list {
  border-color: rgba(161, 196, 216, 0.22);
  background: #092638;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

html[data-pagold-theme="dark"] .pagold-searchable-option {
  color: #f6fbff;
}

html[data-pagold-theme="dark"] .pagold-searchable-option:hover,
html[data-pagold-theme="dark"] .pagold-searchable-option:focus,
html[data-pagold-theme="dark"] .pagold-searchable-option.is-selected {
  color: #ffffff;
  background: rgba(255, 194, 17, 0.24);
}

html[data-pagold-theme="dark"] .pagold-searchable-empty {
  color: rgba(246, 251, 255, 0.66);
}

html[data-pagold-theme="light"] .topbar .navbar-nav small,
html[data-pagold-theme="light"] header.navbar .navbar-nav small,
html[data-pagold-theme="light"] .topbar .navbar-nav .text-muted,
html[data-pagold-theme="light"] header.navbar .navbar-nav .text-muted {
  color: #5d7280 !important;
  opacity: 1 !important;
}

html[data-pagold-theme="light"] .topbar .avatar,
html[data-pagold-theme="light"] header.navbar .avatar,
html[data-pagold-theme="light"] .topbar .avatar *,
html[data-pagold-theme="light"] header.navbar .avatar * {
  color: #31546a !important;
}

html:not([data-pagold-theme="dark"]) .topbar .navbar-nav > .nav-item > .nav-link,
html:not([data-pagold-theme="dark"]) header.navbar .navbar-nav > .nav-item > .nav-link,
html:not([data-pagold-theme="dark"]) .topbar .navbar-nav > li > a,
html:not([data-pagold-theme="dark"]) header.navbar .navbar-nav > li > a {
  color: #0b3147 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html:not([data-pagold-theme="dark"]) .topbar .navbar-nav > .nav-item > .nav-link *,
html:not([data-pagold-theme="dark"]) header.navbar .navbar-nav > .nav-item > .nav-link *,
html:not([data-pagold-theme="dark"]) .topbar .navbar-nav > li > a *,
html:not([data-pagold-theme="dark"]) header.navbar .navbar-nav > li > a * {
  color: #0b3147 !important;
  opacity: 1 !important;
}

html[data-pagold-ui="ready"] .navbar-vertical,
html[data-pagold-ui="ready"] .sidebar {
  border-right: 0 !important;
  overflow-x: hidden !important;
}

html[data-pagold-ui="ready"] .navbar-vertical .navbar-brand,
html[data-pagold-ui="ready"] .sidebar .navbar-brand {
  min-width: 0 !important;
  width: 100% !important;
  justify-content: center !important;
  padding: 18px 12px !important;
}

html[data-pagold-ui="ready"] .navbar-vertical .navbar-brand .glpi-logo,
html[data-pagold-ui="ready"] .sidebar .navbar-brand .glpi-logo {
  width: 56px !important;
  height: 44px !important;
  background-image: url("/pagold/assets/pagold-favicon.png") !important;
  background-size: contain !important;
}

html[data-pagold-ui="ready"] .navbar-vertical .nav-link,
html[data-pagold-ui="ready"] .sidebar .nav-link {
  margin: 5px 10px !important;
  border-radius: 14px !important;
}

html[data-pagold-ui="ready"] .page-body {
  padding: 26px 30px !important;
}

html[data-pagold-ui="ready"] .container-xl,
html[data-pagold-ui="ready"] .container-fluid {
  max-width: 1440px !important;
}

html[data-pagold-theme="dark"] .form-control,
html[data-pagold-theme="dark"] .form-select,
html[data-pagold-theme="dark"] .select2-container--default .select2-selection,
html[data-pagold-theme="dark"] .select2-selection__rendered {
  color: #f6fbff !important;
}

html[data-pagold-theme="dark"] .tox .tox-toolbar,
html[data-pagold-theme="dark"] .tox .tox-toolbar__primary,
html[data-pagold-theme="dark"] .tox .tox-edit-area__iframe,
html[data-pagold-theme="dark"] .tox .tox-statusbar {
  background: #ffffff !important;
}

html[data-pagold-theme="dark"] .tox .tox-tbtn,
html[data-pagold-theme="dark"] .tox .tox-tbtn svg {
  color: #1f2d3a !important;
  fill: #1f2d3a !important;
}

/* As telas administrativas ficam estáveis e legíveis; o visual rico fica no portal do solicitante. */
.pagold-ticket-form-page .pagold-ticket-form-hero,
.pagold-ticket-request-page .pagold-ticket-form-hero {
  display: none !important;
}

.pagold-ticket-form-page .tab-content.card,
.pagold-ticket-request-page .tab-content.card,
.pagold-ticket-form-page .timeline-content.left.card,
.pagold-ticket-request-page .timeline-content.left.card,
.pagold-ticket-form-page .itil-right-side,
.pagold-ticket-request-page .itil-right-side {
  border-radius: 18px !important;
  color: #1d2b38 !important;
  background: #ffffff !important;
}

.pagold-ticket-form-page .itil-left-side,
.pagold-ticket-request-page .itil-left-side,
.pagold-ticket-form-page .itil-right-side,
.pagold-ticket-request-page .itil-right-side {
  padding: 24px !important;
}

.pagold-ticket-form-page .timeline-content.left.card,
.pagold-ticket-request-page .timeline-content.left.card {
  margin-top: 0 !important;
  box-shadow: 0 12px 32px rgba(8, 36, 53, 0.08) !important;
}

.pagold-ticket-form-page label,
.pagold-ticket-request-page label,
.pagold-ticket-form-page .form-label,
.pagold-ticket-request-page .form-label {
  color: #37566a !important;
}

.pagold-ticket-form-page .form-control,
.pagold-ticket-request-page .form-control,
.pagold-ticket-form-page .select2-selection,
.pagold-ticket-request-page .select2-selection {
  color: #1d2b38 !important;
  background: #ffffff !important;
}

.pagold-ticket-form-page .form-field,
.pagold-ticket-request-page .form-field {
  margin-bottom: 20px !important;
}

.pagold-ticket-form-page .card-footer,
.pagold-ticket-request-page .card-footer,
.pagold-ticket-form-page .form-buttons,
.pagold-ticket-request-page .form-buttons {
  background: #f7fafc !important;
}

.pagold-ticket-form-page .form-buttons button[name="add"],
.pagold-ticket-request-page .form-buttons button[name="add"] {
  width: auto !important;
  min-width: 210px !important;
}

/* Portal dedicado do solicitante */
.pagold-selfservice-page .page-body {
  padding: 0 !important;
}

.pagold-selfservice-page .container-xl,
.pagold-selfservice-page .container-fluid {
  max-width: none !important;
  padding: 0 !important;
}

.pagold-portal-shell {
  min-height: calc(100vh - 74px);
  padding: 28px clamp(18px, 4vw, 56px) 56px;
  color: var(--pagold-strong-text);
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 194, 17, 0.14), transparent 20rem),
    linear-gradient(180deg, var(--pagold-app-bg), var(--pagold-app-bg));
}

.pagold-portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.pagold-portal-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--pagold-strong-text);
  font-family: var(--pagold-font-display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pagold-portal-brand img {
  width: 126px;
  height: auto;
}

.pagold-portal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagold-portal-new-ticket,
.pagold-service-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(188, 128, 42, 0.32);
  border-radius: 14px;
  color: #1f1a08 !important;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark));
  box-shadow: 0 16px 32px rgba(188, 128, 42, 0.22);
  font-weight: 900;
  text-decoration: none !important;
}

.pagold-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--pagold-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 18%, rgba(255, 194, 17, 0.18), transparent 18rem),
    var(--pagold-surface);
  box-shadow: 0 24px 60px rgba(8, 36, 53, 0.11);
}

.pagold-portal-hero h1 {
  margin: 0 0 14px;
  color: var(--pagold-strong-text);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.pagold-portal-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--pagold-soft-text);
  font-size: 1.08rem;
}

.pagold-portal-hero-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 194, 17, 0.3);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 194, 17, 0.16), rgba(59, 133, 168, 0.08));
}

.pagold-portal-hero-card span,
.pagold-portal-section-heading .pagold-kicker {
  color: var(--pagold-gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pagold-portal-hero-card strong {
  color: var(--pagold-strong-text);
  font-size: 1.35rem;
  font-weight: 900;
}

.pagold-portal-hero-card small {
  color: var(--pagold-soft-text);
  font-size: 0.94rem;
}

.pagold-portal-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.pagold-portal-status-card {
  display: grid;
  gap: 4px;
  min-height: 108px;
  padding: 22px;
  border: 1px solid var(--pagold-line);
  border-top: 4px solid var(--pagold-gold);
  border-radius: 20px;
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface);
  box-shadow: 0 14px 34px rgba(8, 36, 53, 0.08);
  text-decoration: none !important;
}

.pagold-portal-status-card strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.pagold-portal-status-card span {
  color: var(--pagold-soft-text);
}

.pagold-status-new {
  border-top-color: #49d47f;
}

.pagold-status-progress {
  border-top-color: var(--pagold-gold);
}

.pagold-status-kb {
  border-top-color: #42c7e8;
}

.pagold-portal-search {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid var(--pagold-line);
  border-radius: 18px;
  color: var(--pagold-soft-text);
  background: var(--pagold-surface);
}

.pagold-portal-search i {
  color: var(--pagold-blue-mid);
}

.pagold-portal-search input {
  width: 100%;
  border: 0;
  color: var(--pagold-strong-text);
  background: transparent;
  font: inherit;
  outline: 0;
}

.pagold-portal-search input::placeholder {
  color: var(--pagold-soft-text);
  opacity: 1;
}

.pagold-portal-section-heading {
  margin: 34px 0 18px;
}

.pagold-portal-section-heading h2 {
  margin: 0;
  color: var(--pagold-strong-text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
}

.pagold-portal-section-heading > span {
  display: block;
  max-width: 780px;
  margin-top: 8px;
  color: var(--pagold-soft-text);
  font-size: 0.98rem;
}

.pagold-portal-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pagold-kb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pagold-kb-card {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 22px;
  border: 1px solid var(--pagold-line);
  border-radius: 20px;
  color: inherit !important;
  background: var(--pagold-surface);
  box-shadow: 0 14px 34px rgba(8, 36, 53, 0.08);
  text-decoration: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pagold-kb-card:hover,
.pagold-kb-card:focus {
  border-color: rgba(255, 194, 17, 0.68);
  box-shadow: 0 18px 42px rgba(8, 36, 53, 0.12);
  transform: translateY(-2px);
}

.pagold-kb-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--pagold-blue-deep);
  background: rgba(59, 133, 168, 0.12);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pagold-kb-card h3 {
  margin: 0 0 10px;
  color: var(--pagold-strong-text);
  font-size: 1.08rem;
  font-weight: 900;
}

.pagold-kb-card p {
  margin: 0 0 16px;
  color: var(--pagold-soft-text);
}

.pagold-kb-card strong {
  margin-top: auto;
  color: var(--pagold-blue-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.pagold-kb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px dashed var(--pagold-line);
  border-radius: 18px;
  color: var(--pagold-soft-text);
  background: color-mix(in srgb, var(--pagold-surface) 84%, transparent);
}

.pagold-kb-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pagold-blue-deep) !important;
  font-weight: 900;
  text-decoration: none !important;
}

.pagold-kb-footer a:hover,
.pagold-kb-footer a:focus {
  color: var(--pagold-gold-dark) !important;
}

.pagold-kb-footer span {
  font-size: 0.92rem;
}

.pagold-portal-shell .pagold-service-card {
  min-height: 210px;
  border-color: var(--pagold-line);
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface) !important;
  box-shadow: 0 14px 34px rgba(8, 36, 53, 0.08);
}

.pagold-portal-shell .pagold-service-card:hover,
.pagold-portal-shell .pagold-service-card:focus {
  border-color: rgba(255, 194, 17, 0.68);
  color: var(--pagold-strong-text) !important;
  background: var(--pagold-surface-2) !important;
}

.pagold-portal-shell .pagold-service-card-title {
  color: var(--pagold-strong-text) !important;
}

.pagold-portal-shell .pagold-service-card-text {
  color: var(--pagold-soft-text) !important;
}

.pagold-portal-shell .pagold-service-card-action {
  color: var(--pagold-blue-deep) !important;
  background: rgba(8, 77, 110, 0.08) !important;
}

html[data-pagold-theme="dark"] .pagold-portal-shell .pagold-service-card-action {
  color: #9ee7ff !important;
  background: rgba(66, 199, 232, 0.12) !important;
}

.pagold-selfservice-page .pagold-request-summary {
  margin-top: 28px;
}

html[data-pagold-theme="dark"] .pagold-portal-brand img {
  filter: brightness(0) invert(1);
}

html[data-pagold-theme="dark"] .pagold-kb-card span {
  color: #9ee7ff;
  background: rgba(66, 199, 232, 0.14);
}

html[data-pagold-theme="dark"] .pagold-kb-card strong,
html[data-pagold-theme="dark"] .pagold-kb-footer a {
  color: #9ee7ff !important;
}

.pagold-ticket-list-page .btn-primary,
.pagold-ticket-list-page button.btn-primary,
html[data-pagold-theme="dark"] .pagold-ticket-list-page .btn-primary,
html[data-pagold-theme="dark"] .pagold-ticket-list-page button.btn-primary {
  border-color: var(--pagold-gold-dark) !important;
  color: #1f1a08 !important;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark)) !important;
}

.pagold-ticket-list-page .card {
  min-height: 96px;
}

.pagold-ticket-list-page .card,
.pagold-ticket-list-page .card * {
  overflow-wrap: anywhere;
}

.pagold-ticket-list-page .card-body {
  overflow: visible !important;
}

.pagold-ticket-form-page .accordion-button,
.pagold-ticket-request-page .accordion-button,
html[data-pagold-theme="dark"] .pagold-ticket-form-page .accordion-button,
html[data-pagold-theme="dark"] .pagold-ticket-request-page .accordion-button {
  color: #1d2b38 !important;
  background: #f7fafc !important;
}

.pagold-ticket-form-page .accordion-button *,
.pagold-ticket-request-page .accordion-button *,
html[data-pagold-theme="dark"] .pagold-ticket-form-page .accordion-button *,
html[data-pagold-theme="dark"] .pagold-ticket-request-page .accordion-button * {
  color: #1d2b38 !important;
}

@media (max-width: 1100px) {
  .pagold-portal-hero,
  .pagold-portal-status-grid,
  .pagold-portal-service-grid,
  .pagold-kb-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  html[data-pagold-ui="ready"] .page-body {
    padding: 16px !important;
  }

  .pagold-portal-top,
  .pagold-portal-hero {
    grid-template-columns: 1fr;
  }

  .pagold-portal-top {
    flex-direction: column;
    align-items: stretch;
  }

  .pagold-portal-actions,
  .pagold-portal-new-ticket {
    width: 100%;
  }

  .pagold-portal-status-grid,
  .pagold-portal-service-grid,
  .pagold-kb-grid {
    grid-template-columns: 1fr;
  }
}

/* Formulário dedicado de abertura de chamados */
body.pagold-dedicated-form-page .page-body {
  padding: clamp(22px, 3vw, 42px) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 194, 17, 0.10), transparent 28%),
    linear-gradient(135deg, var(--pagold-bg), var(--pagold-bg-soft)) !important;
}

.pagold-auth-ticket-shell {
  width: min(1080px, calc(100vw - 48px));
  margin: 0 auto 48px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255, 194, 17, 0.35);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(7, 54, 76, 0.98), rgba(8, 38, 55, 0.98)),
    var(--pagold-blue-deep);
  box-shadow: 0 26px 70px rgba(8, 36, 53, 0.20);
}

.pagold-dedicated-ticket-hero {
  margin-bottom: 30px;
  padding: 28px;
  border: 1px solid rgba(255, 194, 17, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 194, 17, 0.10), rgba(66, 199, 232, 0.08));
}

.pagold-dedicated-ticket-hero h1 {
  margin: 4px 0 12px;
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.pagold-dedicated-ticket-hero p:not(.pagold-kicker) {
  max-width: 760px;
  margin: 0;
  color: rgba(238, 248, 252, 0.82) !important;
  font-size: 1.08rem;
  line-height: 1.65;
}

.pagold-auth-ticket-shell .pagold-kicker {
  color: var(--pagold-gold) !important;
}

.pagold-dedicated-ticket-form {
  display: grid;
  gap: 24px;
}

.pagold-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pagold-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pagold-field span {
  color: rgba(224, 241, 248, 0.78) !important;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagold-field input,
.pagold-field select,
.pagold-field textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(116, 173, 196, 0.38) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  background: rgba(4, 34, 51, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pagold-field textarea {
  min-height: 190px;
  resize: vertical;
}

.pagold-field input::placeholder,
.pagold-field textarea::placeholder {
  color: rgba(219, 236, 243, 0.52) !important;
}

.pagold-field input:focus,
.pagold-field select:focus,
.pagold-field textarea:focus {
  border-color: var(--pagold-gold) !important;
  box-shadow: 0 0 0 4px rgba(255, 194, 17, 0.18) !important;
  outline: none !important;
}

.pagold-field select option {
  color: #122536;
  background: #ffffff;
}

.pagold-field-full {
  grid-column: 1 / -1;
}

.pagold-attachment-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px dashed rgba(116, 173, 196, 0.48);
  border-radius: 18px;
  color: rgba(238, 248, 252, 0.76);
  background: rgba(255, 255, 255, 0.04);
}

.pagold-attachment-note strong {
  color: #ffffff;
  font-weight: 900;
}

.pagold-form-alert {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 194, 17, 0.45);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(214, 111, 22, 0.18);
}

.pagold-form-alert ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.pagold-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 6px;
}

.pagold-secondary-link,
.pagold-submit-ticket {
  min-height: 54px;
  padding: 15px 24px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none !important;
}

.pagold-secondary-link {
  border: 1px solid rgba(116, 173, 196, 0.42);
  color: #e7f5fa !important;
  background: rgba(255, 255, 255, 0.05);
}

.pagold-submit-ticket {
  min-width: 230px;
  border: 0;
  color: #1f1a08 !important;
  background: linear-gradient(135deg, var(--pagold-gold), var(--pagold-gold-dark)) !important;
  box-shadow: 0 16px 34px rgba(214, 151, 22, 0.28);
}

.pagold-submit-ticket:hover,
.pagold-submit-ticket:focus,
.pagold-secondary-link:hover,
.pagold-secondary-link:focus {
  transform: translateY(-1px);
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-auth-ticket-shell {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 250, 0.96)),
    #ffffff;
  box-shadow: 0 24px 58px rgba(8, 36, 53, 0.12);
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-dedicated-ticket-hero {
  background: linear-gradient(135deg, rgba(8, 77, 110, 0.08), rgba(255, 194, 17, 0.12));
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-dedicated-ticket-hero h1,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-attachment-note strong {
  color: #082f45 !important;
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-dedicated-ticket-hero p:not(.pagold-kicker),
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-attachment-note,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field span {
  color: #486474 !important;
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field input,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field select,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field textarea {
  color: #112a3b !important;
  caret-color: #112a3b !important;
  background: #ffffff !important;
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field input::placeholder,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field textarea::placeholder,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-dedicated-ticket input[type="text"]::placeholder,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-dedicated-ticket textarea::placeholder {
  color: #6f8492 !important;
  opacity: 1 !important;
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field input:focus,
html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-field textarea:focus {
  color: #082f45 !important;
  background: #ffffff !important;
}

html[data-pagold-theme="light"] .pagold-dedicated-form-page .pagold-secondary-link {
  color: #084d6e !important;
  background: rgba(8, 77, 110, 0.06);
}

@media (max-width: 920px) {
  .pagold-form-grid {
    grid-template-columns: 1fr;
  }

  .pagold-auth-ticket-shell {
    width: min(100%, calc(100vw - 28px));
    padding: 20px;
    border-radius: 24px;
  }

  .pagold-form-actions,
  .pagold-attachment-note {
    align-items: stretch;
    flex-direction: column;
  }

  .pagold-secondary-link,
  .pagold-submit-ticket {
    width: 100%;
    text-align: center;
  }
}

/* Abertura guiada de chamados - componente isolado do formulario nativo */
body.pagold-dedicated-form-page .page-body {
  min-height: calc(100vh - 72px);
  padding: clamp(20px, 3vw, 46px) !important;
}

.pagold-request-shell {
  --request-navy: #07364c;
  --request-deep: #062a3d;
  --request-ink: #102f42;
  --request-muted: #587283;
  --request-line: #cfe0e8;
  --request-surface: #ffffff;
  --request-soft: #f3f8fa;
  width: min(1180px, 100%);
  margin: 0 auto 48px;
  color: var(--request-ink);
}

.pagold-request-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 194, 17, 0.34);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 194, 17, 0.16), transparent 34%),
    linear-gradient(135deg, #07364c 0%, #072f43 64%, #203f3b 100%);
  box-shadow: 0 24px 54px rgba(8, 47, 69, 0.16);
}

.pagold-request-kicker,
.pagold-request-step-heading > p {
  margin: 0 0 8px;
  color: #d89013 !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-pagold-ui="ready"] body.pagold-dedicated-form-page .pagold-request-hero h1 {
  margin: 0 0 14px;
  color: #ffffff !important;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.pagold-request-hero > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #bcddeb !important;
  font-size: 1.05rem;
  line-height: 1.65;
}

.pagold-request-hero-note {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 194, 17, 0.36);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.pagold-request-hero-note strong {
  color: #ffffff;
  font-size: 1.08rem;
}

.pagold-request-hero-note span {
  color: #a9d4e7;
  line-height: 1.5;
}

.pagold-request-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid var(--request-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--request-surface) 94%, transparent);
}

.pagold-request-progress-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  color: var(--request-muted);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.pagold-request-progress-item span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--request-line);
  border-radius: 50%;
  color: var(--request-ink);
  background: var(--request-soft);
}

.pagold-request-progress-item.is-active {
  color: #17230e;
  background: linear-gradient(135deg, #ffc211, #d69a23);
}

.pagold-request-progress-item.is-active span {
  border-color: rgba(7, 54, 76, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

.pagold-request-progress-item.is-complete {
  color: #08633f;
  background: #e7f8ef;
}

.pagold-request-progress-item:disabled {
  cursor: default;
  opacity: 0.62;
}

.pagold-request-form,
.pagold-request-success-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--request-line);
  border-radius: 28px;
  background: var(--request-surface);
  box-shadow: 0 22px 56px rgba(8, 47, 69, 0.12);
}

.pagold-request-step-heading {
  margin-bottom: 30px;
}

.pagold-request-step-heading h2 {
  margin: 0 0 8px;
  color: var(--request-ink) !important;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.pagold-request-step-heading > span {
  color: var(--request-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.pagold-request-choice-group,
.pagold-request-urgency {
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}

.pagold-request-choice-group legend,
.pagold-request-field > span {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  color: var(--request-ink) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagold-request-choice-grid,
.pagold-request-urgency-grid {
  display: grid;
  gap: 14px;
}

.pagold-request-choice-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pagold-request-choice-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pagold-request-choice,
.pagold-request-urgency-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.pagold-request-choice {
  display: flex;
}

.pagold-request-choice > input,
.pagold-request-urgency-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.pagold-request-choice-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--request-line);
  border-radius: 20px;
  background: var(--request-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pagold-request-choice-card small {
  align-self: start;
  justify-self: start;
  margin-bottom: 20px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #805900;
  background: #fff1bd;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pagold-request-choice-card strong {
  align-self: end;
  margin-bottom: 6px;
  color: var(--request-ink);
  font-size: 1.08rem;
}

.pagold-request-choice-card em {
  color: var(--request-muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.5;
}

.pagold-request-choice:hover .pagold-request-choice-card {
  transform: translateY(-2px);
  border-color: #e3b226;
}

.pagold-request-choice > input:focus-visible + .pagold-request-choice-card,
.pagold-request-urgency-option > input:focus-visible + span {
  outline: 3px solid rgba(8, 105, 148, 0.24);
  outline-offset: 3px;
}

.pagold-request-choice > input:checked + .pagold-request-choice-card {
  border-color: #d99d13;
  background: linear-gradient(145deg, #fff9e4, #f7fbfc);
  box-shadow: 0 0 0 3px rgba(255, 194, 17, 0.16), 0 16px 32px rgba(8, 47, 69, 0.1);
}

.pagold-request-field {
  display: grid;
  min-width: 0;
  margin-bottom: 24px;
}

.pagold-request-field input,
.pagold-request-field select,
.pagold-request-field textarea,
.pagold-request-category-level select {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #bcd3de !important;
  border-radius: 15px !important;
  color: var(--request-ink) !important;
  caret-color: var(--request-ink);
  background: var(--request-surface) !important;
  font-size: 1rem;
  box-shadow: none !important;
}

.pagold-request-field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

.pagold-request-field input::placeholder,
.pagold-request-field textarea::placeholder {
  color: #718b9a !important;
  opacity: 1;
}

.pagold-request-field input:focus,
.pagold-request-field select:focus,
.pagold-request-field textarea:focus,
.pagold-request-category-level select:focus {
  border-color: #dca50e !important;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 194, 17, 0.16) !important;
}

.pagold-request-field small {
  margin-top: 8px;
  color: var(--request-muted);
  line-height: 1.45;
}

.pagold-request-classification {
  position: relative;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--request-line);
  border-radius: 22px;
  background: var(--request-soft);
}

.pagold-request-category-results {
  display: grid;
  gap: 6px;
  max-height: 300px;
  margin: -12px 0 20px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--request-line);
  border-radius: 15px;
  background: var(--request-surface);
  box-shadow: 0 18px 34px rgba(8, 47, 69, 0.12);
}

.pagold-request-category-results button {
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--request-ink);
  background: transparent;
  text-align: left;
}

.pagold-request-category-results button:hover,
.pagold-request-category-results button:focus {
  color: #082f45;
  background: #fff1bd;
}

.pagold-request-category-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pagold-request-category-level {
  min-width: 0;
}

.pagold-request-category-level label {
  display: block;
  margin-bottom: 8px;
  color: var(--request-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.pagold-request-category-summary,
.pagold-request-category-empty,
.pagold-request-attachment-note,
.pagold-request-confirmation {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 17px 18px;
  border-left: 4px solid #ffc211;
  border-radius: 14px;
  color: var(--request-muted);
  background: #fff8df;
}

.pagold-request-category-summary span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagold-request-category-summary strong,
.pagold-request-category-empty strong,
.pagold-request-attachment-note strong,
.pagold-request-confirmation strong {
  color: var(--request-ink);
}

.pagold-request-attachments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #9fbfce;
  border-radius: 18px;
  background: var(--request-soft);
}

.pagold-request-attachments-copy {
  display: grid;
  gap: 5px;
  color: var(--request-muted);
}

.pagold-request-attachments-copy strong {
  color: var(--request-ink);
  font-size: 1rem;
}

.pagold-request-attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pagold-request-attachment-picker {
  display: grid;
  gap: 3px;
  min-width: 210px;
  padding: 12px 16px;
  border: 1px solid #dca50e;
  border-radius: 14px;
  color: #07293b;
  text-align: center;
  background: linear-gradient(135deg, #ffc211, #d79a1f);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(203, 143, 11, 0.18);
}

.pagold-request-attachment-picker span {
  font-weight: 900;
}

.pagold-request-attachment-picker small {
  color: #173140;
  font-size: 0.72rem;
}

.pagold-request-attachment-input:focus-visible + .pagold-request-attachment-list,
.pagold-request-attachment-picker:focus-within {
  outline: 3px solid rgba(255, 194, 17, 0.28);
  outline-offset: 3px;
}

.pagold-request-attachment-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagold-request-attachment-list li {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--request-line);
  border-radius: 11px;
  color: var(--request-muted);
  background: var(--request-surface);
}

.pagold-request-attachment-list strong {
  overflow: hidden;
  color: var(--request-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagold-request-location {
  padding: 22px;
  border: 1px solid var(--request-line);
  border-radius: 22px;
  background: var(--request-soft);
}

.pagold-request-urgency-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pagold-request-urgency-option > span {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--request-line);
  border-radius: 17px;
  color: var(--request-ink);
  background: var(--request-soft);
}

.pagold-request-urgency-option small {
  color: var(--request-muted);
}

.pagold-request-urgency-option > input:checked + span {
  border-color: #d99d13;
  background: #fff8df;
  box-shadow: 0 0 0 3px rgba(255, 194, 17, 0.14);
}

.pagold-request-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.pagold-request-review-item {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--request-line);
  border-radius: 16px;
  background: var(--request-soft);
}

.pagold-request-review-item.is-full {
  grid-column: 1 / -1;
}

.pagold-request-review-item dt {
  margin-bottom: 6px;
  color: var(--request-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagold-request-review-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--request-ink);
  font-weight: 700;
  white-space: pre-line;
}

.pagold-request-alert,
.pagold-request-inline-error {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #e9a49d;
  border-radius: 15px;
  color: #7c211b;
  background: #fff1ef;
}

.pagold-request-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.pagold-request-actions,
.pagold-request-actions > div,
.pagold-request-success-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pagold-request-actions {
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--request-line);
}

.pagold-request-button,
.pagold-request-cancel {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none !important;
}

.pagold-request-button-primary {
  min-width: 180px;
  border: 0;
  color: #1d230f !important;
  background: linear-gradient(135deg, #ffc211, #d69523) !important;
  box-shadow: 0 13px 26px rgba(214, 149, 24, 0.24);
}

.pagold-request-button-secondary {
  border: 1px solid #aac4d1;
  color: #0a5778 !important;
  background: var(--request-surface) !important;
}

.pagold-request-cancel {
  color: var(--request-muted) !important;
}

.pagold-request-button:hover,
.pagold-request-button:focus,
.pagold-request-cancel:hover,
.pagold-request-cancel:focus {
  transform: translateY(-1px);
}

.pagold-request-success {
  display: grid;
  min-height: 65vh;
  place-items: center;
}

.pagold-request-success-card {
  max-width: 720px;
  text-align: center;
}

.pagold-request-success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: #075637;
  background: #dff7e9;
  font-size: 2rem;
  font-weight: 900;
}

.pagold-request-success-card h1 {
  color: var(--request-ink) !important;
  font-size: clamp(2rem, 4vw, 3rem);
}

.pagold-request-success-card > p:not(.pagold-request-kicker) {
  color: var(--request-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pagold-request-success-actions {
  justify-content: center;
  margin-top: 28px;
}

html[data-pagold-theme="dark"] .pagold-request-shell {
  --request-ink: #f3f8fa;
  --request-muted: #a9c8d6;
  --request-line: #28566c;
  --request-surface: #092d40;
  --request-soft: #0d384d;
}

html[data-pagold-theme="dark"] .pagold-request-progress,
html[data-pagold-theme="dark"] .pagold-request-form,
html[data-pagold-theme="dark"] .pagold-request-success-card {
  background: #092d40;
}

html[data-pagold-theme="dark"] .pagold-request-choice > input:checked + .pagold-request-choice-card,
html[data-pagold-theme="dark"] .pagold-request-urgency-option > input:checked + span,
html[data-pagold-theme="dark"] .pagold-request-category-summary,
html[data-pagold-theme="dark"] .pagold-request-category-empty,
html[data-pagold-theme="dark"] .pagold-request-attachment-note,
html[data-pagold-theme="dark"] .pagold-request-confirmation {
  background: #173f4d;
}

html[data-pagold-theme="dark"] .pagold-request-attachments {
  border-color: #396a80;
  background: #173f4d;
}

html[data-pagold-theme="dark"] .pagold-request-attachment-list li {
  background: #07293b;
}

html[data-pagold-theme="dark"] .pagold-request-progress-item.is-complete {
  color: #8ce1b5;
  background: #123f3a;
}

html[data-pagold-theme="dark"] .pagold-request-progress-item span,
html[data-pagold-theme="dark"] .pagold-request-category-results {
  color: #f3f8fa;
  background: #0d384d;
}

html[data-pagold-theme="dark"] .pagold-request-field input,
html[data-pagold-theme="dark"] .pagold-request-field select,
html[data-pagold-theme="dark"] .pagold-request-field textarea,
html[data-pagold-theme="dark"] .pagold-request-category-level select {
  border-color: #396a80 !important;
  color: #f5fafc !important;
  caret-color: #ffffff;
  background: #07293b !important;
}

html[data-pagold-theme="dark"] .pagold-request-field input::placeholder,
html[data-pagold-theme="dark"] .pagold-request-field textarea::placeholder {
  color: #9cbac8 !important;
}

html[data-pagold-theme="dark"] .pagold-request-field select option,
html[data-pagold-theme="dark"] .pagold-request-category-level select option {
  color: #f5fafc;
  background: #07293b;
}

.pagold-request-category-levels select {
  padding-right: 48px !important;
  appearance: none;
  background-color: var(--request-surface) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #587283 50%),
    linear-gradient(135deg, #587283 50%, transparent 50%) !important;
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50% !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px, 6px 6px !important;
  cursor: pointer;
}

html[data-pagold-theme="dark"] .pagold-request-category-levels select {
  background-color: #07293b !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #b8d4df 50%),
    linear-gradient(135deg, #b8d4df 50%, transparent 50%) !important;
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50% !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px, 6px 6px !important;
}

html[data-pagold-theme="dark"] .pagold-request-button-secondary {
  border-color: #477489;
  color: #d9eef6 !important;
  background: #0d384d !important;
}

html[data-pagold-theme="dark"] .pagold-request-alert,
html[data-pagold-theme="dark"] .pagold-request-inline-error {
  border-color: #a85d57;
  color: #ffd8d3;
  background: #4b292b;
}

@media (max-width: 900px) {
  .pagold-request-hero {
    grid-template-columns: 1fr;
  }

  .pagold-request-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagold-request-choice-grid-three,
  .pagold-request-urgency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Em notebooks, prioriza a conclusao da etapa sem rolagem desnecessaria. */
@media (min-width: 901px) and (max-height: 850px) {
  body.pagold-dedicated-form-page .page-body {
    padding: 12px 24px 20px !important;
  }

  .pagold-request-shell {
    margin-bottom: 20px;
  }

  .pagold-request-hero {
    display: none;
  }

  .pagold-request-progress {
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px;
    border-radius: 17px;
  }

  .pagold-request-progress-item {
    min-height: 42px;
    padding: 7px 10px;
  }

  .pagold-request-progress-item span {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .pagold-request-form {
    padding: 24px 30px;
    border-radius: 22px;
  }

  .pagold-request-step-heading {
    margin-bottom: 18px;
  }

  .pagold-request-step-heading h2 {
    margin-bottom: 5px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
  }

  .pagold-request-step-heading > p {
    margin-bottom: 5px;
  }

  .pagold-request-choice-group,
  .pagold-request-urgency {
    margin-bottom: 16px;
  }

  .pagold-request-choice-group legend,
  .pagold-request-field > span {
    margin-bottom: 8px;
  }

  .pagold-request-choice-grid,
  .pagold-request-urgency-grid {
    gap: 10px;
  }

  .pagold-request-choice-card {
    min-height: 106px;
    padding: 14px 18px;
    border-radius: 16px;
  }

  .pagold-request-choice-card small {
    margin-bottom: 8px;
    padding: 4px 8px;
  }

  .pagold-request-choice-card strong {
    margin-bottom: 3px;
  }

  .pagold-request-choice-card em {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .pagold-request-actions {
    margin-top: 14px;
    padding-top: 12px;
  }

  .pagold-request-button,
  .pagold-request-cancel {
    min-height: 44px;
    padding: 10px 18px;
  }
}

@media (max-width: 640px) {
  body.pagold-dedicated-form-page .page-body {
    padding: 14px !important;
  }

  .pagold-request-hero,
  .pagold-request-form,
  .pagold-request-success-card {
    padding: 22px;
    border-radius: 22px;
  }

  .pagold-request-hero-note {
    padding: 18px;
  }

  .pagold-request-progress {
    display: flex;
    overflow-x: auto;
  }

  .pagold-request-progress-item {
    flex: 0 0 auto;
  }

  .pagold-request-choice-grid-two,
  .pagold-request-choice-grid-three,
  .pagold-request-category-levels,
  .pagold-request-urgency-grid,
  .pagold-request-review {
    grid-template-columns: 1fr;
  }

  .pagold-request-choice-card {
    min-height: 126px;
  }

  .pagold-request-review-item.is-full {
    grid-column: auto;
  }

  .pagold-request-actions,
  .pagold-request-actions > div,
  .pagold-request-success-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .pagold-request-actions > div,
  .pagold-request-button,
  .pagold-request-cancel {
    width: 100%;
  }
}

/* Dashboard nativo: apenas respiro visual, sem alterar GridStack. */
body.pagold-dashboard-page .grid-stack-item-content {
  padding: 0 !important;
  overflow: hidden !important;
}

body.pagold-dashboard-page .grid-stack-item-content > .card,
body.pagold-dashboard-page .grid-stack-item-content > div {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body.pagold-dashboard-page .grid-stack-item-content .card-body,
body.pagold-dashboard-page .grid-stack-item-content .card-footer {
  position: relative;
  z-index: 2;
}

body.pagold-dashboard-page .grid-stack-item-content .card-title,
body.pagold-dashboard-page .grid-stack-item-content h2,
body.pagold-dashboard-page .grid-stack-item-content h3 {
  position: relative;
  z-index: 2;
}

body.pagold-dashboard-page .grid-stack-item-content .card-title,
body.pagold-dashboard-page .grid-stack-item-content h2,
body.pagold-dashboard-page .grid-stack-item-content h3 {
  order: -1;
  margin: 0 0 14px !important;
  padding-right: 34px;
  color: var(--pagold-strong-text) !important;
  font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
  line-height: 1.25 !important;
}

body.pagold-dashboard-page .grid-stack-item-content .pagold-dashboard-widget-heading {
  order: -2;
  flex: 0 0 auto;
  margin: 0 0 16px !important;
  padding-right: 34px;
  color: var(--pagold-strong-text) !important;
  font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
  font-weight: 900;
  line-height: 1.25 !important;
}

body.pagold-dashboard-page .grid-stack-item-content .pagold-dashboard-title-source {
  display: none !important;
}

body.pagold-dashboard-page .grid-stack-item-content .card-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  padding-top: 18px !important;
  padding-bottom: 14px !important;
  overflow: hidden !important;
}

body.pagold-dashboard-page .grid-stack-item-content .card,
body.pagold-dashboard-page .grid-stack-item-content .card-body,
body.pagold-dashboard-page .grid-stack-item-content .card-footer {
  margin-bottom: 0 !important;
}

body.pagold-dashboard-page .grid-stack-item-content .card-body > :not(.card-title):not(h2):not(h3) {
  flex: 0 0 auto;
}

body.pagold-dashboard-page .grid-stack-item-content canvas,
body.pagold-dashboard-page .grid-stack-item-content svg:not(.icon) {
  display: block;
  flex: 1 1 auto;
  min-height: 160px !important;
  max-width: 100% !important;
  margin-top: 8px !important;
  margin-bottom: 18px !important;
}

body.pagold-dashboard-page .grid-stack-item-content .card-body > canvas:last-child,
body.pagold-dashboard-page .grid-stack-item-content .card-body > svg:last-child {
  margin-bottom: 18px !important;
}

body.pagold-dashboard-page .grid-stack-item-content .card-footer,
body.pagold-dashboard-page .grid-stack-item-content .card-actions,
body.pagold-dashboard-page .grid-stack-item-content .plugin-dashboard-card-footer {
  margin-top: auto !important;
  padding-top: 12px !important;
}

body.pagold-dashboard-page .grid-stack-item-content .fa,
body.pagold-dashboard-page .grid-stack-item-content .fas,
body.pagold-dashboard-page .grid-stack-item-content .far,
body.pagold-dashboard-page .grid-stack-item-content .ti,
body.pagold-dashboard-page .grid-stack-item-content .icon {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  body.pagold-dashboard-page .grid-stack-item-content canvas,
  body.pagold-dashboard-page .grid-stack-item-content svg:not(.icon) {
    min-height: 130px !important;
  }
}

/* Painel central legado: substitui o posicionamento Masonry por uma grade fluida. */
body.pagold-dashboard-page,
body.pagold-dashboard-page .page,
body.pagold-dashboard-page .page-wrapper,
body.pagold-dashboard-page .page-body {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

body.pagold-dashboard-page .page-body > .container-xl,
body.pagold-dashboard-page .page-body > .container-fluid,
body.pagold-dashboard-page .page-body > .container {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: clamp(12px, 2vw, 28px) !important;
  padding-left: clamp(12px, 2vw, 28px) !important;
}

body.pagold-dashboard-page [id^="home-dashboard"].container-fluid {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.pagold-dashboard-page [id^="home-dashboard"] .masonry_grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 24px !important;
}

body.pagold-dashboard-page [id^="home-dashboard"] .masonry_grid > .grid-item {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.pagold-dashboard-page [id^="home-dashboard"] .grid-item > .card,
body.pagold-dashboard-page [id^="home-dashboard"] .grid-item .card-body,
body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.pagold-dashboard-page [id^="home-dashboard"] .grid-item > .card {
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--pagold-line);
  border-radius: 16px;
  background: var(--pagold-surface);
  box-shadow: 0 10px 26px rgba(8, 36, 53, 0.08);
}

body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget > table,
body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget .tab_cadre_fixehov,
body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget .tab_cadre_fixe,
body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget .table-responsive,
body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget .table-responsive > table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  table-layout: fixed !important;
}

body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget th,
body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget td {
  min-width: 0 !important;
  max-width: 18rem;
  padding: 8px 10px !important;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal !important;
  word-break: break-word;
}

body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget thead th {
  color: var(--pagold-soft-text);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
}

body.pagold-dashboard-page [id^="home-dashboard"] + .tab_cadre_central,
body.pagold-dashboard-page .tab_cadre_central {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1599px) {
  body.pagold-dashboard-page [id^="home-dashboard"] .masonry_grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.pagold-dashboard-page .pagold-tech-panel {
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 20px;
  }

  body.pagold-dashboard-page .pagold-tech-panel-header {
    margin-bottom: 14px;
  }

  body.pagold-dashboard-page .pagold-tech-card {
    min-height: 92px;
    padding: 14px 16px;
  }

  body.pagold-dashboard-page .pagold-tech-card span {
    font-size: 1.75rem;
  }
}

@media (max-width: 720px) {
  body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget th,
  body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget td {
    padding-right: 7px !important;
    padding-left: 7px !important;
    font-size: 0.78rem;
  }
}

/* Listagens administrativas nativas: preservar legibilidade do GLPI técnico. */
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-container,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table {
  width: max-content !important;
  min-width: max(100%, 1360px) !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results thead,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table thead,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table thead,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table thead {
  display: table-header-group !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results tbody,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table tbody,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table tbody,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table tbody {
  display: table-row-group !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results tr,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table tr,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table tr,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table tr {
  display: table-row !important;
  height: auto !important;
  min-height: 0 !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results td,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table td,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table td,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table td {
  display: table-cell !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 96px;
  max-width: 480px;
  padding: 12px 14px !important;
  line-height: 1.42 !important;
  vertical-align: top !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  text-overflow: clip !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results th:nth-child(1),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results td:nth-child(1),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table th:nth-child(1),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table td:nth-child(1),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table th:nth-child(1),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table td:nth-child(1) {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 56px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results th:nth-child(2),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results td:nth-child(2),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table th:nth-child(2),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table td:nth-child(2),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table th:nth-child(2),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table td:nth-child(2) {
  width: 340px !important;
  min-width: 320px !important;
  max-width: 460px !important;
  white-space: normal !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results th:nth-child(3),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results td:nth-child(3),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table th:nth-child(3),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table td:nth-child(3),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table th:nth-child(3),
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table td:nth-child(3) {
  width: 160px !important;
  min-width: 150px !important;
  max-width: 220px !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results thead th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table thead th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table thead th,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table thead th {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.search-results td a,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .search-results table td a,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .table-responsive > table td a,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table.table td a {
  display: inline !important;
  line-height: inherit !important;
}

/* Listagem nativa de chamados: colunas semânticas aplicadas por pagold-ui.js. */
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results {
  width: 100% !important;
  min-width: 1360px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results th,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results td {
  min-width: 0 !important;
  max-width: none !important;
  padding: 7px 8px !important;
  line-height: 1.34 !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: normal !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results thead th {
  color: var(--pagold-blue-deep) !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.035em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results thead th {
  color: var(--pagold-gold) !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-select {
  width: 42px !important;
  text-align: center !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-id {
  width: 72px !important;
  white-space: nowrap !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-title {
  width: 190px !important;
  min-width: 190px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-title a,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-title .pagold-cell-text {
  display: -webkit-box !important;
  max-height: 2.75em;
  overflow: hidden !important;
  color: var(--pagold-blue-deep) !important;
  font-weight: 750 !important;
  line-height: 1.34 !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-col-title a,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-col-title .pagold-cell-text {
  color: #f4fbff !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-status {
  width: 130px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-priority {
  width: 92px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-updated,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-opened,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-solution-time,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-solution-progress {
  width: 118px !important;
  white-space: normal !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-updated,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-opened,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-solution-time {
  white-space: normal !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-updated,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-opened {
  width: 116px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-date-part,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-time-part {
  display: block;
  white-space: nowrap;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-time-part {
  margin-top: 2px;
  color: var(--pagold-muted-text);
  font-size: 0.78em;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-requester,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-technician {
  width: 150px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-category,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-location,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-entity {
  width: 150px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-requester,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-technician,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-category,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-location,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-col-entity {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page .card,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-container,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .table-responsive,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .table-responsive-lg {
  color: #f4fbff !important;
  background: #08293c !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results {
  color: #f4fbff !important;
  background: #08293c !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr:nth-child(odd),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr:nth-child(even),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr.table-row,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr.even,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr.odd {
  color: #f4fbff !important;
  background: #08293c !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr:nth-child(even),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr.even {
  background: #0b3148 !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tfoot,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tfoot * {
  color: #f4fbff !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td {
  border-color: rgba(160, 205, 224, 0.14) !important;
  background: transparent !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr > td,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr > td.bg-white,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr > td.bg-light,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr > td.table-light {
  color: #f4fbff !important;
  background-color: transparent !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results a {
  color: #ffffff !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-time-part,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .pagination,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .pagination *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-footer,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-footer * {
  color: #a8d1e2 !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page input,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page select,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .form-control {
  color: #f4fbff !important;
  border-color: rgba(160, 205, 224, 0.28) !important;
  background: #072638 !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results .pagold-cell-badge {
  display: inline-flex;
  min-width: 72px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--pagold-blue-deep);
  background: #e7f3f7;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page .pagold-status-new .pagold-cell-badge {
  background: #d9f8e5;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page .pagold-status-progress .pagold-cell-badge {
  background: #fff0be;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page .pagold-status-pending .pagold-cell-badge {
  background: #d8ebff;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page .pagold-priority-high .pagold-cell-badge,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page .pagold-priority-very-high .pagold-cell-badge {
  background: #ffd2d2;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-cell-badge {
  color: #061c2a;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page .search-container,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page .search_page,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page .search-form {
  border-radius: 18px !important;
}

html[data-pagold-ui="ready"] body.pagold-ticket-list-page .search-container .btn,
html[data-pagold-ui="ready"] body.pagold-ticket-list-page .search_page .btn {
  margin: 2px !important;
}

@media (max-width: 1439px) {
  html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results {
    min-width: 1320px !important;
  }
}

@media (max-width: 1023px) {
  html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results {
    min-width: 1240px !important;
  }
}

@media (max-width: 767px) {
  html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results {
    min-width: 1160px !important;
  }

  html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results th,
  html[data-pagold-ui="ready"] body.pagold-ticket-list-page table.search-results td {
    padding: 7px 8px !important;
  }
}

html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) .form-check-input,
html[data-pagold-ui="ready"] body:not(.welcome-anonymous):not(.pagold-selfservice-page):not(.pagold-dedicated-form-page):not(.pagold-ticket-list-page) table input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: 1rem !important;
  min-width: 1rem !important;
  height: 1rem !important;
  min-height: 1rem !important;
}

/* Painel operacional para TV */
.pagold-tv-page {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #eef8fc;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 194, 17, 0.18), transparent 18rem),
    linear-gradient(135deg, #061c2a 0%, #082f45 48%, #041722 100%);
  font-family: var(--pagold-font-body);
}

.pagold-tv-shell {
  width: min(1760px, calc(100vw - 56px));
  height: 100vh;
  margin: 0 auto;
  padding: 12px 0;
  overflow: hidden;
}

.pagold-tv-header,
.pagold-tv-summary,
.pagold-tv-board {
  border: 1px solid rgba(116, 173, 196, 0.24);
  border-radius: 28px;
  background: rgba(5, 35, 52, 0.72);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.pagold-tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 20px;
  border-bottom: 3px solid var(--pagold-gold);
}

.pagold-tv-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pagold-tv-brand img {
  width: 132px;
  max-height: 48px;
  object-fit: contain;
}

.pagold-tv-brand span,
.pagold-tv-meta strong {
  color: var(--pagold-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pagold-tv-brand h1 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 2.6vw, 2.9rem);
  font-weight: 900;
  line-height: 0.95;
}

.pagold-tv-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(116, 173, 196, 0.22);
  border-radius: 18px;
  background: rgba(5, 35, 52, 0.48);
}

.pagold-tv-filter-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.pagold-tv-filter {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(116, 173, 196, 0.24);
  border-radius: 999px;
  color: #d9eef7;
  font-weight: 900;
  text-decoration: none;
}

.pagold-tv-filter:hover,
.pagold-tv-filter:focus,
.pagold-tv-filter.is-active {
  color: #102333;
  background: var(--pagold-gold);
  border-color: var(--pagold-gold);
}

.pagold-tv-filter-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 194, 17, 0.26);
  border-radius: 999px;
  background: rgba(255, 194, 17, 0.08);
}

.pagold-tv-filter-meta strong {
  color: var(--pagold-gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagold-tv-filter-meta span {
  color: #a8cbd9;
  font-size: 0.88rem;
  font-weight: 800;
}

.pagold-tv-meta {
  text-align: right;
}

.pagold-tv-meta span {
  display: block;
  margin-top: 5px;
  color: #b8d6e3;
  font-size: 0.88rem;
}

.pagold-tv-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
}

.pagold-tv-summary article {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(116, 173, 196, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.pagold-tv-summary article.is-alert {
  border-color: rgba(255, 194, 17, 0.5);
  background: rgba(255, 194, 17, 0.11);
}

.pagold-tv-summary span {
  display: block;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  font-weight: 900;
  line-height: 0.9;
}

.pagold-tv-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--pagold-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pagold-tv-summary small {
  color: #b8d6e3;
  font-size: 0.72rem;
}

.pagold-tv-board {
  margin-top: 8px;
  padding: 8px 10px 6px;
  overflow: hidden;
}

.pagold-tv-board-head,
.pagold-tv-ticket {
  display: grid;
  grid-template-columns: minmax(360px, 1.8fr) 154px minmax(190px, 0.9fr) 122px 96px;
  gap: 10px;
  align-items: center;
}

.pagold-tv-board-head {
  padding: 6px 12px;
  color: #8eb6c8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pagold-tv-ticket {
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid rgba(116, 173, 196, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.pagold-tv-ticket[hidden] {
  display: none !important;
}

.pagold-tv-ticket.is-unassigned {
  border-color: rgba(255, 194, 17, 0.58);
  box-shadow: inset 5px 0 0 var(--pagold-gold);
}

.pagold-tv-ticket-main strong {
  display: block;
  color: #ffffff;
  font-size: clamp(0.86rem, 0.9vw, 0.96rem);
  font-weight: 900;
  line-height: 1.2;
}

.pagold-tv-ticket-main small {
  display: block;
  margin-top: 3px;
  color: #a8cbd9;
  font-size: 0.72rem;
}

.pagold-tv-status {
  display: inline-flex;
  min-width: 96px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #102333;
  background: #dbeef6;
  font-size: 0.76rem;
  font-weight: 900;
}

.pagold-tv-status-1 {
  background: #4ade80;
}

.pagold-tv-status-2,
.pagold-tv-status-3 {
  background: var(--pagold-gold);
}

.pagold-tv-status-4 {
  background: #93c5fd;
}

.pagold-tv-empty {
  padding: 44px 24px;
  color: #c7e3ee;
  font-size: 1.4rem;
  text-align: center;
}

.pagold-tv-pagination {
  margin-top: 6px;
  padding: 6px 12px 0;
  border-top: 1px solid rgba(116, 173, 196, 0.14);
  color: #a8cbd9;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 1100px) {
  .pagold-tv-shell {
    width: min(100%, calc(100vw - 28px));
  }

  .pagold-tv-header,
  .pagold-tv-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagold-tv-meta {
    text-align: left;
  }

  .pagold-tv-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagold-tv-filter-meta {
    width: 100%;
    margin-left: 0;
  }

  .pagold-tv-board {
    overflow-x: auto;
  }

  .pagold-tv-board-head,
  .pagold-tv-ticket {
    min-width: 1080px;
  }
}

/* Produção PA Gold: login nativo GLPI sem troca de Twig estrutural.
   Mantém o GLPI estável e aproxima o visual aprovado em homologação. */
body.welcome-anonymous:not(.pagold-login-page) {
  min-height: 100vh !important;
  height: 100vh !important;
  font-family: var(--pagold-font-body) !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  color: #eef7fb !important;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 194, 17, 0.2), transparent 18rem),
    radial-gradient(circle at 88% 12%, rgba(59, 133, 168, 0.34), transparent 24rem),
    linear-gradient(135deg, #092638 0%, #0f324c 42%, #084d6e 100%) !important;
}

body.welcome-anonymous:not(.pagold-login-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 194, 17, 0.1), transparent 22%, transparent 78%, rgba(255, 194, 17, 0.08)),
    radial-gradient(circle at 50% 100%, rgba(22, 93, 124, 0.36), transparent 24rem);
}

body.welcome-anonymous:not(.pagold-login-page) .pagold-theme-toggle {
  position: fixed !important;
  top: clamp(0.75rem, 1.7vw, 1.15rem) !important;
  right: clamp(0.75rem, 1.7vw, 1.15rem) !important;
  left: auto !important;
  z-index: 30 !important;
  width: 3rem !important;
  height: 3rem !important;
}

body.welcome-anonymous:not(.pagold-login-page) .page-anonymous {
  position: relative !important;
  z-index: 1 !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(0.5rem, 1.4vh, 1rem) 1.25rem !important;
}

body.welcome-anonymous:not(.pagold-login-page) .page-anonymous::before {
  display: none !important;
  content: none !important;
}

body.welcome-anonymous:not(.pagold-login-page) .page-anonymous > div {
  width: min(29rem, 92vw) !important;
  min-height: 0 !important;
  justify-content: center !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

body.welcome-anonymous:not(.pagold-login-page) .container-tight {
  max-width: 29rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.welcome-anonymous:not(.pagold-login-page) .text-center {
  height: auto !important;
  margin-bottom: clamp(0.45rem, 1.4vh, 0.8rem) !important;
}

body.welcome-anonymous:not(.pagold-login-page) .glpi-logo {
  display: inline-block !important;
  width: min(14.5rem, 58vw) !important;
  height: clamp(3.7rem, 10vh, 4.8rem) !important;
  max-height: 4.8rem !important;
  margin-bottom: 0 !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}

body.welcome-anonymous:not(.pagold-login-page) .card.card-md {
  width: 100% !important;
  max-width: 29rem !important;
  margin: 0 auto !important;
  border: 1px solid rgba(255, 194, 17, 0.34) !important;
  border-radius: 1.35rem !important;
  overflow: hidden !important;
  background: rgba(27, 58, 73, 0.94) !important;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(18px);
}

body.welcome-anonymous:not(.pagold-login-page) .card.card-md::before {
  content: "Portal de Atendimento";
  display: block;
  padding: clamp(0.9rem, 1.8vh, 1.15rem) 1.75rem 0;
  color: rgba(238, 247, 251, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

body.welcome-anonymous:not(.pagold-login-page) .card-body {
  padding: clamp(0.75rem, 1.8vh, 1rem) clamp(1.2rem, 2.6vw, 2rem) clamp(0.9rem, 2vh, 1.2rem) !important;
}

body.welcome-anonymous:not(.pagold-login-page) .row.justify-content-center,
body.welcome-anonymous:not(.pagold-login-page) .col-md-5 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}

body.welcome-anonymous:not(.pagold-login-page) h2 {
  margin: 0 0 clamp(1rem, 2.2vh, 1.35rem) !important;
  color: #f5fbff !important;
  font-family: var(--pagold-font-body) !important;
  font-size: clamp(1.25rem, 2.4vw, 1.45rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-align: left !important;
}

body.welcome-anonymous:not(.pagold-login-page) label,
body.welcome-anonymous:not(.pagold-login-page) .form-label,
body.welcome-anonymous:not(.pagold-login-page) .form-check-label {
  color: #f5fbff !important;
  font-weight: 700 !important;
}

body.welcome-anonymous:not(.pagold-login-page) a,
body.welcome-anonymous:not(.pagold-login-page) .btn-link {
  color: #a9d8ef !important;
}

body.welcome-anonymous:not(.pagold-login-page) a:hover,
body.welcome-anonymous:not(.pagold-login-page) .btn-link:hover {
  color: #ffc211 !important;
}

body.welcome-anonymous:not(.pagold-login-page) .form-control,
body.welcome-anonymous:not(.pagold-login-page) .form-select,
body.welcome-anonymous:not(.pagold-login-page) .select2-container--default .select2-selection {
  min-height: 3rem !important;
  border: 1px solid rgba(190, 221, 236, 0.34) !important;
  border-radius: 0.9rem !important;
  color: #eef7fb !important;
  background: rgba(7, 35, 51, 0.72) !important;
  box-shadow: none !important;
}

body.welcome-anonymous:not(.pagold-login-page) .form-control:focus,
body.welcome-anonymous:not(.pagold-login-page) .form-select:focus,
body.welcome-anonymous:not(.pagold-login-page) .select2-container--focus .select2-selection {
  border-color: #ffc211 !important;
  box-shadow: 0 0 0 0.18rem rgba(255, 194, 17, 0.18) !important;
}

body.welcome-anonymous:not(.pagold-login-page) .btn-primary {
  width: 100% !important;
  min-height: 3rem !important;
  margin-top: 0.55rem !important;
  border: 0 !important;
  border-radius: 0.9rem !important;
  color: #082336 !important;
  background: linear-gradient(135deg, #ffc211, #cf861e) !important;
  font-weight: 800 !important;
  box-shadow: 0 1rem 2.2rem rgba(255, 194, 17, 0.2) !important;
}

body.welcome-anonymous:not(.pagold-login-page) .mb-3 {
  margin-bottom: clamp(0.55rem, 1.45vh, 0.8rem) !important;
}

body.welcome-anonymous:not(.pagold-login-page) .mb-4 {
  margin-bottom: clamp(0.55rem, 1.45vh, 0.8rem) !important;
}

body.welcome-anonymous:not(.pagold-login-page) .mb-2 {
  margin-bottom: 0.35rem !important;
}

body.welcome-anonymous:not(.pagold-login-page) .text-muted,
body.welcome-anonymous:not(.pagold-login-page) .copyright {
  color: rgba(238, 247, 251, 0.66) !important;
}

@media (max-width: 640px) {
  body.welcome-anonymous:not(.pagold-login-page) {
    height: auto !important;
    overflow-y: auto !important;
  }

  body.welcome-anonymous:not(.pagold-login-page) .page-anonymous > div {
    padding-top: 0 !important;
  }

  body.welcome-anonymous:not(.pagold-login-page) .card-body {
    padding-inline: 1.35rem !important;
  }
}

/* Override final: contraste da listagem de chamados no tema escuro. */
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results > :not(caption) > * > * {
  --tblr-table-bg: transparent !important;
  --tblr-table-color: #f4fbff !important;
  --tblr-table-striped-bg: transparent !important;
  --tblr-table-striped-color: #f4fbff !important;
  --tblr-table-active-bg: rgba(255, 194, 17, 0.14) !important;
  --tblr-table-active-color: #f4fbff !important;
  --tblr-table-hover-bg: rgba(255, 194, 17, 0.10) !important;
  --tblr-table-hover-color: #ffffff !important;
  --tblr-table-accent-bg: transparent !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr:nth-child(odd),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr:nth-child(even) {
  color: #f4fbff !important;
  background-color: #08293c !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody tr:nth-child(even) {
  background-color: #0b3148 !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tfoot td,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tfoot td * {
  color: #f4fbff !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td::before,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results tbody td::after {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-cell-badge {
  color: #062235 !important;
  background: #e7f3f7 !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-status-new .pagold-cell-badge {
  background: #d9f8e5 !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-status-progress .pagold-cell-badge {
  background: #fff0be !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-status-pending .pagold-cell-badge {
  background: #d8ebff !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results .pagold-time-part,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-results-footer,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-results-footer *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-footer,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .search-footer *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .pagination,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page .pagination * {
  color: #b9e5f6 !important;
}

/* Override ultra-especifico: remove faixas brancas herdadas do GLPI/Tabler na lista de chamados em tema escuro. */
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.table,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.search-results,
html.pagold-theme-dark body.pagold-ticket-list-page table,
body.pagold-theme-dark.pagold-ticket-list-page table {
  --tblr-table-bg: #08293c !important;
  --tblr-table-color: #f4fbff !important;
  --tblr-table-striped-bg: #0b3148 !important;
  --tblr-table-striped-color: #f4fbff !important;
  --tblr-table-active-bg: #123c53 !important;
  --tblr-table-active-color: #ffffff !important;
  --tblr-table-hover-bg: #123c53 !important;
  --tblr-table-hover-color: #ffffff !important;
  --tblr-table-accent-bg: transparent !important;
  color: #f4fbff !important;
  background: #08293c !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr:nth-child(odd),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr:nth-child(even),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.table-striped > tbody > tr:nth-of-type(odd),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.table-striped > tbody > tr:nth-of-type(even),
html.pagold-theme-dark body.pagold-ticket-list-page table tbody tr,
body.pagold-theme-dark.pagold-ticket-list-page table tbody tr {
  color: #f4fbff !important;
  background: #08293c !important;
  background-color: #08293c !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr:nth-child(even),
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.table-striped > tbody > tr:nth-of-type(even),
html.pagold-theme-dark body.pagold-ticket-list-page table tbody tr:nth-child(even),
body.pagold-theme-dark.pagold-ticket-list-page table tbody tr:nth-child(even) {
  background: #0b3148 !important;
  background-color: #0b3148 !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr > *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table.table-striped > tbody > tr > *,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody td,
html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody th,
html.pagold-theme-dark body.pagold-ticket-list-page table tbody tr > *,
body.pagold-theme-dark.pagold-ticket-list-page table tbody tr > * {
  color: #f4fbff !important;
  border-color: rgba(160, 205, 224, 0.16) !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr > * *,
html.pagold-theme-dark body.pagold-ticket-list-page table tbody tr > * *,
body.pagold-theme-dark.pagold-ticket-list-page table tbody tr > * * {
  color: inherit !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr > * a,
html.pagold-theme-dark body.pagold-ticket-list-page table tbody tr > * a,
body.pagold-theme-dark.pagold-ticket-list-page table tbody tr > * a {
  color: #ffffff !important;
}

html[data-pagold-theme="dark"] body.pagold-ticket-list-page table tbody tr > * .pagold-cell-badge,
html.pagold-theme-dark body.pagold-ticket-list-page table tbody tr > * .pagold-cell-badge,
body.pagold-theme-dark.pagold-ticket-list-page table tbody tr > * .pagold-cell-badge {
  color: #062235 !important;
}
/* ========================================================================== */
/* Fila técnica customizada PA Gold                                           */
/* ========================================================================== */

.pagold-queue-shell {
  --queue-ink: #082b40;
  --queue-muted: #607789;
  --queue-line: #d7e3ea;
  --queue-surface: #ffffff;
  --queue-soft: #f2f7f9;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px clamp(10px, 1.2vw, 22px) 48px;
  color: var(--queue-ink);
}

/* A fila usa toda a largura útil e acompanha a abertura/retração do menu. */
body.pagold-custom-queue-page .page-body {
  padding-right: clamp(8px, 1vw, 18px) !important;
  padding-left: clamp(8px, 1vw, 18px) !important;
}

body.pagold-custom-queue-page {
  overflow-x: hidden !important;
}

html.pagold-custom-queue-page {
  overflow-x: hidden !important;
}

body.pagold-custom-queue-page .page-wrapper,
body.pagold-custom-queue-page .page-body {
  width: auto !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

html.pagold-custom-queue-page body,
html.pagold-custom-queue-page .page {
  min-width: 0 !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

html.pagold-custom-queue-page body.pagold-custom-queue-page .container-xl,
html.pagold-custom-queue-page body.pagold-custom-queue-page .container-fluid {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.pagold-custom-queue-page .page-body > .container-xl,
body.pagold-custom-queue-page .page-body > .container-fluid,
body.pagold-custom-queue-page .page-body .container-xl,
body.pagold-custom-queue-page .page-body .container-fluid {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* O :has aplica a largura antes do JavaScript e evita o limite global de 1440px. */
.page-body:has(.pagold-queue-shell) {
  padding-right: clamp(8px, 1vw, 18px) !important;
  padding-left: clamp(8px, 1vw, 18px) !important;
}

.page-wrapper:has(.pagold-queue-shell),
.page-body:has(.pagold-queue-shell) {
  width: auto !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

.page-body:has(.pagold-queue-shell) > .container-xl,
.page-body:has(.pagold-queue-shell) > .container-fluid,
.page-body .container-xl:has(.pagold-queue-shell),
.page-body .container-fluid:has(.pagold-queue-shell) {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.pagold-queue-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(222, 174, 44, 0.34);
  border-radius: 26px;
  color: #f8fbfd;
  background:
    radial-gradient(circle at 88% 18%, rgba(222, 174, 44, 0.18), transparent 32%),
    linear-gradient(135deg, #06283c 0%, #0c4059 100%);
  box-shadow: 0 24px 60px rgba(3, 35, 53, 0.13);
}

.pagold-queue-hero h1 {
  margin: 4px 0 8px;
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.pagold-queue-hero p:not(.pagold-kicker) {
  max-width: 700px;
  margin: 0;
  color: #b8d4e2;
  font-size: 1rem;
}

.pagold-queue-hero .pagold-kicker {
  color: #ffc31d;
}

.pagold-queue-hero-actions,
.pagold-queue-filter-actions,
.pagold-queue-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagold-queue-button,
.pagold-queue-filter-actions button,
.pagold-queue-tools button,
.pagold-queue-tools summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #b8ccd7;
  border-radius: 12px;
  color: #103950 !important;
  background: #ffffff;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}

.pagold-queue-button.is-primary,
.pagold-queue-filter-actions button {
  border-color: #dca51b;
  color: #102332 !important;
  background: linear-gradient(135deg, #ffc31d, #d69220);
  box-shadow: 0 10px 24px rgba(222, 165, 27, 0.2);
}

.pagold-queue-export-menu {
  position: relative;
}

.pagold-queue-export-menu > summary {
  list-style: none;
}

.pagold-queue-export-menu > summary::-webkit-details-marker {
  display: none;
}

.pagold-queue-export-menu > summary::after {
  width: 0.48rem;
  height: 0.48rem;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.pagold-queue-export-menu[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.pagold-queue-export-menu > div {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 7px;
  border: 1px solid #b8ccd7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(3, 35, 53, 0.2);
}

.pagold-queue-export-menu > div a {
  padding: 9px 11px;
  border-radius: 8px;
  color: #103950 !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
}

.pagold-queue-export-menu > div a:hover,
.pagold-queue-export-menu > div a:focus-visible {
  background: #e9f5fa;
}

.pagold-queue-filters,
.pagold-queue-toolbar,
.pagold-queue-table-card {
  margin-top: 18px;
  border: 1px solid var(--queue-line);
  border-radius: 22px;
  background: var(--queue-surface);
  box-shadow: 0 18px 48px rgba(12, 53, 76, 0.08);
}

.pagold-queue-filters {
  padding: 20px;
}

.pagold-queue-search {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.pagold-queue-search > span,
.pagold-queue-filter-grid label > span {
  color: var(--queue-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pagold-queue-search input,
.pagold-queue-search button,
.pagold-queue-filter-grid select,
.pagold-queue-view-select select {
  min-height: 44px;
  border: 1px solid #bfd2dc;
  border-radius: 12px;
  color: #13384d;
  background: #fbfdfe;
}

.pagold-queue-search input {
  width: 100%;
  padding: 10px 14px;
}

.pagold-queue-search button {
  padding: 10px 18px;
  border-color: #0e506c;
  color: #ffffff;
  background: #0e506c;
  font-weight: 700;
}

.pagold-queue-area-filter {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.pagold-queue-area-filter legend {
  margin-bottom: 8px;
  color: var(--queue-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pagold-queue-area-filter > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagold-queue-area-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #bfd2dc;
  border-radius: 999px;
  color: #28566d !important;
  background: #f7fbfd;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none !important;
}

.pagold-queue-area-option strong {
  display: inline-grid;
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0 0.35rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(4 75 105 / 9%);
  color: inherit;
  font-size: 0.75rem;
  line-height: 1;
}

.pagold-queue-area-option.is-active strong {
  background: rgb(3 45 65 / 16%);
}

.pagold-queue-shell.is-area-loading .pagold-queue-table-card {
  opacity: 0.58;
  pointer-events: none;
}

.pagold-queue-area-option:hover,
.pagold-queue-area-option:focus-visible {
  border-color: #0e506c;
  color: #0a435e !important;
  background: #e9f5fa;
}

.pagold-queue-area-option.is-active {
  border-color: #dca51b;
  color: #102332 !important;
  background: linear-gradient(135deg, #ffc31d, #e0a326);
  box-shadow: 0 8px 18px rgba(222, 165, 27, 0.18);
}

.pagold-queue-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pagold-queue-filter-grid label {
  display: grid;
  gap: 7px;
}

.pagold-queue-filter-grid select,
.pagold-queue-view-select select {
  width: 100%;
  padding: 8px 12px;
}

.pagold-queue-filter-actions {
  justify-content: space-between;
  margin-top: 16px;
}

.pagold-queue-result-count {
  color: var(--queue-muted);
}

.pagold-queue-result-count strong {
  margin-right: 4px;
  color: #0a435e;
  font-size: 1.2rem;
}

.pagold-queue-filter-buttons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pagold-queue-filter-actions a {
  color: #386278;
  font-weight: 700;
}

.pagold-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.pagold-queue-toolbar > div:first-child strong {
  color: #0a435e;
  font-size: 1.35rem;
}

.pagold-queue-tools button,
.pagold-queue-tools summary {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.pagold-queue-tools button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagold-queue-view-select {
  min-width: 170px;
}

.pagold-queue-columns {
  position: relative;
}

.pagold-queue-columns summary {
  list-style: none;
}

.pagold-queue-columns summary::-webkit-details-marker {
  display: none;
}

.pagold-queue-columns > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 260px;
  max-height: 360px;
  padding: 12px;
  overflow: auto;
  border: 1px solid #bed1db;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(7, 45, 65, 0.18);
}

.pagold-queue-columns label {
  padding: 8px 7px;
  border-radius: 8px;
  color: #183b4f;
  font-size: 0.86rem;
}

.pagold-queue-columns label:hover {
  background: #eef5f7;
}

.pagold-queue-table-card {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.pagold-queue-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  scrollbar-color: #8ca7b6 #edf3f6;
  scrollbar-width: thin;
}

.pagold-queue-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.pagold-queue-table th,
.pagold-queue-table td {
  box-sizing: border-box;
  padding: 12px 9px;
  border: 0;
  border-bottom: 1px solid #dce7ec;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagold-queue-table td {
  font-size: 0.8rem;
  line-height: 1.35;
}

.pagold-queue-table th {
  position: relative;
  color: #45687a;
  background: #f3f7f9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
}

.pagold-queue-table tbody tr {
  color: #14364a;
  background: #ffffff;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.pagold-queue-table tbody tr:nth-child(even) {
  background: #f7fafb;
}

.pagold-queue-table tbody tr:hover,
.pagold-queue-table tbody tr:focus-visible {
  outline: 0;
  background: #eaf5f8;
  box-shadow: inset 4px 0 #e4a818;
}

.pagold-queue-table th[data-column="id"] { width: 68px; }
.pagold-queue-table th[data-column="name"] { width: 218px; }
.pagold-queue-table th[data-column="status"] { width: 118px; }
.pagold-queue-table th[data-column="date_mod"],
.pagold-queue-table th[data-column="date"] { width: 124px; }
.pagold-queue-table th[data-column="priority"] { width: 98px; }
.pagold-queue-table th[data-column="requester"] { width: 150px; }
.pagold-queue-table th[data-column="location"] { width: 145px; }
.pagold-queue-table th[data-column="technician"] { width: 145px; }
.pagold-queue-table th[data-column="category"] { width: 155px; }
.pagold-queue-table th[data-column="due_date"] { width: 118px; }
.pagold-queue-table th[data-column="age"] { width: 97px; }

/* Mantém a fila legível em notebooks sem exigir rolagem horizontal. */
@media (max-width: 1699px) {
  .pagold-queue-table th[data-column="due_date"],
  .pagold-queue-table td[data-column="due_date"],
  .pagold-queue-table th[data-column="age"],
  .pagold-queue-table td[data-column="age"] {
    display: none;
  }

  .pagold-queue-table th,
  .pagold-queue-table td {
    padding-right: 7px;
    padding-left: 7px;
  }

  .pagold-queue-table th[data-column="id"] { width: 5%; }
  .pagold-queue-table th[data-column="name"] { width: 18%; }
  .pagold-queue-table th[data-column="status"] { width: 9%; }
  .pagold-queue-table th[data-column="date_mod"],
  .pagold-queue-table th[data-column="date"] { width: 9%; }
  .pagold-queue-table th[data-column="priority"] { width: 7%; }
  .pagold-queue-table th[data-column="requester"] { width: 11%; }
  .pagold-queue-table th[data-column="location"] { width: 11%; }
  .pagold-queue-table th[data-column="technician"] { width: 10%; }
  .pagold-queue-table th[data-column="category"] { width: 11%; }
}

@media (max-width: 1199px) {
  .pagold-queue-table th[data-column="date"],
  .pagold-queue-table td[data-column="date"],
  .pagold-queue-table th[data-column="requester"],
  .pagold-queue-table td[data-column="requester"] {
    display: none;
  }

  .pagold-queue-table th[data-column="id"] { width: 7%; }
  .pagold-queue-table th[data-column="name"] { width: 24%; }
  .pagold-queue-table th[data-column="status"] { width: 12%; }
  .pagold-queue-table th[data-column="date_mod"] { width: 12%; }
  .pagold-queue-table th[data-column="priority"] { width: 10%; }
  .pagold-queue-table th[data-column="location"] { width: 13%; }
  .pagold-queue-table th[data-column="technician"] { width: 11%; }
  .pagold-queue-table th[data-column="category"] { width: 11%; }
}

.pagold-queue-table td[data-column="date_mod"],
.pagold-queue-table td[data-column="date"],
.pagold-queue-table td[data-column="due_date"] {
  white-space: normal;
}

.pagold-queue-table td[data-column="name"],
.pagold-queue-table td[data-column="requester"],
.pagold-queue-table td[data-column="location"],
.pagold-queue-table td[data-column="technician"],
.pagold-queue-table td[data-column="category"] {
  white-space: normal;
  overflow-wrap: anywhere;
}

.pagold-queue-table td[data-column="name"] .pagold-queue-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pagold-queue-title,
.pagold-queue-table td[data-column="id"] a {
  color: #005275 !important;
  font-weight: 750;
  text-decoration: none !important;
}

.pagold-queue-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit !important;
  text-decoration: none !important;
}

.pagold-queue-sort span::after {
  content: "↕";
  opacity: 0.38;
}

.pagold-queue-sort.is-asc span::after { content: "↑"; opacity: 1; }
.pagold-queue-sort.is-desc span::after { content: "↓"; opacity: 1; }

.pagold-column-resizer {
  position: absolute;
  z-index: 4;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.pagold-column-resizer:hover,
.pagold-is-resizing-column .pagold-column-resizer {
  border-right: 2px solid #e1a51a;
}

.pagold-is-resizing-column {
  cursor: col-resize !important;
  user-select: none !important;
}

.pagold-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #173448;
  background: #e6f0f4;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pagold-queue-badge.status-1 { color: #0c5830; background: #dff6e8; }
.pagold-queue-badge.status-2,
.pagold-queue-badge.status-3 { color: #6d4800; background: #fff0bd; }
.pagold-queue-badge.status-4 { color: #1c4d76; background: #dfefff; }
.pagold-queue-badge.status-5 { color: #155b37; background: #d9f3e3; }
.pagold-queue-badge.status-6 { color: #52616b; background: #e7ecef; }
.pagold-queue-badge.priority-4,
.pagold-queue-badge.priority-5,
.pagold-queue-badge.priority-6 { color: #8d2525; background: #ffe1df; }

.pagold-queue-table .is-unassigned,
.pagold-queue-table .is-overdue {
  color: #b32828;
  font-weight: 800;
}

.pagold-queue-empty td {
  padding: 54px 20px;
  text-align: center;
}

.pagold-queue-empty strong,
.pagold-queue-empty span {
  display: block;
}

.pagold-queue-empty span {
  margin-top: 5px;
  color: var(--queue-muted);
}

.pagold-queue-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: #607789;
}

.pagold-queue-pagination nav {
  display: flex;
  gap: 6px;
}

.pagold-queue-pagination a {
  min-width: 36px;
  padding: 7px 10px;
  border: 1px solid #c8d8e0;
  border-radius: 9px;
  color: #17465d !important;
  text-align: center;
  text-decoration: none !important;
}

.pagold-queue-pagination a.is-current {
  border-color: #dca51b;
  color: #142c3a !important;
  background: #ffc31d;
  font-weight: 800;
}

html[data-pagold-theme="dark"] .pagold-queue-shell {
  --queue-ink: #f0f7fa;
  --queue-muted: #9eb7c4;
  --queue-line: #21495d;
  --queue-surface: #0a2b3d;
  --queue-soft: #0d3448;
}

html[data-pagold-theme="dark"] .pagold-queue-filters,
html[data-pagold-theme="dark"] .pagold-queue-toolbar,
html[data-pagold-theme="dark"] .pagold-queue-table-card {
  background: #0a2b3d;
  box-shadow: none;
}

html[data-pagold-theme="dark"] .pagold-queue-search input,
html[data-pagold-theme="dark"] .pagold-queue-filter-grid select,
html[data-pagold-theme="dark"] .pagold-queue-view-select select {
  border-color: #31596c;
  color: #f4f8fa;
  background: #082538;
}

html[data-pagold-theme="dark"] .pagold-queue-search input::placeholder {
  color: #8faaba;
}

html[data-pagold-theme="dark"] .pagold-queue-area-option {
  border-color: #31596c;
  color: #d9eaf1 !important;
  background: #0d3448;
}

html[data-pagold-theme="dark"] .pagold-queue-area-option:hover,
html[data-pagold-theme="dark"] .pagold-queue-area-option:focus-visible {
  border-color: #5f91a8;
  color: #ffffff !important;
  background: #16485d;
}

html[data-pagold-theme="dark"] .pagold-queue-area-option.is-active {
  border-color: #ffc31d;
  color: #102332 !important;
  background: #ffc31d;
}

html[data-pagold-theme="dark"] .pagold-queue-toolbar > div:first-child strong,
html[data-pagold-theme="dark"] .pagold-queue-result-count strong,
html[data-pagold-theme="dark"] .pagold-queue-filter-actions a {
  color: #ffcb3e;
}

html[data-pagold-theme="dark"] .pagold-queue-tools button,
html[data-pagold-theme="dark"] .pagold-queue-tools summary {
  border-color: #31596c;
  color: #f3f8fa !important;
  background: #0d3448;
}

html[data-pagold-theme="dark"] .pagold-queue-columns > div {
  border-color: #31596c;
  background: #0b2d40;
}

html[data-pagold-theme="dark"] .pagold-queue-columns label {
  color: #edf6f9;
}

html[data-pagold-theme="dark"] .pagold-queue-columns label:hover {
  background: #123d52;
}

html[data-pagold-theme="dark"] .pagold-queue-table th {
  color: #ffca34;
  background: #0d3448;
}

html[data-pagold-theme="dark"] .pagold-queue-table tbody tr,
html[data-pagold-theme="dark"] .pagold-queue-table tbody tr:nth-child(even) {
  color: #eef7fa;
  background: #08293b;
}

html[data-pagold-theme="dark"] .pagold-queue-table tbody tr:nth-child(even) {
  background: #0c3347;
}

html[data-pagold-theme="dark"] .pagold-queue-table tbody tr:hover,
html[data-pagold-theme="dark"] .pagold-queue-table tbody tr:focus-visible {
  background: #16485d;
}

html[data-pagold-theme="dark"] .pagold-queue-title,
html[data-pagold-theme="dark"] .pagold-queue-table td[data-column="id"] a {
  color: #8fdcff !important;
}

html[data-pagold-theme="dark"] .pagold-queue-pagination,
html[data-pagold-theme="dark"] .pagold-queue-empty span {
  color: #a9c0cc;
}

html[data-pagold-theme="dark"] .pagold-queue-pagination a {
  border-color: #345b6c;
  color: #e8f4f8 !important;
}

/* O alternador do projeto mantém o tema também como classe no body. */
body.pagold-theme-dark .pagold-queue-shell {
  --queue-ink: #f0f7fa;
  --queue-muted: #9eb7c4;
  --queue-line: #21495d;
  --queue-surface: #0a2b3d;
  --queue-soft: #0d3448;
}

body.pagold-theme-dark .pagold-queue-filters,
body.pagold-theme-dark .pagold-queue-toolbar,
body.pagold-theme-dark .pagold-queue-table-card {
  background: #0a2b3d;
  box-shadow: none;
}

body.pagold-theme-dark .pagold-queue-search input,
body.pagold-theme-dark .pagold-queue-filter-grid select,
body.pagold-theme-dark .pagold-queue-view-select select {
  border-color: #31596c;
  color: #f4f8fa;
  background: #082538;
}

body.pagold-theme-dark .pagold-queue-search input::placeholder {
  color: #8faaba;
}

body.pagold-theme-dark .pagold-queue-area-option {
  border-color: #31596c;
  color: #d9eaf1 !important;
  background: #0d3448;
}

body.pagold-theme-dark .pagold-queue-area-option:hover,
body.pagold-theme-dark .pagold-queue-area-option:focus-visible {
  border-color: #5f91a8;
  color: #ffffff !important;
  background: #16485d;
}

body.pagold-theme-dark .pagold-queue-area-option.is-active {
  border-color: #ffc31d;
  color: #102332 !important;
  background: #ffc31d;
}

body.pagold-theme-dark .pagold-queue-toolbar > div:first-child strong,
body.pagold-theme-dark .pagold-queue-result-count strong,
body.pagold-theme-dark .pagold-queue-filter-actions a {
  color: #ffcb3e;
}

body.pagold-theme-dark .pagold-queue-tools button,
body.pagold-theme-dark .pagold-queue-tools summary {
  border-color: #31596c;
  color: #f3f8fa !important;
  background: #0d3448;
}

html[data-pagold-theme="dark"] .pagold-queue-export-menu > summary,
body.pagold-theme-dark .pagold-queue-export-menu > summary {
  border-color: #31596c;
  color: #f3f8fa !important;
  background: #0d3448;
}

html[data-pagold-theme="dark"] .pagold-queue-export-menu > div,
body.pagold-theme-dark .pagold-queue-export-menu > div {
  border-color: #31596c;
  background: #0b2d40;
  box-shadow: 0 18px 38px rgba(0, 12, 20, 0.45);
}

html[data-pagold-theme="dark"] .pagold-queue-export-menu > div a,
body.pagold-theme-dark .pagold-queue-export-menu > div a {
  color: #edf7fa !important;
}

html[data-pagold-theme="dark"] .pagold-queue-export-menu > div a:hover,
html[data-pagold-theme="dark"] .pagold-queue-export-menu > div a:focus-visible,
body.pagold-theme-dark .pagold-queue-export-menu > div a:hover,
body.pagold-theme-dark .pagold-queue-export-menu > div a:focus-visible {
  background: #16485d;
}

body.pagold-theme-dark .pagold-queue-columns > div {
  border-color: #31596c;
  background: #0b2d40;
}

body.pagold-theme-dark .pagold-queue-columns label {
  color: #edf6f9;
}

body.pagold-theme-dark .pagold-queue-columns label:hover {
  background: #123d52;
}

body.pagold-theme-dark .pagold-queue-table th {
  color: #ffca34;
  background: #0d3448;
}

body.pagold-theme-dark .pagold-queue-table tbody tr {
  color: #eef7fa;
  background: #08293b;
}

body.pagold-theme-dark .pagold-queue-table tbody tr:nth-child(even) {
  color: #eef7fa;
  background: #0c3347;
}

body.pagold-theme-dark .pagold-queue-table tbody tr:hover,
body.pagold-theme-dark .pagold-queue-table tbody tr:focus-visible {
  background: #16485d;
}

body.pagold-theme-dark .pagold-queue-title,
body.pagold-theme-dark .pagold-queue-table td[data-column="id"] a {
  color: #8fdcff !important;
}

body.pagold-theme-dark .pagold-queue-pagination,
body.pagold-theme-dark .pagold-queue-empty span {
  color: #a9c0cc;
}

body.pagold-theme-dark .pagold-queue-pagination a {
  border-color: #345b6c;
  color: #e8f4f8 !important;
}

html[data-pagold-ui="ready"] body.pagold-custom-queue-page .pagold-queue-hero h1 {
  color: #ffffff !important;
}

@media (max-width: 1180px) {
  .pagold-queue-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagold-queue-filter-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .pagold-queue-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .pagold-request-attachments {
    grid-template-columns: 1fr;
  }

  .pagold-request-attachment-picker {
    min-width: 0;
  }

  .pagold-queue-shell {
    padding: 14px 10px 38px;
  }

  .pagold-queue-hero {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .pagold-queue-hero-actions,
  .pagold-queue-hero-actions .pagold-queue-button {
    width: 100%;
  }

  .pagold-queue-search {
    grid-template-columns: 1fr;
  }

  .pagold-queue-area-filter > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pagold-queue-area-option {
    width: 100%;
  }

  .pagold-queue-filter-grid {
    grid-template-columns: 1fr;
  }

  .pagold-queue-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pagold-queue-filter-buttons,
  .pagold-queue-filter-actions button {
    width: 100%;
  }

  .pagold-queue-filter-buttons {
    justify-content: space-between;
  }

  .pagold-queue-tools {
    width: 100%;
  }

  .pagold-queue-view-select {
    flex: 1 1 100%;
  }

  .pagold-queue-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .pagold-ticket-form-page .timeline-item,
  .pagold-ticket-form-page .timeline-item .row,
  .pagold-ticket-form-page .timeline-item .content-part,
  .pagold-ticket-form-page .timeline-item .timeline-content,
  .pagold-ticket-form-page .timeline-item .card-body,
  .pagold-ticket-form-page .form-buttons,
  .pagold-ticket-form-page .buttons-bar {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .pagold-ticket-form-page .timeline-item .row,
  .pagold-ticket-form-page .timeline-item .m-n2 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .pagold-ticket-form-page .timeline-item .todo-list-state,
  .pagold-ticket-form-page .timeline-item .col-auto {
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
  }

  .pagold-ticket-form-page .timeline-item a,
  .pagold-ticket-form-page .timeline-item .document-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pagold-ticket-form-page .form-buttons,
  .pagold-ticket-form-page .buttons-bar {
    flex-wrap: wrap !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
  }
}

/* RC11.6: ajuste final de densidade e separação no login corporativo. */
body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell .pagold-login-card.card-md {
  max-width: 450px !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card .card-body {
  width: 100% !important;
  max-width: none !important;
  padding: 18px 20px !important;
  box-sizing: border-box !important;
}

body.welcome-anonymous.pagold-login-page .pagold-login-card form,
body.welcome-anonymous.pagold-login-page .pagold-login-card .pagold-login-options {
  width: 100% !important;
  max-width: 390px !important;
}

body.welcome-anonymous.pagold-login-page .pagold-local-login-label {
  margin: 14px 0 18px !important;
}

@media (max-width: 520px) {
  body.welcome-anonymous.pagold-login-page .container-tight.pagold-login-shell .pagold-login-card.card-md {
    max-width: 100% !important;
  }

body.welcome-anonymous.pagold-login-page .pagold-login-card .card-body {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

/* RC12.2.2: os widgets do painel não herdam a largura mínima das tabelas administrativas. */
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .grid-item,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .table-responsive,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .tab_cadre_central,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .tab_cadre_fixehov,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .tab_cadre_fixe,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .scrolling-table,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .tableFixHead {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .lazy-widget table,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] .table-responsive > table,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table.table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table th,
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table td {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table th:nth-child(1),
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table td:nth-child(1) {
  width: 6% !important;
}

html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table th:nth-child(2),
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table td:nth-child(2) {
  width: 29% !important;
}

html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table th:nth-child(3),
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table td:nth-child(3) {
  width: 18% !important;
}

html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table th:nth-child(4),
html[data-pagold-ui="ready"] body.pagold-dashboard-page [id^="home-dashboard"] table td:nth-child(4) {
  width: 47% !important;
}

/* HML: preserva o contraste do hero contra regras globais dos temas GLPI. */
html[data-pagold-ui="ready"] body .pagold-scope-dashboard-hero #pagold-dashboard-title {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 18, 30, 0.42);
}

html[data-pagold-ui="ready"] body .pagold-scope-dashboard-hero p {
  color: #d9f1fb !important;
}

/* Chamado: diferencia resposta na linha do tempo de edição das propriedades. */
.pagold-ticket-response-guide {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 123, 167, 0.3);
  border-left: 4px solid #007ba7;
  border-radius: 12px;
  color: var(--pagold-strong-text);
  background: rgba(0, 123, 167, 0.08);
}

.pagold-ticket-response-guide strong {
  flex: 0 0 auto;
  color: #005a7a;
}

.pagold-ticket-response-guide span {
  line-height: 1.45;
}

html[data-pagold-theme="dark"] .pagold-ticket-response-guide strong {
  color: #71d8ff;
}

.pagold-followup-action {
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .pagold-ticket-response-guide {
    align-items: flex-start;
    flex-direction: column;
  }
}
