/* StarTeam theme - colours taken from the logo. */
:root {
  --st-green-dark: #16453a;   /* wordmark */
  --st-green: #0a9a6d;        /* eagle */
  --st-green-action: #08805a; /* accessible button green (AA contrast with white text) */
  --st-lime: #7bbc01;         /* star */
  --st-touch-min: 48px;
  --bs-primary: var(--st-green-action);
  --bs-primary-rgb: 8, 128, 90;
  --bs-link-color: var(--st-green-action);
  --bs-link-hover-color: var(--st-green-dark);
}
.bg-brand { background-color: var(--st-green-dark) !important; }
.btn-primary {
  --bs-btn-bg: var(--st-green-action);
  --bs-btn-border-color: var(--st-green-action);
  --bs-btn-hover-bg: #066b4a;
  --bs-btn-hover-border-color: #066b4a;
  --bs-btn-active-bg: #055a3e;
  --bs-btn-active-border-color: #055a3e;
  --bs-btn-disabled-bg: var(--st-green-action);
  --bs-btn-disabled-border-color: var(--st-green-action);
}
.btn-outline-primary {
  --bs-btn-color: var(--st-green-action);
  --bs-btn-border-color: var(--st-green-action);
  --bs-btn-hover-bg: var(--st-green-action);
  --bs-btn-hover-border-color: var(--st-green-action);
  --bs-btn-active-bg: var(--st-green-action);
  --bs-btn-active-border-color: var(--st-green-action);
}
.bg-primary { background-color: var(--st-green-action) !important; }
.text-brand { color: var(--st-green-dark); }
.accent-bar { height: 4px; background: linear-gradient(90deg, var(--st-green) 0, var(--st-lime) 100%); }
.btn-touch { min-height: var(--st-touch-min); min-width: var(--st-touch-min); font-size: 1.1rem; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.status-badge { font-size: .85rem; padding: .45em .8em; }
.status-online { background-color: var(--st-lime); color: #10300a; }
.status-offline { background-color: #dc3545; color: #fff; }
.navbar-brand img { height: 36px; width: 36px; border-radius: 6px; background: #fff; padding: 2px; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: linear-gradient(160deg, #f3faf7 0%, #e6f4ee 100%); }
.auth-card { width: 100%; max-width: 440px; border: 0; box-shadow: 0 8px 30px rgba(22, 69, 58, .12); border-radius: 14px; }
.auth-logo { max-width: 200px; width: 60%; height: auto; }
.qr-box { max-width: 220px; margin: 0 auto; background: #fff; padding: 8px; border: 1px solid #dee2e6; border-radius: 8px; }
.qr-box svg { width: 100%; height: auto; display: block; }
.recovery-codes { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; letter-spacing: .08em;
  columns: 2; background: #f8f9fa; border: 1px dashed #adb5bd; border-radius: 8px; padding: 1rem 1.5rem; }
.recovery-codes li { list-style: none; padding: .15rem 0; }
.table-cards td, .table-cards th { vertical-align: middle; }
@media (max-width: 575.98px) {
  .table-cards thead { display: none; }
  .table-cards tr { display: block; border: 1px solid #dee2e6; border-radius: 8px; margin-bottom: .75rem; padding: .5rem .75rem; background: #fff; }
  .table-cards td { display: flex; justify-content: space-between; border: 0; padding: .25rem 0; text-align: right; }
  .table-cards td::before { content: attr(data-label); font-weight: 600; color: #6c757d; text-align: left; padding-right: 1rem; }
}

/* setup wizard */
.stepper { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.stepper li { flex: 1; text-align: center; font-size: .8rem; color: #6c757d; position: relative; }
.stepper .num { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; align-items: center; justify-content: center;
  background: #e9ecef; font-weight: 600; margin-bottom: .2rem; }
.stepper .done .num { background: var(--st-green); color: #fff; }
.stepper .current .num { background: var(--st-green-dark); color: #fff; box-shadow: 0 0 0 3px rgba(10, 154, 109, .3); }
.stepper .current { color: var(--st-green-dark); font-weight: 600; }
@media (max-width: 575.98px) { .stepper .label { display: none; } .stepper .current .label { display: block; position: absolute; left: 0; right: 0; top: 2.3rem; } .stepper { margin-bottom: 2.5rem; } }
.nav-tabs-scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }
.nav-tabs-scroll .nav-link { color: var(--st-green-dark); }
.nav-tabs-scroll .nav-link.active { font-weight: 600; border-bottom-color: #fff; }
.hours-row { border-bottom: 1px solid #eee; padding: .6rem 0; }
.check-ok { color: var(--st-green); } .check-bad { color: #dc3545; } .check-pending { color: #b07d00; }
.cap-item { border: 1px solid #e3e8e6; border-radius: 8px; padding: .6rem .8rem; background: #fff; }

/* show / hide password button */
.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 3rem; }
.pw-toggle {
  position: absolute; top: 0; right: 0; bottom: 0; width: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: #5b6b66; cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: #0a9a6d; }
.pw-toggle:focus-visible { outline: 2px solid #0a9a6d; outline-offset: -2px; border-radius: 0 .5rem .5rem 0; }
