/*
 * فتوامان در رنگ‌های منتخب مالک — در همهٔ مدیریت‌ها
 * (تسک ۱۴۰۵/۰۸/۰۷/۰۱ روی «گالری‌ها»؛ تعمیم به کل پنل: تسک ۱۴۰۵/۰۸/۰۸/۰۲).
 *
 *   سرستون‌های جدول، دکمه‌های اصلی            قرمز      #B84249
 *   نوشته و نشانهٔ روی آن‌ها                     سفید      #FFFFFF
 *   کادرهای هشدار ثابت                          قرمز آجری #AA5147
 *   اجزای سربرگ و قیف                          قرمز نهایی #E53935
 *     (تسک ۱۴۰۵/۰۸/۰۸/۰۳ — انتخاب قطعی مالک، مستقیماً در همین فایل)
 *   عنوان اصلی هر ردیف                          سفید      #FFFFFF
 *     (تسک ۱۴۰۵/۰۸/۲۱/۰۴ — از قرمز به سفید، مثل crawler.baligpa.com؛
 *      در حالت روشن، نوشتهٔ تیرهٔ جدول تا خوانا بماند)
 *
 * Every rule starts at `.fi-body.fi-panel-admin` — two classes on the one
 * <body> of this panel — so it outweighs «استانداردسازی نمای پنل», which
 * writes its rules from `.fi-body` and prints them after every stylesheet,
 * by one class rather than by `!important`. This file is also loaded after
 * that block. A table, a button or a box inside a tab, a relation list or an
 * open window is reached the same way, since all of them sit in that body.
 *
 * The two colour combinations the standards block draws from —
 * «نوار عنوان جدول» and «دکمه اصلی» — are redefined on the body as well, so
 * whatever reads them (the line under a management's name, a hand-drawn table
 * with a real heading row) turns with them.
 *
 * Solid colours only: no opacity and no colour-mix on a base colour. The
 * states a button has to tell apart are solid shades of the same red, every
 * one with white writing.
 *
 * Left as they were, on purpose: buttons whose colour is what they do
 * («حذف» red, a warning or a success button), badges, the yellow «بررسی
 * مجدد» figure, results in green, and the panel's own top bar.
 */

.fi-body.fi-panel-admin {
    --pa-red: #B84249;
    --pa-red-hover: #A3373E;
    --pa-red-pressed: #8C2F35;
    --pa-red-disabled: #6E4245;
    --pa-white: #FFFFFF;
    --pa-brick: #AA5147;
    --pa-brick-soft: #F6E9E7;
    --pa-brick-soft-dark: #3A2422;
    --pa-blue: #91BFE3;
    /* The owner's final, approved red (تسک ۱۴۰۵/۰۸/۰۸/۰۳). Written here as a
       code on purpose — never read from a setting or from another button. */
    --pa-title: #E53935;
    /* The row's own title (تسک ۱۴۰۵/۰۸/۲۱/۰۴): white, as on the reference,
       crawler.baligpa.com. Its own name, apart from --pa-title, so the top
       bar and the funnel keep the red. White on the dark page (below); on
       a light one white would vanish, so there it is the table's dark
       writing. */
    --pa-row-title: #1F2125;
    /* Photoaman's error red: the panel's standard «قرمز خطا» (StandardColours
       'danger'), named once here so a figure that warns reads it rather than
       a code of its own (تسک ۱۴۰۵/۰۸/۰۹/۰۲، بند ۵). The light shade on dark. */
    --pa-error: var(--std-color-danger-600, #DC2626);
    --pa-error-dark: var(--std-color-danger-400, #F87171);

    --std-combo-table-header-text: var(--pa-white);
    --std-combo-table-header-background: var(--pa-red);
    --std-combo-table-header-text-dark: var(--pa-white);
    --std-combo-table-header-background-dark: var(--pa-red);

    --std-combo-button-primary-text: var(--pa-white);
    --std-combo-button-primary-background: var(--pa-red);
    --std-combo-button-primary-text-dark: var(--pa-white);
    --std-combo-button-primary-background-dark: var(--pa-red);

    /* The line under a management's name reads the header's colour. */
    --agency-management-name-colour: var(--pa-red);
}

.dark .fi-body.fi-panel-admin {
    --pa-row-title: #FFFFFF;
}

/* ── ۱. سرستون‌های جدول ───────────────────────────────────────────────────── */

.fi-body.fi-panel-admin .fi-ta-table > thead > tr,
.fi-body.fi-panel-admin .fi-ta-table > thead > tr > th,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-group-cell,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-selection-cell,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-actions-header-cell,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-empty-header-cell {
    background-color: var(--pa-red);
}

.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-group-cell,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell-sort-btn,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell-sorted .fi-ta-header-cell-sort-btn,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell-sort-btn .fi-icon,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell .fi-icon,
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell-label {
    color: var(--pa-white);
}

/* The keyboard's ring on a heading is white on the red. */
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-ta-header-cell-sort-btn:focus-visible {
    outline: 2px solid var(--pa-white);
    outline-offset: 2px;
}

/* The tick-all box in the header row: white edge on the red, so it is seen. */
.fi-body.fi-panel-admin .fi-ta-table > thead .fi-checkbox-input {
    border-color: var(--pa-white);
}

/* ── ۱. دکمه‌های اصلی ─────────────────────────────────────────────────────── */

/* «ایجاد»، «افزودن»، «ذخیره»، a filter's «اعمال», a window's confirm — every
   filled primary button, in the page and in its windows. Written one class
   longer than the standards' own button rule
   (`.fi-btn.fi-color.fi-color-primary:not(.fi-outlined):not(label)`). */
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined) {
    background-color: var(--pa-red);
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined) .fi-icon,
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined) .fi-btn-label,
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined) .fi-loading-indicator,
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined) .fi-badge {
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined):hover,
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined):focus-visible {
    background-color: var(--pa-red-hover);
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined):focus-visible {
    outline: 2px solid var(--pa-blue);
    outline-offset: 2px;
}

.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined):active {
    background-color: var(--pa-red-pressed);
    color: var(--pa-white);
}

/* Disabled: a duller red rather than Filament's see-through one, writing
   still white, and the pointer saying it will not answer. */
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined):disabled,
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined).fi-disabled,
.fi-body.fi-panel-admin .fi-btn.fi-color.fi-color-primary:not(.fi-outlined)[aria-disabled='true'] {
    background-color: var(--pa-red-disabled);
    color: var(--pa-white);
    opacity: 1;
    cursor: not-allowed;
}

/* ── ۲. کادرهای هشدار ثابت ───────────────────────────────────────────────── */

/* The boxes a page keeps on screen — «بدون موقعیت جغرافیایی», «گالری‌های
   تأییدنشده», a record's access or location warning. Writing, icon, edge and
   links in the brick red, on a soft shade of it so the writing reads. The
   box keeps its shape and everything in it keeps working. */
.fi-body.fi-panel-admin .pa-fixed-warning,
.fi-body.fi-panel-admin .fi-gallery-location-warning,
.fi-body.fi-panel-admin .fi-gallery-access-warning-box,
.fi-body.fi-panel-admin .fi-gallery-missing-links,
.fi-body.fi-panel-admin .fi-section.fi-color-warning,
.fi-body.fi-panel-admin .fi-callout.fi-color-warning {
    background-color: var(--pa-brick-soft);
    border-color: var(--pa-brick);
    color: var(--pa-brick);
}

.fi-body.fi-panel-admin.dark .pa-fixed-warning,
.dark .fi-body.fi-panel-admin .pa-fixed-warning,
.fi-body.fi-panel-admin.dark .fi-gallery-location-warning,
.dark .fi-body.fi-panel-admin .fi-gallery-location-warning,
.fi-body.fi-panel-admin.dark .fi-gallery-access-warning-box,
.dark .fi-body.fi-panel-admin .fi-gallery-access-warning-box,
.fi-body.fi-panel-admin.dark .fi-gallery-missing-links,
.dark .fi-body.fi-panel-admin .fi-gallery-missing-links {
    background-color: var(--pa-brick-soft);
}

.fi-body.fi-panel-admin .pa-fixed-warning *,
.fi-body.fi-panel-admin .fi-gallery-location-warning *,
.fi-body.fi-panel-admin .fi-gallery-access-warning-box *,
.fi-body.fi-panel-admin .fi-gallery-missing-links * {
    color: var(--pa-brick);
    border-color: var(--pa-brick);
}

.fi-body.fi-panel-admin .pa-fixed-warning a,
.fi-body.fi-panel-admin .fi-gallery-location-warning a,
.fi-body.fi-panel-admin .fi-gallery-access-warning-box a,
.fi-body.fi-panel-admin .fi-gallery-missing-links a {
    color: var(--pa-brick);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* A button inside a box stays a button: solid brick, white writing. */
.fi-body.fi-panel-admin .fi-gallery-missing-links .fi-gallery-missing-links-cta,
.fi-body.fi-panel-admin .fi-gallery-access-warning-box .fi-gallery-access-warning-button,
.fi-body.fi-panel-admin .pa-fixed-warning .fi-btn {
    background-color: var(--pa-brick);
    border-color: var(--pa-brick);
    color: var(--pa-white);
    text-decoration: none;
}

.fi-body.fi-panel-admin .fi-gallery-missing-links .fi-gallery-missing-links-cta *,
.fi-body.fi-panel-admin .fi-gallery-access-warning-box .fi-gallery-access-warning-button *,
.fi-body.fi-panel-admin .pa-fixed-warning .fi-btn * {
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-gallery-missing-links .fi-gallery-missing-links-cta:hover,
.fi-body.fi-panel-admin .fi-gallery-access-warning-box .fi-gallery-access-warning-button:hover,
.fi-body.fi-panel-admin .pa-fixed-warning .fi-btn:hover {
    background-color: #934238;
}

/* ── ۳. عنوان اصلی هر ردیف ───────────────────────────────────────────────── */

/* The column `RowTitle` marks: the gallery's title, the employee's name, a
   person's «نام» and «نام خانوادگی». The writing of the row, never the
   heading above it. White exactly (--pa-row-title; #E53935 until
   تسک ۱۴۰۵/۰۸/۲۱/۰۴) — no see-through, nothing faded — when
   resting, under the pointer and once visited; underlined while the pointer
   is on it; opens in a new tab. */
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title .fi-ta-text-item,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title .fi-ta-text-item-label,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title .fi-gallery-title-line,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title .fi-gallery-title-text,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title .pa-row-title-text,
.fi-body.fi-panel-admin .fi-ta-table a:visited .pa-row-title,
.fi-body.fi-panel-admin .fi-ta-table a:visited .pa-row-title .fi-ta-text-item,
.fi-body.fi-panel-admin .fi-ta-table a:visited .pa-row-title .fi-ta-text-item-label,
.fi-body.fi-panel-admin .fi-ta-table a:hover .pa-row-title .fi-ta-text-item-label {
    color: var(--pa-row-title);
    opacity: 1;
}

.fi-body.fi-panel-admin .fi-ta-table a:hover .pa-row-title,
.fi-body.fi-panel-admin .fi-ta-table a:hover .pa-row-title .fi-ta-text-item,
.fi-body.fi-panel-admin .fi-ta-table a:hover .pa-row-title .fi-ta-text-item-label,
.fi-body.fi-panel-admin .fi-ta-table a:hover .pa-row-title .fi-gallery-title-text,
.fi-body.fi-panel-admin .fi-ta-table a.pa-row-title:hover,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* A drawn title cell — a face and a name, the name its own link. */
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title-cell .fi-photographer-cell-name,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title-cell .fi-people-face-cell a,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title-cell .fi-people-face-cell a:visited {
    color: var(--pa-row-title);
    opacity: 1;
}

.fi-body.fi-panel-admin .fi-ta-table .pa-row-title-cell .fi-photographer-cell-link:hover .fi-photographer-cell-name,
.fi-body.fi-panel-admin .fi-ta-table .pa-row-title-cell .fi-people-face-cell a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.fi-body.fi-panel-admin .fi-ta-table a:focus-visible .pa-row-title {
    text-decoration: underline;
}

/* ── ۴. اجزای سربرگ و نشانهٔ پالایش ──────────────────────────────────────── */

/* The top bar is every page's: «پیش‌فرض من», its tick, the triangle beside
   it and the figure of «تعداد ورود شما به پنل» — in #E53935 on every page,
   whatever the figure is. The date, the time in the panel and the rest of
   the bar keep their colours. The controls do what they did. */
.fi-body.fi-panel-admin .fi-agency-sidebar-default,
.fi-body.fi-panel-admin .fi-agency-sidebar-default-label,
.fi-body.fi-panel-admin .fi-agency-sidebar-toggle-icon,
.fi-body.fi-panel-admin .fi-agency-header-login-count-value {
    color: var(--pa-title);
}

/* The tick, drawn rather than left to the browser, so its box and its ticked
   state are both exactly this red: a red edge when clear, filled red with a
   white tick when ticked. */
.fi-body.fi-panel-admin .fi-agency-sidebar-default-input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    margin: 0;
    border: 1.5px solid var(--pa-title);
    border-radius: 0.2rem;
    background: none;
    accent-color: var(--pa-title);
}

.fi-body.fi-panel-admin .fi-agency-sidebar-default-input:checked {
    background-color: var(--pa-title);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.fi-body.fi-panel-admin .fi-agency-sidebar-default-input:focus-visible {
    outline: 2px solid var(--pa-title);
    outline-offset: 2px;
}

/* The funnel before a management's name («راهنمای جست‌وجو و فیلترها») — on
   every management. */
.fi-body.fi-panel-admin .fi-header .agency-guide-trigger {
    color: var(--pa-title);
}

.fi-body.fi-panel-admin .fi-header .agency-guide-trigger:hover,
.fi-body.fi-panel-admin .fi-header .agency-guide-trigger:focus-visible {
    background: #3A1F1E;
}

.fi-body.fi-panel-admin .fi-header .agency-guide-trigger:focus-visible {
    box-shadow: 0 0 0 2px var(--pa-title);
}

/* ── «گالری‌ها»: what stays this page's own ─────────────────────────────── */

/* The heading line's figures — «نمایش در سایت», «خاموش», «خصوصی», «عکس‌های
   هیدن» — the guide beside the name and the count on «فیلدهای جست‌وجو», in
   the light blue approved with this page (تسک ۱۴۰۵/۰۸/۰۷/۰۱). */
.fi-body.fi-panel-admin .fi-page-photoaman-galleries .fi-gallery-stats-heading-link:not(.fi-gallery-stat-recheck),
.fi-body.fi-panel-admin .fi-page-photoaman-galleries .fi-gallery-stats-heading-link:not(.fi-gallery-stat-recheck) .fi-gallery-stats-heading-label,
.fi-body.fi-panel-admin .fi-page-photoaman-galleries .fi-gallery-stats-heading-link:not(.fi-gallery-stat-recheck) .fi-gallery-stats-heading-icon {
    color: var(--pa-blue);
}

.fi-body.fi-panel-admin .fi-page-photoaman-galleries .fi-gallery-stats-heading-link:not(.fi-gallery-stat-recheck):hover .fi-gallery-stats-heading-label {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* The competition under each gallery title. */
.fi-body.fi-panel-admin .fi-page-photoaman-galleries .fi-gallery-competition-name .fi-ta-text-item,
.fi-body.fi-panel-admin .fi-page-photoaman-galleries .fi-gallery-competition-name.fi-ta-text {
    color: var(--pa-blue);
}

.fi-body.fi-panel-admin .fi-page-photoaman-galleries .agency-search-fields-count {
    background: var(--pa-blue);
    color: #0B1B2A;
}

/*
 * «نقش‌ها و سطح دسترسی» (تسک ۱۴۰۵/۰۸/۰۹/۰۱، بند ۱۳): an employee's Telegram
 * group, in the list and in the form, in the owner's approved blue — one
 * colour wherever it is drawn. The one place the blue goes beyond «گالری‌ها»,
 * by the task's own words (بند ۱۳).
 */
.fi-body.fi-panel-admin .fi-employee-telegram-id .fi-ta-text-item-label,
.fi-body.fi-panel-admin .fi-employee-telegram-id .fi-ta-text-item,
.fi-body.fi-panel-admin .fi-employee-telegram-user-field input {
    color: var(--pa-blue);
    font-weight: 700;
}

/* ── «مانیتورینگ نموداری فعالیت عکاسان» (تسک ۱۴۰۵/۰۸/۰۹، فعالیت عکاسان) ────────────────
 *
 * The six pages are agency.baligpa.com's photographer statistics, and that
 * stylesheet (agency-photographer-stats.css) draws them in the agency's yellow.
 * Here, and only on these pages (`pa-pstat`, set by the pages themselves),
 * the yellow becomes photoaman's: titles in the owner's title red, figures in
 * the light blue, a chosen option and the bar under the pointer in the red.
 *
 * Each statistic keeps one colour on every chart it is drawn in — its own
 * page, «مقایسه فعالیت عکاسان» and «نمودارهای آمار فعالیت هر عکاس» — and the
 * two families say what the figure is dated by: reds are read by the
 * gallery's date, blues by the moment of upload.
 */

.fi-body.fi-panel-admin .pa-pstat {
    --pa-pstat-red-light: #E08A8F;
    --pa-pstat-blue-dark: #2F6F9F;
}

.fi-body.fi-panel-admin .pa-pstat .fi-pstat-gallery-count,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-export-btn-gallery-count { --pstat-tint: var(--pa-red); }
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-available-photos,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-export-btn-available-photos { --pstat-tint: var(--pa-pstat-red-light); }
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-uploaded-photos,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-export-btn-uploaded-photos { --pstat-tint: var(--pa-pstat-blue-dark); }
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-average-photos-per-gallery,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-export-btn-average-photos-per-gallery { --pstat-tint: var(--pa-blue); }

/* Titles: the heading's name stays white; the statistic's name on each card is the title red. */
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-card-name {
    color: var(--pa-title);
}

/* Figures: the heading's figure and the cards' figures in the light blue. */
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-heading-figure,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-tile-value {
    color: var(--pa-pstat-blue-dark);
}

.fi-body.fi-panel-admin.dark .pa-pstat .fi-pstat-heading-figure,
.fi-body.fi-panel-admin.dark .pa-pstat .fi-pstat-tile-value,
.dark .fi-body.fi-panel-admin .pa-pstat .fi-pstat-heading-figure,
.dark .fi-body.fi-panel-admin .pa-pstat .fi-pstat-tile-value {
    color: var(--pa-blue);
}

/* The chosen year, month, state or photographer: solid red, white writing. */
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-option.fi-pstat-option-on,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-picker-option-on {
    background-color: var(--pa-red);
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .pa-pstat .fi-pstat-picker-option-on .fi-pstat-picker-name,
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-picker-option-on .fi-pstat-picker-code {
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .pa-pstat .fi-pstat-bar:hover {
    outline-color: var(--pa-red);
}

/* «خروجی عکس نمودار …»: the page's own chart colour, white writing; «مبنای
   محاسبات» the red. One class past the colour exceptions of «استانداردسازی
   نمای پنل» that paint them on the agency (`.fi-body .fi-btn.fi-pstat-…
   :not(.fi-color):not(.fi-outlined):not(label)`). */
.fi-body.fi-panel-admin .pa-pstat .fi-btn.fi-pstat-export-btn:not(.fi-color):not(.fi-outlined):not(label) {
    background-color: var(--pstat-tint, var(--pa-red));
    border-color: var(--pstat-tint, var(--pa-red));
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .pa-pstat .fi-btn.fi-pstat-guide-btn:not(.fi-color):not(.fi-outlined):not(label) {
    background-color: var(--pa-red);
    border-color: var(--pa-red);
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .pa-pstat .fi-btn.fi-pstat-export-btn:not(.fi-color):not(.fi-outlined):not(label) .fi-icon,
.fi-body.fi-panel-admin .pa-pstat .fi-btn.fi-pstat-export-btn:not(.fi-color):not(.fi-outlined):not(label) .fi-btn-label,
.fi-body.fi-panel-admin .pa-pstat .fi-btn.fi-pstat-guide-btn:not(.fi-color):not(.fi-outlined):not(label) .fi-icon,
.fi-body.fi-panel-admin .pa-pstat .fi-btn.fi-pstat-guide-btn:not(.fi-color):not(.fi-outlined):not(label) .fi-btn-label {
    color: var(--pa-white);
}

/* The menu in the sidebar: the entry the operator is standing in is
   photoaman's red with white writing, and the menu holding it is marked in
   the red, instead of the agency's yellow. Only this menu — the rest of the
   sidebar is the panel's to decide. Its window is moved out to the page body,
   so both halves carry the menu's name (`data-flyout-group`). */
.fi-body.fi-panel-admin .fi-sidebar-flyout-panel[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان'] .fi-sidebar-flyout-item.fi-sidebar-flyout-current,
.fi-body.fi-panel-admin .fi-sidebar-flyout-panel[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان'] .fi-sidebar-flyout-item.fi-sidebar-flyout-current:hover {
    background-color: var(--pa-red);
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-sidebar-flyout-panel[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان'] .fi-sidebar-flyout-item.fi-sidebar-flyout-current .fi-sidebar-flyout-item-icon,
.fi-body.fi-panel-admin .fi-sidebar-flyout-panel[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان'] .fi-sidebar-flyout-item.fi-sidebar-flyout-current .fi-sidebar-flyout-item-label {
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-sidebar-flyout-parent[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان'] {
    box-shadow: inset 3px 0 0 var(--pa-red);
}

/* The same menu under the pointer, and the edge of its open window. Solid
   colours: a red edge, and a dark red wash under white writing. The window
   is one element shared by every menu, so it turns red only while it is
   showing this menu's list. */
.fi-body.fi-panel-admin .fi-sidebar-flyout-group.fi-sidebar-flyout-open[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان'] {
    background-color: var(--pa-red-disabled);
    color: var(--pa-white);
}

.fi-body.fi-panel-admin .fi-sidebar-flyout-layer:has(.fi-sidebar-flyout-panel[data-flyout-group='مانیتورینگ نموداری فعالیت عکاسان']:not([style*='display: none'])) {
    border-inline-start-color: var(--pa-red);
}

/* «مقایسه فعالیت عکاسان»: each chart's figure is a figure, so the light blue
   of every other figure on these pages rather than the agency's green. */
.fi-body.fi-panel-admin .pa-pstat .fi-pstat-compare .fi-pstat-card-figure {
    color: var(--pa-pstat-blue-dark);
}

.dark .fi-body.fi-panel-admin .pa-pstat .fi-pstat-compare .fi-pstat-card-figure,
.fi-body.fi-panel-admin.dark .pa-pstat .fi-pstat-compare .fi-pstat-card-figure {
    color: var(--pa-blue);
}
