.button_cursor{
	
	cursor: help;
	white-space:nowrap;
	background-position:center;
	background-repeat:no-repeat;

}

.radio_btn{
    /* to fix radio buttons in New note window on MAC OS */
    margin: 2px;
}

.grid_exit{
	background-image:url("/static/images/back.png") !important;
}

.grid_filter {
	background-image:url("/static/images/tb_clear_filter.png") !important;
}

.grid_reload {
	background-image:url("/static/images/tb_refresh.png") !important;
}

.grid_excel
{
	background-image:url("/static/images/ext/xls.png") !important;
}
.grid_toc_cell {
	padding:0 0 0 0;
}


.grid_toc_cell div span {
   padding:0 3px 0 3px;
   vertical-align:bottom;
}

.grid_toc_cell div span a{
	 color: #385F95;
	 text-decoration:none;
}

.grid_toc_cell div span a:hover{
	 color: #385F95;
	 text-decoration:underline;
}
.grid_toc_cell div img {
	vertical-align:bottom;
}

.form-group {
	position:relative;
	top:5px;
}


.x-tree-node img.group_fldr, .x-tree-node-collapsed img.group_fldr{
    background-image: url("/static/images/group_folder_close.png");
    background-repeat: no-repeat;
    background-position: 0 0;
}

.x-tree-node-expanded img.group_fldr {
    background-image: url("/static/images/group_folder_open.png");
    background-repeat: no-repeat;
    background-position: 0 0;
}

.x-tree-node img.group_node, .x-tree-node-collapsed img.group_node, .x-tree-node-expanded img.group_node{
    background-image: url("/static/images/groups.png");
    background-repeat: no-repeat;
    background-position: 0 0;
}

.x-tree-node img.user_node, .x-tree-node-collapsed img.user_node, .x-tree-node-expanded img.user_node{
    background-image: url("/static/images/users.png");
    background-repeat: no-repeat;
    background-position: 0 0;
}

.group_img{
	background-image: url("/static/images/groups.png") !important;
	background-repeat: no-repeat;
	background-position: 0 0;
}

.user_img{
	background-image: url("/static/images/users.png") !important;
	background-repeat: no-repeat;
	background-position: 0 0;
}

.user_remove{
    background-image: url("/static/images/users_deny16x16.gif") !important;
    background-repeat: no-repeat;
    background-position: 0 0;    
}

.noteedit_img{
    background-image: url("/static/images/tb_edit.png") !important;
    background-repeat: no-repeat;
    background-position: 0 0;   
}

.noteapprove_img{
    background-image: url("/static/images/finish.png") !important;
    background-repeat: no-repeat;
    background-position: 0 0;    
}

.notereject_img{
    background-image: url("/static/images/cmd_del.png") !important;
    background-repeat: no-repeat;
    background-position: 0 0;    
}
.viewattach_img{
    background-image: url("/static/images/viewattach.png") !important;
    background-repeat: no-repeat;
    
}
.moreinfo_img{
    background-image: url("/static/images/arrow_right.png") !important;
    background-repeat: no-repeat;

}

.floppysave_img{
    background-image: url("/static/images/note.png") !important;
    background-repeat: no-repeat;

}

.deletenote_img{
    background-image: url("/static/images/userreg_reject.png") !important;
    background-repeat: no-repeat;

}
.close_img{
    background-image: url("/static/images/del_small.png") !important;
    background-repeat: no-repeat;

}

.note_attach_viewer
{
	overflow:auto;
	height:40px;
	width:97%;
	border: 1px solid #B5B8C8;
	padding:10px;
	margin-bottom:10px;			
	
}
/* To change color of scrollbar */
/*
body {
scrollbar-face-color: yellow
scrollbar-shadow-color: yellow;
scrollbar-highlight-color: yellow;
scrollbar-3dlight-color:yellow;
scrollbar-darkshadow-color: yellow;
scrollbar-track-color: yellow;
scrollbar-arrow-color: yellow;
}
*/

#hid {
    background-color: #0e8bb0;
    border: none;
}

.note_window .x-panel-body .x-panel-body-noheader{
    border: None;
}


.note_window .x-panel-bbar .x-toolbar, .note_window .x-panel-tbar .x-toolbar{
    border-top: 1px solid;
    border-bottom: None;
    border-right: None;
    border-left: None;
    border-color: #aeb6be;
}

.templatePanel {
    padding-left: 8px;
}

/* ============================================================================
   Notes Summary Report — theme polish (mirrors body.tasks-page sweep in
   ext-acs-taskreport.css). Scoped to body.notes-page so other surfaces
   using these `grid_*` / `*_img` iconCls names are not touched.
   ============================================================================ */

/* ---- Top toolbar: SVG icons via ::before on each iconCls button ---- */

/* Clear legacy PNG background from all toolbar buttons */
body.notes-page .acs_toolbar button.grid_exit,
body.notes-page .acs_toolbar button.grid_reload,
body.notes-page .acs_toolbar button.grid_filter,
body.notes-page .acs_toolbar button.grid_excel,
body.notes-page .acs_toolbar button.noteapprove_img,
body.notes-page .acs_toolbar button.notereject_img,
body.notes-page .acs_toolbar button.deletenote_img {
    background-image: none !important;
    background-color: transparent !important;
}

/* ::before pseudo carries the icon for all toolbar buttons */
body.notes-page .acs_toolbar button.grid_exit::before,
body.notes-page .acs_toolbar button.grid_reload::before,
body.notes-page .acs_toolbar button.grid_filter::before,
body.notes-page .acs_toolbar button.grid_excel::before,
body.notes-page .acs_toolbar button.noteapprove_img::before,
body.notes-page .acs_toolbar button.notereject_img::before,
body.notes-page .acs_toolbar button.deletenote_img::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
    vertical-align: -3px !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-size: 16px 16px !important;
            mask-size: 16px 16px !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    transition: background-color 0.15s !important;
}

/* Per-button glyph */
body.notes-page .acs_toolbar button.grid_exit::before {
    -webkit-mask-image: var(--icon-chevron-left) !important;
            mask-image: var(--icon-chevron-left) !important;
}
body.notes-page .acs_toolbar button.grid_reload::before {
    -webkit-mask-image: var(--icon-refresh) !important;
            mask-image: var(--icon-refresh) !important;
}
body.notes-page .acs_toolbar button.grid_filter::before {
    -webkit-mask-image: var(--icon-filter-x) !important;
            mask-image: var(--icon-filter-x) !important;
}
body.notes-page .acs_toolbar button.grid_excel::before {
    -webkit-mask-image: var(--icon-file-spreadsheet) !important;
            mask-image: var(--icon-file-spreadsheet) !important;
}
body.notes-page .acs_toolbar button.noteapprove_img::before {
    -webkit-mask-image: var(--icon-check) !important;
            mask-image: var(--icon-check) !important;
}
body.notes-page .acs_toolbar button.notereject_img::before {
    -webkit-mask-image: var(--icon-x) !important;
            mask-image: var(--icon-x) !important;
}
body.notes-page .acs_toolbar button.deletenote_img::before {
    -webkit-mask-image: var(--icon-trash) !important;
            mask-image: var(--icon-trash) !important;
}

/* Hover — icon ::before flips to brand-cyan (text colour is handled by the
   .x-btn.x-btn-over rule in the chrome section below). */
body.notes-page .acs_toolbar .x-btn.x-btn-over button.grid_exit::before,
body.notes-page .acs_toolbar .x-btn.x-btn-over button.grid_reload::before,
body.notes-page .acs_toolbar .x-btn.x-btn-over button.grid_filter::before,
body.notes-page .acs_toolbar .x-btn.x-btn-over button.grid_excel::before,
body.notes-page .acs_toolbar .x-btn.x-btn-over button.noteapprove_img::before,
body.notes-page .acs_toolbar .x-btn.x-btn-over button.notereject_img::before,
body.notes-page .acs_toolbar .x-btn.x-btn-over button.deletenote_img::before {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Disabled — icon softens to text-tertiary */
body.notes-page .acs_toolbar .x-item-disabled button.grid_exit::before,
body.notes-page .acs_toolbar .x-item-disabled button.grid_reload::before,
body.notes-page .acs_toolbar .x-item-disabled button.grid_filter::before,
body.notes-page .acs_toolbar .x-item-disabled button.grid_excel::before,
body.notes-page .acs_toolbar .x-item-disabled button.noteapprove_img::before,
body.notes-page .acs_toolbar .x-item-disabled button.notereject_img::before,
body.notes-page .acs_toolbar .x-item-disabled button.deletenote_img::before {
    background-color: var(--acs-text-tertiary, #8c95a0) !important;
}

/* ---- Toolbar chrome — 40px flat white bar ---- */
body.notes-page .acs_toolbar {
    height: 40px !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    background-image: none !important;
    padding: 0 4px !important;
    top: 0 !important;
    border-bottom: 1px solid var(--acs-border, #e2e6ec) !important;
    display: flex !important;
    align-items: center !important;
}

/* The 40px toolbar reaches the shell as `toolbar_height` in the notes report templates,
   not as a total pinned here: the shell adds the bar under the header to its own sum,
   which a stylesheet cannot see. */

/* Stretch the inner toolbar table + row to fill 40px, then rely on
   vertical-align:middle on cells to centre items. */
body.notes-page .acs_toolbar table.x-toolbar-ct {
    height: 40px !important;
}
body.notes-page .acs_toolbar table.x-toolbar-ct > tbody > tr {
    height: 40px !important;
}
body.notes-page .acs_toolbar .x-toolbar-left-row > td,
body.notes-page .acs_toolbar .x-toolbar-right-row > td {
    vertical-align: middle !important;
}
body.notes-page .acs_toolbar td.x-toolbar-cell > table.x-btn {
    height: 100% !important;
}
body.notes-page .acs_toolbar td.x-toolbar-cell > table.x-btn td.x-btn-mc {
    vertical-align: middle !important;
}
body.notes-page .acs_toolbar .x-btn td.x-btn-mc em {
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}
body.notes-page .acs_toolbar .x-btn td.x-btn-mc em button.x-btn-text {
    vertical-align: middle !important;
    height: auto !important;
    line-height: 1.4 !important;
}

/* Button chrome — strip legacy 3D borders/gradients */
body.notes-page .acs_toolbar .x-btn .x-btn-tl,
body.notes-page .acs_toolbar .x-btn .x-btn-tc,
body.notes-page .acs_toolbar .x-btn .x-btn-tr,
body.notes-page .acs_toolbar .x-btn .x-btn-bl,
body.notes-page .acs_toolbar .x-btn .x-btn-bc,
body.notes-page .acs_toolbar .x-btn .x-btn-br,
body.notes-page .acs_toolbar .x-btn .x-btn-ml,
body.notes-page .acs_toolbar .x-btn .x-btn-mr {
    display: none !important;
}
body.notes-page .acs_toolbar .x-btn .x-btn-mc {
    background-image: none !important;
    padding: 0 !important;
}
body.notes-page .acs_toolbar .x-btn {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 4px !important;
    transition: background-color 0.15s !important;
}
body.notes-page .acs_toolbar .x-btn button.x-btn-text {
    background-image: none !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
    line-height: 1.4 !important;
}

/* Hover + pressed / menu-active chrome (wash + text + caret) moved to
   ext-acs-theme.css "Toolbar-button chrome — shell-wide" block. */

/* Toolbar separator — soften legacy dark border-left */
body.notes-page .acs_toolbar .xtb-sep {
    border-left-color: var(--acs-border-light, #ecf0f6) !important;
}

/* Suppress azzurra's 5px teal stripe on .acs-new-theme .acs_toolbar::after */
body.notes-page .acs_toolbar::after {
    display: none !important;
}

/* Suppress legacy bluish-grey border on the panel body (separator handled
   by the toolbar/bbar border rules). */
body.notes-page .x-panel-body.x-panel-body-noheader {
    border: none !important;
}

/* Toolbar text labels match button text-secondary colour */
body.notes-page .acs_toolbar td,
body.notes-page .acs_toolbar span,
body.notes-page .acs_toolbar label,
body.notes-page .acs_toolbar .xtb-text {
    color: var(--acs-text-secondary, #5a6370) !important;
}

/* ---- Grid: row hover + selected wash ---- */
body.notes-page .x-grid3 .x-grid3-row-over {
    background-color: var(--acs-hover-bg, #f6f8fb) !important;
    border-color: var(--acs-border-light, #ecf0f6) !important;
}

/* Row + header checkbox column (.x-row-checkbox) — theme as the canonical
   `.x-form-checkbox` pattern in ext-acs-theme.css (rounded square with
   cyan border on hover, cyan fill + white check when checked). Note
   approval page uses `<input type="checkbox" class="x-row-checkbox">`
   for both the row picker and the header select-all. */
body.notes-page input.x-row-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    background: var(--acs-hover-bg, #f6f8fb) !important;
    border: 1px solid var(--acs-border-input, #DCE2EF) !important;
    border-radius: var(--acs-radius-sm, 4px) !important;
    cursor: pointer !important;
    position: relative !important;
    vertical-align: middle !important;
    margin: 0 !important;
    transition: border-color 0.15s, background 0.15s !important;
}
body.notes-page input.x-row-checkbox:hover {
    border-color: var(--acs-brand-cyan, #00aeef) !important;
}
body.notes-page input.x-row-checkbox:checked {
    background: var(--acs-brand-cyan, #00aeef) !important;
    border-color: var(--acs-brand-cyan, #00aeef) !important;
}
body.notes-page input.x-row-checkbox:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 45% !important;
    width: 3px !important;
    height: 7px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Grid header chrome + filtered-column treatment now live shell-wide in
   ext-acs-theme.css ("Grid column header — shell-wide chrome, typography,
   hover, and filter state"). No per-page override needed for notes. */

/* Row selection — theme cyan-tint wash + soft cyan border (matches the
   canonical pattern in STYLING_PATTERNS.md §2.3). Legacy paints a grey
   `#dcdfe3` wash which reads as a disabled state under the new theme. */
body.notes-page .x-grid3 .x-grid3-row-selected {
    background-color: #EEF6FB !important;
    border-color: #c8e1f0 !important;
}
body.notes-page .x-grid3 .x-grid3-row-selected + .x-grid3-row,
body.notes-page .x-grid3 .x-grid-with-col-lines .x-grid3-row-selected {
    border-top-color: #c8e1f0 !important;
}

/* ---- Note Detail cell — 3-line clamp with ellipsis ----
   The fixed height keeps every row the same height. The full text opens
   from the hover tip and the double-click dialog. */
body.notes-page .x-grid3-col-NoteDetail {
    white-space: normal !important;
    line-height: 1.5 !important;
}
body.notes-page .x-grid3-col-NoteDetail .grid_note_text {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
            line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: calc(1.5em * 3) !important;
    max-height: calc(1.5em * 3) !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    font-size: 13px !important;
}

/* Column-header dropdown menu icon theming (Sort/Columns/Filter/Search
   glyphs + columns-submenu checkbox) is promoted shell-wide in
   ext-acs-theme.css (end of file). Removed from here 2026-05-15. */

/* ---- Attachments column: rewrite the inline <img src='tick.png'> to a
   themed paperclip mask. The JS renderer emits <img> which is a replaced
   element, so we can't ::before it. Instead, paint a paperclip SVG mask
   directly on the img, with a transparent 1x1 SVG `content:` swap to hide
   the bitmap src. ---- */
body.notes-page .x-grid3-col-HasAttachments img {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'%3E%3C/svg%3E") !important;
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle !important;
    background-image: none !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    -webkit-mask-image: var(--icon-paperclip) !important;
            mask-image: var(--icon-paperclip) !important;
    -webkit-mask-size: 14px 14px !important;
            mask-size: 14px 14px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    object-fit: cover !important;
}

/* ============================================================================
   Footer (bbar) — pagination chrome (chevron/refresh icons, button hover/
   pressed wash, page-number input, container chrome) now lives shell-wide in
   ext-acs-theme.css ("Pagination bbar — shell-wide canonical rules"). Only
   notes-page-specific deltas remain below.
   ============================================================================ */

/* Page-specific bbar deltas on top of the shell base (theme.css):
     1. border-top — separator between grid and bbar on the approval page
     2. width-clamp (below) — ExtJS calculates a wider inner toolbar than
        the parent (the "Displaying Notes 1 - 2 of 2" status text in
        `.x-toolbar-right` adds its natural width on top of the left buttons,
        pushing the right edge ~20px past the bbar). overflow:hidden would
        clip the text; instead constrain the inner toolbar width to 100%. */
body.notes-page .x-panel-bbar {
    border-top: 1px solid var(--acs-border, #e2e6ec) !important;
}
body.notes-page .x-panel-bbar .x-toolbar {
    padding: 0 !important;
}
body.notes-page .x-panel-bbar > .x-toolbar.x-toolbar-layout-ct,
body.notes-page .x-panel-bbar > .x-statusbar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 28×28 hit target + em-flex centring now live shell-wide in
   ext-acs-theme.css ("Pagination bbar — shell-wide canonical rules"). */

/* ============================================================================
   Note Details overlay — only the `Ext.ToolTip` opened on hover over a
   Notes-grid row's note-detail cell. Scoped tightly via `cls: 'note-details-tip'`
   set in ext-acs-notes-widgets.js so this DOES NOT affect any other tooltip
   on any other page. Other tooltips keep their legacy styling.
   ============================================================================ */
div.x-tip.note-details-tip {
    padding: 0 !important;
    font-size: 13px !important;
    color: var(--acs-text-primary, #1c2127) !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 28px rgba(28, 33, 39, 0.12), 0 2px 6px rgba(28, 33, 39, 0.06) !important;
    overflow: hidden !important;
}

/* Strip the 9-slice sprite slices */
div.x-tip.note-details-tip div.x-tip-tl,
div.x-tip.note-details-tip div.x-tip-tc,
div.x-tip.note-details-tip div.x-tip-tr,
div.x-tip.note-details-tip div.x-tip-ml,
div.x-tip.note-details-tip div.x-tip-mc,
div.x-tip.note-details-tip div.x-tip-mr,
div.x-tip.note-details-tip div.x-tip-bl,
div.x-tip.note-details-tip div.x-tip-bc,
div.x-tip.note-details-tip div.x-tip-br {
    background-image: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Title strip (.x-tip-tl wraps the title row) */
div.x-tip.note-details-tip div.x-tip-tl {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    border-bottom: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 8px 12px !important;
    position: relative !important;
}
div.x-tip.note-details-tip span.x-tip-header-text,
div.x-tip.note-details-tip .x-tip-header {
    color: var(--acs-text-primary, #1c2127) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Close button — X SVG mask */
div.x-tip.note-details-tip .x-tool-close {
    background-image: none !important;
    width: 16px !important;
    height: 16px !important;
    -webkit-mask-image: var(--icon-x) !important;
            mask-image: var(--icon-x) !important;
    -webkit-mask-size: 14px 14px !important;
            mask-size: 14px 14px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    transition: background-color 0.15s !important;
    border-radius: 4px !important;
}
div.x-tip.note-details-tip .x-tool-close:hover,
div.x-tip.note-details-tip .x-tool-close-over {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Body wrapper + body content */
div.x-tip.note-details-tip .x-tip-bwrap,
div.x-tip.note-details-tip .x-tip-ml,
div.x-tip.note-details-tip .x-tip-mr,
div.x-tip.note-details-tip .x-tip-mc {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}
div.x-tip.note-details-tip .x-tip-body {
    padding: 12px 14px !important;
    font-size: 13px !important;
    color: var(--acs-text-primary, #1c2127) !important;
    line-height: 1.5 !important;
    background: #fff !important;
}
div.x-tip.note-details-tip .x-tip-bl,
div.x-tip.note-details-tip .x-tip-br,
div.x-tip.note-details-tip .x-tip-bc {
    display: none !important;
}

/* ============================================================================
   Note dialog (`Ext.Window` with `cls: 'note-dialog border-content'`)
   — opened via celldblclick on a row. Re-skin to match the task dialog
   pattern in ext-acs-compliance.css (`.x-window.acs-task-host`):
   themed window chrome, white surface, themed header strip, SVG-icon
   bbar buttons, themed tab strip, polished close + collapse tools.
   ============================================================================ */

/* Window chrome — flat white card with themed border + shadow */
.x-window:is(.note-dialog, .edit-note-dialog) {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(28, 33, 39, 0.14), 0 4px 12px rgba(28, 33, 39, 0.08) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Strip legacy 9-slice sprite slices — zero padding on the corner / edge
   chrome cells so the legacy sprite gutters collapse. The middle cell
   (.x-window-mc) gets its own padding rule below. */
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-tl,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-tc,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-tr,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-bl,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-bc,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-br,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-ml,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-mr {
    background-image: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Inner mc + body — keep the legacy 16px-top/16px-side inset that the
   azzurra-legacy theme applies shell-wide
   (.acs-new-theme .x-window:not(.definition-popup-window) .x-window-mc
    { padding: 16px 16px 0 }), so the form content sits inside a comfortable
   gutter inside the window chrome. */
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-mc {
    background-image: none !important;
    background: transparent !important;
    padding: 16px 16px 0 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-body {
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
}

/* Header strip — taller, themed wash, themed grey rule below */
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-header {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    background-image: none !important;
    border: none !important;
    border-bottom: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 12px 16px !important;
    height: auto !important;
    box-sizing: border-box !important;
    cursor: move !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-header .x-window-header-text,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-header span.x-window-header-text {
    color: var(--acs-text-primary, #1c2127) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Header icon (note type icon, set inline via iconCls on the window) —
   suppress the legacy bitmap PNG that was injected per note-type. The
   .x-window-header carries a per-type class (e.g. .explan_note) with a
   `background-image: url(...)` from the template's <style> block; clear
   it so the header reads as a clean title strip. */
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-header.x-panel-icon {
    background-image: none !important;
    padding-left: 16px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-header .x-window-header-text-container,
.x-window:is(.note-dialog, .edit-note-dialog) .x-window-header .x-panel-icon {
    line-height: 1.4 !important;
}

/* Close tool — SVG X mask (the theme paints a mask already, refine here) */
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-close {
    width: 20px !important;
    height: 20px !important;
    background-image: none !important;
    -webkit-mask-image: var(--icon-x) !important;
            mask-image: var(--icon-x) !important;
    -webkit-mask-size: 16px 16px !important;
            mask-size: 16px 16px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    border-radius: 4px !important;
    transition: background-color 0.15s, color 0.15s !important;
    margin: 0 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-close:hover,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-close-over {
    background-color: var(--acs-error, #c53030) !important;
}

/* Collapse-east / expand-east toggle. Covers both:
     1. The outer window header — main side-panel toggle.
     2. The inner tab-panel-header (Shared view side-pane toggle inside the
        dialog body — same legacy azzurra sprite needs migration).
   Both render with the same `.x-tool-toggle.x-tool-collapse-east` /
   `.x-tool-expand-east` class pair so a single rule handles both. */
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-collapse-east,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-expand-east {
    width: 20px !important;
    height: 20px !important;
    background-image: none !important;
    -webkit-mask-image: var(--icon-chevron-right) !important;
            mask-image: var(--icon-chevron-right) !important;
    -webkit-mask-size: 14px 14px !important;
            mask-size: 14px 14px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    border-radius: 4px !important;
    transition: background-color 0.15s !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-expand-east {
    -webkit-mask-image: var(--icon-chevron-left) !important;
            mask-image: var(--icon-chevron-left) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-collapse-east:hover,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-expand-east:hover,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-collapse-east-over,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tool-toggle.x-tool-expand-east-over {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Header buttons row (hbuttons plugin) — the "Public Note [...]" pill that
   sits inside the header. Drop the legacy teal background; treat it as a
   subtle chip so it doesn't compete with the title. */
.x-window:is(.note-dialog, .edit-note-dialog) #hid {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 999px !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    box-shadow: none !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) #hid * {
    color: var(--acs-text-secondary, #5a6370) !important;
    font-weight: 500 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) #hid:hover,
.x-window:is(.note-dialog, .edit-note-dialog) #hid.x-btn-over {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    background-color: var(--acs-hover-bg, #f6f8fb) !important;
    border-color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Template panel content (note body) — readable typography, gentle padding */
.x-window:is(.note-dialog, .edit-note-dialog) .templatePanel {
    padding: 16px 20px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--acs-text-primary, #1c2127) !important;
}

/* Editor panel body (wraps the templatePanel) — give it breathing room */
.x-window:is(.note-dialog, .edit-note-dialog) #editorPanel,
.x-window:is(.note-dialog, .edit-note-dialog) #editorPanel > .x-panel-bwrap,
.x-window:is(.note-dialog, .edit-note-dialog) #editorPanel > .x-panel-bwrap > .x-panel-body {
    background: #fff !important;
}

/* ---- Statusbar (bbar) — 52px footer with proper headroom for hover wash ----
   ExtJS sets an inline 25px height on the inner `.x-toolbar`; we override
   to 28px so the buttons aren't clipped, and surround with 12px vertical
   padding so the rounded hover wash has breathing room above and below
   (was 44px — too tight, the wash visually cropped against the bbar edge).

   Also: ExtJS sets an inline width on the inner .x-toolbar that's wider
   than the parent bbar (calculated against legacy button chrome widths
   that no longer apply post-theme). Force the inner to respect 100% of
   parent so the right-aligned button group (incl. "More Info") doesn't
   overflow off the right edge. */
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar {
    background: #fff !important;
    background-image: none !important;
    border: none !important;
    border-top: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 12px 12px !important;
    box-sizing: border-box !important;
    min-height: 52px !important;
    /* ExtJS sets an inline `width: <calculated>` on .x-panel-bbar that
       lags behind the dialog's actual width (calculated against the
       legacy 25px toolbar layout). Force 100% so the border-top reaches
       both edges of the dialog. */
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar > .x-toolbar.x-toolbar-layout-ct,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar > .x-statusbar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-toolbar,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar .x-toolbar {
    background: #fff !important;
    background-image: none !important;
    border: none !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar table.x-toolbar-ct,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar table.x-toolbar-ct {
    height: 28px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar table.x-toolbar-ct > tbody > tr,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar table.x-toolbar-ct > tbody > tr {
    height: 28px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-toolbar-left-row > td,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-toolbar-right-row > td,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar .x-toolbar-left-row > td,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar .x-toolbar-right-row > td {
    vertical-align: middle !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar td.x-toolbar-cell > table.x-btn,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar td.x-toolbar-cell > table.x-btn {
    height: 100% !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn td.x-btn-mc em,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar .x-btn td.x-btn-mc em {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn td.x-btn-mc em button.x-btn-text,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar .x-btn td.x-btn-mc em button.x-btn-text {
    height: auto !important;
    line-height: 1.4 !important;
}

/* Statusbar button chrome — strip 3D sprite slices, paint flat themed buttons */
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-tl,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-tc,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-tr,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-bl,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-bc,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-br,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-ml,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-mr {
    display: none !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn .x-btn-mc {
    background-image: none !important;
    padding: 0 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 6px !important;
    transition: background-color 0.15s !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn button.x-btn-text {
    background-image: none !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    line-height: 1.4 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over {
    background: var(--acs-hover-bg, #f6f8fb) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over button.x-btn-text {
    color: var(--acs-brand-cyan, #00aeef) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-pressed,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-menu-active {
    background: #EEF6FB !important;
    box-shadow: none !important;
}

/* Statusbar buttons — clear legacy PNG bg, add ::before mask glyph */
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.noteedit_img,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.noteapprove_img,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.notereject_img,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.deletenote_img,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.moreinfo_img {
    background-image: none !important;
    background-color: transparent !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.noteedit_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.noteapprove_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.notereject_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.deletenote_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.moreinfo_img::before {
    content: '' !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
    vertical-align: -3px !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-size: 16px 16px !important;
            mask-size: 16px 16px !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    transition: background-color 0.15s !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.noteedit_img::before {
    -webkit-mask-image: var(--icon-edit) !important;
            mask-image: var(--icon-edit) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.noteapprove_img::before {
    -webkit-mask-image: var(--icon-check) !important;
            mask-image: var(--icon-check) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.notereject_img::before {
    -webkit-mask-image: var(--icon-x) !important;
            mask-image: var(--icon-x) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.deletenote_img::before {
    -webkit-mask-image: var(--icon-trash) !important;
            mask-image: var(--icon-trash) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar button.moreinfo_img::before {
    -webkit-mask-image: var(--icon-info) !important;
            mask-image: var(--icon-info) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over button.noteedit_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over button.noteapprove_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over button.notereject_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over button.deletenote_img::before,
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .x-btn.x-btn-over button.moreinfo_img::before {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Statusbar separator (tbseparator) — soften legacy dark border-left */
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar .xtb-sep {
    border-left-color: var(--acs-border-light, #ecf0f6) !important;
}

/* ---- "Note Approved" / "Note Rejected" status labels ----
   The JS emits raw `<B><font color='blue'>Note Approved</font></B>` and
   `<B><font color='red'>Note Rejected</font></B>` inside a toolbar
   `xtype:'label'`. Suppress the legacy `<font color>` and `<b>` styling
   and re-skin the surrounding `<label>` as a themed status chip with a
   coloured dot prefix. */

/* Reset the inline coloured/bold fragments — neutral, inherit theme */
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar font,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar font {
    color: inherit !important;
    font-weight: inherit !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-panel-bbar b,
.x-window:is(.note-dialog, .edit-note-dialog) .x-statusbar b {
    font-weight: 600 !important;
}

/* Approved chip — green-tinted pill with check-style dot. The toolbar's
   xtype:'label' renders `<font color="blue">Note Approved</font>` inside
   a child wrapper (label/span/div depending on ExtJS version). Scope via
   `:has()` on the toolbar-cell so only the matching label gets the wash. */
.x-window:is(.note-dialog, .edit-note-dialog) :is(.x-panel-bbar, .x-statusbar) td.x-toolbar-cell:has(.acs-font-blue) {
    padding: 0 4px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) :is(.x-panel-bbar, .x-statusbar) td.x-toolbar-cell:has(.acs-font-blue) > * {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px 4px 10px !important;
    border-radius: 999px !important;
    background: rgba(46, 184, 109, 0.12) !important;
    color: #1f7a4a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    border: 1px solid rgba(46, 184, 109, 0.32) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) :is(.x-panel-bbar, .x-statusbar) td.x-toolbar-cell:has(.acs-font-blue) > *::before {
    content: '' !important;
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
    -webkit-mask-image: var(--icon-check) !important;
            mask-image: var(--icon-check) !important;
    -webkit-mask-size: 12px 12px !important;
            mask-size: 12px 12px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: #1f7a4a !important;
}

/* Rejected chip — red-tinted pill with X dot */
.x-window:is(.note-dialog, .edit-note-dialog) :is(.x-panel-bbar, .x-statusbar) td.x-toolbar-cell:has(.acs-font-red) {
    padding: 0 4px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) :is(.x-panel-bbar, .x-statusbar) td.x-toolbar-cell:has(.acs-font-red) > * {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px 4px 10px !important;
    border-radius: 999px !important;
    background: rgba(231, 76, 60, 0.12) !important;
    color: #c0392b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    border: 1px solid rgba(231, 76, 60, 0.32) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) :is(.x-panel-bbar, .x-statusbar) td.x-toolbar-cell:has(.acs-font-red) > *::before {
    content: '' !important;
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
    -webkit-mask-image: var(--icon-x) !important;
            mask-image: var(--icon-x) !important;
    -webkit-mask-size: 12px 12px !important;
            mask-size: 12px 12px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: #c0392b !important;
}

/* ---- Tab strip (Groups / Users) ---- */
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip-wrap {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 0 8px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip {
    background: transparent !important;
    background-image: none !important;
    border-bottom: none !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li {
    background: transparent !important;
    background-image: none !important;
    margin: 0 4px 0 0 !important;
    border-radius: 6px 6px 0 0 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li .x-tab-right,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li .x-tab-left,
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li .x-tab-strip-inner {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li .x-tab-right {
    padding: 8px 14px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li .x-tab-strip-text {
    color: var(--acs-text-secondary, #5a6370) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 0 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li.x-tab-strip-active {
    background: #fff !important;
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-bottom-color: #fff !important;
    margin-bottom: -1px !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li.x-tab-strip-active .x-tab-strip-text {
    color: var(--acs-brand-cyan, #00aeef) !important;
    font-weight: 600 !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip li:hover:not(.x-tab-strip-active) {
    background: rgba(0, 174, 239, 0.06) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-tab-strip-close {
    display: none !important;
}

/* ---- Form fields (when the dialog enters Edit mode) ---- */
.x-window:is(.note-dialog, .edit-note-dialog) .x-form-text,
.x-window:is(.note-dialog, .edit-note-dialog) .x-form-textarea {
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: var(--acs-text-primary, #1c2127) !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-form-text:focus,
.x-window:is(.note-dialog, .edit-note-dialog) .x-form-textarea:focus {
    border-color: var(--acs-brand-cyan, #00aeef) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15) !important;
}
.x-window:is(.note-dialog, .edit-note-dialog) .x-form-item label,
.x-window:is(.note-dialog, .edit-note-dialog) .x-form-item-label,
.x-window:is(.note-dialog, .edit-note-dialog) label.x-form-item-label {
    color: var(--acs-text-secondary, #5a6370) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Resize handles — soften so they're invisible to the eye but still grabbable */
.x-window:is(.note-dialog, .edit-note-dialog) .x-resizable-handle {
    background: transparent !important;
    background-image: none !important;
}

/* ============================================================================
   Edit Note dialog (.edit-note-dialog) — additional rules for the form-
   specific elements: title input, sharing radios, note-type combo, attach
   files fieldset, "Attach a file" link, HTML editor, footer Save/Cancel.
   ============================================================================ */

/* Inner FormPanel body padding — gentle breathing room */
.x-window.edit-note-dialog .x-form,
.x-window.edit-note-dialog #editorPanel {
    padding: 16px 20px !important;
}
.x-window.edit-note-dialog .x-form-item {
    margin-bottom: 14px !important;
}

/* Form field labels — uniform width + theme typography */
.x-window.edit-note-dialog .x-form-item-label,
.x-window.edit-note-dialog label.x-form-item-label {
    color: var(--acs-text-secondary, #5a6370) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding-top: 6px !important;
}

/* Title input — extend the base form-text styling */
.x-window.edit-note-dialog #note_title {
    width: 96% !important;
    min-height: 30px !important;
}

/* Sharing RadioGroup — themed pill radios */
.x-window.edit-note-dialog .x-form-check-wrap input[type="radio"].radio_btn,
.x-window.edit-note-dialog input[type="radio"].radio_btn {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--acs-brand-cyan, #00aeef) !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    margin: 0 6px 0 0 !important;
}
.x-window.edit-note-dialog .x-form-check-wrap .x-form-cb-label,
.x-window.edit-note-dialog label.x-form-cb-label {
    color: var(--acs-text-primary, #1c2127) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    margin-right: 14px !important;
}

/* Form text input inside a field-wrap — the wrap paints the border for
   the whole control (input + trigger), so the input itself must be
   borderless or you get a doubled line where they overlap. Same for
   border-radius — the wrap rounds the outer; the input's corners must
   be flat. Standalone selects (no wrap) keep the themed border. */
.x-window.edit-note-dialog .x-form-field-wrap .x-form-text {
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: var(--acs-text-primary, #1c2127) !important;
    background: transparent !important;
    box-sizing: border-box !important;
}
.x-window.edit-note-dialog select.x-form-text {
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: var(--acs-text-primary, #1c2127) !important;
    background: #fff !important;
    box-sizing: border-box !important;
    min-height: 30px !important;
}

/* Note-type combo: kill the legacy per-note-type PNG icon (.ux-icon-combo-icon
   .explan_note / etc.) injected via a <style> block in the template. The
   icon adds visual noise and reads as a bitmap chip inside an otherwise
   themed input. Hide it and reset the input's left padding. */
.x-window.edit-note-dialog .ux-icon-combo-icon {
    display: none !important;
}
.x-window.edit-note-dialog .ux-icon-combo-input,
.x-window.edit-note-dialog .x-form-field-wrap input.ux-icon-combo-input {
    padding-left: 10px !important;
}

/* Note-type combo dropdown LIST — each item has a per-note-type class
   (.explan_note / .variation / etc.) with a `background-image: url(.gif)`
   set from the template's <style> block. Kill the bitmap and reset the
   left padding so items read as clean themed rows. The whole combo is
   opt-in via `.ux-icon-combo-item` set by the icon-combo plugin. */
body .x-combo-list .x-combo-list-item.ux-icon-combo-item {
    background-image: none !important;
    padding-left: 12px !important;
}

/* Explicit themed border on the Note Type combo's field wrap — guard
   against any global `.x-form-field-wrap { border: none }` override that
   could leak in. Uses higher specificity than the page-wide theme rules
   so we own the border on this specific control. */
.x-window.edit-note-dialog .x-form-field-wrap:has(.ux-icon-combo-input),
.x-window.edit-note-dialog .x-form-field-wrap:has(#note_type) {
    border: 1px solid var(--acs-border-input, #dce2ef) !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

/* Combo trigger button (the dropdown arrow on the right edge) — replace
   legacy sprite with chevron-down SVG. The global `.x-form-trigger` JS-
   override handles most consumers, but inside the dialog we ensure the
   trigger sits flush + themed.

   The global trigger override paints `border-radius: 0 5px 5px 0` on the
   trigger; the wrap is 6px, so the 1px mismatch leaves a visible curve
   where the trigger's left border meets the wrap's right edge. Flatten
   the trigger's corners — the wrap paints the rounding for the whole
   field. */
.x-window.edit-note-dialog .x-form-field-wrap .x-form-trigger {
    border-left: 1px solid var(--acs-border-light, #ecf0f6) !important;
    border-radius: 0 6px 6px 0 !important;
    background: #fff !important;
    height: auto !important;
    align-self: stretch !important;
}

/* Fieldset bottom gap so the HTML editor below has breathing room. The
   fieldset itself is themed shell-wide in ext-acs-theme.css (no border,
   uppercase 11px legend banner with grey separator). */
.x-window.edit-note-dialog fieldset.x-fieldset {
    margin-bottom: 16px !important;
}

/* "Attach a file" link row — mirrors the task-dialog pattern from
   ext-acs-compliance.css:1320–1399 (`.x-window.acs-note-host` scope).
   That file isn't loaded on the notes page, so we copy the rules here
   scoped to `.edit-note-dialog` for identical visual treatment.

   The legacy `<img src="paperclip.png">` is a replaced element (mask-image
   can't paint over its intrinsic content). Use the `content:` swap trick:
   `content: var(--icon-paperclip)` replaces the rendered <img> with a
   themed SVG; currentColor inside the SVG inherits from the img's `color`. */
.x-window.edit-note-dialog fieldset.x-fieldset div:has(> .acs-img-paperclip) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Shell-wide `.question_attachments` (notes pages, task report, anywhere
   the JS attach widget renders) — flex layout so the paperclip sits 6px
   from the text, matching the dialog. The legacy `&nbsp;&nbsp;` separator
   is dropped from the JS template; flex `gap` controls the spacing.
   "Attach another file" gets 10px of breathing room from the file row(s)
   above it via the `.attach-other-label` class added in the JS template. */
.question_attachments {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.question_attachments > img[src$="paperclip.png"] {
    content: var(--icon-paperclip) !important;
    width: 14px !important;
    height: 14px !important;
    color: var(--acs-link-color, #00aeef) !important;
    vertical-align: middle !important;
}
.question_attachments.attach-other-label {
    margin-top: 10px !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset div > img[src$="paperclip.png"] {
    content: var(--icon-paperclip) !important;
    width: 14px !important;
    height: 14px !important;
    color: var(--acs-link-color, #00aeef) !important;
    vertical-align: middle !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset a {
    color: var(--acs-link-color, #00aeef) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}
/* Notes JS wraps the link text in `<b>` (`<a><b>Attach a file</b></a>`)
   so the link reads bolder than the task-dialog version. Neutralise the
   inline `<b>` weight to match the canonical pattern. */
.x-window.edit-note-dialog fieldset.x-fieldset a b {
    font-weight: inherit !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset a:hover {
    text-decoration: underline !important;
}

/* "Attach another file" — 10px breathing room from the file row(s) above. */
.x-window.edit-note-dialog .question_attachments.attach-other-label,
.x-window.note-dialog .question_attachments.attach-other-label {
    margin-top: 10px !important;
}

/* Stack each fieldset-body row (per-file upload widget + "Attach another
   file" link) on its own line. */
.x-window.edit-note-dialog fieldset.x-fieldset .x-fieldset-body > div {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .x-fieldset-body > .fileuploader_widget {
    margin-bottom: 12px !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .x-fieldset-body > div:has(> .acs-img-paperclip) > a {
    margin-left: 10px !important;
}

/* fileuploader_widget — swap legacy paperclip + del_small bitmaps for
   theme SVGs via the `content: var(--icon-X)` trick (replaced elements
   ignore mask-image overlays). */
.x-window.edit-note-dialog fieldset.x-fieldset .fileuploader_widget > img[src$="paperclip.png"] {
    content: var(--icon-paperclip) !important;
    width: 14px !important;
    height: 14px !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    vertical-align: middle !important;
}
.x-window.edit-note-dialog .fileuploader_widget > span > img[src$="1blank.png"] {
    display: none !important;
}

/* Existing-attachment rows (.start_image_list) — same delete-trash + row
   layout treatment as the task-dialog Add Note modal. Markup:
     <div class="start_image_list">
       <a href="..."><img src=".ext/jpeg.png"/> filename (size)</a>
       <a href="javascript:..."><img src="del_small.png"/></a>
     </div>
   Layout: flex row with the file-type icon + name on the left, the
   trash button on the right. */
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 0 !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type {
    flex: 1 1 auto !important;
    color: var(--acs-text-primary, #1c2127) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type:hover {
    color: var(--acs-link-color, #00aeef) !important;
    text-decoration: underline !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
}
/* Trash anchor — the second <a> in the row; align to the right and make
   the delete glyph itself a themed trash SVG. */
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:last-of-type {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.15s !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:last-of-type:hover {
    color: var(--acs-form-invalid-border, #d04437) !important;
}

/* Trash icon swap — broadened from `.fileuploader_widget > img[src$=del_small]`
   to `fieldset img[src$=del_small]` so it also matches the existing-attachment
   row pattern (where the img is inside an <a>, not .fileuploader_widget). */
.x-window.edit-note-dialog fieldset.x-fieldset img[src$="del_small.png"] {
    content: var(--icon-trash) !important;
    width: 16px !important;
    height: 16px !important;
    color: currentColor !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    border-radius: 3px !important;
}

/* File-type icons inside the existing-attachment row — each attachment paints
   a per-extension PNG from /static/images/ext/ (jpeg.png, pdf.gif, doc.png,
   xls.png, etc.). Swap each to a themed SVG from shared-icons.css via the
   `content: var(--icon-X)` trick (mask-image doesn't paint over replaced
   elements). Scoped to the existing-attachment row so we don't accidentally
   re-skin file-type icons elsewhere.

   Mapping (best fit among the icons we have):
     pdf            → --icon-file-pdf
     xls/xlsx/xlt   → --icon-file-spreadsheet
     doc/docx/dot   → --icon-file-text
     ppt            → --icon-file-text (no dedicated slides icon yet)
     odt            → --icon-file-text
     htm/html       → --icon-file-text
     jpg/jpeg/gif/bmp + default → --icon-file (generic file glyph) */
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src*="/static/images/ext/"] {
    content: var(--icon-file) !important;
    color: var(--acs-text-secondary, #5a6370) !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="pdf.gif"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="pdf.png"] {
    content: var(--icon-file-pdf) !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="xls.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="xlsx.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="xlt.png"] {
    content: var(--icon-file-spreadsheet) !important;
}
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="doc.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="docx.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="dot.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="odt.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="ppt.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="htm.png"],
.x-window.edit-note-dialog fieldset.x-fieldset .start_image_list > a:first-of-type > img[src$="html.png"] {
    content: var(--icon-file-text) !important;
}

/* HTML editor wrap — themed border, white surface.
   No `overflow: hidden` here: ExtJS sizes the inner <iframe>/<textarea>
   wider than the wrap (it sets the iframe width inline to wrap.width + ~18px
   to leave room for its own scrollbar). Clipping with overflow:hidden chops
   off the iframe's right scrollbar. We accept that the 8px radius doesn't
   round the iframe's content corners — visually inconsequential since the
   iframe paints a white surface flush to the wrap's white interior. */
.x-window.edit-note-dialog .x-html-editor-wrap {
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 8px !important;
    background: #fff !important;
}
.x-window.edit-note-dialog .x-html-editor-wrap:focus-within {
    border-color: var(--acs-brand-cyan, #00aeef) !important;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15) !important;
}
.x-window.edit-note-dialog .x-html-editor-tb {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    border-bottom: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 4px 6px !important;
}
.x-window.edit-note-dialog .x-html-editor-tb table.x-toolbar-ct {
    background: transparent !important;
}
.x-window.edit-note-dialog .x-html-editor-wrap iframe,
.x-window.edit-note-dialog .x-html-editor-wrap textarea {
    background: #fff !important;
    border: none !important;
    font-size: 13px !important;
    color: var(--acs-text-primary, #1c2127) !important;
}

/* ---- Footer button bar (.x-panel-btns / .x-panel-fbar) ----
   FormPanel's `buttons:` config renders a footer bar with Save/Close/etc.
   Theme as the dialog footer: themed border-top, primary fill on Save,
   outline secondary on Close/Back, dark-tinted hover.

   The form panel body above paints its own bottom-border (legacy
   `.x-panel-body-noheader { border-bottom }`) creating a double line above
   the footer; we suppress that border below so only the footer's top rule
   draws. */
.x-window.edit-note-dialog .x-form .x-panel-body,
.x-window.edit-note-dialog .x-form .x-panel-bwrap > .x-panel-body,
.x-window.edit-note-dialog .x-panel-body-noheader,
.x-window.edit-note-dialog #outerPanel .x-panel-body,
.x-window.edit-note-dialog #editorPanel .x-panel-body {
    border-bottom: none !important;
}

.x-window.edit-note-dialog .x-panel-btns,
.x-window.edit-note-dialog .x-panel-fbar,
.x-window.edit-note-dialog .x-window-footer {
    background: #fff !important;
    background-image: none !important;
    border: none !important;
    border-top: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    min-height: 56px !important;
}
.x-window.edit-note-dialog .x-panel-btns .x-toolbar,
.x-window.edit-note-dialog .x-panel-fbar .x-toolbar {
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* FormPanel renders a hierarchy at the bottom:
     .x-panel-footer.x-panel-btns   (outer footer — our themed strip)
       .x-panel-fbar.x-toolbar-layout-ct   (inner toolbar wrapper — global rule paints another border-top)
   The outer's border-top is what we want; suppress the inner one so the
   doubled line collapses to a single themed rule. */
.x-window.edit-note-dialog .x-panel-footer.x-panel-btns .x-panel-fbar,
.x-window.edit-note-dialog .x-panel-footer.x-panel-btns .x-toolbar-layout-ct,
.x-window.edit-note-dialog .x-panel-footer.x-panel-btns .x-toolbar {
    border-top: none !important;
}
/* Some FormPanel renderings nest an outer .x-panel-btns wrapper around an
   inner .x-toolbar/.x-panel-btns — make sure the outer wrapper doesn't
   ALSO paint a border-top (would double up with the inner). */
.x-window.edit-note-dialog .x-panel-btns .x-panel-btns,
.x-window.edit-note-dialog .x-panel-fbar .x-panel-btns,
.x-window.edit-note-dialog .x-panel-fbar .x-panel-fbar {
    border-top: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Footer button chrome — strip legacy sprite, themed pill */
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-tl,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-tc,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-tr,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-bl,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-bc,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-br,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-ml,
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-mr,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-tl,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-tc,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-tr,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-bl,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-bc,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-br,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-ml,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-mr {
    display: none !important;
}
.x-window.edit-note-dialog .x-panel-btns .x-btn .x-btn-mc,
.x-window.edit-note-dialog .x-panel-fbar .x-btn .x-btn-mc {
    background-image: none !important;
    padding: 0 !important;
}
.x-window.edit-note-dialog .x-panel-btns .x-btn,
.x-window.edit-note-dialog .x-panel-fbar .x-btn {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--acs-border, #e2e6ec) !important;
    border-radius: 6px !important;
    margin: 0 4px !important;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s !important;
}
.x-window.edit-note-dialog .x-panel-btns .x-btn button.x-btn-text,
.x-window.edit-note-dialog .x-panel-fbar .x-btn button.x-btn-text {
    background-image: none !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    line-height: 1.4 !important;
    min-width: 72px !important;
}
.x-window.edit-note-dialog .x-panel-btns .x-btn.x-btn-over,
.x-window.edit-note-dialog .x-panel-fbar .x-btn.x-btn-over {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    border-color: var(--acs-brand-cyan, #00aeef) !important;
}
.x-window.edit-note-dialog .x-panel-btns .x-btn.x-btn-over button.x-btn-text,
.x-window.edit-note-dialog .x-panel-fbar .x-btn.x-btn-over button.x-btn-text {
    color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Save / Update — primary cyan fill */
.x-window.edit-note-dialog .x-panel-btns #save,
.x-window.edit-note-dialog .x-panel-fbar #save,
.x-window.edit-note-dialog .x-btn#save {
    background: var(--acs-brand-cyan-muted, #0e8bb0) !important;
    background-color: var(--acs-brand-cyan-muted, #0e8bb0) !important;
    background-image: none !important;
    border-color: var(--acs-brand-cyan-muted, #0e8bb0) !important;
}
.x-window.edit-note-dialog .x-panel-btns #save button,
.x-window.edit-note-dialog .x-panel-fbar #save button,
.x-window.edit-note-dialog .x-btn#save button.x-btn-text {
    color: #fff !important;
}
.x-window.edit-note-dialog .x-panel-btns #save.x-btn-over,
.x-window.edit-note-dialog .x-panel-fbar #save.x-btn-over,
.x-window.edit-note-dialog .x-btn#save.x-btn-over {
    background: var(--acs-brand-cyan-deep, #0a6f8c) !important;
    background-color: var(--acs-brand-cyan-deep, #0a6f8c) !important;
    border-color: var(--acs-brand-cyan-deep, #0a6f8c) !important;
}
.x-window.edit-note-dialog .x-panel-btns #save.x-btn-over button,
.x-window.edit-note-dialog .x-panel-fbar #save.x-btn-over button,
.x-window.edit-note-dialog .x-btn#save.x-btn-over button.x-btn-text {
    color: #fff !important;
}

/* Disabled Save — softened cyan + reduced opacity */
.x-window.edit-note-dialog .x-panel-btns .x-item-disabled#save,
.x-window.edit-note-dialog .x-panel-fbar .x-item-disabled#save,
.x-window.edit-note-dialog .x-btn.x-item-disabled#save {
    opacity: 0.55 !important;
}

/* Approve / Delete dedicated semantics — green / red outline */
.x-window.edit-note-dialog .x-panel-btns #approve_note,
.x-window.edit-note-dialog .x-panel-fbar #approve_note {
    border-color: rgba(46, 184, 109, 0.6) !important;
    color: #1f7a4a !important;
}
.x-window.edit-note-dialog .x-panel-btns #approve_note button.x-btn-text,
.x-window.edit-note-dialog .x-panel-fbar #approve_note button.x-btn-text {
    color: #1f7a4a !important;
}
.x-window.edit-note-dialog .x-panel-btns #approve_note.x-btn-over,
.x-window.edit-note-dialog .x-panel-fbar #approve_note.x-btn-over {
    background: rgba(46, 184, 109, 0.08) !important;
    border-color: #2eb86d !important;
}
.x-window.edit-note-dialog .x-panel-btns #delete_note,
.x-window.edit-note-dialog .x-panel-fbar #delete_note {
    border-color: rgba(231, 76, 60, 0.5) !important;
}
.x-window.edit-note-dialog .x-panel-btns #delete_note button.x-btn-text,
.x-window.edit-note-dialog .x-panel-fbar #delete_note button.x-btn-text {
    color: #c0392b !important;
}
.x-window.edit-note-dialog .x-panel-btns #delete_note.x-btn-over,
.x-window.edit-note-dialog .x-panel-fbar #delete_note.x-btn-over {
    background: rgba(231, 76, 60, 0.08) !important;
    border-color: #e74c3c !important;
}
.x-window.edit-note-dialog .x-panel-btns #delete_note.x-btn-over button.x-btn-text,
.x-window.edit-note-dialog .x-panel-fbar #delete_note.x-btn-over button.x-btn-text {
    color: #c0392b !important;
}

/* East "Pick Groups/Users" panel — themed sidebar header */
.x-window.edit-note-dialog #navPanel .x-panel-header,
.x-window.edit-note-dialog #navPanel .x-panel-header-text {
    background: var(--acs-hover-bg, #f6f8fb) !important;
    background-image: none !important;
    color: var(--acs-text-primary, #1c2127) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    border-bottom: 1px solid var(--acs-border, #e2e6ec) !important;
    padding: 10px 12px !important;
}
.x-window.edit-note-dialog #navPanel .x-panel-body {
    background: #fff !important;
}

/* Side-panel collapse pill (.x-layout-mini, .x-layout-cmini-*) — keep
   the canonical dark-pill geometry from ext-acs-widgets.css (#1c2127,
   14×32, opacity-on-hover for split bar). Override only the chevron:
   the shell pattern draws it as a CSS border-triangle; here we replace
   with a real SVG icon from shared-icons.css so the glyph reads cleanly
   at HiDPI and matches the theme icon library. */

/* Split bar (expanded) — chevron-right indicates "collapse east" */
.x-window.edit-note-dialog .x-layout-split-east .x-layout-mini::before {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    width: 10px !important;
    height: 10px !important;
    -webkit-mask-image: var(--icon-chevron-right) !important;
            mask-image: var(--icon-chevron-right) !important;
    -webkit-mask-size: 10px 10px !important;
            mask-size: 10px 10px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: #fff !important;
}

/* Collapsed strip — chevron-left indicates "expand east" */
.x-window.edit-note-dialog .x-layout-cmini-east .x-layout-mini::before,
.x-window.edit-note-dialog .x-layout-cmini-east .x-layout-mini-east::before {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    width: 10px !important;
    height: 10px !important;
    -webkit-mask-image: var(--icon-chevron-left) !important;
            mask-image: var(--icon-chevron-left) !important;
    -webkit-mask-size: 10px 10px !important;
            mask-size: 10px 10px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: #fff !important;
}

/* "Pick Groups/Users" inner panel-header collapse tool — SVG chevron-right
   via a ::before pseudo (the tool itself stays as an empty 15×15 click
   target). On hover the chevron flips to brand-cyan. */
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-collapse-east,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east {
    background-image: none !important;
    background-color: transparent !important;
    width: 16px !important;
    height: 16px !important;
    position: relative !important;
    border-radius: 4px !important;
    transition: background-color 0.15s !important;
    cursor: pointer !important;
}
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-collapse-east::before,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    -webkit-mask-image: var(--icon-chevron-right) !important;
            mask-image: var(--icon-chevron-right) !important;
    -webkit-mask-size: 12px 12px !important;
            mask-size: 12px 12px !important;
    -webkit-mask-position: center !important;
            mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
            mask-repeat: no-repeat !important;
    background-color: var(--acs-text-secondary, #5a6370) !important;
    transition: background-color 0.15s !important;
}
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east::before {
    -webkit-mask-image: var(--icon-chevron-left) !important;
            mask-image: var(--icon-chevron-left) !important;
}
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-collapse-east:hover,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-collapse-east-over,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east:hover,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east-over {
    background-color: var(--acs-hover-bg, #f6f8fb) !important;
}
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-collapse-east:hover::before,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-collapse-east-over::before,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east:hover::before,
.x-window.edit-note-dialog #navPanel > .x-panel-header .x-tool.x-tool-expand-east-over::before {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}