/* Shared portal chrome; module forms and the login layout keep their own styles. */
header.top { height: auto !important; min-height: 88px; }
header.top > .topin {
  height: auto !important;
  min-height: 87px;
  grid-template-columns: 198px minmax(160px, 1fr) minmax(0, max-content) !important;
  gap: 8px 16px !important;
  align-items: center;
}

header.top .emp {
  text-align: left !important;
  font-size: 20px !important;
  line-height: 1.25;
}

header.top .right {
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px !important;
}

header.top .right > .shell-header-button {
  border: 1px solid var(--l, #ded8cf);
  border-radius: 999px;
  background: #fff;
  color: var(--c, #171819);
  padding: 10px 12px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

header.top .shell-header-button:focus-visible { outline: 2px solid #c88027; outline-offset: 3px; }
header.top .shell-header-button:disabled { opacity: .6; cursor: default; }
header.top .weather,
header.top .date,
header.top .shell-time {
  display: inline !important;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  color: #77716b;
}

#agreements .documents-v17-heading h1,
#agreements .box > h1 { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  header.top > .topin {
    grid-template-columns: 198px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    padding: 10px 16px !important;
  }
  header.top .brand { grid-column: 1; grid-row: 1; }
  header.top .emp { grid-column: 2; grid-row: 1; }
  header.top .right { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

@media (max-width: 560px) {
  header.top > .topin { grid-template-columns: minmax(0, 198px) minmax(0, 1fr) !important; gap: 10px 12px !important; }
  header.top .emp { font-size: 18px !important; }
  header.top .right > .shell-header-button { padding: 10px 11px; }
  #agreements .documents-v17-heading h1,
  #agreements .box > h1 { font-size: 28px; }
}
