/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* Assistant workspace: scoped so operational screens retain their existing layout. */
.nd-chat-page { overflow: hidden; min-height: 0; height: 100dvh; overscroll-behavior: none; }
/* The keyboard can both shrink and pan Safari's visual viewport. Keep the
   entire flex workspace inside it; only the message list should scroll. */
.nd-chat-page > .flex { position: fixed; top: var(--nd-viewport-top, 0px); left: 0; right: 0; height: var(--nd-viewport-height, 100dvh); min-height: 0; }
.nd-chat-page > .flex > div { min-height: 0; }
.nd-chat-page main { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 16px; }
.nd-chat-page main > #flash { flex: 0 0 auto; }
.nd-chat { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid #e4e9f0; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 24px #132d4a05; }
.nd-chat-header { display: flex; align-items: center; gap: 12px; padding: 19px 24px; border-bottom: 1px solid #edf0f4; flex-shrink: 0; }
.nd-chat-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #2563eb; font-size: 26px; }
.nd-chat-heading { min-width: 0; }
.nd-chat-heading h1 { margin: 0; font-size: 17px; font-weight: 700; color: #16263e; }
.nd-chat-heading p { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: #6e7c90; }
.nd-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #27a785; }
.nd-status-dot.is-off { background: #c58d27; }
.nd-chat-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nd-icon-button,.nd-history > summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 8px; border: 0; border-radius: 10px; color: #66758a; background: transparent; cursor: pointer; font-size: 12px; }
.nd-icon-button:hover,.nd-history > summary:hover { background: #f0f4fa; color: #2563eb; }
.nd-icon-button svg,.nd-history svg { width: 20px; height: 20px; }
.nd-history > summary { list-style: none; }
.nd-history > summary::-webkit-details-marker { display: none; }
.nd-history-menu { position: absolute; right: 14px; top: 70px; width: min(320px, calc(100% - 28px)); max-height: min(440px, 60vh); z-index: 30; overflow-y: auto; padding: 10px; background: #fff; border: 1px solid #e4e9f0; box-shadow: 0 12px 40px #14273c1f; border-radius: 14px; }
.nd-history-menu p { font-size: 11px; font-weight: 600; color: #8994a4; padding: 8px 10px; }
.nd-history-menu a { display: block; padding: 11px 10px; border-radius: 8px; color: #42516a; font-size: 13px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.nd-history-menu a:hover,.nd-history-menu a.is-current { color: #245bd4; background: #eff5ff; }
.nd-conversation-bar { display: flex; flex-shrink: 0; justify-content: space-between; gap: 10px; padding: 10px 24px; color: #8b96a6; font-size: 11px; border-bottom: 1px solid #f3f5f8; }
.nd-conversation-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-conversation-bar span:last-child { flex-shrink: 0; }
.nd-chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dce3ef transparent; }
.nd-chat-messages { width: 100%; max-width: 820px; margin: 0 auto; padding: 28px 28px 12px; }
.nd-chat-messages turbo-frame { display: block; }
.nd-exchange { margin-bottom: 30px; }
.nd-user-message { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 22px; padding-left: 44px; }
.nd-user-bubble { max-width: 88%; padding: 12px 17px; border-radius: 18px 18px 5px 18px; background: #2563eb; color: #fff; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.nd-user-message time { margin: 6px 3px 0; color: #9aa4b3; font-size: 10px; }
.nd-assistant-message { display: flex; gap: 12px; align-items: flex-start; }
.nd-assistant-avatar { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; flex-shrink: 0; border: 1px solid #e4ecfc; border-radius: 10px; color: #2563eb; background: #f3f7ff; font-size: 20px; }
.nd-assistant-body { min-width: 0; flex: 1; }
.nd-assistant-name { display: block; color: #8290a3; font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.nd-answer { color: #24334b; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.nd-error { max-width: 540px; background: #fff8f6; border: 1px solid #f8e6df; border-radius: 12px; padding: 13px 16px; color: #825347; font-size: 13px; }
.nd-error p { font-weight: 600; }
.nd-error details { margin: 7px 0; color: #94766d; font-size: 12px; }
.nd-error details div { margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.nd-error summary,.nd-sources summary { cursor: pointer; }
.nd-retry { display: inline-block; padding: 5px 0; border: 0; background: transparent; color: #2563eb; font-weight: 600; font-size: 12px; cursor: pointer; }
.nd-sources { margin-top: 13px; font-size: 12px; color: #5e78a0; }
.nd-sources ul { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding: 0; list-style: none; }
.nd-sources a { display: block; padding: 5px 9px; border-radius: 7px; background: #f2f6fc; color: #3565a6; }
.nd-typing { display: flex; align-items: center; gap: 4px; min-height: 30px; color: #8a97aa; font-size: 12px; }
.nd-typing i { width: 5px; height: 5px; border-radius: 50%; background: #94b3ef; animation: nd-pulse 1.2s ease-in-out infinite; }
.nd-typing i:nth-child(2) { animation-delay: .15s; }.nd-typing i:nth-child(3) { animation-delay: .3s; }.nd-typing span { margin-left: 7px; }
@keyframes nd-pulse { 0%,80%,100% { opacity: .35; } 40% { opacity: 1; } }
.nd-welcome { max-width: 560px; margin: 40px auto 35px; text-align: center; }
.nd-welcome-mark { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 22px; background: #edf4ff; color: #3872e4; font-size: 40px; margin-bottom: 22px; }
.nd-welcome h2 { color: #1c2c43; font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; }
.nd-welcome > p { color: #8290a3; font-size: 14px; line-height: 1.7; margin: 12px auto 24px; max-width: 440px; }
.nd-suggestions { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin: 0 auto; }
.nd-suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 12px 16px; border: 1px solid #e9edf4; border-radius: 11px; color: #576a85; background: #fff; font-size: 12px; cursor: pointer; }
.nd-suggestions button:hover { background: #f6f9ff; border-color: #c9dafb; }
.nd-suggestions span { color: #96a5bb; }
.nd-chat-footer { flex-shrink: 0; padding: 14px 26px 13px; background: #fff; border-top: 1px solid #f0f3f7; }
#ai-composer,.nd-chat-footnote { width: 100%; max-width: 760px; margin: 0 auto; }
.nd-composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 11px 10px 17px; border: 1px solid #dce4ef; border-radius: 17px; background: #fafcff; box-shadow: 0 2px 6px #243a5604; }
.nd-composer:focus-within { border-color: #85aaf3; box-shadow: 0 0 0 3px #2563eb08; }
.nd-composer textarea { display: block; flex: 1; min-width: 0; min-height: 38px; max-height: 140px; padding: 7px 0; border: 0; box-shadow: none; outline: none; background: transparent; resize: none; color: #253750; font-size: 16px; line-height: 24px; overscroll-behavior: contain; }
.nd-composer textarea::placeholder { color: #99a4b5; }
.nd-send { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border: 0; border-radius: 12px; background: #2563eb; color: #fff; cursor: pointer; }
.nd-send svg { width: 21px; height: 21px; }.nd-send:disabled { background: #dfe7f4; color: #99accb; cursor: default; }
.nd-chat-footnote { display: flex; justify-content: space-between; gap: 10px; padding: 9px 3px 0; color: #9ba5b4; font-size: 10px; }
.nd-chat-footnote details { position: relative; flex-shrink: 0; }.nd-chat-footnote summary { cursor: pointer; list-style: none; }.nd-chat-footnote summary::-webkit-details-marker { display: none; }
.nd-chat-footnote details div { position: absolute; right: 0; bottom: 25px; width: min(300px, 80vw); padding: 14px; background: #fff; border: 1px solid #e4e9f0; border-radius: 12px; box-shadow: 0 8px 25px #18345412; color: #708199; font-size: 12px; line-height: 1.65; }
.nd-compose-error { margin-bottom: 10px; font-size: 12px; color: #a16545; }
.nd-jump { position: absolute; bottom: 126px; left: 50%; transform: translateX(-50%); background: #fff; color: #45668c; padding: 8px 14px; border: 1px solid #dce5f0; border-radius: 30px; box-shadow: 0 3px 12px #1734510d; font-size: 11px; cursor: pointer; }.nd-jump[hidden] { display: none; }
.nd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .nd-chat-page main { padding: 0; }.nd-chat { border: 0; border-radius: 0; box-shadow: none; }
  .nd-chat-header { padding: 13px 16px; gap: 10px; }.nd-chat-mark { width: 35px; height: 35px; font-size: 23px; border-radius: 11px; }
  .nd-chat-heading h1 { font-size: 15px; }.nd-chat-heading p { font-size: 10px; }.nd-history > summary > span { display: none; }.nd-chat-actions { gap: 1px; }
  .nd-conversation-bar { padding: 8px 16px; font-size: 10px; }.nd-conversation-bar span:last-child { display: none; }
  .nd-chat-messages { padding: 21px 16px 7px; }.nd-exchange { margin-bottom: 24px; }.nd-user-message { padding-left: 25px; }.nd-user-bubble { max-width: 94%; font-size: 14px; padding: 10px 14px; }
  .nd-assistant-message { gap: 9px; }.nd-assistant-avatar { width: 25px; height: 25px; font-size: 17px; border-radius: 8px; }.nd-answer { font-size: 14px; }.nd-error { padding: 11px 13px; }
  .nd-chat-footer { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }.nd-composer { border-radius: 16px; padding: 7px 8px 7px 13px; }.nd-chat-footnote { padding-top: 7px; font-size: 9px; }
  .nd-welcome { margin-top: 22px; }.nd-welcome h2 { font-size: 21px; }.nd-welcome > p { font-size: 13px; }.nd-welcome-mark { width: 54px; height: 54px; font-size: 33px; margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .nd-typing i { animation: none; } }
/* Leave space for typing when a phone is sideways or its keyboard is tall. */
@media (max-width: 767px), (pointer: coarse) {
  .nd-composer textarea { max-height: min(140px, calc(var(--nd-viewport-height, 100dvh) * .25)); }
  .nd-chat:focus-within .nd-chat-footnote { display: none; }
}

/* Global workspace header. Keep these rules scoped to avoid changing page forms. */
.nd-topbar { position: relative; z-index: 32; display: flex; align-items: center; gap: 24px; flex-shrink: 0; min-height: 72px; padding: 10px 24px; border-bottom: 1px solid #e8edf4; background: #fff; color: #172b46; }
.nd-topbar-heading { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.nd-topbar-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nd-topbar-eyebrow { color: #8793a5; font-size: 10px; font-weight: 500; letter-spacing: .04em; }
.nd-topbar-page { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.3px; }
.nd-topbar-context { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nd-topbar-location { position: relative; display: flex; align-items: center; gap: 10px; width: 236px; min-width: 0; padding: 6px 12px; background: #f6f8fc; border: 1px solid #e8edf4; border-radius: 12px; transition: border-color .15s, background .15s; }
.nd-topbar-location:hover { border-color: #c6d6ed; background: #f1f5fc; }
.nd-topbar-location:focus-within { border-color: #7199ee; outline: 3px solid #2563eb15; }
.nd-topbar-location-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #e9f0ff; color: #4675cd; flex-shrink: 0; }
.nd-topbar-location-icon svg { width: 17px; height: 17px; stroke-width: 1.7; }
.nd-topbar-location-field { flex: 1; min-width: 0; }
.nd-topbar-location-field label { display: block; color: #8390a3; font-size: 10px; line-height: 14px; cursor: pointer; }
.nd-topbar-select { display: block; width: 100%; margin: 0; padding: 0 18px 0 0; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none; background: transparent; color: #263c5b; font-size: 13px; font-weight: 600; line-height: 19px; cursor: pointer; box-shadow: none; outline: none; text-overflow: ellipsis; }
.nd-topbar-select:focus { outline: none; box-shadow: none; }
.nd-topbar-location > .nd-topbar-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.nd-topbar-chevron { width: 15px; height: 15px; color: #8a98ac; stroke-width: 1.7; flex-shrink: 0; }
.nd-topbar-department { display: flex; align-items: center; gap: 5px; max-width: 132px; padding: 7px 9px; border: 1px solid #d6eae3; border-radius: 9px; background: #f2faf6; color: #397b63; font-size: 11px; }
.nd-topbar-department > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-topbar-department button { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 26px; cursor: pointer; }
.nd-topbar-department svg { width: 13px; height: 13px; stroke-width: 1.7; }
.nd-topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nd-topbar-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 11px; color: #7a889d; background: transparent; cursor: pointer; list-style: none; transition: background .15s, color .15s; }
.nd-topbar-icon:hover, .nd-topbar-popover[open] > .nd-topbar-icon { color: #2563eb; background: #f0f5ff; }
.nd-topbar-icon svg { width: 21px; height: 21px; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nd-topbar-mobile-menu { display: none; }
.nd-topbar-badge { position: absolute; top: 0; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 10px; background: #e35765; color: #fff; font-size: 9px; font-weight: 600; }
.nd-topbar-popover { position: relative; }
.nd-topbar-popover > summary { list-style: none; }
.nd-topbar-popover > summary::-webkit-details-marker { display: none; }
.nd-topbar-profile { margin-left: 8px; padding-left: 14px; border-left: 1px solid #e8edf4; }
.nd-topbar-profile-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 7px; border-radius: 12px; cursor: pointer; }
.nd-topbar-profile-trigger:hover, .nd-topbar-profile[open] > summary { background: #f6f8fc; }
.nd-topbar-avatar { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid #e4eaf3; flex-shrink: 0; }
.nd-topbar-initials { display: grid; place-items: center; background: #edf3ff; color: #426cc1; font-size: 12px; font-weight: 600; }
.nd-topbar-profile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nd-topbar-profile-name { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #344762; font-size: 12px; font-weight: 600; }
.nd-topbar-profile-caption { color: #919daf; font-size: 10px; }
.nd-topbar-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: 270px; max-width: calc(100vw - 24px); padding: 7px; background: #fff; border: 1px solid #e4eaf3; border-radius: 15px; box-shadow: 0 12px 40px #182e4e1a; z-index: 45; }
.nd-topbar-account { display: flex; flex-direction: column; gap: 5px; padding: 11px 11px 14px; margin-bottom: 5px; border-bottom: 1px solid #eef1f6; overflow-wrap: anywhere; }
.nd-topbar-account strong { color: #30435f; font-size: 13px; font-weight: 600; }
.nd-topbar-account span { color: #8b97a8; font-size: 11px; }
.nd-topbar-menu-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px; border-radius: 9px; text-align: left; color: #4d607c; font-size: 12px; cursor: pointer; }
.nd-topbar-menu-link:hover { color: #2563eb; background: #f0f5ff; }
.nd-topbar-logout { color: #ab5963; }
.nd-topbar-logout:hover { color: #a34150; background: #fff3f4; }
.nd-topbar-logout svg { width: 17px; height: 17px; stroke-width: 1.7; }
.nd-topbar-help-panel { width: 290px; padding: 16px; }
.nd-topbar-help-panel > strong { color: #30435f; font-size: 13px; }
.nd-topbar-help-panel p { color: #7a889d; font-size: 12px; line-height: 1.7; margin: 9px 0; }
.nd-topbar-help-panel .nd-topbar-menu-link { padding-left: 0; }
.nd-topbar :is(button, a, summary):focus-visible { outline: 2px solid #7199ee; outline-offset: 3px; }
.nd-sidebar-brand { min-height: 72px; }
.nd-sidebar-link { position: relative; display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); min-height: 42px; margin-inline: 8px; padding: 10px 12px; border-radius: 10px; color: #59677c; font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left; transition: background-color .15s, color .15s; }
.nd-sidebar-link:hover { color: #1d4ed8; background: #f0f5ff; }
.nd-sidebar-link.is-active, .nd-sidebar-trigger[aria-expanded="true"] { color: #fff; background: #2563eb; font-weight: 650; box-shadow: 0 3px 9px #2563eb20; }
.nd-sidebar-link:focus-visible { outline: 2px solid #7199ee; outline-offset: 2px; }
.nd-sidebar-child { min-height: 36px; padding: 8px 10px 8px 28px; font-size: 12px; }
.nd-sidebar-child.is-active { color: #1d4ed8; background: #eaf1ff; box-shadow: none; }
.nd-sidebar-child.is-active::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #2563eb; }
.nd-sidebar-chevron { margin-left: auto; transition: transform .15s; }
.nd-sidebar-trigger[aria-expanded="true"] .nd-sidebar-chevron { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .nd-sidebar-link, .nd-sidebar-chevron { transition: none; } }

@media (min-width: 768px) and (max-width: 1100px) {
  .nd-topbar { gap: 14px; padding-inline: 18px; }
  .nd-topbar-location { width: 200px; }
  .nd-topbar-profile-text { display: none; }
  .nd-topbar-department { max-width: 100px; }
}
@media (max-width: 767px) {
  .nd-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 9px 12px 11px; }
  .nd-topbar-heading { gap: 5px; }
  .nd-topbar-mobile-menu { display: grid; margin-left: -4px; }
  .nd-topbar-eyebrow, .nd-topbar-profile-text, .nd-topbar-profile-trigger > .nd-topbar-chevron { display: none; }
  .nd-topbar-page { font-size: 15px; }
  .nd-topbar-actions { grid-column: 2; grid-row: 1; gap: 2px; }
  .nd-topbar-icon { width: 36px; height: 40px; padding: 8px; }
  .nd-topbar-profile { padding-left: 7px; margin-left: 4px; }
  .nd-topbar-profile-trigger { padding: 2px; }
  .nd-topbar-avatar { width: 32px; height: 32px; }
  .nd-topbar-context { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .nd-topbar-location { width: auto; flex: 1; padding: 5px 10px; gap: 8px; border-radius: 10px; }
  .nd-topbar-location-field { display: flex; align-items: center; gap: 8px; }
  .nd-topbar-location-field label { font-size: 10px; flex-shrink: 0; }
  .nd-topbar-select { min-width: 0; font-size: 16px; line-height: 24px; }
  .nd-topbar-location-icon { width: 25px; height: 25px; background: transparent; }
  .nd-topbar-department { max-width: 108px; padding: 4px 6px; }
  .nd-topbar-dropdown { top: calc(100% + 9px); }
  .nd-topbar-help-panel { right: -46px; }
}
@media (max-width: 359px) {
  .nd-topbar-location-field label { display: none; }
  .nd-topbar-help { display: none; }
}

/* The location picker uses the same searchable choice controller as page filters. */
.nd-topbar-location-picker { width: 236px; min-width: 0; }
.nd-topbar-location-picker .nd-topbar-location { width: 100%; cursor: pointer; list-style: none; }
.nd-topbar-location-picker .nd-topbar-location-field { display: block; padding-right: 14px; }
.nd-topbar-location-caption { display: block; color: #8390a3; font-size: 10px; line-height: 14px; }
.nd-topbar-location-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #263c5b; font-size: 13px; font-weight: 600; line-height: 19px; }
.nd-topbar-location-picker details[open] > summary { border-color: #b7ccf3; background: #f0f5ff; }
.nd-topbar-location-menu { left: 0; right: auto; top: calc(100% + 8px); width: 286px; padding: 8px; border-radius: 14px; }
.nd-topbar-location-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 7px; background: #f6f8fc; border: 1px solid #e8edf4; border-radius: 9px; }
.nd-topbar-location-search:focus-within { border-color: #a6c0f0; }
.nd-topbar-location-search svg { width: 16px; height: 16px; flex-shrink: 0; color: #8a99ad; stroke-width: 1.7; }
.nd-topbar-location-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; box-shadow: none; background: transparent; color: #344762; font-size: 12px; line-height: 22px; }
.nd-topbar-location-search input:focus { outline: none; box-shadow: none; }
.nd-topbar-location-search input::placeholder { color: #96a2b3; }
.nd-topbar-location-options { max-height: min(340px, 50dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9e1ee transparent; }
.nd-topbar-location-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 11px; border-radius: 8px; border: 0; background: transparent; color: #4d607c; font-size: 12px; line-height: 18px; text-align: left; cursor: pointer; }
.nd-topbar-location-option[hidden] { display: none; }
.nd-topbar-location-option span { flex: 1; }
.nd-topbar-location-option svg { width: 16px; height: 16px; flex-shrink: 0; color: #2563eb; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.nd-topbar-location-option[aria-pressed="true"] { color: #2563eb; background: #edf3ff; font-weight: 600; }
.nd-topbar-location-option[aria-pressed="true"] svg { visibility: visible; }
.nd-topbar-location-option:hover, .nd-topbar-location-option:focus-visible { background: #f0f5ff; color: #2563eb; outline-offset: -2px; }
.nd-topbar-location-option:first-child { margin-bottom: 5px; }
.nd-topbar-location-empty { padding: 18px 10px; text-align: center; color: #8a98ab; font-size: 12px; }
@media (min-width: 768px) and (max-width: 1100px) { .nd-topbar-location-picker { width: 200px; } }
@media (max-width: 767px) {
  .nd-topbar-location-picker { flex: 1; width: auto; }
  .nd-topbar-location-picker .nd-topbar-location-field { display: flex; align-items: center; gap: 8px; }
  .nd-topbar-location-caption { flex-shrink: 0; }
  .nd-topbar-location-value { font-size: 13px; line-height: 24px; }
  .nd-topbar-location-menu { width: 100%; }
  .nd-topbar-location-search input { font-size: 16px; }
  .nd-topbar-location-option { min-height: 42px; font-size: 13px; }
}
@media (max-width: 359px) { .nd-topbar-location-caption { display: none; } }

[data-sidebar-target="overlay"] { z-index: 35; }

/* Inventory campaigns: tables on desktop, object cards on phones. */
.nd-inventory { min-width: 0; color: #24334b; }
.nd-inventory-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.nd-inventory-heading h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.4px; }
.nd-inventory-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.nd-inventory-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; color: #718096; font-size: 12px; }
.nd-inventory-back { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; color: #536580; font-size: 13px; font-weight: 500; }
.nd-inventory-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nd-inventory-delete { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #fecaca; border-radius: 10px; background: #fff; color: #b91c1c; font-size: 12px; font-weight: 500; cursor: pointer; }
.nd-inventory-delete:hover { background: #fff1f2; }
.nd-inventory-delete:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }
.nd-inventory-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 11px; background: #2563eb; color: white; font-size: 14px; font-weight: 600; }
.nd-inventory a:focus-visible, .nd-inventory summary:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; }
.nd-inventory-primary:hover { background: #1d4ed8; }
.nd-inventory-status { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 5px 9px; border-radius: 8px; background: #edf3ff; color: #3464b7; font-size: 11px; font-weight: 600; line-height: 1.4; }
.nd-inventory-status[data-state="completed"], .nd-inventory-status[data-state="approved"] { background: #eaf8f0; color: #208151; }
.nd-inventory-status[data-state="cancelled"] { background: #f1f3f6; color: #758094; }
.nd-inventory-panel, .nd-inventory-overview, .nd-inventory-stat { border: 1px solid #e2e7ef; border-radius: 14px; background: #fff; }
.nd-inventory-panel { overflow: hidden; min-width: 0; }
.nd-inventory-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf0f5; }
.nd-inventory-panel-heading h2 { min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.4; }
.nd-inventory-count { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 8px; background: #eef2f7; color: #607189; font-size: 12px; font-weight: 600; }
.nd-inventory-overview { padding: 16px; }
.nd-inventory-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nd-inventory-overview-heading h2 { font-size: 14px; font-weight: 650; line-height: 1.4; }
.nd-inventory-overview-heading p { margin: 5px 0 0; color: #77869b; font-size: 12px; }
.nd-inventory-overview-heading p strong { color: #34445b; }
.nd-inventory-percent { color: #2563eb; font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nd-inventory-overview-track { display: flex; height: 7px; margin-top: 14px; overflow: hidden; border-radius: 8px; background: #edf1f7; }
.nd-inventory-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; margin-top: 15px; }
.nd-inventory-key { display: flex; align-items: center; gap: 7px; min-width: 0; color: #6b7a90; font-size: 12px; }
.nd-inventory-key strong { margin-left: auto; color: #34445b; font-weight: 650; font-variant-numeric: tabular-nums; }
.nd-inventory-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; }
.nd-inventory-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.nd-inventory-stat { min-width: 0; padding: 13px 15px; }
.nd-inventory-stat > :last-child { margin-top: 3px; font-variant-numeric: tabular-nums; }
.nd-inventory-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.nd-inventory-table th { padding: 11px 14px; background: #f8fafc; color: #6c7c92; font-size: 11px; font-weight: 600; }
.nd-inventory-table td { padding: 13px 14px; border-top: 1px solid #edf0f5; vertical-align: middle; }
.nd-inventory-name { font-weight: 600; }
.nd-inventory-row-status { width: 145px; }
.nd-inventory-row-progress { color: #718096; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nd-inventory-row-progress strong { color: #34445b; font-weight: 600; }
.nd-inventory-row-missing, .nd-inventory-row-issues { color: #8793a5; }
.nd-inventory-row-missing.has-issues { color: #dc3545; }
.nd-inventory-row-issues.has-issues { color: #b77919; }
.nd-inventory-row-action { text-align: right; }
.nd-inventory-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 9px; color: #2563eb; font-size: 13px; font-weight: 600; }
.nd-inventory-open:hover { background: #eff5ff; }
.nd-inventory-mobile-label, .nd-inventory-row-track { display: none; }
.nd-inventory-issues-panel > summary { min-height: 58px; cursor: pointer; list-style: none; border-bottom: 0; }
.nd-inventory-issues-panel > summary::-webkit-details-marker { display: none; }
.nd-inventory-issues-panel > summary::after { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-right: 1.5px solid #8798b0; border-bottom: 1.5px solid #8798b0; transform: rotate(45deg); margin-right: 3px; }
.nd-inventory-issues-panel > summary .nd-inventory-count { margin-left: auto; flex-shrink: 0; }
.nd-inventory-issues-panel[open] > summary { border-bottom: 1px solid #edf0f5; }
.nd-inventory-issues-panel[open] > summary::after { transform: rotate(225deg); }
.nd-inventory-issue-item { overflow-wrap: anywhere; }
.nd-inventory-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nd-inventory-check { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nd-inventory-check-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nd-inventory-check-heading > div { min-width: 0; }
.nd-inventory-check-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; color: #768398; font-size: 12px; }
.nd-inventory-actions-menu { position: relative; flex-shrink: 0; }
.nd-inventory-actions-menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 7px 10px; border: 1px solid #dce4ef; border-radius: 9px; background: #fff; color: #53647c; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.nd-inventory-actions-menu > summary::-webkit-details-marker { display: none; }
.nd-inventory-actions-menu .nd-inventory-check-actions { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 31; width: 225px; max-width: calc(100vw - 28px); padding: 6px; border: 1px solid #dce4ef; border-radius: 11px; background: #fff; box-shadow: 0 8px 25px #253b5c1c; }
.nd-inventory-actions-menu[open] .nd-inventory-check-actions { display: grid; gap: 4px; }
.nd-inventory-check-actions > a, .nd-inventory-check-actions > form > button, .nd-inventory-check-actions > button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 40px; padding: 8px 10px; font-size: 12px; text-align: left; }
.nd-inventory-check-actions > form { display: block; min-width: 0; }
.nd-inventory-check-progress { display: grid; gap: 8px; padding: 11px 12px; border: 1px solid #e2e7ef; border-radius: 11px; background: #fff; }
.nd-inventory-check-progress > div:first-child { font-size: 12px; }
.nd-inventory-check-track { display: flex; height: 4px; overflow: hidden; border-radius: 5px; background: #edf1f7; }
.nd-inventory-check-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nd-inventory-check-filter { flex: 1; min-width: 0; }
.nd-inventory-check-filter select { display: block; width: 100%; min-width: 0; height: 36px; padding: 5px 30px 5px 9px; border: 1px solid #e1e7f0; border-radius: 8px; background-color: #f8fafc; color: #4d5e76; font-size: 13px; }
.nd-inventory-next { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; min-height: 36px; padding: 5px 10px; border: 1px solid #dbe6fc; border-radius: 8px; background: #f0f5ff; color: #3162bf; font-size: 12px; font-weight: 500; }
.nd-inventory-check-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid #e2e7ef; border-radius: 10px; background: #fff; }
.nd-inventory-check-tabs > a { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 12px; font-size: 12px; }
.nd-inventory-add-found { min-width: 0; border: 1px solid #e2e7ef; border-radius: 10px; background: #fff; }
.nd-inventory-add-found > summary { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 11px; color: #5c7294; font-size: 12px; font-weight: 500; cursor: pointer; list-style: none; }
.nd-inventory-add-found > summary::-webkit-details-marker { display: none; }
.nd-inventory-add-found > summary > span { font-size: 17px; line-height: 1; color: #527bc5; }
.nd-inventory-add-found[open] > summary { border-bottom: 1px solid #edf0f5; }
.nd-inventory-compact-meta { display: none; }

@media (max-width: 767px) {
  .nd-inventory-heading { flex-direction: column; gap: 14px; }
  .nd-inventory-heading h1 { font-size: 17px; font-weight: 500; color: #718096; }
  .nd-inventory-heading .nd-inventory-date { display: block; margin-top: 3px; font-size: 28px; font-weight: 750; letter-spacing: -.7px; color: #22324b; }
  .nd-inventory-heading .nd-inventory-back { order: -1; min-height: 36px; padding: 0; border: 0; background: none; color: #657b9c; font-size: 12px; }
  .nd-inventory-overview { padding: 15px; }
  .nd-inventory-overview-heading h2 { max-width: 235px; font-size: 13px; }
  .nd-inventory-percent { font-size: 25px; }
  .nd-inventory-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .nd-inventory-key { gap: 6px; font-size: 11px; }
  .nd-inventory-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .nd-inventory-stat { grid-column: span 2; padding: 11px 10px; border-radius: 12px; }
  .nd-inventory-stat:nth-child(n+4) { grid-column: span 3; }
  .nd-inventory-stat > :first-child { font-size: 10px; line-height: 1.3; }
  .nd-inventory-stat > :last-child { font-size: 23px; line-height: 1.25; }
  .nd-inventory-objects, .nd-inventory-campaigns { overflow: visible; border: 0; background: transparent; }
  .nd-inventory-objects .nd-inventory-panel-heading { padding: 3px 2px 12px; border: 0; }
  .nd-inventory-objects .nd-inventory-panel-heading h2 { font-size: 15px; }
  .nd-inventory-objects > .overflow-x-auto, .nd-inventory-campaigns > .overflow-x-auto { overflow: visible; }
  .nd-inventory-table, .nd-inventory-table tbody { display: block; width: 100%; }
  .nd-inventory-table thead { display: none; }
  .nd-inventory-table tbody { display: grid; gap: 12px; }
  .nd-inventory-table .nd-inventory-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'name status' 'progress progress' 'missing issues' 'action action'; gap: 12px 10px; padding: 15px; border: 1px solid #e2e7ef; border-radius: 14px; background: #fff; box-shadow: 0 2px 5px #21345104; }
  .nd-inventory-campaigns-table .nd-inventory-row { grid-template-areas: 'name status' 'objects objects' 'progress progress' 'missing issues' 'action action'; }
  .nd-inventory-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .nd-inventory-table .nd-inventory-name { grid-area: name; align-self: center; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
  .nd-inventory-campaigns-table .nd-inventory-name { font-size: 19px; font-variant-numeric: tabular-nums; }
  .nd-inventory-table .nd-inventory-row-status { grid-area: status; justify-self: end; width: auto; max-width: 120px; text-align: right; }
  .nd-inventory-status { padding: 5px 8px; font-size: 10px; }
  .nd-inventory-table .nd-inventory-row-progress { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; grid-area: progress; font-size: 12px; }
  .nd-inventory-mobile-label { display: inline; color: #7b8ba1; font-size: 11px; font-weight: 400; }
  .nd-inventory-row-percent { color: #4a71bb; font-weight: 600; }
  .nd-inventory-row-track { display: block; flex-basis: 100%; height: 5px; overflow: hidden; border-radius: 6px; background: #eef2f7; }
  .nd-inventory-row-track > span { display: block; height: 100%; border-radius: inherit; background: #4b7bf5; }
  .nd-inventory-table .nd-inventory-row-missing, .nd-inventory-table .nd-inventory-row-issues { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; font-size: 13px; }
  .nd-inventory-row-missing { grid-area: missing; }
  .nd-inventory-row-issues { grid-area: issues; }
  .nd-inventory-table .has-issues { background: #fff5ef; }
  .nd-inventory-row-action { grid-area: action; }
  .nd-inventory-row-action .nd-inventory-open { display: flex; width: 100%; min-height: 44px; background: #eff4ff; color: #2c60d9; }
  .nd-inventory-row-action .nd-inventory-open > :last-child { margin-left: auto; }
  .nd-inventory-row-action .nd-inventory-open .nd-inventory-mobile-label { color: inherit; font-size: inherit; font-weight: inherit; margin-left: -3px; }
  .nd-inventory-row-objects { grid-area: objects; color: #7b8ba1; font-size: 12px; }
  .nd-inventory-issue-item > div:last-child { flex-wrap: wrap; justify-content: space-between; }
  .nd-inventory-primary { width: 100%; min-height: 46px; }
  .nd-inventory-form-page h1 { font-size: 22px; line-height: 1.3; }
  .nd-inventory-form-page input[type=date], .nd-inventory-form-page textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #dde5ef; border-radius: 10px; background: #f8fafc; font-size: 16px; }
  .nd-inventory-form-page textarea { min-height: 115px; line-height: 1.5; }
  .nd-inventory-form-actions { flex-direction: column; align-items: stretch; }
  .nd-inventory-form-actions > * { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 46px; }

  .nd-inventory-check { gap: 8px; }
  .nd-inventory-check h1 { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
  .nd-inventory-check-meta { gap: 2px 8px; font-size: 11px; }
  .nd-inventory-check-progress { gap: 7px; padding: 9px 10px; }
  .nd-inventory-check-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd-inventory-check-tabs > a { min-height: 30px; padding: 4px 7px; font-size: 12px; }
  .nd-inventory-checklist, .nd-inventory-checklist tbody { display: block; width: 100%; }
  .nd-inventory-checklist thead { display: none; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: 'number name name' 'state state actions'; gap: 6px; padding: 9px 10px; border-top: 1px solid #e8edf3; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td { display: block; min-width: 0; padding: 0; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(1) { grid-area: number; align-self: center; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(2) { grid-area: name; overflow-wrap: anywhere; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(3) { grid-area: state; align-self: center; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(3) > div { flex-wrap: wrap; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(4) { grid-area: actions; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(4) > div { justify-content: flex-end; gap: 5px; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] button { min-height: 36px; padding: 6px 10px; font-size: 11px; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] button[aria-controls] { min-width: 36px; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] form { flex: initial; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] form button { width: auto; justify-content: center; }
  .nd-inventory-checklist input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:first-child > div { gap: 4px; font-size: 10px; }
  .nd-inventory-checklist .nd-inventory-row-title { font-size: 13px; line-height: 1.35; }
  .nd-inventory-checklist .nd-inventory-row-meta { margin-top: 2px; font-size: 10px; line-height: 1.4; }
  .nd-inventory-full-meta { display: none; }
  .nd-inventory-compact-meta { display: inline; }
  .nd-inventory-checklist tr[data-controller="inventory-row"] > td:nth-child(3) span { font-size: 10px; }
  .nd-inventory-checklist tr[data-inventory-row-target="details"]:not(.hidden) { display: block; }
  .nd-inventory-checklist tr[data-inventory-row-target="details"] > td { display: block; width: 100%; }
  .nd-inventory-checklist tr[data-inventory-row-target="details"] form { display: grid; grid-template-columns: minmax(0, 1fr); }
  .nd-inventory-checklist tr[data-inventory-row-target="details"] form > div { min-width: 0; }
  .nd-inventory-checklist tr[data-inventory-row-target="details"] select, .nd-inventory-checklist tr[data-inventory-row-target="details"] input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid #dde5ef; border-radius: 9px; background-color: #fff; font-size: 16px; }
  .nd-inventory-checklist tr[data-inventory-row-target="details"] button { min-height: 44px; }
}
