/* AMS brand theme — aligned with ams-ui / ams-ui-common AppHeader */

:root {
  --ams-hitachi-red: #cc0000;
  --ams-accent-blue: #1775e0;
  --ams-text: #222222;
  --ams-muted: #6c6b6b;
  --ams-header-bg: #f4f4f4;
  --ams-page-bg: #f7f7f7;
  --ams-border: #d9d9d9;
  --md-primary-fg-color: #cc0000;
  --md-primary-fg-color--light: #e03333;
  --md-primary-fg-color--dark: #a00000;
  --md-accent-fg-color: #1775e0;
  --md-accent-fg-color--transparent: rgba(23, 117, 224, 0.1);
  --md-typeset-a-color: #1775e0;
}

/* Light chrome like AMS UI */
.md-header.ams-header {
  background-color: var(--ams-header-bg);
  color: var(--ams-text);
  border-bottom: 1px solid var(--ams-border);
  box-shadow: none;
}

.md-header.ams-header .md-header__button,
.md-header.ams-header .md-header__topic,
.md-header.ams-header .md-ellipsis,
.md-header.ams-header .md-select,
.md-header.ams-header .md-icon {
  color: var(--ams-text);
}

.md-header.ams-header .md-header__button:hover {
  opacity: 0.85;
}

.md-tabs {
  background-color: #ffffff;
  border-bottom: 1px solid var(--ams-border);
}

.md-tabs__link {
  color: var(--ams-text);
  opacity: 0.75;
}

.md-tabs__link--active,
.md-tabs__item--active .md-tabs__link {
  color: var(--ams-hitachi-red);
  opacity: 1;
  font-weight: 600;
}

/* Brand cluster: logo + Hitachi | Harc | Agent Management System */
.ams-brand-link {
  margin-right: 0.35rem;
}

.ams-brand-link img,
.ams-brand-link svg {
  width: 5rem;
  height: 1.5rem;
  display: block;
}

.ams-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-right: 1rem;
  text-decoration: none !important;
  color: var(--ams-text) !important;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}

.ams-brand__hitachi {
  font-weight: 700;
  font-size: 0.95rem;
}

.ams-brand__harc {
  font-weight: 700;
  font-size: 0.95rem;
}

.ams-brand__ams {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25;
}

.ams-brand__sep {
  display: inline-block;
  width: 1.5px;
  height: 1.35rem;
  background: #000;
  flex-shrink: 0;
}

.ams-site-title {
  color: var(--ams-muted);
  font-size: 0.8rem;
}

/* Hide default site-name topic on wide screens — brand text carries identity */
@media screen and (min-width: 76.25em) {
  .md-header__title .md-header__topic:first-child {
    display: none;
  }
}

/* Compact brand on narrow screens */
@media screen and (max-width: 71.25em) {
  .ams-brand__ams {
    display: none;
  }

  .ams-brand__sep:last-of-type {
    display: none;
  }
}

@media screen and (max-width: 40em) {
  .ams-brand {
    display: none;
  }
}

body {
  background: var(--ams-page-bg);
}

.md-typeset h1,
.md-typeset h2 {
  color: var(--ams-text);
  font-weight: 700;
}

.md-typeset a {
  color: var(--ams-accent-blue);
}

.md-button--primary {
  background-color: var(--ams-text);
  border-color: var(--ams-text);
}

.md-button--primary:hover {
  background-color: var(--ams-hitachi-red);
  border-color: var(--ams-hitachi-red);
}

/* Sidebar active */
.md-nav__link--active,
.md-nav__link:is(:focus, :hover) {
  color: var(--ams-hitachi-red);
}

.ams-logout {
  cursor: pointer;
}
