
:root{--ink:#142c3d;--muted:#6b7b88;--teal:#087f80;--bg-page:#f3f6f8;--bg-surface:#fff;--bg-surface-muted:#f7f9fb;--text-primary:#142c3d;--text-secondary:#6b7b88;--border-color:#e1e8ec;--panel-border:#aebfcb;--table-border-color:#c1ced8;--input-bg:#fff;--sidebar-bg:#102f3b;--topbar-bg:#fff;--shadow-color:rgba(20,44,61,.10);--table-header-bg:#f7f9fb}*{box-sizing:border-box}body{background:var(--bg-page);color:var(--text-primary);font-family:Segoe UI,Arial,sans-serif;font-size:14px}a{color:#087f80;text-decoration:none}h1{font-size:30px;font-weight:650;letter-spacing:-.8px}h2{font-size:18px;font-weight:650}h3{font-size:15px;font-weight:650}label{display:block;font-weight:600;margin:18px 0 8px}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--sidebar-bg);color:#c7d7dc;padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:white;font-weight:700;letter-spacing:1px}.brand small{display:block;font-size:8px;letter-spacing:1.7px;margin-top:5px}.brand-icon{display:inline-grid;place-items:center;background:#19a1a1;color:white;width:40px;height:40px;border-radius:11px;font-size:25px;font-weight:750}.nav-caption{font-size:10px;letter-spacing:2px;color:#88a6b1;margin:44px 12px 15px}.sidebar nav a{display:block;padding:12px 15px;margin:5px 0;color:#d6e4e8;border-radius:7px}.sidebar nav a:hover{background:#204550;color:white}.sidebar-bottom{margin-top:auto;padding:20px 10px}.environment{font-size:10px;letter-spacing:1.2px;color:#68c7bf;border:1px solid #37616a;border-radius:4px;padding:5px 8px;display:inline-block;margin-bottom:18px}.workspace{margin-left:240px}.topbar{height:76px;background:var(--topbar-bg);border-bottom:1px solid var(--border-color);padding:0 38px;display:flex;align-items:center;justify-content:space-between}main{padding:34px 38px;max-width:1600px;margin:auto}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--teal);margin-bottom:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:30px 0}.stats article{background:var(--bg-surface);border:1px solid var(--panel-border);border-radius:10px;padding:22px}.stats span{color:var(--muted)}.stats strong{display:block;font-size:32px;margin-top:9px}.panel{background:var(--bg-surface);border:1px solid var(--panel-border);border-radius:10px;padding:25px;margin-bottom:24px}.panel-heading{display:flex;justify-content:space-between;align-items:center}.filters{display:flex;gap:12px;margin:20px 0}.filters input{flex:2}.filters select{flex:1}.table{font-size:13px}.table th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);padding:16px 10px;background:var(--table-header-bg)}.table td{padding:18px 10px}.table td div{margin-top:6px}.status-badge{display:inline-block;background:#e7f3f1;color:#14665d;padding:6px 9px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.4px}.btn-primary{background:#087f80;border-color:#087f80}.btn-primary:hover{background:#056768;border-color:#056768}.detail-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.document{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin-top:15px}.timeline-entry{padding:0 0 24px 20px;border-left:2px solid #c4e4df;margin-left:6px}.timeline-entry h3{margin:8px 0}.timeline-entry small,.transition{color:var(--muted);font-size:11px}.actor{font-size:12px;color:var(--teal)}.transition{margin:10px 0}.action{border-top:1px solid var(--border-color);padding:18px 0}.action summary .eyebrow{display:block;margin:0 0 5px}.action summary{font-weight:600;cursor:pointer}.empty{padding:25px;color:var(--muted)}dl{display:grid;grid-template-columns:140px 1fr;font-size:12px;gap:9px;margin-top:24px}dd{margin:0}.record{border-top:1px solid var(--border-color);padding:20px 0}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:white}.login-intro{background:#102f3b;color:white;padding:15vh 9%;display:flex;flex-direction:column;justify-content:center}.login-intro h1{font-size:48px;line-height:1.2;margin:24px 0}.login-intro p{color:#b2cbd2;font-size:17px;max-width:360px}.login-intro .environment{align-self:flex-start;margin-top:50px}.login-panel{width:min(440px,100%);align-self:center;padding:45px}.login-panel h2{font-size:28px;margin-top:30px}.form-control:focus,.form-select:focus{border-color:#087f80;box-shadow:0 0 0 .2rem #087f801a}@media(max-width:1000px){.sidebar{width:195px}.workspace{margin-left:195px}.detail-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}main{padding:25px}.topbar{padding:20px}.login-intro h1{font-size:36px}}@media(max-width:650px){.sidebar{position:relative;width:100%;padding:18px}.sidebar nav{display:flex;flex-wrap:wrap}.sidebar nav a{padding:8px}.nav-caption,.sidebar-bottom{display:none}.workspace{margin:0}.topbar>span{display:none}.stats{gap:8px}.filters{flex-wrap:wrap}.login-page{display:block}.login-intro{padding:35px}.login-intro h1{font-size:30px}.login-intro .environment{margin-top:15px}.login-panel{margin:auto}}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.language-switch {
  margin: 0;
  position: relative;
}
.language-menu {
  position: relative;
}
.language-switch-trigger,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid #b8c6d2;
  border-radius: 6px;
  background: #fff;
  color: #405363;
  cursor: pointer;
}
.language-switch-trigger {
  list-style: none;
}
.language-switch-trigger::-webkit-details-marker {
  display: none;
}
.language-switch-trigger:hover,
.theme-toggle:hover {
  border-color: #879aa9;
  background: #f3f7fa;
  color: #142c3d;
}
.language-switch-trigger:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.language-switch-icon {
  width: 18px;
  height: 18px;
}
.language-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--shadow-color);
}
.language-menu-heading {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.language-menu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.language-menu-option:hover,
.language-menu-option:focus-visible {
  background: var(--bg-surface-muted);
}
.language-menu-option:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.language-menu-option.is-current {
  font-weight: 600;
}
.language-menu-check {
  width: 14px;
  color: var(--teal);
  text-align: center;
  visibility: hidden;
}
.language-menu-option.is-current .language-menu-check {
  visibility: visible;
}
.theme-toggle-icon {
  width: 18px;
  height: 18px;
}
.theme-toggle-sun,
html[data-bob-theme="dark"] .theme-toggle-moon {
  display: none;
}
html[data-bob-theme="dark"] .theme-toggle-sun {
  display: block;
}
.topbar-brand-logos {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.topbar-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: auto;
}
.topbar-brand-logo-jata {
  height: 36px;
}
.topbar-brand-logo-nfcc {
  width: 48px;
}
.topbar-brand-label {
  white-space: nowrap;
}
.account-menu {
  position: relative;
}
.account-menu-trigger {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid #b8c6d2;
  border-radius: 6px;
  background: #fff;
  color: #405363;
  cursor: pointer;
  list-style: none;
}
.account-menu-trigger::-webkit-details-marker {
  display: none;
}
.account-menu-trigger:hover {
  border-color: #879aa9;
  background: #f3f7fa;
  color: #142c3d;
}
.account-menu-trigger:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.account-menu-icon {
  width: 18px;
  height: 18px;
}
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: min(300px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--shadow-color);
}
.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}
.account-avatar,
.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.account-avatar-fallback,
.profile-avatar-fallback {
  background: var(--bg-surface-muted);
  color: var(--text-secondary);
}
.account-avatar-fallback svg,
.profile-avatar-fallback svg {
  width: 24px;
  height: 24px;
}
.account-menu-user {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.account-menu-user strong,
.account-menu-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu-user small {
  color: var(--text-secondary);
  font-size: 11px;
}
.account-menu-links {
  display: grid;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}
.account-menu-links a,
.account-menu-logout button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.account-menu-links a:hover,
.account-menu-logout button:hover,
.account-menu-links a:focus-visible,
.account-menu-logout button:focus-visible {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
}
.account-menu-links a:focus-visible,
.account-menu-logout button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.account-menu-logout {
  margin: 6px 0 0;
}
.account-menu-logout button {
  color: #a93232;
  cursor: pointer;
}
.notification-menu {
  position: relative;
}
.notification-menu-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid #b8c6d2;
  border-radius: 6px;
  background: #fff;
  color: #405363;
  cursor: pointer;
  list-style: none;
}
.notification-menu-trigger::-webkit-details-marker {
  display: none;
}
.notification-menu-trigger:hover {
  border-color: #879aa9;
  background: #f3f7fa;
  color: #142c3d;
}
.notification-menu-trigger:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.notification-menu-icon {
  width: 18px;
  height: 18px;
}
.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--topbar-bg);
  border-radius: 10px;
  background: #b32632;
  color: white;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.notification-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: min(360px, calc(100vw - 28px));
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 4px 12px var(--shadow-color);
}
.notification-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
}
.notification-menu-heading span {
  color: var(--text-secondary);
  font-size: 12px;
}
.notification-menu-item {
  margin: 0;
  border-bottom: 1px solid var(--border-color);
}
.notification-menu-open {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.notification-menu-open:hover,
.notification-menu-open:focus-visible {
  background: var(--bg-surface-muted);
}
.notification-menu-open:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.notification-menu-open strong {
  font-size: 12px;
}
.notification-menu-open span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}
.notification-menu-open small {
  color: var(--text-secondary);
  font-size: 10px;
}
.notification-menu-item.is-unread .notification-menu-open strong {
  color: var(--teal);
}
.notification-menu-empty {
  padding: 16px 10px;
  color: var(--text-secondary);
  font-size: 12px;
}
.notification-menu-all {
  display: block;
  padding: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.notification-menu-all:hover,
.notification-menu-all:focus-visible {
  border-radius: 5px;
  background: var(--bg-surface-muted);
}
.notification-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.notification-page-heading h1 {
  margin-bottom: 6px;
}
.notification-page-heading p {
  margin: 0;
}
.notification-filters {
  display: flex;
  gap: 18px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--border-color);
}
.notification-filters a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
}
.notification-filters a.is-current {
  border-bottom-color: var(--teal);
  color: var(--text-primary);
  font-weight: 600;
}
.notification-list {
  padding: 0 22px;
}
.notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-color);
}
.notification-row:last-child {
  border-bottom: 0;
}
.notification-row-content {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}
.notification-unread-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}
.notification-row.is-unread .notification-unread-dot {
  background: var(--teal);
}
.notification-row-text h2 {
  margin: 0 0 4px;
  font-size: 15px;
}
.notification-row-text p {
  margin: 0 0 6px;
  color: var(--text-secondary);
}
.notification-row-text small {
  color: var(--text-secondary);
  font-size: 11px;
}
.notification-row-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}
.notification-row-actions form {
  margin: 0;
}
.notification-page-empty {
  margin-top: 12px;
  text-align: center;
}
.notification-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
}
.profile-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.profile-portrait {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.profile-avatar {
  width: 76px;
  height: 76px;
}
.profile-avatar-fallback svg {
  width: 38px;
  height: 38px;
}
.profile-portrait h2 {
  margin: 0 0 8px;
}
.profile-photo-form {
  width: min(330px, 100%);
}
.profile-photo-form label {
  margin-top: 0;
}
.profile-photo-form small {
  display: block;
  margin-top: 6px;
}
.profile-readonly {
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: baseline;
  margin: 18px 0 24px;
}
.profile-readonly dt {
  color: var(--text-secondary);
  font-weight: 600;
}
.profile-readonly dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-phone {
  max-width: 420px;
}
.profile-password-panel {
  max-width: 620px;
}
@media(max-width:650px) {
  .topbar>span.topbar-brand {
    display: flex;
  }
  .topbar>span.topbar-actions {
    display: flex;
  }
  .topbar-brand {
    gap: 8px;
  }
  .topbar-brand-logos {
    gap: 4px;
  }
  .topbar-brand-logo-jata {
    height: 30px;
  }
  .topbar-brand-logo-nfcc {
    width: 40px;
  }
  .topbar-brand-label {
    display: none;
  }
  .profile-summary {
    flex-direction: column;
  }
  .profile-photo-form {
    max-width: none;
  }
  .notification-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .notification-row-actions {
    align-self: flex-end;
  }
  .notification-page-heading {
    align-items: flex-start;
  }
}
@media(min-width:651px) and (max-width:980px) {
  .topbar-brand-label {
    display: none;
  }
  .topbar-brand {
    gap: 8px;
  }
}
@media(max-width:420px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .topbar-actions {
    width: 100%;
  }
  .topbar-actions .btn {
    margin-left: auto;
  }
}

/* Shared navigation: icon positions are identical in the rail and expanded sidebar. */
:root { --sidebar-width:240px; --sidebar-rail:76px; --sidebar-motion:220ms ease; }
.sidebar { width:var(--sidebar-width); padding:32px 14px; z-index:40; overflow:hidden; transition:width var(--sidebar-motion); }
.workspace { margin-left:var(--sidebar-width); min-width:0; transition:margin-left var(--sidebar-motion); }
.sidebar-heading { position:relative; padding-top:30px; flex-shrink:0; }
.sidebar .brand { min-height:40px; padding-left:4px; justify-content:flex-start; gap:12px; white-space:nowrap; }
.sidebar .brand-icon { flex:0 0 40px; }
.sidebar-toggle { position:absolute; top:-14px; left:5px; display:grid; place-items:center; width:38px; height:38px; border:2px solid #e2e6eb; border-radius:8px; background:#fff; color:#1756a0; box-shadow:0 1px 2px #00000008; }
.sidebar-toggle:hover { background:#f3f7fc; border-color:#c7d3e1; color:#124880; }
.nav-icon { width:19px; height:19px; flex:0 0 19px; }
.toggle-icon { width:20px; height:20px; stroke-width:2.2; transform:rotate(0deg); transform-origin:center; transition:transform 220ms ease-in-out; }
.sidebar-toggle[aria-expanded="true"] .toggle-icon { transform:rotate(90deg); }
.sidebar .nav-caption { position:absolute; top:112px; left:28px; margin:0; white-space:nowrap; }
.sidebar nav { display:block; margin-top:30px; min-height:0; flex-shrink:1; overflow-x:hidden; overflow-y:auto; scrollbar-width:none; }
.sidebar nav::-webkit-scrollbar { display:none; }
.sidebar nav a { display:flex; align-items:center; justify-content:flex-start; gap:12px; height:44px; padding:0 14.5px; margin:5px 0; white-space:nowrap; }
.sidebar nav a[aria-current="page"] { background:#204f59; color:white; box-shadow:inset 3px 0 #4dd0bf; }
.sidebar a:focus-visible,.sidebar button:focus-visible { outline:2px solid #68c7bf; outline-offset:3px; }
.sidebar-label { opacity:1; transition:opacity 140ms ease; }
.sidebar-bottom { display:block; padding:20px 0; flex-shrink:0; }
.sidebar-user { white-space:nowrap; }
.sidebar-backdrop { position:fixed; inset:0 0 0 var(--sidebar-rail); z-index:35; border:0; background:#102f3b80; }
.sidebar-backdrop[hidden] { display:none; }
@media(min-width:651px) and (max-width:1000px) {
  :root { --sidebar-width:195px; }
  .sidebar .brand { gap:8px; font-size:11px; letter-spacing:.6px; }
}
@media(min-width:651px) {
  .sidebar-collapsed { --sidebar-width:var(--sidebar-rail); }
  .sidebar-collapsed .sidebar-label { display:none; }
  /* Reserve footer metadata space so short sidebars do not jump on expansion. */
  .sidebar-collapsed .sidebar-bottom > .sidebar-label { display:block; visibility:hidden; }
}
@media(max-width:650px) {
  .sidebar { position:fixed; width:var(--sidebar-rail); padding:20px 14px; }
  .workspace { margin-left:var(--sidebar-rail); }
  .sidebar .nav-caption { top:100px; }
  .sidebar-label { display:none; }
  .sidebar-bottom > .sidebar-label { display:block; visibility:hidden; }
  .sidebar-drawer-open { overflow:hidden; }
  .sidebar-drawer-open .sidebar { width:min(280px,calc(100vw - 40px)); box-shadow:8px 0 30px #0003; }
  .sidebar-drawer-open .sidebar-label { display:block; visibility:visible; }
}
/* Keep the header and sign-out visible on shorter windows; only navigation scrolls. */
@media(max-height:760px) {
  .sidebar { padding-top:20px; padding-bottom:20px; }
  .sidebar .nav-caption { top:100px; }
  .sidebar nav { margin-top:24px; }
  .sidebar-bottom { padding-top:12px; padding-bottom:12px; }
  .sidebar .environment { margin-bottom:10px; }
  .sidebar-user { margin-bottom:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .sidebar,.workspace,.sidebar-label,.toggle-icon { transition:none; }
}
/* Clearer box boundaries throughout the shared BOB interface. */
.stats article,.panel { border-color:var(--panel-border); box-shadow:0 2px 8px var(--shadow-color); }
.form-control,.form-select { border-color:#9eafbd; box-shadow:inset 0 1px 2px rgba(20,44,61,.05); }
.table { --bs-table-border-color:var(--table-border-color); }
.action,.record { border-top-color:#b8c7d2; }
.btn-outline-secondary { --bs-btn-border-color:#718493; box-shadow:0 1px 3px rgba(20,44,61,.12); }
.btn-outline-danger { box-shadow:0 1px 3px rgba(132,32,42,.12); }
.sidebar-toggle { border-color:#b8c6d2; box-shadow:0 2px 5px rgba(0,0,0,.18); }
/* Login field icons and accessible password visibility control. */
.login-input { position:relative; }
.login-input .form-control { padding-left:42px; min-height:44px; }
.login-input-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--muted); pointer-events:none; }
.login-password .form-control { padding-right:46px; }
.password-toggle { position:absolute; right:3px; top:50%; transform:translateY(-50%); width:38px; height:38px; display:grid; place-items:center; padding:8px; border:0; border-radius:5px; background:transparent; color:var(--muted); }
.password-toggle[hidden] { display:none; }
.password-toggle:hover { color:var(--teal); background:#e7f3f1; }
.password-toggle:focus-visible { outline:2px solid var(--teal); outline-offset:1px; }
.password-toggle svg { width:21px; height:21px; }
.password-toggle .eye-slash { display:none; }
.password-toggle[aria-pressed="true"] .eye-slash { display:block; }
/* Shared button colours: teal primary, slate secondary, red destructive. */
.btn-primary {
  --bs-btn-color:#fff; --bs-btn-bg:#087577; --bs-btn-border-color:#087577;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#065d60; --bs-btn-hover-border-color:#065d60;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#054d50; --bs-btn-active-border-color:#054d50;
  --bs-btn-disabled-color:#fff; --bs-btn-disabled-bg:#087577; --bs-btn-disabled-border-color:#087577;
  --bs-btn-focus-shadow-rgb:8,117,119;
  background-color:var(--bs-btn-bg); border-color:var(--bs-btn-border-color);
}
.btn-primary:hover { background-color:var(--bs-btn-hover-bg); border-color:var(--bs-btn-hover-border-color); }
.btn-light,.btn-outline-secondary {
  --bs-btn-color:#fff; --bs-btn-bg:#526779; --bs-btn-border-color:#526779;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#405363; --bs-btn-hover-border-color:#405363;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#324451; --bs-btn-active-border-color:#324451;
  --bs-btn-disabled-color:#fff; --bs-btn-disabled-bg:#526779; --bs-btn-disabled-border-color:#526779;
  --bs-btn-focus-shadow-rgb:82,103,121;
}
.btn-danger,.btn-outline-danger {
  --bs-btn-color:#fff; --bs-btn-bg:#b9383e; --bs-btn-border-color:#b9383e;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#9b2b31; --bs-btn-hover-border-color:#9b2b31;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#802329; --bs-btn-active-border-color:#802329;
  --bs-btn-disabled-color:#fff; --bs-btn-disabled-bg:#b9383e; --bs-btn-disabled-border-color:#b9383e;
  --bs-btn-focus-shadow-rgb:185,56,62;
}
.btn-link { --bs-btn-color:#076b6d; --bs-btn-hover-color:#054d50; --bs-btn-active-color:#054d50; }
.sidebar-toggle { color:#076b6d; background-color:#e5f2f2; border-color:#93b9bb; }
.sidebar-toggle:hover { color:#054d50; background-color:#cee5e5; border-color:#6c9c9f; }
.password-toggle { color:#406779; background-color:#e9f0f4; }
.password-toggle:hover { color:#054d50; background-color:#d5e9e7; }
/* Action-specific colours shared by every page. */
.btn-info {
  --bs-btn-color:#fff; --bs-btn-bg:#2563a6; --bs-btn-border-color:#2563a6;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#1d4f87; --bs-btn-hover-border-color:#1d4f87;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#173f6d; --bs-btn-active-border-color:#173f6d;
  --bs-btn-disabled-color:#fff; --bs-btn-disabled-bg:#2563a6; --bs-btn-disabled-border-color:#2563a6;
  --bs-btn-focus-shadow-rgb:37,99,166;
}
.btn-success {
  --bs-btn-color:#fff; --bs-btn-bg:#247347; --bs-btn-border-color:#247347;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#1c5d39; --bs-btn-hover-border-color:#1c5d39;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#164b2e; --bs-btn-active-border-color:#164b2e;
  --bs-btn-disabled-color:#fff; --bs-btn-disabled-bg:#247347; --bs-btn-disabled-border-color:#247347;
  --bs-btn-focus-shadow-rgb:36,115,71;
}
.btn-warning {
  --bs-btn-color:#432b08; --bs-btn-bg:#f2c66d; --bs-btn-border-color:#c69130;
  --bs-btn-hover-color:#432b08; --bs-btn-hover-bg:#e9b34a; --bs-btn-hover-border-color:#b17c1d;
  --bs-btn-active-color:#432b08; --bs-btn-active-bg:#dda438; --bs-btn-active-border-color:#996a17;
  --bs-btn-disabled-color:#432b08; --bs-btn-disabled-bg:#f2c66d; --bs-btn-disabled-border-color:#c69130;
  --bs-btn-focus-shadow-rgb:198,145,48;
}
.user-actions .user-action {
  min-height:34px;
  padding:6px 11px;
  border-radius:5px;
  font-size:12px;
  font-weight:600;
  line-height:1.25;
  white-space:nowrap;
  transition:color 150ms ease,background-color 150ms ease,border-color 150ms ease;
}
.user-actions .user-action-view {
  --bs-btn-color:#244b71; --bs-btn-bg:#f4f7fb; --bs-btn-border-color:#b8c8d8;
  --bs-btn-hover-color:#1c3d5d; --bs-btn-hover-bg:#e8eff6; --bs-btn-hover-border-color:#8fa8be;
  --bs-btn-active-color:#183653; --bs-btn-active-bg:#dce7f0; --bs-btn-active-border-color:#809bb3;
  --bs-btn-focus-shadow-rgb:36,75,113;
}
.user-actions .user-action-reset {
  --bs-btn-color:#6b4b12; --bs-btn-bg:#fbf5e7; --bs-btn-border-color:#deca9a;
  --bs-btn-hover-color:#583c0d; --bs-btn-hover-bg:#f4ebd5; --bs-btn-hover-border-color:#cdb67f;
  --bs-btn-active-color:#4d350c; --bs-btn-active-bg:#eee1c1; --bs-btn-active-border-color:#c1a66b;
  --bs-btn-focus-shadow-rgb:145,111,43;
}
.user-actions .user-action-activate {
  --bs-btn-color:#fff; --bs-btn-bg:#356b4f; --bs-btn-border-color:#356b4f;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#2b5942; --bs-btn-hover-border-color:#2b5942;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#234b37; --bs-btn-active-border-color:#234b37;
  --bs-btn-focus-shadow-rgb:53,107,79;
}
.user-actions .user-action-deactivate {
  --bs-btn-color:#fff; --bs-btn-bg:#a33b40; --bs-btn-border-color:#a33b40;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#873136; --bs-btn-hover-border-color:#873136;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#70282d; --bs-btn-active-border-color:#70282d;
  --bs-btn-focus-shadow-rgb:163,59,64;
}
.user-actions .user-action:focus-visible {
  outline:2px solid currentColor;
  outline-offset:2px;
}
/* Semantic account-status colors; badge geometry remains shared. */
.status-badge.status-active { background:#e8f1eb; color:#28583b; }
.status-badge.status-inactive { background:#f5e9e8; color:#793a38; }

html[data-bob-theme="dark"] body:not(.login-page) {
  color-scheme: dark;
  --ink:#e2ebf1;
  --muted:#a7b7c4;
  --teal:#45c2b5;
  --bg-page:#121e29;
  --bg-surface:#1b2a36;
  --bg-surface-muted:#223440;
  --text-primary:#e2ebf1;
  --text-secondary:#a7b7c4;
  --border-color:#384b59;
  --panel-border:#405463;
  --table-border-color:#384b59;
  --input-bg:#172631;
  --sidebar-bg:#102f3b;
  --topbar-bg:#192833;
  --shadow-color:rgba(0,0,0,.24);
  --table-header-bg:#243744;
  --bs-body-color:var(--text-primary);
  --bs-body-bg:var(--bg-page);
  --bs-emphasis-color:#f2f6f8;
  --bs-secondary-color:var(--text-secondary);
  --bs-secondary-bg:var(--bg-surface-muted);
  --bs-tertiary-bg:#263744;
  --bs-border-color:var(--border-color);
  --bs-link-color:#69d5c7;
  --bs-link-hover-color:#93e4d9;
  background-color:var(--bg-page);
  color:var(--text-primary);
}
html[data-bob-theme="dark"] body:not(.login-page) .workspace a:not(.btn) {
  color:#69d5c7;
}
html[data-bob-theme="dark"] body:not(.login-page) .workspace a:not(.btn):hover {
  color:#93e4d9;
}
html[data-bob-theme="dark"] body:not(.login-page) .topbar {
  background-color:var(--topbar-bg);
  border-bottom-color:var(--border-color);
}
html[data-bob-theme="dark"] body:not(.login-page) .sidebar {
  background-color:var(--sidebar-bg);
}
html[data-bob-theme="dark"] body:not(.login-page) .sidebar-toggle {
  color:#a8e4dc;
  background-color:#1b414b;
  border-color:#52737b;
}
html[data-bob-theme="dark"] body:not(.login-page) .sidebar-toggle:hover {
  color:#fff;
  background-color:#28515b;
  border-color:#79a6aa;
}
html[data-bob-theme="dark"] body:not(.login-page) .stats article,
html[data-bob-theme="dark"] body:not(.login-page) .panel,
html[data-bob-theme="dark"] body:not(.login-page) .card,
html[data-bob-theme="dark"] body:not(.login-page) .modal-content,
html[data-bob-theme="dark"] body:not(.login-page) .dropdown-menu {
  background-color:var(--bg-surface);
  color:var(--text-primary);
  border-color:var(--panel-border);
}
html[data-bob-theme="dark"] body:not(.login-page) .stats article,
html[data-bob-theme="dark"] body:not(.login-page) .panel {
  box-shadow:0 2px 8px var(--shadow-color);
}
html[data-bob-theme="dark"] body:not(.login-page) .bg-white,
html[data-bob-theme="dark"] body:not(.login-page) .bg-light {
  background-color:var(--bg-surface) !important;
  color:var(--text-primary) !important;
}
html[data-bob-theme="dark"] body:not(.login-page) .text-dark {
  color:var(--text-primary) !important;
}
html[data-bob-theme="dark"] body:not(.login-page) .text-muted,
html[data-bob-theme="dark"] body:not(.login-page) .text-secondary {
  color:var(--text-secondary) !important;
}
html[data-bob-theme="dark"] body:not(.login-page) .form-control,
html[data-bob-theme="dark"] body:not(.login-page) .form-select,
html[data-bob-theme="dark"] body:not(.login-page) textarea,
html[data-bob-theme="dark"] body:not(.login-page) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
  background-color:var(--input-bg);
  color:var(--text-primary);
  border-color:#526574;
}
html[data-bob-theme="dark"] body:not(.login-page) .form-control::placeholder,
html[data-bob-theme="dark"] body:not(.login-page) input::placeholder,
html[data-bob-theme="dark"] body:not(.login-page) textarea::placeholder {
  color:#a7b7c4;
  opacity:1;
}
html[data-bob-theme="dark"] body:not(.login-page) .form-control:disabled,
html[data-bob-theme="dark"] body:not(.login-page) .form-control[readonly],
html[data-bob-theme="dark"] body:not(.login-page) .form-select:disabled,
html[data-bob-theme="dark"] body:not(.login-page) input:disabled,
html[data-bob-theme="dark"] body:not(.login-page) textarea:disabled {
  background-color:#263642;
  color:#9aabb8;
  border-color:#40515e;
  opacity:1;
}
html[data-bob-theme="dark"] body:not(.login-page) option {
  background-color:var(--bg-surface);
  color:var(--text-primary);
}
html[data-bob-theme="dark"] body:not(.login-page) .form-control:focus,
html[data-bob-theme="dark"] body:not(.login-page) .form-select:focus {
  border-color:#45c2b5;
  box-shadow:0 0 0 .2rem rgba(69,194,181,.24);
}
html[data-bob-theme="dark"] body:not(.login-page) .form-select {
  --bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a7b7c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
html[data-bob-theme="dark"] body:not(.login-page) .table {
  --bs-table-color:var(--text-primary);
  --bs-table-bg:var(--bg-surface);
  --bs-table-border-color:var(--table-border-color);
  --bs-table-striped-bg:#202f3b;
  --bs-table-striped-color:var(--text-primary);
  --bs-table-hover-bg:#2b3d49;
  --bs-table-hover-color:#f2f6f8;
  color:var(--text-primary);
}
html[data-bob-theme="dark"] body:not(.login-page) .table thead th {
  --bs-table-bg:var(--table-header-bg);
  color:var(--text-secondary);
  background-color:var(--table-header-bg);
}
html[data-bob-theme="dark"] body:not(.login-page) .table > :not(caption) > * > * {
  border-bottom-color:var(--table-border-color);
}
html[data-bob-theme="dark"] body:not(.login-page) .empty {
  color:var(--text-secondary);
}
html[data-bob-theme="dark"] body:not(.login-page) .action,
html[data-bob-theme="dark"] body:not(.login-page) .record {
  border-top-color:var(--border-color);
}
html[data-bob-theme="dark"] body:not(.login-page) .timeline-entry {
  border-left-color:#37645f;
}
html[data-bob-theme="dark"] body:not(.login-page) .status-badge {
  background:#244b43;
  color:#b6ead1;
}
html[data-bob-theme="dark"] body:not(.login-page) .status-badge.status-active {
  background:#244b36;
  color:#b8e7c4;
}
html[data-bob-theme="dark"] body:not(.login-page) .status-badge.status-inactive {
  background:#502f33;
  color:#ffc4c7;
}
html[data-bob-theme="dark"] body:not(.login-page) .alert-success {
  --bs-alert-color:#b8e7c4;
  --bs-alert-bg:#1c382b;
  --bs-alert-border-color:#315b41;
}
html[data-bob-theme="dark"] body:not(.login-page) .alert-danger {
  --bs-alert-color:#ffc4c7;
  --bs-alert-bg:#40282d;
  --bs-alert-border-color:#684047;
}
html[data-bob-theme="dark"] body:not(.login-page) .alert-warning {
  --bs-alert-color:#f6d58e;
  --bs-alert-bg:#3b321f;
  --bs-alert-border-color:#68572f;
}
html[data-bob-theme="dark"] body:not(.login-page) .alert-info {
  --bs-alert-color:#b9d9f7;
  --bs-alert-bg:#1e3042;
  --bs-alert-border-color:#36526e;
}
html[data-bob-theme="dark"] body:not(.login-page) .alert-primary,
html[data-bob-theme="dark"] body:not(.login-page) .alert-secondary,
html[data-bob-theme="dark"] body:not(.login-page) .alert-light {
  --bs-alert-color:var(--text-primary);
  --bs-alert-bg:var(--bg-surface-muted);
  --bs-alert-border-color:var(--border-color);
}
html[data-bob-theme="dark"] body:not(.login-page) .dropdown-item {
  color:var(--text-primary);
}
html[data-bob-theme="dark"] body:not(.login-page) .dropdown-item:hover,
html[data-bob-theme="dark"] body:not(.login-page) .dropdown-item:focus {
  background-color:var(--bg-surface-muted);
  color:#fff;
}
html[data-bob-theme="dark"] body:not(.login-page) .pagination {
  --bs-pagination-color:#69d5c7;
  --bs-pagination-bg:var(--bg-surface);
  --bs-pagination-border-color:var(--border-color);
  --bs-pagination-hover-color:#93e4d9;
  --bs-pagination-hover-bg:var(--bg-surface-muted);
  --bs-pagination-hover-border-color:#526574;
  --bs-pagination-focus-color:#93e4d9;
  --bs-pagination-focus-bg:var(--bg-surface-muted);
  --bs-pagination-active-bg:#087f80;
  --bs-pagination-active-border-color:#087f80;
  --bs-pagination-disabled-color:#8293a0;
  --bs-pagination-disabled-bg:#22313d;
  --bs-pagination-disabled-border-color:var(--border-color);
}
html[data-bob-theme="dark"] body:not(.login-page) .btn-link {
  --bs-btn-color:#69d5c7;
  --bs-btn-hover-color:#93e4d9;
  --bs-btn-active-color:#93e4d9;
}
html[data-bob-theme="dark"] body:not(.login-page) .user-actions .user-action-view {
  --bs-btn-color:#c3d8ed; --bs-btn-bg:#26394a; --bs-btn-border-color:#49647a;
  --bs-btn-hover-color:#e5f1fb; --bs-btn-hover-bg:#30485c; --bs-btn-hover-border-color:#66839a;
  --bs-btn-active-color:#fff; --bs-btn-active-bg:#38536a; --bs-btn-active-border-color:#7894a9;
}
html[data-bob-theme="dark"] body:not(.login-page) .user-actions .user-action-reset {
  --bs-btn-color:#f1d99e; --bs-btn-bg:#3a321f; --bs-btn-border-color:#695a36;
  --bs-btn-hover-color:#fff0c4; --bs-btn-hover-bg:#4b4027; --bs-btn-hover-border-color:#887444;
  --bs-btn-active-color:#fff5d8; --bs-btn-active-bg:#594a2b; --bs-btn-active-border-color:#a18a50;
}
html[data-bob-theme="dark"] body:not(.login-page) .theme-toggle,
html[data-bob-theme="dark"] body:not(.login-page) .language-switch-trigger,
html[data-bob-theme="dark"] body:not(.login-page) .notification-menu-trigger,
html[data-bob-theme="dark"] body:not(.login-page) .account-menu-trigger {
  color:#d2dee7;
  background-color:#22323e;
  border-color:#4b5d6b;
}
html[data-bob-theme="dark"] body:not(.login-page) .theme-toggle:hover,
html[data-bob-theme="dark"] body:not(.login-page) .language-switch-trigger:hover,
html[data-bob-theme="dark"] body:not(.login-page) .notification-menu-trigger:hover,
html[data-bob-theme="dark"] body:not(.login-page) .account-menu-trigger:hover {
  color:#fff;
  background-color:#2d404d;
  border-color:#718595;
}
html[data-bob-theme="dark"] body:not(.login-page) .account-menu-logout button {
  color:#f1a5a5;
}
html[data-bob-theme="dark"] body:not(.login-page) .language-menu-option:hover,
html[data-bob-theme="dark"] body:not(.login-page) .language-menu-option:focus-visible {
  background-color:var(--bg-surface-muted);
}
html[data-bob-theme="dark"] body:not(.login-page) :focus-visible {
  outline-color:#65d7c8;
}

/* BOB subtle motion experiment */
@keyframes bob-main-entrance {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob-dropdown-entrance {
  from {
    opacity: 0;
    transform: translateY(-2px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body:not(.login-page) .workspace > main {
  animation: bob-main-entrance 300ms ease-out both;
}

.table tbody tr:has(a[href^="/cases/"]),
.record:has(> a[href^="/cases/"]),
.notification-row {
  transition: transform 180ms ease, filter 180ms ease;
}

.table tbody tr:has(a[href^="/cases/"]):hover,
.record:has(> a[href^="/cases/"]):hover,
.notification-row:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 3px 5px var(--shadow-color));
}

.language-menu[open] > .language-menu-panel,
.notification-menu[open] > .notification-menu-panel,
.account-menu[open] > .account-menu-panel {
  transform-origin: top right;
  animation: bob-dropdown-entrance 165ms ease-out both;
}

/* Disable entrance motion and hover movement when reduced motion is requested. */
@media (prefers-reduced-motion: reduce) {
  body:not(.login-page) .workspace > main {
    animation: none;
  }

  .table tbody tr:has(a[href^="/cases/"]),
  .record:has(> a[href^="/cases/"]),
  .notification-row {
    transition: none;
  }

  .table tbody tr:has(a[href^="/cases/"]):hover,
  .record:has(> a[href^="/cases/"]):hover,
  .notification-row:hover {
    transform: none;
    filter: none;
  }

  .language-menu[open] > .language-menu-panel,
  .notification-menu[open] > .notification-menu-panel,
  .account-menu[open] > .account-menu-panel {
    animation: none;
  }
}

/* BOB Case Register filter UI prototype */
.case-filter-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.case-filter-primary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(145px, .85fr) minmax(155px, .95fr);
  gap: 14px;
  align-items: end;
}

.case-filter-search {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
}

.case-filter-search .form-control {
  min-height: 40px;
  padding-left: 40px;
}

.case-filter-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
  pointer-events: none;
  transform: translateY(-50%);
}

.case-filter-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.case-filter-field .form-control,
.case-filter-field .form-select {
  min-height: 40px;
  color: var(--text-primary);
  background-color: var(--input-bg);
  border-color: var(--panel-border);
}

.case-filter-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 14px;
}

.case-filter-date {
  flex: 0 1 190px;
}

.case-filter-clear,
.case-filter-apply {
  min-height: 40px;
}

.case-filter-result-count {
  margin: 14px 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

html[data-bob-theme="dark"] body:not(.login-page) .case-filter-field .form-control,
html[data-bob-theme="dark"] body:not(.login-page) .case-filter-field .form-select {
  color: var(--text-primary);
  background-color: var(--input-bg);
  border-color: #526574;
}

@media (max-width: 900px) {
  .case-filter-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .case-filter-primary {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .case-filter-search {
    grid-column: auto;
  }

  .case-filter-secondary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .case-filter-date {
    flex-basis: auto;
  }

  .case-filter-clear,
  .case-filter-apply {
    width: 100%;
    min-height: 44px;
  }
}
/* BOB sidebar navigation tooltips */
.sidebar-nav-tooltip {
  display:none;
  position:fixed;
  left:calc(var(--sidebar-rail) + 8px);
  /* Viewport positioning avoids clipping by the scrollable sidebar. */
  top:var(--sidebar-tooltip-top,0px);
  z-index:45;
  max-width:calc(100vw - var(--sidebar-rail) - 16px);
  padding:6px 10px;
  border:1px solid var(--panel-border);
  border-radius:5px;
  background:var(--bg-surface);
  color:var(--text-primary);
  box-shadow:0 3px 10px var(--shadow-color);
  font-size:12px;
  font-weight:500;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:anywhere;
  pointer-events:none;
  visibility:hidden;
  opacity:0;
  transform:translateY(-50%) translateX(-3px);
  transition:opacity 140ms ease,transform 140ms ease,visibility 140ms;
}
@media(min-width:651px) {
  .sidebar-collapsed .sidebar-nav-tooltip { display:block; }
}
@media(max-width:650px) {
  html:not(.sidebar-drawer-open) .sidebar-nav-tooltip { display:block; }
}
.sidebar nav a:hover .sidebar-nav-tooltip.is-positioned,
.sidebar nav a:focus-visible .sidebar-nav-tooltip.is-positioned {
  visibility:visible;
  opacity:1;
  transform:translateY(-50%) translateX(0);
}
@media(prefers-reduced-motion:reduce) {
  .sidebar-nav-tooltip { transition:none; transform:translateY(-50%); }
}
/* User Management: display-only profile identity. */
.user-name-identity,.user-form-identity { display:flex; align-items:center; gap:10px; }
.user-avatar-small { width:36px; height:36px; }
.user-avatar-large { width:88px; height:88px; }
.user-avatar img { display:block; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.user-avatar-large svg { width:40px; height:40px; }
.user-form-identity { gap:16px; margin:18px 0 22px; }
.user-identity-details { display:flex; flex-direction:column; gap:3px; min-width:0; overflow-wrap:anywhere; }
.user-identity-name { overflow-wrap:anywhere; }
/* BOB Audit Trail */
.audit-activity { min-width:0; --audit-muted:color-mix(in srgb,var(--text-secondary) 75%,var(--text-primary)); }
.audit-timeline { list-style:none; margin:0; padding:0; }
.audit-item { margin:0; padding:0; }
.audit-date { margin:28px 0 18px; padding-bottom:10px; border-bottom:1px solid var(--panel-border); color:var(--text-primary); font-size:15px; font-weight:650; }
.audit-item:first-child .audit-date { margin-top:0; }
.audit-event { display:grid; grid-template-columns:96px minmax(0,1fr); column-gap:16px; }
.audit-time { padding-top:1px; color:var(--audit-muted); font-size:12px; font-variant-numeric:tabular-nums; }
.audit-content { position:relative; min-width:0; border-left:2px solid var(--panel-border); padding:0 0 26px 22px; overflow-wrap:anywhere; }
.audit-content::before { content:""; position:absolute; left:-6px; top:5px; width:10px; height:10px; border:2px solid var(--bg-page); border-radius:50%; background:var(--teal); }
.audit-actor { margin:0 0 5px; color:var(--audit-muted); font-size:12px; }
.audit-action { margin:0 0 8px; color:var(--text-primary); font-size:16px; font-weight:650; line-height:1.45; }
.audit-case { display:flex; flex-wrap:wrap; gap:4px 12px; margin:0 0 8px; font-size:12px; }
.audit-case a { color:color-mix(in srgb,var(--teal) 85%,var(--text-primary)); text-decoration:underline; text-underline-offset:3px; }
.audit-case a:focus-visible { outline:2px solid var(--teal); outline-offset:3px; border-radius:2px; }
.audit-case-title { color:var(--audit-muted); }
.audit-remarks { max-width:90ch; margin:0; color:var(--text-primary); font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.audit-empty { padding:24px; border:1px solid var(--panel-border); border-radius:8px; background:var(--bg-surface); color:var(--audit-muted); }
@media(max-width:650px) {
  .audit-event { grid-template-columns:minmax(0,1fr); row-gap:6px; }
  .audit-time { padding-left:24px; }
  .audit-content { padding-bottom:22px; }
}
/* BOB Reports Register */
.reports-register { min-width:0; --reports-muted:color-mix(in srgb,var(--text-secondary) 75%,var(--text-primary)); }
.reports-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0; padding:0; list-style:none; }
.reports-item { min-width:0; }
.reports-entry { height:100%; padding:20px; border:1px solid var(--panel-border); border-radius:8px; background:var(--bg-surface); overflow-wrap:anywhere; }
.reports-category { display:inline-block; padding:4px 8px; border:1px solid var(--border-color); border-radius:4px; background:var(--bg-surface-muted); color:var(--text-primary); font-size:11px; font-weight:600; line-height:1.4; }
.reports-case { display:flex; flex-wrap:wrap; gap:4px 12px; margin:14px 0 6px; font-size:12px; color:var(--reports-muted); }
.reports-case a { color:color-mix(in srgb,var(--teal) 85%,var(--text-primary)); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.reports-case a:focus-visible { outline:2px solid var(--teal); outline-offset:3px; border-radius:2px; }
.reports-title { margin:0 0 12px; color:var(--text-primary); font-size:16px; font-weight:650; line-height:1.45; }
.reports-meta { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; color:var(--reports-muted); font-size:12px; }
.reports-context { margin:14px 0 0; color:var(--text-primary); font-size:13px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.reports-empty { margin:0; padding:24px; border:1px solid var(--panel-border); border-radius:8px; background:var(--bg-surface); color:var(--reports-muted); }
@media(max-width:1000px) { .reports-list { grid-template-columns:minmax(0,1fr); } }
@media(max-width:650px) { .reports-entry { padding:16px; } .reports-meta { flex-direction:column; } }

/* BOB Asset Custody Workspace */
.asset-workspace {
  min-width: 0;
  --asset-muted: color-mix(in srgb, var(--text-secondary) 75%, var(--text-primary));
}
.asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.asset-item {
  min-width: 0;
}
.asset-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow-wrap: anywhere;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 3px var(--shadow-color);
}
.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-color);
}
.asset-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.asset-case-ref {
  font-size: 13px;
  font-weight: 700;
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.asset-case-ref:hover {
  color: var(--teal);
}
.asset-case-ref:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.asset-card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text-primary);
}
.asset-card-title a {
  color: inherit;
  text-decoration: none;
}
.asset-card-title a:hover {
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.asset-card-title a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
.asset-custody-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-surface-muted);
  margin-bottom: 14px;
}
.asset-custody-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.asset-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--asset-muted);
}
.asset-custodian-badge {
  display: flex;
  align-items: center;
  min-height: 32px;
}
.asset-custodian-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.asset-custodian-nfcc {
  background: color-mix(in srgb, var(--teal) 14%, var(--bg-surface));
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--border-color));
}
.asset-custodian-agency {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.asset-officer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
}
.asset-officer-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.asset-officer-avatar svg {
  width: 16px;
  height: 16px;
}
.asset-officer-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.asset-officer-name {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-primary);
}
.asset-officer-username {
  font-size: 11px;
  color: var(--asset-muted);
}
.asset-officer-unassigned {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: 12px;
}
.asset-stage {
  margin-bottom: 14px;
}
.asset-stage-value {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.asset-record-box {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  background: var(--bg-surface-muted);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.asset-record-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.asset-record-time {
  font-size: 11px;
  color: var(--asset-muted);
  font-variant-numeric: tabular-nums;
}
.asset-record-action {
  margin: 2px 0 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.4;
}
.asset-record-actor {
  margin: 0 0 4px;
  font-size: 11.5px;
  color: var(--asset-muted);
}
.asset-record-remarks {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.asset-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}
.asset-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.asset-detail-link:hover {
  color: var(--teal);
}
.asset-detail-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
.asset-empty {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--asset-muted);
}
@media(max-width:1000px) {
  .asset-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media(max-width:650px) {
  .asset-card {
    padding: 16px;
  }
  .asset-custody-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
  }
  .asset-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media(prefers-reduced-motion:reduce) {
  .asset-card {
    transition: none;
  }
  .asset-card:hover {
    transform: none;
  }
}
html[data-bob-theme="dark"] body:not(.login-page) .asset-custodian-nfcc {
  background: #1b3d39;
  color: #69d5c7;
  border-color: #2b5d56;
}
html[data-bob-theme="dark"] body:not(.login-page) .asset-custodian-agency {
  background: #243744;
  color: #e1edf3;
  border-color: #3a4e5d;
}
html[data-bob-theme="dark"] body:not(.login-page) .asset-record-box {
  background: #1d2c37;
  border-color: #314452;
  border-left-color: #69d5c7;
}

/* BOB Operations Workspace */
.operations-workspace {
  min-width: 0;
  --operations-muted: color-mix(in srgb, var(--text-secondary) 75%, var(--text-primary));
}
.operations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.operations-item {
  min-width: 0;
}
.operations-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow-wrap: anywhere;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 1px 3px var(--shadow-color);
}
.operations-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}
.operations-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.operations-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.operations-case-ref {
  font-size: 13.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.operations-case-ref:hover {
  color: var(--teal);
}
.operations-case-ref:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.operations-paper-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-surface-muted);
  font-size: 11.5px;
  color: var(--text-primary);
}
.operations-paper-label {
  color: var(--operations-muted);
  font-weight: 500;
}
.operations-paper-value {
  font-weight: 700;
}
.operations-opened-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--operations-muted);
}
.operations-date-label {
  font-weight: 500;
}
.operations-date-value {
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.operations-card-title {
  margin: 0 0 16px;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text-primary);
}
.operations-card-title a {
  color: inherit;
  text-decoration: none;
}
.operations-card-title a:hover {
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.operations-card-title a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
.operations-coordination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-surface-muted);
  margin-bottom: 16px;
}
.operations-coordination-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.operations-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--operations-muted);
}
.operations-officer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 36px;
}
.operations-officer-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.operations-officer-avatar svg {
  width: 18px;
  height: 18px;
}
.operations-officer-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.operations-officer-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
}
.operations-officer-username {
  font-size: 11px;
  color: var(--operations-muted);
}
.operations-officer-unassigned {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 12.5px;
}
.operations-stage-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.operations-stage-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.operations-stage-value {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.4;
}
.operations-activity-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  background: var(--bg-surface-muted);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.operations-activity-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.operations-activity-time {
  font-size: 11px;
  color: var(--operations-muted);
  font-variant-numeric: tabular-nums;
}
.operations-activity-action {
  margin: 2px 0 4px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.4;
}
.operations-activity-actor {
  margin: 0 0 4px;
  font-size: 11.5px;
  color: var(--operations-muted);
}
.operations-activity-remarks {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.operations-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}
.operations-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--teal) 85%, var(--text-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.operations-detail-link:hover {
  color: var(--teal);
}
.operations-detail-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
.operations-empty {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--operations-muted);
}
@media(max-width:650px) {
  .operations-card {
    padding: 16px;
  }
  .operations-coordination-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
  }
  .operations-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .operations-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .operations-card {
    transition: none;
  }
  .operations-card:hover {
    transform: none;
  }
}
html[data-bob-theme="dark"] body:not(.login-page) .operations-card {
  border-left-color: #69d5c7;
}
html[data-bob-theme="dark"] body:not(.login-page) .operations-paper-badge {
  background: #22323e;
  border-color: #4b5d6b;
}
html[data-bob-theme="dark"] body:not(.login-page) .operations-stage-indicator {
  background: #69d5c7;
}
html[data-bob-theme="dark"] body:not(.login-page) .operations-activity-box {
  background: #1d2c37;
  border-color: #314452;
  border-left-color: #69d5c7;
}