.audit_exit{
    background-image: url("/static/images/back.png");
    background-repeat: no-repeat;
}

.item_delete{
    background-image: url("/static/images/cmd_del.png");
    background-repeat: no-repeat;
    background-position: 0 0;
}

.item_copy{
	background-image:url("/static/images/copy.png");
}

.item_export{
    background-image: url("/static/images/ext/xls.png");
    background-repeat: no-repeat;
}

.item_clear_filter {
	background-image:url("/static/images/tb_clear_filter.png") !important;
    background-repeat: no-repeat;
}

.item_check {
	background-image:url("/static/images/find.png") !important;
    background-repeat: no-repeat;
}

.recurrence_label{
    font-size: 12px;
}

#repeat_win .x-btn.x-btn-pressed {
    /*background-color: #99bbe8;*/
    background-color: #FFFFFF;
}

#repeat_win .x-btn.x-btn-pressed .x-btn-text{
    color: black !important;
}

/* audit.css rides the _dep_acs_user_sec bundle, so it loads on many admin screens,
   not just the Audit Manager. The QuickTip is a single global element on <body>, so
   an un-scoped .x-tip rule restyles every tooltip in the app. Scope the audit tooltip
   rules to the Audit Manager via body.audit-page (set in ui/templates/audit.html),
   the same page-scoping the User Admin rules use with body.users-page. */
.audit-page .x-tip-anchor-bottom {
    background-position: -30px 0;
}

.audit-page .x-tip-anchor {
    background-image:url("/static/images/audit_info_tool_tip.png") !important;
    width: 26px;
    height: 20px;
    margin-top: 2px;
}

.audit-page .x-tip .x-tip-body {
    padding: 5px 5px 5px 5px;
    /* Cap the tooltip width and wrap long derived group names (a long no-space name
       otherwise grows the tip off-screen). overflow-wrap:anywhere breaks only a token
       that alone exceeds the width, so normal multi-word tips still wrap at spaces. */
    max-width: 360px;
    overflow-wrap: anywhere;
}
.x-gray_node  a span
{
    color: gray !important;
}

/* Repeat: read-only summary field.

   The legacy config asks for a 30px `textarea` with `rows: 2` to display a
   single line ("Not repeating", or the recurrence summary). ExtJS subtracts
   the field's border and padding from that configured height when it sizes
   the input, so the theme's `padding: 8px 12px` on `textarea.x-form-field`
   left an inline `height: 14px` against an 18.2px line and the value was
   clipped away entirely.

   Give the box the height one padded line actually needs (18px line + 16px
   padding + 2px border). The row below it starts 40px lower, so this fits
   the existing layout without moving anything, and the field keeps the
   standard input padding instead of being visually special-cased. */
#repeats {
    height: 37px !important;
}

/* ============================================================================
   Audit Manager toolbar icons

   Ports the task-report toolbar pattern (ext-acs-taskreport.css) to this
   screen. ExtJS3 renders the icon class on the `<button class="x-btn-text">`
   itself, and a mask on the button would mask its label too, so the glyph is
   painted by a ::before pseudo: transparent button, SVG token as mask-image,
   icon colour as background-color.

   Scoped to body.audit-page so other screens using a `user_add_new` or
   `item_copy` class are untouched.
   ============================================================================ */

/* The bar below is taller than the shell reserves by default, so the header
   region has to be told. That number lives in JS, as `toolbar_height` in
   audit/index.js, and deliberately not here: the shell adds the checkout
   banner's height to its own sum, and a stylesheet cannot see the banner, so
   a hard-coded total here is 20px short inside a checkout session and the
   grid covers the bottom of the bar. */

/* Toolbar container: the legacy `.acs_toolbar` rule in ext-acs-header.css
   pins this bar to 25px with an off-white wash and a -4px offset, which is
   too tight for 30px buttons. Same 40px flex bar the task report uses. */
body.audit-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;
}

/* Button box: the legacy theme sizes these for a 16px sprite
   (`.acs-new-theme .acs_toolbar .x-btn.x-btn-text-icon .x-btn-text` sets a
   20px left indent to clear it, and the azzurra rule pins height to 16px).
   With the glyph moved to a ::before that indent is dead space and the
   buttons sit cramped and unevenly spaced. Restate the chrome the task
   report toolbar uses so both screens read the same. */
body.audit-page .acs_toolbar .x-btn.x-btn-text-icon,
body.audit-page .acs_toolbar .x-btn {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    height: auto !important;
}
body.audit-page .acs_toolbar .x-btn button.x-btn-text {
    height: auto !important;
    line-height: 1.4 !important;
    padding: 6px 10px !important;
    padding-left: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--acs-text-secondary, #5a6370) !important;
    box-sizing: border-box !important;
}
body.audit-page .acs_toolbar .x-btn.x-btn-over button.x-btn-text {
    color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Clear the legacy PNG sprite from the toolbar buttons. */
body.audit-page .acs_toolbar button.audit_exit,
body.audit-page .acs_toolbar button.user_add_new,
body.audit-page .acs_toolbar button.user_edit,
body.audit-page .acs_toolbar button.item_delete,
body.audit-page .acs_toolbar button.item_copy,
body.audit-page .acs_toolbar button.item_export,
body.audit-page .acs_toolbar button.item_clear_filter,
body.audit-page .acs_toolbar button.item_check {
    background-image: none !important;
    background-color: transparent !important;
}

body.audit-page .acs_toolbar button.audit_exit::before,
body.audit-page .acs_toolbar button.user_add_new::before,
body.audit-page .acs_toolbar button.user_edit::before,
body.audit-page .acs_toolbar button.item_delete::before,
body.audit-page .acs_toolbar button.item_copy::before,
body.audit-page .acs_toolbar button.item_export::before,
body.audit-page .acs_toolbar button.item_clear_filter::before,
body.audit-page .acs_toolbar button.item_check::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;
}

body.audit-page .acs_toolbar button.audit_exit::before {
    -webkit-mask-image: var(--icon-chevron-left) !important;
            mask-image: var(--icon-chevron-left) !important;
}
body.audit-page .acs_toolbar button.user_add_new::before {
    -webkit-mask-image: var(--icon-plus) !important;
            mask-image: var(--icon-plus) !important;
}
body.audit-page .acs_toolbar button.user_edit::before {
    -webkit-mask-image: var(--icon-edit) !important;
            mask-image: var(--icon-edit) !important;
}
body.audit-page .acs_toolbar button.item_delete::before {
    -webkit-mask-image: var(--icon-trash) !important;
            mask-image: var(--icon-trash) !important;
}
body.audit-page .acs_toolbar button.item_copy::before {
    -webkit-mask-image: var(--icon-copy) !important;
            mask-image: var(--icon-copy) !important;
}
body.audit-page .acs_toolbar button.item_export::before {
    -webkit-mask-image: var(--icon-file-spreadsheet) !important;
            mask-image: var(--icon-file-spreadsheet) !important;
}
body.audit-page .acs_toolbar button.item_clear_filter::before {
    -webkit-mask-image: var(--icon-filter-x) !important;
            mask-image: var(--icon-filter-x) !important;
}
body.audit-page .acs_toolbar button.item_check::before {
    -webkit-mask-image: var(--icon-search) !important;
            mask-image: var(--icon-search) !important;
}

/* Hover follows the task-report toolbar: glyph flips to brand cyan. */
body.audit-page .acs_toolbar .x-btn.x-btn-over button.audit_exit::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.user_add_new::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.user_edit::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.item_delete::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.item_copy::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.item_export::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.item_clear_filter::before,
body.audit-page .acs_toolbar .x-btn.x-btn-over button.item_check::before {
    background-color: var(--acs-brand-cyan, #00aeef) !important;
}

/* Disabled glyphs soften, matching the disabled label. */
body.audit-page .acs_toolbar .x-item-disabled button.audit_exit::before,
body.audit-page .acs_toolbar .x-item-disabled button.user_add_new::before,
body.audit-page .acs_toolbar .x-item-disabled button.user_edit::before,
body.audit-page .acs_toolbar .x-item-disabled button.item_delete::before,
body.audit-page .acs_toolbar .x-item-disabled button.item_copy::before,
body.audit-page .acs_toolbar .x-item-disabled button.item_export::before,
body.audit-page .acs_toolbar .x-item-disabled button.item_clear_filter::before,
body.audit-page .acs_toolbar .x-item-disabled button.item_check::before {
    background-color: var(--acs-text-tertiary, #8c95a0) !important;
}

/* Legacy 3D button sprite slices. `.x-btn` is a 3x3 table of sprite cells;
   hide the eight edge cells and clear the centre so each button is a flat
   transparent pill, matching the task report toolbar. */
body.audit-page .acs_toolbar .x-btn .x-btn-tl,
body.audit-page .acs_toolbar .x-btn .x-btn-tc,
body.audit-page .acs_toolbar .x-btn .x-btn-tr,
body.audit-page .acs_toolbar .x-btn .x-btn-bl,
body.audit-page .acs_toolbar .x-btn .x-btn-bc,
body.audit-page .acs_toolbar .x-btn .x-btn-br,
body.audit-page .acs_toolbar .x-btn .x-btn-ml,
body.audit-page .acs_toolbar .x-btn .x-btn-mr {
    display: none !important;
}
body.audit-page .acs_toolbar .x-btn .x-btn-mc {
    background-image: none !important;
    padding: 0 !important;
}
body.audit-page .acs_toolbar .x-btn {
    border-radius: 4px !important;
    transition: background-color 0.15s !important;
}
body.audit-page .acs_toolbar .x-btn.x-btn-over {
    background-color: var(--acs-hover-bg, #f6f8fb) !important;
}

/* Filter combo. The theme-wide inline-flex on `.x-form-field-wrap` stretches
   the trigger to the wrap height while ExtJS pins the input at 20px inline,
   so without this the two sit mismatched inside a 34px wrap. */
body.audit-page .acs_toolbar .x-form-field-wrap {
    align-items: center !important;
    height: 28px !important;
}
body.audit-page .acs_toolbar .x-form-field-wrap .x-form-text {
    height: 28px !important;
    box-sizing: border-box !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    font-size: 13px !important;
}
body.audit-page .acs_toolbar .x-form-field-wrap .x-form-trigger {
    height: 28px !important;
    box-sizing: border-box !important;
    align-self: center !important;
}

/* ============================================================================
   Audit Manager grid

   Ports the task-report grid treatment. The shared theme already styles the
   headers, cells and sort caret; what is missing here is the panel chrome and
   the row states, which were still on the legacy azzurra styles.
   ============================================================================ */

/* Legacy bluish-grey (#aeb6be) panel borders. Two of these nest directly under
   the toolbar, so on top of the toolbar's own themed border-bottom they
   painted a thick dark band between the toolbar and the column headers where
   the task report shows a single hairline. The visible separators are the
   toolbar's border-bottom above and the bbar's border-top below. */
body.audit-page .audit-panel .x-panel-body.x-panel-body-noheader {
    border: none !important;
}

/* Themed separator between the grid and the footer pagination. */
body.audit-page .audit-panel .x-panel-bbar:not(:has(> .x-toolbar.x-hide-display)) {
    border-top: 1px solid var(--acs-border, #e2e6ec) !important;
}

/* Row hover — legacy paints #ededf0; use the theme hover wash. */
body.audit-page .x-grid3 .x-grid3-row-over {
    background-color: var(--acs-hover-bg, #f6f8fb) !important;
    border-color: var(--acs-border-light, #ecf0f6) !important;
}

/* Row selection — legacy paints a grey #dcdfe3 wash that reads as a disabled
   state under the new theme. Cyan tint + soft cyan border, per
   STYLING_PATTERNS 2.3. */
body.audit-page .x-grid3 .x-grid3-row-selected {
    background-color: #EEF6FB !important;
    border-color: #c8e1f0 !important;
}
body.audit-page .x-grid3 .x-grid3-row-selected + .x-grid3-row,
body.audit-page .x-grid3 .x-grid-with-col-lines .x-grid3-row-selected {
    border-top-color: #c8e1f0 !important;
}

/* ============================================================================
   Recurrence dialog (#repeat_win) field sizing

   This window reuses the id `repeat_win`, but the rules that size the task
   report's version live in ext-acs-compliance.css, which the audit page does
   not load. It sets hand-measured input widths (100 / 130 / 64px) that
   differ from the dialog's configuration.

   Keep the wrap `display: flex` and never `inline-flex`: the dialog is
   layout:'absolute' and ExtJS positions each wrap with `position: relative`
   plus a left/top offset, so an inline box moves the origin those offsets
   count from and the fields slide into each other. Do not set a height here
   either, or the rows below drift down from where the layout placed them.
   ============================================================================ */
body.audit-page #repeat_win.x-window .x-form-field-wrap:not(.x-hide-display) {
    /* Do NOT set `position` here. These wraps carry `x-abs-layout-item`, which
       azzurra positions `absolute` so the inline left/top are real coordinates.
       Forcing `relative` (as the task report's block does, where the wraps sit
       in flex rows instead) drops them back into flow, and every field below
       the first drifts down by the extra height the themed inputs add.

       `fit-content`, not `auto`: a block-level flex box with `auto` fills its
       parent, which stretched each wrap to the full body width and carried its
       trigger button out past the window edge. */
    display: flex !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    flex: 0 0 auto !important;
}
body.audit-page #repeat_win.x-window .x-form-field-wrap.x-hide-display {
    display: none !important;
}
body.audit-page #repeat_win.x-window .x-form-field-wrap > input.x-form-text {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    width: 100px !important;
}
/* Date fields carry a formatted date ("17 Sep, 2026"). */
body.audit-page #repeat_win.x-window input#audit_targetdate,
body.audit-page #repeat_win.x-window input#end_date {
    width: 130px !important;
}
/* Numeric "every N" and occurrence count. */
body.audit-page #repeat_win.x-window input.x-form-num-field {
    flex: none !important;
    width: 64px !important;
    box-sizing: border-box !important;
}
/* These combos and date pickers are `editable: false`, which sets readonly.
   The global readonly dim reads as "disabled" on a picker-only field whose
   value is chosen from its dropdown, so keep them at full strength. */
body.audit-page #repeat_win .x-form-text[readonly],
body.audit-page #repeat_win .x-form-text:read-only {
    opacity: 1 !important;
}

/* Options panel border. The themed header paints its underline in
   `--acs-border-light`, but the panel body keeps azzurra's legacy `#aeb6be`
   on its other three sides, so the card read as a light line on top and a
   dark box around the rest. Match the header. */
body.audit-page #repeat_win .x-panel-body {
    border-color: var(--acs-border-light, #ecf0f6) !important;
}
