#popup-main-content.notes-directory-content { padding: 0; background: #f4f6fa; container-type: inline-size; }
.notes-directory { --nd-ink: #273448; --nd-muted: #6c7a90; --nd-line: #e0e7f0; --nd-blue: #6074ff; color: var(--nd-ink); padding: 28px; min-height: 100%; background: radial-gradient(ellipse at top right, #e9f3ef 0, transparent 48%), #f4f6fa; }
.notes-directory *, .notes-directory *::before, .notes-directory *::after { box-sizing: border-box; }
.notes-directory p { font-weight: 400; margin: 0; color: var(--nd-ink); }
.notes-directory .nd-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.notes-directory .nd-eyebrow { color: #428167; font-size: 11px; font-weight: 800; letter-spacing: .14em; margin-bottom: 8px; }
.notes-directory h2 { font-size: clamp(24px, 3cqi, 36px); font-weight: 750; letter-spacing: -.045em; margin: 0 0 8px; }
.notes-directory .nd-intro p:not(.nd-eyebrow) { color: var(--nd-muted); font-size: 13px; }
.notes-directory .nd-button, .notes-directory input, .notes-directory select { font: inherit; font-size: 13px; border: 1px solid var(--nd-line); border-radius: 9px; background: #fff; color: var(--nd-ink); min-height: 40px; padding: 9px 12px; max-width: 100%; }
.notes-directory .nd-button { font-weight: 650; cursor: pointer; white-space: nowrap; }
.notes-directory .nd-button:hover:not(:disabled) { border-color: var(--nd-blue); background: #f1f3ff; }
.notes-directory .nd-button:disabled { opacity: .45; cursor: default; }
.notes-directory :is(button,input,select,summary):focus-visible { outline: 3px solid #93a3ff; outline-offset: 2px; }
.notes-directory form.nd-filters { display: block; background: #ffffffea; border: 1px solid var(--nd-line); border-radius: 16px; padding: 18px; margin: 0 0 24px; width: 100%; box-shadow: 0 5px 18px #29395004; }
.notes-directory .nd-search-row { display: flex; align-items: end; gap: 12px; }
.notes-directory .nd-search-row .nd-field { flex: 1; }
.notes-directory .nd-filter-toggle { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notes-directory .nd-filter-toggle[aria-expanded="true"] { background: #6074ff; border-color: #6074ff; color: #fff; }
.notes-directory .nd-filter-toggle[aria-expanded="true"]:hover { background: #4d60e1; color: #fff; }
.notes-directory .nd-filter-panel { border-top: 1px solid var(--nd-line); margin-top: 16px; padding-top: 16px; }
.notes-directory .nd-filter-row { display: flex; flex-wrap: nowrap; align-items: end; gap: 12px; overflow-x: auto; padding: 3px 3px 10px; scrollbar-width: thin; }
.notes-directory .nd-filter-row > .nd-field { flex: 1 0 140px; }
.notes-directory .nd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; font-size: 11px; color: var(--nd-muted); font-weight: 600; }
.notes-directory .nd-field input, .notes-directory .nd-field select { width: 100%; min-width: 0; margin: 0; }
.notes-directory .nd-clear { display: block; width: 100%; margin-top: 10px; border-color: #efb4b8; background: #fff0f1; color: #b33340; }
.notes-directory .nd-clear:hover:not(:disabled) { border-color: #be3341; background: #be3341; color: #fff; }
.notes-directory .nd-clear:focus-visible { outline-color: #dc6672; }
.notes-directory .nd-lookup-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; text-align: left; }
.notes-directory .nd-lookup-trigger span { overflow: hidden; text-overflow: ellipsis; }
.notes-directory .nd-lookup-trigger i { font-size: 10px; }
.notes-directory .nd-lookup-trigger[aria-expanded="true"] { border-color: #6074ff; }
.nd-lookup-menu { position: fixed; z-index: 2147483600; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; padding: 10px; border: 1px solid #dbe2ef; border-radius: 12px; background: #fff; color: #273448; box-shadow: 0 14px 40px #26334d24; }
.nd-lookup-menu[hidden] { display: none !important; }
.nd-lookup-menu input { box-sizing: border-box; width: 100%; min-height: 40px; flex-shrink: 0; margin: 0; padding: 9px 12px; font: inherit; font-size: 13px; background: #f6f8fc; border: 1px solid #dbe2ef; border-radius: 8px; color: #273448; }
.nd-lookup-menu .nd-lookup-list { list-style: none; overflow-y: auto; min-height: 0; padding: 0; margin: 0; }
.nd-lookup-menu .nd-lookup-option { display: block; width: 100%; min-height: 38px; padding: 9px 10px; border: 0; border-radius: 6px; background: #fff; color: #273448; font: inherit; font-size: 13px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.nd-lookup-menu .nd-lookup-option:hover, .nd-lookup-menu .nd-lookup-option.is-active { background: #eef1ff; color: #4055c7; }
.nd-lookup-menu .nd-lookup-option[aria-selected="true"] { background: #6074ff; color: #fff; }
.nd-lookup-menu .nd-lookup-empty { padding: 12px; color: #6c7a90; font-size: 12px; }
.nd-lookup-menu input:focus-visible { outline: 2px solid #93a3ff; outline-offset: 1px; }
.notes-directory .nd-results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.notes-directory .nd-summary { display: flex; flex-direction: column; gap: 4px; }
.notes-directory .nd-summary strong { font-size: 17px; }
.notes-directory .nd-summary span { font-size: 11px; color: var(--nd-muted); }
.notes-directory .nd-sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nd-muted); }
.notes-directory .nd-list { display: grid; gap: 12px; }
.notes-directory .nd-card { border: 1px solid var(--nd-line); border-left: 4px solid #6074ff; border-radius: 14px; background: #fff; padding: 18px 20px; box-shadow: 0 3px 12px #24324b04; min-width: 0; }
.notes-directory .nd-card-planogram { border-left-color: #25a45a; }
.notes-directory .nd-important { background: linear-gradient(100deg,#fff8f5,#fff 70%); }
.notes-directory .nd-card-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.notes-directory .nd-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notes-directory .nd-machine-icon { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: #eef1ff; color: #5368e0; font-size: 18px; }
.notes-directory .nd-card-planogram .nd-machine-icon { color: #278457; background: #e9f5ef; }
.notes-directory .nd-identity h3 { margin: 0 0 4px; font-size: 15px; font-weight: 750; overflow-wrap: anywhere; }
.notes-directory .nd-identity p { font-size: 12px; color: var(--nd-muted); overflow-wrap: anywhere; }
.notes-directory .nd-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.notes-directory .nd-badge { border-radius: 6px; background: #eff2f7; color: #57647b; font-size: 10px; font-weight: 700; padding: 4px 8px; white-space: nowrap; }
.notes-directory .nd-priority { background: #ffeadf; color: #ad4826; }
.notes-directory .nd-note-text, .notes-directory .nd-original p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.notes-directory .nd-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid #eff2f6; padding-top: 12px; margin-top: 16px; color: var(--nd-muted); font-size: 11px; }
.notes-directory .nd-original { margin-top: 12px; }
.notes-directory .nd-original summary { color: #5065dc; cursor: pointer; font-size: 12px; font-weight: 600; }
.notes-directory .nd-original p { color: var(--nd-muted); padding: 12px; margin-top: 8px; background: #f6f8fb; border-radius: 8px; }
.notes-directory .nd-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; color: var(--nd-muted); font-size: 12px; }
.notes-directory .nd-pagination > div { display: flex; align-items: center; gap: 8px; }
.notes-directory .nd-empty { padding: 60px 20px; text-align: center; border: 1px dashed #cbd5e4; border-radius: 14px; background: #ffffffa0; }
.notes-directory .nd-empty > i { font-size: 32px; color: #7889b0; }
.notes-directory .nd-empty h3 { margin: 14px 0 6px; font-size: 19px; }
.notes-directory .nd-empty p { color: var(--nd-muted); margin-bottom: 18px; font-size: 13px; }
.notes-directory .nd-status { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #edf1f9; border-radius: 12px; }
.notes-directory .nd-error { background: #fff0ed; color: #a63325; }
.notes-directory [hidden] { display: none !important; }
@container (max-width: 800px) {
  .notes-directory { padding: 18px; }
}
@container (max-width: 480px) {
  .notes-directory { padding: 12px; }
  .notes-directory .nd-intro { align-items: start; gap: 8px; }
  .notes-directory h2 { font-size: 25px; }
  .notes-directory .nd-intro > .nd-button { font-size: 0; padding: 10px; }
  .notes-directory .nd-intro > .nd-button i { font-size: 16px; }
  .notes-directory .nd-results-toolbar { align-items: stretch; flex-direction: column; }
  .notes-directory .nd-sort { justify-content: space-between; }
  .notes-directory .nd-card { padding: 14px; }
  .notes-directory .nd-card-header { flex-direction: column; }
  .notes-directory .nd-badges { justify-content: flex-start; }
  .notes-directory .nd-pagination > div { flex-wrap: wrap; }
}
