/* NAB identity: supplied artwork is displayed intact on its original background. */
:root {
  --nab-black: #050b10;
  --nab-blue: #009cf3;
  --nab-primary: #0071b5;
  --nab-blue-ink: #0066a3;
  --nab-red: #df1735;
  --navy: #08131e;
  --navy2: #10283d;
  --red: #c51731;
  --ink: #142a3d;
  --muted: #576b7d;
  --line: #dce5ed;
  --bg: #f2f6f9;
  --focus-ring: #0071b5;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button {
  background: var(--nab-primary);
  border-color: var(--nab-primary);
}
button.secondary {
  background: #fff;
  color: #24455e;
  border-color: #c6d7e4;
}
button.text-button,
button.icon-button {
  background: transparent;
  border-color: transparent;
  color: var(--nab-blue-ink);
}
button.danger-outline {
  background: #fff;
  border-color: #e8bec7;
  color: #a71932;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}
input,
select,
textarea {
  accent-color: var(--nab-primary);
}
.nab-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--nab-black);
  color: #fff;
  border-radius: 8px;
}
.sidebar {
  background: var(--nab-black);
  border-right: 1px solid #163047;
  padding: 18px 18px 20px;
  overflow-y: auto;
}
.sidebar > .portal-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  letter-spacing: 0;
  text-align: center;
}
.sidebar .nab-logo {
  width: 184px;
  max-width: 100%;
  border-radius: 0;
}
.nab-brand-caption {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.5;
  color: inherit;
}
.sidebar .nab-brand-caption {
  padding: 8px 10px;
  color: #e6f5ff;
  border: 1px solid #19384d;
  border-radius: 5px;
  width: 100%;
  background: #0b1924;
}
.sidebar .workspace-label {
  font-size: 10px;
  letter-spacing: 0.2px;
  line-height: 1.6;
  color: #a8c0d1;
  padding: 12px 3px 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar nav {
  flex-shrink: 0;
}
.sidebar nav button {
  color: #b6cbd9;
  border: 1px solid transparent;
  min-height: 44px;
}
.sidebar nav button.nav-active {
  background: #0d283d;
  color: #fff;
  border-color: #15425e;
  box-shadow: inset 3px 0 var(--nab-blue);
}
.sidebar nav button:hover {
  background: #102637;
  color: #fff;
}
.sidebar-bottom {
  color: #a5bdcf;
  flex-shrink: 0;
}
.sidebar .user-card {
  border-color: #193446;
  flex-shrink: 0;
}
.sidebar .user-card .avatar {
  background: #103c59;
  color: #c5ebff;
}
.sidebar .user-card small {
  color: #afc4d4;
}
.topbar {
  border-bottom: 2px solid #c7e3f4;
  box-shadow: 0 1px 8px #0a213409;
}
.topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.page-title h1 {
  color: #102c42;
}
.eyebrow {
  color: var(--nab-blue-ink);
}
.stats > div {
  border-top: 3px solid var(--nab-primary);
  box-shadow: 0 2px 8px #133d5a05;
}
.stats > div:first-child {
  border-top-color: var(--nab-red);
}
.stats b {
  color: #143c58;
}
.panel,
.time-widget,
.ticket-card,
.site-card,
.modal {
  box-shadow: 0 3px 14px #0e304706;
}
.panel-heading {
  background: #f8fbfd;
  border-bottom-color: #e0ebf2;
}
.panel-heading h2 {
  color: #173d57;
}
.ux-quick-actions button {
  background: #fff;
  color: var(--nab-blue-ink);
  border-color: #bfd9ea;
}
.ux-quick-actions button:hover {
  background: #eaf5fc;
}
.time-widget {
  border-left: 3px solid var(--nab-primary);
}
.time-widget.time-on-break {
  border-left-color: #bf811e;
}
.time-current,
.ticket-time-summary {
  background: #eaf5fc;
  color: #225b7d;
}
.workday button[aria-pressed="true"] {
  background: #0d3b59;
  border-color: #0d3b59;
  color: #fff;
}
.workday-activity {
  background: #eaf5fc;
  color: #24536d;
}
.workday-open {
  background: transparent;
  border-color: transparent;
  color: #075f95;
}
.workday-open:hover {
  background: #eef7fd;
}
.badge.en_route,
.badge.assigned,
.badge.accepted,
.badge.travel {
  background: #e5f4ff;
  color: #076698;
}
.badge.on_site,
.badge.in_progress,
.badge.work {
  background: #e9f4fa;
  color: #185c83;
}
.badge.blocked,
.badge.urgent {
  background: #ffebef;
  color: #ab1833;
}
.tabs button.active {
  color: var(--nab-blue-ink);
  border-bottom-color: var(--nab-primary);
}
.office-box > svg {
  color: var(--nab-primary);
}
.ops-workspace {
  --ink: #142a3d;
  --muted: #576b7d;
  --line: #dce5ed;
  --blue: #0066a3;
}
.ops-workspace .eyebrow {
  color: var(--nab-blue-ink);
}
.ops-workspace .ops-tabs button {
  background: #fff;
  color: #24455e;
  border-color: #c6d7e4;
}
.ops-workspace .ops-tabs button.active {
  background: #0d3b59;
  border-color: #0d3b59;
  color: #fff;
}
.ops-workspace .ops-tabs {
  background: var(--bg);
}
.ops-workspace button,
.ops-workspace .button {
  background: var(--nab-primary);
  border-color: var(--nab-primary);
  color: #fff;
}
.ops-workspace .ops-tabs button:not(.active) {
  background: #fff;
  color: #24455e;
  border-color: #c6d7e4;
}
.ops-workspace button.secondary,
.ops-workspace .button.secondary {
  background: #fff;
  color: #24455e;
  border-color: #c6d7e4;
}
.ops-workspace .metric {
  border-top: 3px solid var(--nab-primary);
}
.ux-more-heading {
  border-bottom: 2px solid #cee6f5;
}
.ux-more-panel button.active,
.ux-mobile-nav button.active {
  color: var(--nab-blue-ink);
}
.nab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 35px;
  padding: 20px 0 28px;
  border-top: 1px solid #d2e2ed;
  color: #567083;
  font-size: 11px;
  line-height: 1.6;
}
.nab-footer strong {
  color: #234b65;
  font-size: 12px;
}
.nab-footer small {
  font-size: 10px;
}
/* Account entry screens share a black logo panel and a light form surface. */
.nab-auth {
  background: radial-gradient(ellipse at 14% 0, #12354b 0, transparent 55%), #080f16;
  min-height: 100vh;
  padding: 40px 20px;
  color: var(--ink);
}
.nab-auth main {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(300px, 1.15fr);
  max-width: 940px;
  margin: 5vh auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #23445b;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px #0005;
}
.nab-auth main.wide {
  max-width: 1040px;
}
.nab-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--nab-black);
  padding: 32px 22px;
  border-top: 4px solid var(--nab-blue);
  border-bottom: 4px solid var(--nab-red);
  color: #fff;
  text-align: center;
}
.nab-auth-brand .nab-logo {
  width: 300px;
  max-width: 100%;
  border-radius: 0;
}
.nab-auth-workspace {
  display: block;
  margin: 20px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.nab-auth-brand p {
  color: #b5d1e2;
  font-size: 12px;
  margin: 8px 0 0;
}
.nab-auth-content {
  padding: 38px 36px;
  min-width: 0;
}
.nab-auth-content .eyebrow {
  margin: 0 0 12px;
  color: #0066a3;
  line-height: 1.6;
}
.nab-auth-content h1 {
  font-size: 28px;
  color: #153a55;
  line-height: 1.2;
}
.nab-auth-content p {
  color: #536b7f;
}
.nab-auth-content label {
  color: #28485f;
  font-size: 12px;
  line-height: 1.5;
}
.nab-auth-content input,
.nab-auth-content select {
  border-color: #bdcfdc;
  min-height: 46px;
  background: #fbfdff;
  color: #16374e;
  font-size: 14px;
}
.nab-auth-content button {
  background: var(--nab-primary);
  color: #fff;
  min-height: 46px;
  border-color: var(--nab-primary);
  font-size: 14px;
}
.nab-auth-content a {
  color: var(--nab-blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nab-auth-content .fine {
  font-size: 12px;
}
.loading {
  border-top: 4px solid var(--nab-primary);
}
.loading > .nab-logo {
  width: 176px;
  max-width: 100%;
  margin: auto;
}
.clock-gate {
  background: radial-gradient(ellipse at 0 0, #dcedf9 0, transparent 65%), var(--bg);
}
.clock-gate-card {
  border-top: 4px solid var(--nab-primary);
  box-shadow: 0 14px 55px #12314a13;
}
.clock-gate-card .portal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.clock-gate-card .nab-logo {
  width: 168px;
  max-width: 100%;
}
.clock-gate-card .nab-brand-caption {
  color: #1d4965;
  font-size: 11px;
}
.clock-gate-icon {
  color: var(--nab-blue-ink);
  background: #e5f3fc;
}
@media (max-width: 850px) {
  .topbar {
    background: var(--nab-black);
    border-bottom: 2px solid var(--nab-primary);
    color: #fff;
  }
  .mobile-brand {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 48px;
    align-items: center;
    margin: 0;
  }
  .mobile-brand .nab-logo {
    width: 44px;
    height: 44px;
    border-radius: 2px;
  }
  .topbar > div:first-child {
    gap: 8px;
    min-width: 0;
  }
  .topbar b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar .icon-button {
    color: #b7ddf6;
  }
  .topbar .ux-find-ticket {
    background: #102b3e;
    border-color: #25506b;
    color: #e2f3ff;
  }
  .nab-footer {
    margin: 0 18px;
    padding-bottom: 96px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 680px) {
  .nab-auth {
    padding: 18px 14px;
  }
  .nab-auth main,
  .nab-auth main.wide {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
  }
  .nab-auth-brand {
    padding: 12px 20px;
    border-top-width: 3px;
    border-bottom-width: 3px;
  }
  .nab-auth-brand .nab-logo {
    width: 170px;
  }
  .nab-auth-workspace {
    margin: 5px 0 0;
    font-size: 11px;
    letter-spacing: 1.6px;
  }
  .nab-auth-brand p {
    display: none;
  }
  .nab-auth-content {
    padding: 26px 24px;
  }
  .nab-auth-content h1 {
    font-size: 25px;
  }
  .clock-gate-card .nab-logo {
    width: 144px;
  }
  .nab-auth-content .split {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
@media print {
  .nab-footer {
    display: block;
    color: #222;
  }
  .nab-auth {
    background: #fff;
  }
  .nab-auth main {
    box-shadow: none;
  }
  .nab-footer span,
  .nab-footer small {
    display: block;
  }
}

.ops-workspace button.danger-outline {
  background: #fff;
  border-color: #e8bec7;
  color: #a71932;
}
.ops-workspace button.text-button,
.ops-workspace button.icon-button {
  background: transparent;
  border-color: transparent;
  color: var(--nab-blue-ink);
}
