.inventoryLedger{min-width:0;width:100%}
.inventoryNotes{position:relative;min-width:0;border:1px solid #bba16b70;border-radius:7px;padding:8px 10px;background:linear-gradient(115deg,#a98a4933,transparent 55%),#171c19;box-shadow:inset 0 1px 0 #e6d5a21a,0 2px 7px #0003}
.inventoryNotesHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.inventoryNotesHead label{font:700 15px/1.2 Georgia,serif;color:#eee1bd;cursor:text}
.inventoryNotesHead button{min-width:28px;min-height:28px;padding:2px;border:0;background:transparent;box-shadow:none;color:#c3b18b;font:20px/1 Arial,sans-serif}
.inventoryNotes textarea{display:block;width:100%;min-height:0;height:88px;resize:none;box-sizing:border-box;padding:8px 9px;border:1px solid #93846170;border-radius:4px;outline-offset:2px;box-shadow:inset 0 1px 5px #321c1524;background:repeating-linear-gradient(0deg,#74552612 0 1px,transparent 1px 21px),linear-gradient(105deg,#dccb9f,#cbbb91);color:#332b1d;font:13px/21px system-ui,-apple-system,sans-serif;overflow-wrap:anywhere;scrollbar-width:thin}
.inventoryNotes textarea::placeholder{color:#665b45;opacity:1}
.inventoryNotes textarea:focus-visible{outline:2px solid #dbbd78;border-color:#edd898}
.inventoryNotes textarea[readonly]{cursor:text}
.inventoryNotesFoot{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:20px;margin-top:3px;color:#adbdab;font:10px/1.3 system-ui,sans-serif}
.inventoryNotesFoot button{font-size:11px;min-height:30px;padding:3px 8px}
.inventoryNotes[data-notes-state="error"] [data-notes-status],.inventoryNotes[data-notes-state="conflict"] [data-notes-status]{color:#efba93}
.inventoryNotes [data-notes-warning]{margin:4px 0 0;color:#efc99e;font:11px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.inventoryNotes [hidden]{display:none!important}
.inventoryNotes.notesExpanded textarea{height:220px}
.inventoryNotesConflict{margin-top:8px;padding-top:8px;border-top:1px solid #bba16b50;font:11px/1.4 system-ui,sans-serif;color:#e9d4ae}
.inventoryNotesConflict pre{max-height:100px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 system-ui,sans-serif;margin:6px 0}
.inventoryNotesConflict>div{display:flex;flex-wrap:wrap;gap:5px}
.inventoryNotesConflict button{flex:1 1 130px;min-height:32px;padding:5px;font-size:11px}
@media(min-width:1200px){
 .inventoryLedger{display:flex;flex-direction:column;gap:10px;grid-column:2;grid-row:1/3;height:calc(var(--inventory-workspace-height,580px) - 58px);min-height:0;padding-left:9px;border-left:1px solid #bca27336}
 .inventoryLedger .inventoryIndex{flex:1;min-height:0;height:auto;padding-left:0;border-left:0}
 .inventoryLedger .inventoryIndexRows{flex:1}
 .inventoryLedger .inventoryNotes{flex:0 0 auto;padding:6px 8px}
 .inventoryLedger .inventoryNotesHead label{font-size:13px}
 .inventoryLedger .inventoryNotes textarea{height:72px;font-size:12px}
 .inventoryLedger .inventoryNotes.notesExpanded textarea{height:min(220px,calc(var(--inventory-workspace-height,580px) - 230px))}
 .inventoryLedger:has(.inventoryNotesConflict:not([hidden])) .inventoryIndex{display:none}
 .inventoryLedger:has(.inventoryNotesConflict:not([hidden])) .inventoryNotes{max-height:100%;overflow:auto}
}
@media(max-width:760px){
 .inventoryLedger{margin-top:4px}
 .inventoryNotes{padding:8px 10px}
 .inventoryNotesHead label{font-size:16px}
 .inventoryNotesHead button{min-width:36px;min-height:32px}
 .inventoryNotes textarea{font-size:16px;line-height:24px;background:repeating-linear-gradient(0deg,#74552612 0 1px,transparent 1px 24px),linear-gradient(105deg,#dccb9f,#cbbb91)}
 .inventoryNotesFoot{font-size:11px}
 .inventoryNotesFoot button,.inventoryNotesConflict button{min-height:40px;font-size:12px}
}
/* Keep the notebook's lines and list markers intact in its compact paper preview. */
.inventoryLayout .inventoryNotesExcerpt{white-space:pre-line;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.35;max-height:2.7em;overflow:hidden;text-overflow:clip}
@media(max-width:760px){
 .inventoryLayout #inventoryNotesText{font-size:16px;line-height:24px}
}
