.notes-module .control-head{margin-bottom:20px}.notes-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.notes-kpis button{background:#fff;border:1px solid #d5e3dc;border-radius:12px;padding:16px;color:#14553f;text-align:left}.notes-kpis strong{display:block;font-size:26px}.notes-kpis span{font-size:13px}.notes-quick{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.notes-quick .active{background:#e4f4ed}.notes-filters{margin-bottom:24px}.notes-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px}.note-card{background:#fff;border:1px solid #d5e3dc;border-radius:12px;padding:18px;overflow-wrap:anywhere}.note-card p{margin:10px 0}.note-title{font:inherit;font-size:18px;font-weight:700;color:#14553f;text-align:left;padding:12px 0;background:none;border:0;cursor:pointer}.note-badge{background:#fff3d4;color:#775a12;border-radius:8px;padding:4px 8px;font-size:11px;font-weight:700}.note-badge.done{background:#e4f4ed;color:#0d6246}.note-priority{font-size:11px;color:#64736b;margin:8px}.note-card progress{width:100%;accent-color:#16825d}.note-card footer{font-size:12px;color:#64736b;margin-top:14px}.notes-pagination{display:flex;align-items:center;gap:14px;justify-content:center;margin-top:20px}.notes-panel{margin:0 0 0 auto;width:min(760px,100%);height:100dvh;max-height:100dvh;max-width:100%;border:0;border-radius:0;padding:24px;overflow:auto;background:#fff;color:#18362a}.notes-panel fieldset{border:0;padding:0;min-width:0}.notes-panel textarea,.notes-panel input,.notes-panel select{max-width:100%}.note-action{display:grid;grid-template-columns:1fr 2fr 1fr;gap:10px;margin:12px 0;padding:12px;background:#f4f8f6;border-radius:10px}.note-action small{grid-column:1/-1}.notes-discussion{margin-top:24px}.notes-discussion article{border-bottom:1px solid #d5e3dc;padding:12px 0}.notes-discussion small{display:block;color:#68756e}.notes-discussion p{white-space:pre-wrap;overflow-wrap:anywhere}.notes-discussion pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.notes-panel #notes-error{color:#982f2b}.notes-panel [hidden]{display:none}@media(max-width:700px){.notes-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.notes-module .control-head{flex-wrap:wrap}.notes-filters,.notes-panel .form-grid{grid-template-columns:1fr}.note-action{grid-template-columns:1fr}.notes-panel{padding:16px}.notes-pagination{flex-wrap:wrap}}
/* Layout follows the approved Notes mockup; every rule stays scoped to Notes. */
.notes-module{color:#19392f}.notes-module .control-head{align-items:center;margin-bottom:18px}.notes-module .control-head h3{font-size:28px;margin:3px 0}.notes-module .control-head p{margin:5px 0}.notes-online{display:inline-block;width:6px;height:6px;background:#139265;border-radius:50%;margin-right:7px}.notes-icon{width:18px;height:18px;flex:0 0 auto;display:inline-block;vertical-align:middle}.notes-kpis{gap:10px}.notes-kpis button{display:flex;align-items:center;gap:14px;padding:16px;text-align:left;box-shadow:none}.notes-kpis button>i{width:42px;height:42px;display:grid;place-items:center;background:#edf0f4;border-radius:10px;color:#425769}.notes-kpis button>i .notes-icon{width:24px;height:24px}.notes-kpis strong{font-size:24px;line-height:1.2}.notes-kpis span{display:block;margin-top:3px;color:#34443f}.notes-kpis .notes-kpi-clock>i{background:#fff4d4;color:#966300}.notes-kpis .notes-kpi-waiting>i{background:#fff0e2;color:#ab5e1d}.notes-kpis .notes-kpi-done>i,.notes-kpis .notes-kpi-today>i{background:#e4f4eb;color:#117347}.notes-filter-box{margin-top:16px;background:#fff;border:1px solid #dce7e2;border-radius:12px;padding:18px}.notes-filter-title{display:flex;align-items:center;gap:9px;margin-bottom:14px;font-size:14px}.notes-filters{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:0}.notes-filters label{font-size:12px;min-width:0;color:#283c34}.notes-filters input,.notes-filters select{font-size:12px;width:100%;min-width:0;padding:9px;border:1px solid #d9e4df;border-radius:6px;background:#fff}.notes-filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.notes-filter-actions button{font-size:12px;padding:7px 11px}.notes-quick{gap:8px;margin:16px 0}.notes-quick button{border:0;background:#edf3f0;border-radius:7px;padding:10px 14px;font-size:12px;color:#394f45}.notes-quick button.active{background:#e0eee6;color:#126543;font-weight:700}.notes-cards{display:flex;flex-direction:column;gap:9px}.note-card{display:grid;grid-template-columns:minmax(0,1fr) 80px 155px 170px 24px;align-items:center;gap:14px;border-radius:9px;border-left:6px solid var(--note-color,#677681);padding:14px 16px;box-shadow:none;min-width:0}.note-content{min-width:0}.note-title{font-size:14px;line-height:1.3;color:#152b24;padding:0;margin:0;display:block}.note-excerpt{font-size:12px;color:#66746e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.note-card .note-excerpt{margin:4px 0 8px}.note-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:11px;color:#5b6d63}.note-context>span{display:inline-flex;align-items:center;gap:6px}.note-context .notes-icon{width:15px;height:15px}.note-client{display:inline-block;background:var(--note-tint,#eef1f3);color:var(--note-color,#677681);padding:4px 8px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.note-priority{display:inline-block;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:700;margin:0}.note-priority.high{color:#a92e37;background:#ffe8e9}.note-priority.medium{color:#8a5b09;background:#fff2cc}.note-priority.low{color:#216544;background:#e4f2e9}.note-badge{display:inline-block;padding:5px 9px;font-size:10px;border-radius:7px}.note-badge.new{color:#526174;background:#edf0f6}.note-badge.progress{color:#25649b;background:#e8f2ff}.note-badge.waiting{color:#9b521e;background:#fff0e4}.note-badge.done{color:#176440;background:#e4f3e9}.note-progress-column p{font-size:10px;margin:6px 0 3px;color:#485b50}.note-progress-column progress{display:block;height:6px;appearance:none;border:0;border-radius:10px;background:#dce9e5;overflow:hidden}.note-progress-column progress::-webkit-progress-bar{background:#dce9e5}.note-progress-column progress::-webkit-progress-value{background:#199562;border-radius:10px}.note-progress-column progress::-moz-progress-bar{background:#199562}.note-card footer{display:flex;gap:8px;font-size:11px;line-height:1.5;margin:0;align-items:flex-start}.note-card footer small{display:block;font-size:10px}.note-menu{border:0;background:transparent;color:#587064;padding:4px;cursor:pointer}.notes-detail-heading{display:flex;gap:10px;align-items:center;margin-bottom:14px}.notes-detail-nav{display:flex;gap:5px;border-bottom:1px solid #dae6df;margin-bottom:16px;position:sticky;top:-16px;z-index:2;background:#fff;padding:10px 0}.notes-detail-nav button{border:0;border-radius:0;background:#fff;color:#345143;font-size:12px;padding:9px}.notes-detail-nav button:hover,.notes-detail-nav button:focus-visible{color:#126543;background:#eaf4ef;border-bottom:2px solid #12845a}.notes-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.notes-detail-meta>div{padding:10px;background:#f1f6f3;border-radius:7px}.notes-detail-meta small,.notes-detail-meta strong{display:block;font-size:11px}.notes-detail-meta small{color:#617268;margin-bottom:4px}.notes-panel .modal-head h3{font-size:19px}.notes-panel .form-grid{grid-template-columns:1fr 1fr}.notes-panel .note-action{grid-template-columns:minmax(90px,.8fr) minmax(0,1.7fr);padding:10px;gap:8px}.notes-panel .note-action select{grid-column:2}.notes-panel .note-action.is-done input[data-text]{text-decoration:line-through;color:#718078}.notes-panel .notes-discussion article{padding:14px 12px;border-radius:8px;background:#f7faf8;margin:8px 0}.notes-panel .notes-discussion h4{margin-top:20px}.notes-panel [id]{scroll-margin-top:70px}.notes-panel{position:fixed;top:80px;right:20px;width:440px;height:calc(100dvh - 100px);max-height:calc(100dvh - 100px);margin:0;padding:20px;border:1px solid #dae6df;border-radius:12px;box-shadow:0 8px 32px #143d2714}.notes-panel textarea,.notes-panel input:not([type=checkbox]),.notes-panel select{width:100%;min-width:0;font-size:12px}.notes-panel input[type=checkbox]{width:auto;accent-color:#12845a}.notes-panel .form-grid label{font-size:12px}.notes-panel .note-action small{font-size:10px}.notes-panel button{cursor:pointer}

@media(max-width:1100px){.notes-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.note-card{grid-template-columns:minmax(0,1fr) 75px 145px 24px}.note-card footer{grid-column:1/4}.note-menu{grid-column:4;grid-row:1}.notes-kpis button{padding:12px;gap:8px}.notes-kpis button>i{width:30px;height:35px}.notes-kpis span{font-size:11px}}
@media(max-width:700px){.notes-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.notes-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.note-card{grid-template-columns:1fr auto;gap:10px;padding:14px}.note-content{grid-column:1/-1}.note-priority-column{grid-column:1}.note-progress-column{grid-column:1/-1}.note-card footer{grid-column:1}.note-menu{grid-column:2;grid-row:2}.notes-panel{top:0;right:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:16px}.notes-detail-nav{overflow:auto}.notes-panel .form-grid{grid-template-columns:1fr}.notes-filter-actions{justify-content:flex-start;flex-wrap:wrap}.notes-module .control-head{align-items:flex-start}.notes-detail-meta{grid-template-columns:1fr 1fr}}
@media(max-width:400px){.notes-filters{grid-template-columns:1fr}.notes-panel .note-action{grid-template-columns:1fr}.notes-panel .note-action select{grid-column:auto}}
/* Post-it mural: only the existing list changes presentation. */
.notes-module .notes-cards.notes-mural{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),320px));gap:24px 20px;align-items:stretch;padding:14px 2px 8px;justify-content:start}
.notes-module .notes-cards.notes-mural .note-card.note-postit{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr auto;gap:14px;min-height:300px;min-width:0;padding:30px 22px 18px;border:1px solid #0000000a;border-top:3px solid var(--note-color);border-left:0;border-radius:3px 3px 8px 3px;background:var(--note-tint,#f0f3f1);background:color-mix(in srgb,var(--note-color) 14%,white);box-shadow:2px 5px 10px #183d2921;cursor:pointer;overflow-wrap:anywhere}
.notes-module .notes-cards.notes-mural .note-card.note-postit::before{content:"";position:absolute;top:-11px;left:calc(50% - 22px);width:44px;height:24px;background:color-mix(in srgb,var(--note-color) 35%,#ffffffb3);border:1px solid #ffffff70;box-shadow:0 1px 2px #0000000b;transform:rotate(-4deg);pointer-events:none}
.notes-module .notes-cards.notes-mural .note-card.note-postit::after{content:"";position:absolute;right:0;bottom:0;width:17px;height:17px;background:linear-gradient(135deg,#ffffffb8 50%,#0000000a 51%);border-radius:0 0 8px 0;pointer-events:none}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-content{grid-column:1/-1;grid-row:1}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-title{font-size:16px;line-height:1.4;padding-right:16px;text-align:left;overflow-wrap:anywhere}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-excerpt{font-size:13px;line-height:1.5;-webkit-line-clamp:4;margin:8px 0 14px;color:#43594e}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-context{align-items:flex-start;flex-direction:column;gap:8px;font-size:12px}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-client{background:#ffffffaa;border:1px solid #ffffff80}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-priority-column{grid-row:2;grid-column:2;align-self:start}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-progress-column{grid-row:2/4;grid-column:1;align-self:start;min-width:0}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-progress-column p{margin-top:12px;line-height:1.5;font-size:11px}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-progress-column progress{margin-top:5px}
.notes-module .notes-cards.notes-mural .note-card.note-postit footer{grid-row:4;grid-column:1/-1;align-self:end;border-top:1px solid #193d2920;padding-top:12px;color:#455c50;font-size:11px}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-menu{position:absolute;top:9px;right:8px;grid-column:auto;grid-row:auto;padding:5px;z-index:1}
.notes-module .notes-cards.notes-mural .note-card.note-postit:focus-within{outline:2px solid var(--note-color);outline-offset:4px}
.notes-module .notes-cards.notes-mural .note-card.note-postit .note-title:focus-visible,.notes-module .notes-cards.notes-mural .note-card.note-postit .note-menu:focus-visible{outline:2px solid var(--note-color);outline-offset:3px;border-radius:4px}
.notes-module .notes-cards.notes-mural>.empty{grid-column:1/-1;background:#fff}
@media(max-width:700px){.notes-module .notes-cards.notes-mural{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:22px 16px}.notes-module .notes-cards.notes-mural .note-card.note-postit{min-height:280px}}
@media(max-width:560px){.notes-module .notes-cards.notes-mural{grid-template-columns:minmax(0,1fr)}.notes-module .notes-cards.notes-mural .note-card.note-postit{padding:28px 18px 16px;min-height:260px}}

.notes-panel .note-history-change{padding:10px 0;border-bottom:1px solid #dbe8e2;overflow-wrap:anywhere}.notes-panel .note-history-change:last-child{border-bottom:0}.notes-panel .note-history-change p{white-space:pre-wrap;margin:4px 0 8px}.notes-panel .note-history-change small{display:block;margin-top:6px;color:#62756d}

.notes-module .note-badge.ready{color:#506b12;background:#eff5d9}
/* Only the note detail window and its Description editor are extended. */
.notes-panel{width:min(760px,calc(100vw - 40px));box-sizing:border-box}
@media(max-width:700px){.notes-panel{width:100%;max-width:100vw}}
.notes-panel .notes-description-editor{min-width:0}
.notes-panel .notes-description-editor>label{display:block;font-size:12px;margin-bottom:6px}
.notes-panel .notes-description-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.notes-panel .notes-description-toolbar button{font:inherit;font-size:12px;color:inherit;background:#f4f8f6;border:1px solid #d5e3dc;border-radius:6px;padding:6px 9px}
.notes-panel .notes-description-toolbar button[aria-pressed=true]{background:#e4f4ed;border-color:#12845a}
.notes-panel .notes-description-toolbar button:disabled{opacity:.65;cursor:default}
.notes-panel .notes-description-lines{min-height:88px;padding:8px;border:1px solid #d5e3dc;border-radius:6px;background:#fff;max-width:100%}
.notes-panel .notes-description-line{display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px;align-items:start}
.notes-panel .notes-description-circle{box-sizing:border-box;width:24px;height:24px;border:1.5px solid #617268;border-radius:50%;background:#fff;color:#14553f;padding:0;display:grid;place-items:center;margin:3px 4px;position:relative;touch-action:manipulation;font-size:16px}
.notes-panel .notes-description-circle::after{content:none}
.notes-panel .notes-description-circle[aria-pressed=true]{background:#19392f;border-color:#19392f;color:#fff}
.notes-panel .notes-description-marker{display:block;line-height:28px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.notes-panel textarea.notes-description-text{display:block;box-sizing:border-box;border:0;border-radius:0;padding:5px 4px;min-height:28px;height:28px;resize:none;overflow:hidden;font:inherit;font-size:12px;line-height:18px;background:transparent;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.notes-panel .notes-description-line.is-done textarea{text-decoration:line-through;text-decoration-thickness:1px;color:#617268}
.notes-panel .notes-description-toolbar button:focus-visible,.notes-panel .notes-description-circle:focus-visible,.notes-panel .notes-description-text:focus-visible{outline:2px solid #12845a;outline-offset:2px}
@media(pointer:coarse){.notes-panel .notes-description-line{min-height:44px}.notes-panel .notes-description-circle{margin-top:6px;margin-bottom:6px}.notes-panel .notes-description-circle{width:44px;height:44px;margin:0}.notes-panel .notes-description-line{grid-template-columns:44px minmax(0,1fr)}}

/* Note window: normal document flow, one scroll owner and explicit centering.
   Scoped overrides neutralize shared dialog/mobile form height rules. */
dialog.notes-panel{position:fixed;inset:24px auto auto 50%!important;transform:translateX(-50%);margin:0!important;width:min(900px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;min-width:0;height:auto;max-height:calc(100dvh - 48px)!important;padding:24px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
dialog.notes-panel form{padding:0;min-width:0;height:auto;max-height:none!important;overflow:visible}
.notes-panel .notes-detail-nav{position:static;top:auto;z-index:auto;flex-wrap:wrap;overflow:visible}
.notes-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;margin:20px 0 0}
.notes-panel .form-grid>*{min-width:0}
.notes-panel .notes-section{display:block;position:static;clear:both;margin:24px 0 0;min-width:0}
.notes-panel .notes-section h4{margin:0 0 12px}
.notes-panel #notes-comment-form{display:grid;gap:12px;margin-top:16px}
.notes-panel #notes-comment-form label{display:grid;gap:8px;min-width:0}
.notes-panel #notes-comment-form textarea{box-sizing:border-box;border:1px solid #d5e3dc;border-radius:6px;padding:12px;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
.notes-panel #notes-comment-form button{justify-self:start}
.notes-panel .notes-main-commands{display:flex;position:static;flex-wrap:wrap;gap:10px;margin-top:20px}
.notes-panel .notes-main-commands button{max-width:100%;white-space:normal}
.notes-panel .notes-description-editor,.notes-panel .notes-description-lines{height:auto;max-height:none;overflow:visible;min-width:0}
.notes-panel .notes-description-line{min-height:44px;gap:8px;margin:4px 0;align-items:start}
.notes-panel textarea.notes-description-text{min-height:44px;max-height:none;resize:none;overflow:hidden;line-height:20px}
.notes-panel #notes-description-plain{min-height:120px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.notes-panel [id]{scroll-margin-top:16px}
@media(max-width:767px){dialog.notes-panel{inset:12px auto auto 50%!important;width:calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;height:auto;padding:16px;border-radius:12px}.notes-panel .form-grid{grid-template-columns:minmax(0,1fr)!important}.notes-panel .note-action{grid-template-columns:minmax(0,1fr)}.notes-panel .note-action select{grid-column:auto}.notes-panel .notes-detail-meta{grid-template-columns:minmax(0,1fr)}.notes-panel .notes-main-commands button{flex:1 1 140px}}

/* The native modal inherits the same global dialog backdrop as DTRP.
   Only the Description editing surface owns its green focus indicator. */
.notes-panel .notes-description-editor:has(textarea:focus){outline:2px solid #12845a;outline-offset:2px;border-radius:6px}
.notes-panel .notes-description-lines textarea.notes-description-text:focus,
.notes-panel .notes-description-lines textarea.notes-description-text:focus-visible{outline:none;box-shadow:none;border:0}
.notes-panel #notes-description-plain:focus,
.notes-panel #notes-description-plain:focus-visible{outline:none;box-shadow:none;border-color:#d5e3dc}

/* Navigation back to the Notes summary, without changing the mural layout. */
.notes-module .notes-return{display:flex;justify-content:center;margin-top:16px}
.notes-module .notes-return button{max-width:100%;white-space:normal}

/* Structured Post-it description: same stored checklist as the note editor. */
.notes-module .note-description-list{display:grid;gap:10px;margin:10px 0;text-align:left}
.notes-module .note-description-item{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:start;min-width:0}
.notes-module .note-description-circle{box-sizing:border-box;width:18px;height:18px;min-width:18px;padding:0;margin:2px 0 0;border:1px solid #c8ceca;border-radius:50%;background:#fff;color:#fff;font:700 12px/1 sans-serif;display:grid;place-items:center;box-shadow:none;cursor:pointer}
.notes-module .note-description-circle::after{content:none}
.notes-module .note-description-circle[aria-pressed=true]{background:#19392f;border-color:#19392f}
.notes-module .note-description-circle:disabled{opacity:1;cursor:default}
.notes-module .note-description-circle[aria-busy=true]{opacity:.6;cursor:wait}
.notes-module .note-description-circle:focus-visible{outline:2px solid #12845a;outline-offset:3px}
.notes-module .note-description-marker{text-align:center;line-height:1.6}
.notes-module .note-description-item-text{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.notes-module .note-description-item.is-done .note-description-item-text{color:#617268;text-decoration:line-through;text-decoration-thickness:1px}
.notes-module .note-description-plain{white-space:pre-wrap}
.notes-module .note-description-count{font-size:11px;color:#617268;text-align:right;margin:10px 0}
@media(pointer:coarse){.notes-module .note-description-item{grid-template-columns:44px minmax(0,1fr)}.notes-module .note-description-circle{width:44px;height:44px;min-width:44px;margin:0;border:0;background:radial-gradient(circle,#fff 8px,#c8ceca 8px,#c8ceca 9px,transparent 9px);color:#fff}.notes-module .note-description-circle[aria-pressed=true]{background:radial-gradient(circle,#19392f 9px,transparent 9px);border:0}.notes-module .note-description-item-text{padding-top:10px}}
