.note-actions{position:relative;display:inline-block;margin:6px 0}.note-actions>summary{cursor:pointer;list-style:none;padding:4px 12px;font-size:20px}.note-actions>div{position:absolute;right:0;z-index:5;min-width:170px;background:var(--surface);border:1px solid var(--divider);border-radius:6px;box-shadow:0 4px 16px #0003;padding:5px;display:grid}.note-actions button{text-align:left;justify-content:flex-start}.note-version-history article{padding:16px 0;border-bottom:1px solid var(--divider)}.note-version-history small{display:block;color:var(--secondary)}.note-version-history p{white-space:pre-wrap}.attachment-details-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px}.attachment-details{padding:20px;border-left:1px solid var(--divider)}.attachment-details label{display:grid;gap:6px;margin-bottom:20px}.attachment-details textarea{min-height:100px}.attachment-details input,.attachment-details textarea{width:100%}.deleted-notes{margin-top:16px}.customer-lead-list article{padding:16px 0;border-bottom:1px solid var(--divider)}
dialog.list-filter-drawer[open]{position:fixed;inset:0 0 0 auto;margin:0;width:430px;max-width:95vw;height:100dvh;max-height:100dvh;border-radius:0;display:flex;flex-direction:column}.list-filter-drawer #modalBody{overflow:auto;min-height:0;padding:20px}.list-filter-drawer .dialog-head{flex-shrink:0}.list-filter-drawer details{border-bottom:1px solid var(--divider);padding:18px 0}.list-filter-drawer summary{font-size:15px;font-weight:600;cursor:pointer;margin-bottom:18px}.list-filter-drawer fieldset{padding:12px;margin:12px 0;max-height:210px;overflow:auto}.list-filter-drawer .filter-check{display:flex;flex-direction:row;gap:10px;align-items:center;margin:9px 0}.filter-check input{width:18px;height:18px}.drawer-footer{display:flex;gap:10px;flex-wrap:wrap;position:sticky;bottom:-20px;background:var(--surface);padding:16px 0}.column-choice{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid var(--divider)}.column-choice>label:first-child{flex:1;display:flex;align-items:center;gap:9px}.column-choice label{margin:0}.column-choice input[type=number]{width:85px}.column-choice input[type=checkbox]{width:18px;height:18px}.column-resize{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none}.column-resize:focus-visible{outline:2px solid var(--accent)}.list-table-wrap th[data-column]{position:relative;min-width:70px}.list-table-wrap .pinned-column{position:sticky!important;background:var(--surface);z-index:2;border-right:1px solid var(--divider)}.list-table-wrap th.pinned-column{z-index:3;background:var(--soft)}
dialog.event-schedule-dialog[open]{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;padding:0;display:flex;flex-direction:column}.event-schedule-dialog .dialog-head{flex-shrink:0;min-height:68px;padding:12px 20px}.event-schedule-dialog .dialog-head h2{font-size:23px}.event-header-save{margin-left:12px}.event-schedule-dialog #modalBody{padding:0;flex:1;min-height:0;overflow:hidden}.event-schedule-body{display:grid;grid-template-columns:330px minmax(0,1fr);height:100%;gap:10px;padding:8px;background:var(--soft)}.event-schedule-body>form{overflow:auto;padding:18px 16px;background:var(--surface);border:1px solid var(--divider);border-radius:6px;min-width:0}.event-schedule-body .calendar-event-panels{display:block}.event-schedule-body h3{font-size:17px;margin:0 0 20px}.event-schedule-body .calendar-event-panels>section+section{border-top:1px solid var(--divider);padding-top:20px;margin-top:20px}.event-schedule-body fieldset label{display:flex;align-items:center;gap:9px;margin:8px 0}.event-schedule-body input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}.event-schedule-body label{font-size:13px}.event-schedule-body .muted{font-size:12px}.event-schedule-body .calendar-event-footer{display:flex;flex-wrap:wrap;gap:8px}.office-event-calendar{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--surface)}.event-calendar-tools{display:flex;align-items:center;gap:12px;padding:14px;flex-shrink:0;border-bottom:1px solid var(--divider)}.event-calendar-tools input{width:160px}.office-event-calendar .calendar-time-scroll{height:100%;max-height:none;flex:1}.event-draft-preview{background:var(--selected);border:2px dashed var(--accent);padding:7px;color:var(--ink);pointer-events:none;z-index:4}.event-draft-preview small{display:block}.event-schedule-body .event-repeat-fields{padding-left:10px}.event-schedule-body .form-grid{gap:12px}
.lead-source-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.lead-source-toolbar input{max-width:320px}.lead-source-list td{padding:14px;border-bottom:1px solid var(--divider)}.lead-source-actions{display:flex;gap:8px}.source-status{padding:4px 8px;border-radius:4px;background:var(--soft)}
@media(max-width:900px){.attachment-details-layout{grid-template-columns:1fr}.attachment-details{border-left:0;border-top:1px solid var(--divider)}.event-schedule-body{grid-template-columns:290px minmax(360px,1fr);overflow:auto}.column-choice{flex-wrap:wrap}}

.inline-note-composer{padding:16px 0;border-bottom:1px solid var(--divider);margin-bottom:16px}.inline-note-composer label{display:grid;gap:8px;margin-bottom:14px}.inline-note-composer textarea{width:100%;min-height:110px}.inline-note-composer .actions{justify-content:flex-end}

.note-actions:not([open])>div{display:none}.note-actions>div{left:0;right:auto}.record-notes{overflow:visible!important}

dialog.list-filter-drawer[open]{overflow:hidden}

.company-logo-editor{padding-bottom:22px;border-bottom:1px solid var(--divider);margin-bottom:24px}.company-logo-preview,.invoice-company-logo{max-width:200px;max-height:100px;object-fit:contain}.invoice-window-envelope .invoice-bill-to{min-height:135px;padding-top:40px}.invoice-window-envelope .invoice-paper-heading{padding-top:30px}

#modal.event-schedule-dialog[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.event-schedule-dialog .dialog-head h2{flex:1}.event-schedule-dialog .dialog-head [data-close]{order:3;margin-left:12px}.event-schedule-body .calendar-event-panels>section{padding:0;border:0}.event-schedule-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-schedule-body input,.event-schedule-body select,.event-schedule-body textarea{min-width:0;max-width:100%;box-sizing:border-box}.event-schedule-body .calendar-event-footer{position:static}.event-draft-preview{min-width:150px}
.inline-note-composer{padding:16px!important;box-sizing:border-box}.inline-note-composer select{width:100%;min-width:0}.inline-note-composer textarea{box-sizing:border-box}

.accounting-report .accounting-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.accounting-report .accounting-filters label{min-width:0!important}.accounting-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.accounting-actions button{width:auto}@media(max-width:1100px){.accounting-report .accounting-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
