#notes .notes-actions,.notes-fields,.notes-editor-footer{display:flex;gap:12px;flex-wrap:wrap;align-items:center}#notes .notes-fields{margin:16px 0;align-items:end}#notes .notes-fields label{flex:1;min-width:180px}#notes input,#notes select,#notes textarea{width:100%;box-sizing:border-box}#notes textarea{resize:vertical;min-height:150px}#notes .notes-editor-footer{justify-content:space-between;margin-top:10px}.notes-list{display:grid;gap:12px;margin-top:20px}.note-record{padding:18px;border:1px solid #cbd5e1;border-radius:10px;background:white}.note-record:has(input:checked){border:2px solid #1f6fd1;padding:17px}.note-record label{display:flex;gap:10px;align-items:center;cursor:pointer}.note-record input[type=radio]{width:auto!important}.note-record p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}.note-category{font-weight:600;color:#174f91}@media(max-width:640px){#notes .head{align-items:flex-start;flex-direction:column}#notes .notes-actions{gap:8px}#notes .notes-actions button{flex:1}#notes .notes-fields label{min-width:100%}}

.note-record{cursor:pointer}.note-record small{display:block;margin-top:10px;color:#475569}.note-updates{margin-top:16px;border-left:3px solid #cbd5e1;padding-left:16px}.note-updates:empty{display:none}.note-update{padding:12px 0;border-top:1px solid #e2e8f0}.note-update h4{font-size:14px;margin:0;color:#174f91}.note-record #noteEditor{margin-top:18px;cursor:default}#noteSelection{color:#174f91;font-weight:600}#notes .notes-fields{align-items:start}

#notes .notes-filters label{flex:0 0 auto;min-width:0}#notes .notes-filters select{width:auto;min-width:0;max-width:100%;display:block}

#notes .head{align-items:flex-start}#notes .notes-control-area{display:grid;grid-template-columns:36% 64%;align-items:start;gap:0}#notes .notes-control-details{min-width:0}#notes #noteSelection{margin-top:10px}#notes .notes-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}#notes .notes-action-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}#notes .notes-actions button{flex:none}#notes .notes-filters{margin-bottom:0}@media(max-width:640px){#notes .notes-control-area{display:flex;flex-direction:column;gap:16px}#notes .notes-actions{width:100%;gap:8px}#notes .notes-action-row{gap:8px;width:100%}#notes .notes-action-row button{padding:10px 6px;white-space:normal}}

#notes .notes-actions button{border:0;border-radius:9px;padding:10px 12px;font-weight:800;cursor:pointer;background:var(--blue);color:#fff}

.note-photo-editor{margin:16px 0;padding:14px;border:1px solid #d8e0e8;border-radius:10px;background:#f8fafc}.note-photo-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.note-photo-editor-head button{border:0;border-radius:8px;padding:9px 13px;background:#1f6fd1;color:white;font-weight:700;cursor:pointer}.note-photo-help,#notePhotoStatus{font-size:12px;color:#607086;line-height:1.45}.note-photo-gallery{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.note-photo-thumb{display:block;position:relative;width:118px;height:90px;padding:0;border:1px solid #ccd7e5;border-radius:8px;background:#edf2f7;overflow:hidden;cursor:zoom-in;flex:0 0 auto}.note-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}.note-photo-thumb:focus-visible,.note-photo-close:focus-visible,.note-photo-remove:focus-visible{outline:3px solid #438bea;outline-offset:3px}.note-photo-draft-item{position:relative}.note-photo-remove{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:1px solid #fff;border-radius:50%;background:#172b46e6;color:#fff;font-size:22px;cursor:pointer}.note-photo-remove:disabled{opacity:.5;cursor:default}.note-photo-viewer{padding:0;border:0;background:transparent;max-width:94vw;max-height:94dvh;overflow:visible;box-shadow:none}.note-photo-viewer::backdrop{background:#06101ee8}.note-photo-viewer-frame{position:relative;width:fit-content;max-width:94vw;margin:auto}.note-photo-viewer-frame>img{display:block;max-width:94vw;max-height:90dvh;width:auto;height:auto;object-fit:contain;border-radius:6px;background:#fff}.note-photo-close{position:absolute;top:10px;right:10px;z-index:1;display:grid;place-items:center;width:42px;height:42px;padding:0;border:2px solid #fff;border-radius:50%;background:#0c1b30e6;color:#fff;font-size:32px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #0005}@media(max-width:640px){.note-photo-thumb{width:96px;height:76px}.note-photo-gallery{gap:8px}.note-photo-close{width:44px;height:44px;top:6px;right:6px}.note-photo-remove{width:30px;height:30px}.note-photo-viewer-frame>img{max-height:86dvh}}
#notes .notes-search{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0;padding:16px;border:1px solid #d8e0e8;border-radius:10px;background:#f8fafc}
#notes .notes-search label{display:grid;gap:5px;flex:1 1 160px;min-width:0}
#notes .notes-search label:first-child{flex:2 1 240px}
#notes .notes-search input{width:100%;box-sizing:border-box;min-height:42px}
#notes .notes-search button{min-height:42px;cursor:pointer}
#notesSearchStatus{flex-basis:100%;margin:0;color:#475569}
