@import '_content/AdvDeli.Catalog.UI/AdvDeli.Catalog.UI.xbn85bp1gu.bundle.scp.css';
@import '_content/AdvDeli.Inventory.UI/AdvDeli.Inventory.UI.uxeodf054d.bundle.scp.css';
@import '_content/AdvDeli.Reporting.UI/AdvDeli.Reporting.UI.dv8ipq2kic.bundle.scp.css';

/* /Components/Pages/Roles.razor.rz.scp.css */
/* =========================================================
Permission Dialog

LIGHT AND SPACIOUS (2026-10-23). The dark slate section band and the slate "open" tab made the dialog
heavy, and the compact tiles crowded the Back Office tab (~35 permissions) into a dense block. Now:
white section headers with a soft icon, the Back Office indigo (#4f5bd5, the dialog's own Save button)
as the one accent, roomier tiles on a pale well, and the big tab scrolls inside the panel at full size
rather than shrinking to fit.
========================================================= */

/* ONE SCROLLBAR (2026-10-21). This column fills the dialog body and is allowed to SHRINK (RefDialog
   pins every body child at its natural height - hence !important, overriding its ::deep rule), and
   only the permission panel below takes up the slack and scrolls. */
.permission-dialog[b-c8j8jfw0uz] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto !important;
    min-height: 0;
}

    .permission-dialog > *[b-c8j8jfw0uz] {
        flex-shrink: 0;
    }

    /* The one child that shrinks. Written as a child selector so it outranks the rule above once
       Blazor adds its scope attributes. */
    .permission-dialog > .permission-modules[b-c8j8jfw0uz] {
        flex: 1 1 auto;
        min-height: 140px;
    }

/* ---------- Summary ---------- */

.permission-summary[b-c8j8jfw0uz] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbfbff 0%, #f5f6fd 100%);
}

.permission-summary-icon[b-c8j8jfw0uz] {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e9ebfb;
    font-size: 21px;
}

.permission-summary-content[b-c8j8jfw0uz] {
    flex: 1;
    min-width: 0;
}

.permission-summary-title[b-c8j8jfw0uz] {
    font-size: 15.5px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.permission-summary-text[b-c8j8jfw0uz] {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.permission-summary-count[b-c8j8jfw0uz] {
    min-width: 76px;
    text-align: center;
    padding-left: 18px;
    border-left: 1px solid #e6e9f2;
}

    .permission-summary-count strong[b-c8j8jfw0uz] {
        display: block;
        font-size: 24px;
        line-height: 1.1;
        color: #4f5bd5;
        font-variant-numeric: tabular-nums;
    }

    .permission-summary-count span[b-c8j8jfw0uz] {
        font-size: 11px;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: #8a93a3;
    }

/* ---------- Information ---------- */

.permission-info[b-c8j8jfw0uz] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #e8ebf2;
    border-left: 3px solid #a9b0ee;
    border-radius: 10px;
    background: #fafbfd;
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.5;
}

/* The same note, now in the dialog footer (RefDialog.FooterNote). */
.permission-foot-icon[b-c8j8jfw0uz] {
    flex-shrink: 0;
    font-size: 15px;
    color: #6b74d9;
}

.permission-info-icon[b-c8j8jfw0uz] {
    flex-shrink: 0;
    font-size: 15px;
    color: #6b74d9;
}

/* ---------- Toolbar: tabs + search on one line (2026-10-21) ----------
   Sticky inside the dialog, so finding a permission never means scrolling back up. The tabs take the
   width and wrap; the search sits at the right. Stacks on a narrow window. */
.permission-toolbar[b-c8j8jfw0uz] {
    position: sticky;
    top: -1px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 2px 0 14px;
    background: #ffffff;
    border-bottom: 1px solid #eef0f5;
}

    .permission-toolbar .permission-tabs[b-c8j8jfw0uz] {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

.permission-search[b-c8j8jfw0uz] {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 200px;
    min-width: 150px;
    order: 2;
}

    .permission-search input[b-c8j8jfw0uz] {
        width: 100%;
        height: 38px;
        padding: 0 34px;
        border: 1px solid #dfe3ec;
        border-radius: 10px;
        background: #ffffff;
        font-size: 13px;
        color: #1f2937;
        transition: border-color .12s ease, box-shadow .12s ease;
    }

        /* ONE clear button (v9.37): the browser draws its own on a search field beside ours. */
        .permission-search input[b-c8j8jfw0uz]::-webkit-search-cancel-button,
        .permission-search input[b-c8j8jfw0uz]::-webkit-search-decoration {
            -webkit-appearance: none;
            appearance: none;
            display: none;
        }

        .permission-search input[b-c8j8jfw0uz]::-ms-clear {
            display: none;
        }

        .permission-search input[b-c8j8jfw0uz]::placeholder {
            color: #9aa3b2;
        }

        .permission-search input:focus[b-c8j8jfw0uz] {
            outline: none;
            border-color: #4f5bd5;
            box-shadow: 0 0 0 3px rgba(79, 91, 213, .14);
        }

.permission-search-icon[b-c8j8jfw0uz] {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #9aa3b2;
    pointer-events: none;
}

.permission-search-clear[b-c8j8jfw0uz] {
    position: absolute;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

    .permission-search-clear:hover[b-c8j8jfw0uz] {
        background: #f1f3f8;
    }

/* ---------- Tabs ----------
   One per section, wrapping rather than scrolling sideways. Each carries its ticked count. The open
   tab is a soft indigo pill, not a dark block. */
/* v9.37: compact - short names, sized to their content - so every section fits on one row
   beside the search on the wide dialog. */
.permission-tabs[b-c8j8jfw0uz] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.permission-tab[b-c8j8jfw0uz] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px 0 9px;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}

    .permission-tab:hover[b-c8j8jfw0uz] {
        border-color: #c4c9f3;
        background: #fafaff;
    }

    .permission-tab.on[b-c8j8jfw0uz] {
        border-color: #c4c9f3;
        background: #eef0fd;
        color: #3c46b8;
        box-shadow: inset 0 -2px 0 #4f5bd5;
    }

.permission-tab-icon[b-c8j8jfw0uz] {
    font-size: 14px;
    line-height: 1;
}

.permission-tab-count[b-c8j8jfw0uz] {
    padding: 1px 6px;
    border-radius: 999px;
    background: #f1f3f7;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

    .permission-tab-count.part[b-c8j8jfw0uz] {
        background: #e6e8fb;
        color: #4f5bd5;
    }

    .permission-tab-count.full[b-c8j8jfw0uz] {
        background: #4f5bd5;
        color: #ffffff;
    }

/* While searching, no tab is "open" - the panel shows matches from all of them. */
.permission-tabs.searching .permission-tab[b-c8j8jfw0uz] {
    opacity: .65;
}

/* ---------- Panel ----------
   SCROLLS ON ITS OWN: search, tabs and the dialog's buttons stay put and only the open tab's list
   moves. A big tab (Back Office) simply scrolls here at full size. */
.permission-modules[b-c8j8jfw0uz] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 140px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.permission-module[b-c8j8jfw0uz] {
    flex: 0 0 auto;
    /* clip, not hidden: hidden makes the section its own scroll box and the sticky header below
       would stick to nothing. */
    overflow: clip;
    border: 1px solid #e3e7ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

/* ---------- Module Header ----------
   White with a soft icon tile: the section is named clearly without a dark band competing with the
   ticks below it. Sticky, so Select all stays in reach while the list scrolls. */
.permission-module-header[b-c8j8jfw0uz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f5;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.permission-module-title[b-c8j8jfw0uz] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.permission-module-icon[b-c8j8jfw0uz] {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef0fd;
    font-size: 17px;
}

.permission-module-name[b-c8j8jfw0uz] {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .005em;
    color: #1f2937;
}

.permission-module-subtitle[b-c8j8jfw0uz] {
    margin-top: 2px;
    font-size: 11.5px;
    color: #8a93a3;
}

.permission-module-actions[b-c8j8jfw0uz] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.permission-selected-count[b-c8j8jfw0uz] {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f3f7;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
}

.permission-select-btn[b-c8j8jfw0uz] {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #c4c9f3;
    border-radius: 8px;
    background: #ffffff;
    color: #4f5bd5;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}

    .permission-select-btn:hover[b-c8j8jfw0uz] {
        background: #eef0fd;
        border-color: #4f5bd5;
    }

/* ---------- Permission Rows ----------
   Tiles in a grid on a pale well: columns are unmistakable and each permission has room to breathe.
   At 270px a tile holds the longest code on one line; three fit across the wide dialog, two on a
   laptop, one on a phone, with no breakpoint. */
.permission-list[b-c8j8jfw0uz] {
    display: grid;
    /* v9.37: every row carries a Deny / Ask / Allow switch, so a row needs ~430px - two across the
       wide dialog, one on a laptop-narrow window or a phone. */
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 12px;
    padding: 18px;
    background: #f8f9fc;
}

    /* A big section (Back Office screens, ~35 codes) keeps the full tile size and scrolls in the
       panel; it only drops the minimum a little so one more column fits on a wide screen. */
    .permission-list.dense[b-c8j8jfw0uz] {
        grid-template-columns: repeat(auto-fill, minmax(410px, 1fr));
        gap: 8px;
    }

        .permission-list.dense .permission-item[b-c8j8jfw0uz] {
            min-height: 48px;
            padding: 7px 12px;
        }

.permission-item[b-c8j8jfw0uz] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

    .permission-item:hover[b-c8j8jfw0uz] {
        border-color: #c4c9f3;
        box-shadow: 0 2px 8px rgba(79, 91, 213, .08);
    }

    /* Ticked: the tile takes a soft indigo tint, so what a role holds is visible across the grid. */
    .permission-item.selected[b-c8j8jfw0uz] {
        border-color: #c4c9f3;
        background: #f4f5fe;
    }

    .permission-item input[b-c8j8jfw0uz] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

/* ---------- Custom Checkbox ---------- */

.permission-check[b-c8j8jfw0uz] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #c9cfdb;
    border-radius: 6px;
    background: #ffffff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    transition: background .12s ease, border-color .12s ease;
}

.permission-item.selected .permission-check[b-c8j8jfw0uz] {
    border-color: #4f5bd5;
    background: #4f5bd5;
}

/* ---------- Permission Details ---------- */

/* Name on top, code tag under it. */
.permission-details[b-c8j8jfw0uz] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.permission-name[b-c8j8jfw0uz] {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The code as a small quiet tag under the name. */
.permission-code[b-c8j8jfw0uz] {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 7px;
    border-radius: 5px;
    background: #f3f4f7;
    color: #6b7280;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10.5px;
}

.permission-item.selected .permission-code[b-c8j8jfw0uz] {
    background: #e6e8fb;
    color: #4f5bd5;
}

/* ---------- Two-strength permission (v8.0) ----------
   One row, three answers: not allowed / with authorization / without. */
.permission-item.tiered[b-c8j8jfw0uz] {
    /* v9.37: every row. The left edge takes the colour of the answer - rose Deny, amber Ask, indigo
       Allow - so a section reads at a glance. */
    flex-wrap: wrap;
    gap: 8px 12px;
    cursor: default;
    border-left: 4px solid #fda4af;
}

    .permission-item.tiered.tier-2[b-c8j8jfw0uz] {
        border-left-color: #4f5bd5;
    }

    /* The code takes the slack, so the switch sits flush right on one line where it fits. */
    .permission-item.tiered .permission-details[b-c8j8jfw0uz] {
        flex: 1 1 auto;
    }

    /* "With authorization": a manager approves each use - amber, not the indigo of "allowed", so the
       two strengths are told apart across the grid as well as on the switch. */
    .permission-item.tiered.tier-1[b-c8j8jfw0uz] {
        border-color: #f3d08e;
        border-left-color: #d97706;
        background: #fffaf0;
    }

        .permission-item.tiered.tier-1 .permission-check[b-c8j8jfw0uz] {
            border-color: #d97706;
            background: #d97706;
        }

        .permission-item.tiered.tier-1 .permission-code[b-c8j8jfw0uz] {
            background: #fdefd2;
            color: #92400e;
        }

/* A SEGMENTED SWITCH: three equal pills in a track, the chosen one raised. */
.permission-tiers[b-c8j8jfw0uz] {
    display: inline-grid;
    grid-template-columns: repeat(3, 62px);
    margin-left: auto;
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    background: #eef0f5;
}

    .permission-tiers button[b-c8j8jfw0uz] {
        height: 30px;
        padding: 0 8px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #4b5563;
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: background .12s ease, color .12s ease, box-shadow .12s ease;
    }

        .permission-tiers button:hover:not(.on):not(:disabled)[b-c8j8jfw0uz] {
            background: rgba(255, 255, 255, .7);
            color: #1f2937;
        }

        /* The chosen answer, coloured by what it means. */
        .permission-tiers button.on[b-c8j8jfw0uz] {
            background: #ffffff;
            color: #374151;
            box-shadow: 0 1px 3px rgba(16, 24, 40, .14);
        }

.permission-item.tier-0 .permission-tiers button.on[b-c8j8jfw0uz] {
    background: #e11d48;
    color: #ffffff;
}

.permission-item.tier-1 .permission-tiers button.on[b-c8j8jfw0uz] {
    background: #d97706;
    color: #ffffff;
}

.permission-item.tier-2 .permission-tiers button.on[b-c8j8jfw0uz] {
    background: #4f5bd5;
    color: #ffffff;
}

        .permission-tiers button:disabled[b-c8j8jfw0uz] {
            cursor: default;
        }

/* Sign-in offers no Ask: a quiet placeholder keeps the three columns lined up. */
.permission-tier-none[b-c8j8jfw0uz] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b6bcc8;
    font-size: 12px;
    cursor: help;
}

.permission-filter-empty[b-c8j8jfw0uz] {
    grid-column: 1 / -1;
    padding: 18px;
    text-align: center;
    color: #6b7280;
    font-size: 12.5px;
}

.permission-summary-count.ask strong[b-c8j8jfw0uz] {
    color: #d97706;
}

/* ---------- The section bar (v9.37) ----------
   Left: the counts, which are the filter. Right: Set all, a toggle whose lit segment is the answer
   the whole section already has. One band under the section heading. */
.permission-module-bar[b-c8j8jfw0uz] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 18px;
    border-bottom: 1px solid #eef0f5;
    background: #ffffff;
}

.permission-filter[b-c8j8jfw0uz] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-chip[b-c8j8jfw0uz] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e0e4ec;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

    .pf-chip b[b-c8j8jfw0uz] {
        min-width: 20px;
        padding: 1px 6px;
        border-radius: 999px;
        background: #f1f3f7;
        color: #374151;
        font-size: 11.5px;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .pf-chip i[b-c8j8jfw0uz] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
    }

    .pf-chip:hover[b-c8j8jfw0uz] { border-color: #c4c9f3; }

    .pf-chip.allow i[b-c8j8jfw0uz] { background: #4f5bd5; }
    .pf-chip.ask i[b-c8j8jfw0uz] { background: #d97706; }
    .pf-chip.deny i[b-c8j8jfw0uz] { background: #e11d48; }

    .pf-chip.on[b-c8j8jfw0uz] { border-color: #1f2937; background: #1f2937; color: #ffffff; }
    .pf-chip.on b[b-c8j8jfw0uz] { background: rgba(255, 255, 255, .2); color: #ffffff; }
    .pf-chip.allow.on[b-c8j8jfw0uz] { border-color: #4f5bd5; background: #4f5bd5; }
    .pf-chip.ask.on[b-c8j8jfw0uz] { border-color: #d97706; background: #d97706; }
    .pf-chip.deny.on[b-c8j8jfw0uz] { border-color: #e11d48; background: #e11d48; }
    .pf-chip.on i[b-c8j8jfw0uz] { background: #ffffff; }

/* SET ALL: a segmented toggle in a tinted track. The segment matching the whole section is filled
   in its colour; the others tint on hover so the colour of each answer is learnt by pointing. */
.permission-setall[b-c8j8jfw0uz] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f3f8;
    box-shadow: inset 0 0 0 1px #e3e7ef;
}

.permission-setall-label[b-c8j8jfw0uz] {
    padding: 0 10px 0 8px;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.permission-setall button[b-c8j8jfw0uz] {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}

    .permission-setall .sa-deny:hover:not(:disabled):not(.on)[b-c8j8jfw0uz] { background: #fff1f3; color: #be123c; }
    .permission-setall .sa-ask:hover:not(:disabled):not(.on)[b-c8j8jfw0uz] { background: #fff7e8; color: #b45309; }
    .permission-setall .sa-allow:hover:not(:disabled):not(.on)[b-c8j8jfw0uz] { background: #eef0fd; color: #3f49b8; }

    .permission-setall button.on[b-c8j8jfw0uz] {
        color: #ffffff;
        box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
    }

    .permission-setall .sa-deny.on[b-c8j8jfw0uz] { background: #e11d48; }
    .permission-setall .sa-ask.on[b-c8j8jfw0uz] { background: #d97706; }
    .permission-setall .sa-allow.on[b-c8j8jfw0uz] { background: #4f5bd5; }

    .permission-setall button:disabled[b-c8j8jfw0uz] {
        color: #c0c5d0;
        cursor: default;
    }

@media (max-width: 760px) {
    .permission-module-bar[b-c8j8jfw0uz] {
        padding: 10px 12px;
    }

    .permission-setall[b-c8j8jfw0uz] {
        width: 100%;
    }

        .permission-setall button[b-c8j8jfw0uz] {
            flex: 1 1 0;
            justify-content: center;
            padding: 0 8px;
        }
}

/* ---------- Empty State ---------- */

.permission-empty[b-c8j8jfw0uz] {
    padding: 44px 20px;
    text-align: center;
    border: 1px dashed #d5dae5;
    border-radius: 12px;
    background: #fafbfd;
}

.permission-empty-icon[b-c8j8jfw0uz] {
    font-size: 28px;
    margin-bottom: 8px;
}

.permission-empty-title[b-c8j8jfw0uz] {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.permission-empty-text[b-c8j8jfw0uz] {
    margin-top: 4px;
    font-size: 12.5px;
    color: #6b7280;
}

/* ---------- The master's role ----------
   Every box ticked and disabled. Muted rather than greyed to unreadability: the point is that
   somebody can READ the full list of what the support account holds. */
.permission-item.locked[b-c8j8jfw0uz] {
    cursor: default;
    opacity: .85;
}

.permission-item.locked input[type=checkbox][b-c8j8jfw0uz] {
    cursor: default;
}

.permission-info.master[b-c8j8jfw0uz] {
    border-color: #ecd9a0;
    border-left-color: #c9a227;
    background: #fffaeb;
    color: #6b5312;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    .permission-toolbar[b-c8j8jfw0uz] {
        flex-direction: column;
        align-items: stretch;
    }

    .permission-search[b-c8j8jfw0uz] {
        flex: 0 0 auto;
        order: 0;
    }

    .permission-list[b-c8j8jfw0uz],
    .permission-list.dense[b-c8j8jfw0uz] {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
        gap: 10px;
    }
}

@media (max-width: 550px) {
    .permission-summary[b-c8j8jfw0uz] {
        align-items: flex-start;
        padding: 14px;
    }

    .permission-summary-count[b-c8j8jfw0uz] {
        display: none;
    }

    .permission-module-header[b-c8j8jfw0uz] {
        align-items: flex-start;
        padding: 12px 14px;
    }

    .permission-module-actions[b-c8j8jfw0uz] {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
}
/* /Components/Shared/OfficeGate.razor.rz.scp.css */
/* Deny / Ask / Allow (v9.37): the manager's-PIN unlock, over a page or in the corner. Same as WebOffice's. */

.og-ov[b-pqf1kriksx] {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(243, 244, 248, .97);
}

.og-card[b-pqf1kriksx] {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 26px 24px 20px;
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .12);
    text-align: center;
}

    .og-card.small[b-pqf1kriksx] {
        max-width: 330px;
        padding: 18px 18px 14px;
        text-align: left;
    }

    .og-card h2[b-pqf1kriksx] {
        margin: 6px 0 6px;
        font-size: 19px;
        color: #1f2937;
    }

    .og-card h3[b-pqf1kriksx] {
        margin: 0 0 4px;
        font-size: 15px;
        color: #1f2937;
    }

.og-lock[b-pqf1kriksx] {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fdf1dc;
    font-size: 22px;
}

.og-lead[b-pqf1kriksx] {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.45;
}

.og-list[b-pqf1kriksx] {
    margin: -6px 0 12px 18px;
    padding: 0;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}

.og-form[b-pqf1kriksx] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

    .og-form label[b-pqf1kriksx] {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
        font-weight: 600;
        color: #4b5563;
    }

.og-opt[b-pqf1kriksx] {
    font-weight: 400;
    color: #9ca3af;
}

.og-in[b-pqf1kriksx] {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d5dae5;
    border-radius: 8px;
    font-size: 14px;
}

    .og-in:focus[b-pqf1kriksx] {
        outline: none;
        border-color: #d97706;
        box-shadow: 0 0 0 3px rgba(217, 119, 6, .15);
    }

.og-err[b-pqf1kriksx] {
    padding: 8px 10px;
    border-radius: 8px;
    background: #fdecec;
    color: #b42318;
    font-size: 12.5px;
}

.og-go[b-pqf1kriksx] {
    height: 38px;
    margin-top: 2px;
    border: 0;
    border-radius: 8px;
    background: #d97706;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .og-go:disabled[b-pqf1kriksx] {
        opacity: .5;
        cursor: default;
    }

.og-back[b-pqf1kriksx] {
    display: inline-block;
    margin-top: 14px;
    color: #6b7280;
    font-size: 12.5px;
}

.og-corner[b-pqf1kriksx] {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 800;
}

.og-pill[b-pqf1kriksx] {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #f3d08e;
    border-radius: 999px;
    background: #fffaf0;
    color: #92400e;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .12);
}

.og-x[b-pqf1kriksx] {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .og-corner[b-pqf1kriksx] {
        left: 16px;
    }

    .og-card.small[b-pqf1kriksx] {
        max-width: none;
    }
}
/* /Components/Tools/GlobalChangesTool.razor.rz.scp.css */
/* Global Changes.

   Wider than the .rf-page maximum the single-record forms use: this screen is two working panes
   side by side, and squeezing them into 1100px turns the item grid into a column of ellipses. */

.gc-page[b-wjrsrfyhsw] { max-width: 1560px; margin: 0 auto; padding: 8px 4px; }

/* The split. Item selection is the half that gets scanned, so it takes the larger share; the
   change pane is a column of controls and does not benefit from the extra width. */
.gc-split[b-wjrsrfyhsw] {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* Below this the two panes stop being readable side by side and stack instead. */
@media (max-width: 1180px) {
    .gc-split[b-wjrsrfyhsw] { grid-template-columns: minmax(0, 1fr); }
}

.gc-pane[b-wjrsrfyhsw] {
    background: #fff;
    border: 1px solid var(--line, #e3e8ef);
    border-radius: 14px;
    padding: 14px 16px 16px;
    min-width: 0;
}

.gc-pane-head[b-wjrsrfyhsw] {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.gc-pane-head h2[b-wjrsrfyhsw] { font-size: 1.05rem; margin: 0; color: #1f2733; }
.gc-count[b-wjrsrfyhsw] { font-size: .84rem; color: #5c6674; font-variant-numeric: tabular-nums; }

/* ---- filters ---- */

.gc-filters[b-wjrsrfyhsw] { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.gc-f[b-wjrsrfyhsw] { display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.gc-f.grow[b-wjrsrfyhsw] { flex: 1 1 180px; }
.gc-f > label[b-wjrsrfyhsw] { font-size: .74rem; font-weight: 700; color: #6b7482; text-transform: uppercase; letter-spacing: .03em; }
.gc-f .rf-in[b-wjrsrfyhsw] { padding: 7px 10px; font-size: .88rem; }

.gc-seltools[b-wjrsrfyhsw] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ---- the item grid ---- */

/* Capped and scrolled rather than left to run down the page: the change pane has to stay in view
   while the selection is being made, and a thousand-row table would push it out of reach. */
.gc-grid-wrap[b-wjrsrfyhsw] { max-height: 62vh; }

/* On a phone the cap stops earning its keep. 62vh of a 717px screen is a scroll box roughly three
   CARDS tall — a window onto 143 items, inside a page that also scrolls, so the operator is
   working two nested scrollbars with a thumb. The cap exists to stop the list running down the
   page on a desktop where the change panel sits beside it; here that panel is BELOW the list
   anyway, so letting the list have its own length costs nothing and removes the inner scroll.
   dvh, not vh, so the mobile URL bar does not eat the bottom of it. */
@media (max-width: 560px) {
    .gc-grid-wrap[b-wjrsrfyhsw] { max-height: none; }
}

.gc-grid[b-wjrsrfyhsw] { width: 100%; font-size: .87rem; }
.gc-grid th[b-wjrsrfyhsw] { position: sticky; top: 0; z-index: 1; background: #f7f9fc; }
.gc-grid td[b-wjrsrfyhsw], .gc-grid th[b-wjrsrfyhsw] { padding: 7px 10px; }
.gc-grid th.chk[b-wjrsrfyhsw], .gc-grid td.chk[b-wjrsrfyhsw] { width: 34px; padding-right: 0; }
.gc-grid td.num[b-wjrsrfyhsw], .gc-grid th.num[b-wjrsrfyhsw] { text-align: right; font-variant-numeric: tabular-nums; }
.gc-grid tr.gc-sel[b-wjrsrfyhsw] { background: #eef1fd; }

.gc-code[b-wjrsrfyhsw] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; color: #47505e; }
.gc-sub[b-wjrsrfyhsw] { display: block; font-size: .76rem; color: #8a93a1; }
.gc-muted[b-wjrsrfyhsw] { color: #9aa3b1; }

.gc-tag[b-wjrsrfyhsw] {
    display: inline-block; padding: 1px 7px; border-radius: 999px;
    font-size: .74rem; font-weight: 600; border: 1px solid transparent;
}
.gc-tag.ok[b-wjrsrfyhsw]   { background: #e6f4ec; color: #1e6f45; border-color: #c3e4d2; }
.gc-tag.off[b-wjrsrfyhsw]  { background: #f1f3f6; color: #6b7482; border-color: #dde2ea; }
.gc-tag.warn[b-wjrsrfyhsw] { background: #fdf3e3; color: #8a5a12; border-color: #e8d3a8; }

/* ---- the change cards ---- */

.gc-cards[b-wjrsrfyhsw] { display: flex; flex-direction: column; gap: 10px; }

.gc-card[b-wjrsrfyhsw] {
    border: 1px solid #e3e8ef; border-radius: 12px;
    background: #fbfcfe; transition: border-color .12s, background .12s;
}
/* A chosen card is visibly chosen. Six collapsed cards look identical otherwise, and "why did it
   only change the tax?" is the question that follows. */
.gc-card.on[b-wjrsrfyhsw] { border-color: #b9c0f0; background: #fff; }

.gc-card-head[b-wjrsrfyhsw] {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 13px; cursor: pointer; user-select: none;
}
.gc-card-t[b-wjrsrfyhsw] { font-weight: 650; font-size: .93rem; color: #1f2733; }

.gc-card-body[b-wjrsrfyhsw] {
    display: flex; flex-direction: column; gap: 10px;
    padding: 2px 13px 13px; border-top: 1px solid #eef1f6;
    padding-top: 11px;
}
.gc-card-body .rf-in[b-wjrsrfyhsw] { font-size: .88rem; padding: 7px 10px; }

/* Label above control, for the "leave as is / on / off" dropdowns. */
.gc-tri[b-wjrsrfyhsw] { display: flex; flex-direction: column; gap: 5px; }
.gc-tri > label[b-wjrsrfyhsw] { font-size: .74rem; font-weight: 700; color: #6b7482; text-transform: uppercase; letter-spacing: .03em; }

.gc-qty[b-wjrsrfyhsw] { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }

/* THE STOCK QUANTITY ROW IS HOW ITEMS GO OFF SALE, so it gets stacked rather than squeezed.
   Availability across the kiosks and tills is driven from here — mark the item as counted, enter
   what is physically left, and it sells out on its own once that many have gone. That makes this
   the most consequential pair of fields on the screen, and the two are not equal: picking
   Replace when you meant Add books a stock correction rather than a delivery.

   Side by side at 320px the mode select gets about 148px and shows "Replace — coun…", which is
   exactly where that mistake gets made. One per row, full width, both legible. */
@media (max-width: 560px) {
    .gc-qty[b-wjrsrfyhsw] { grid-template-columns: 1fr; gap: 10px; }
}

.gc-note[b-wjrsrfyhsw] { margin: 0; font-size: .8rem; color: #5c6674; line-height: 1.45; }
.gc-note.warn[b-wjrsrfyhsw] {
    background: #fdf3e3; border: 1px solid #e8d3a8; color: #8a5a12;
    padding: 7px 10px; border-radius: 8px;
}

/* ---- apply ---- */

.gc-apply[b-wjrsrfyhsw] {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef1f6;
}
.gc-hint[b-wjrsrfyhsw] { font-size: .82rem; color: #8a93a1; }

/* ---- the preview dialog ---- */

.gc-plan-lead[b-wjrsrfyhsw] { margin: 0 0 10px; font-size: .9rem; color: #3d4756; line-height: 1.5; }

.gc-plan[b-wjrsrfyhsw] { width: 100%; border-collapse: collapse; font-size: .88rem; }
.gc-plan td[b-wjrsrfyhsw] { padding: 8px 10px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.gc-plan tr:last-child td[b-wjrsrfyhsw] { border-bottom: 0; }
.gc-plan-w[b-wjrsrfyhsw] { font-weight: 650; color: #1f2733; white-space: nowrap; width: 1%; }
.gc-plan-d[b-wjrsrfyhsw] { color: #3d4756; }
.gc-plan-n[b-wjrsrfyhsw] { text-align: right; white-space: nowrap; color: #5c6674; font-variant-numeric: tabular-nums; }

.gc-blockers[b-wjrsrfyhsw] {
    background: #fdeceb; border: 1px solid #f2c4c0; border-radius: 10px;
    padding: 11px 13px; margin-bottom: 14px; color: #8c2f28;
}
.gc-blocker[b-wjrsrfyhsw] { margin-top: 9px; }
.gc-blocker:first-of-type[b-wjrsrfyhsw] { margin-top: 7px; }
.gc-blocker-r[b-wjrsrfyhsw] { font-weight: 600; font-size: .88rem; }
.gc-blocker-n[b-wjrsrfyhsw] { font-weight: 400; opacity: .8; }
.gc-blocker-a[b-wjrsrfyhsw] { font-size: .83rem; opacity: .9; margin-top: 2px; line-height: 1.45; }

/* ---- the confirmation that it landed ---- */

.gc-done[b-wjrsrfyhsw] {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    z-index: 60; background: #e6f4ec; border: 1px solid #c3e4d2; color: #1e6f45;
    padding: 11px 16px; border-radius: 12px; font-size: .9rem;
    box-shadow: 0 6px 22px rgba(20, 40, 30, .16);
}
/* /Components/Tools/ImportTool.razor.rz.scp.css */
/* Import Utility. On the legacy rf-* cards, which are a light surface in both themes, so the colours
   here are fixed light-surface values like Barcode Setup's rather than tokens that flip. */
.iu[b-tsipgv9g9y] { max-width: 1100px; }

.iu-card[b-tsipgv9g9y] { margin-bottom: 14px; }
.iu-card h2[b-tsipgv9g9y] { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.08rem; color: #1f2733; }
.iu-n[b-tsipgv9g9y] { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: #4f5bd5; color: #fff; font-size: .78rem; font-weight: 800; }

.iu-file[b-tsipgv9g9y] { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.iu-meta[b-tsipgv9g9y] { color: #3d4756; font-size: .9rem; }
.iu-card .rf-sw + .rf-hint[b-tsipgv9g9y] { margin-top: 8px; }

.iu-err[b-tsipgv9g9y] { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fdecec; border: 1px solid #f1c2c2;
    color: #9b2c2c; font-size: .9rem; }
.iu-warn[b-tsipgv9g9y] { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #fdf3e3; border: 1px solid #e8d3a8;
    color: #8a5a12; font-size: .88rem; }
.iu-done[b-tsipgv9g9y] { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #e3f4ea; border: 1px solid #b5dfc5;
    color: #1e6b41; font-size: .92rem; line-height: 1.5; }

/* ---- tables ---- */
.iu-table[b-tsipgv9g9y] { width: 100%; border-collapse: collapse; font-size: .88rem; }
.iu-table th[b-tsipgv9g9y] { text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: #8a94a2; padding: 6px 8px; border-bottom: 1px solid #e6ecf3; }
.iu-table td[b-tsipgv9g9y] { padding: 7px 8px; border-bottom: 1px solid #eef1f5; color: #1f2733; vertical-align: middle; }
.iu-table .num[b-tsipgv9g9y] { text-align: right; width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.iu-table tr.bad td[b-tsipgv9g9y] { background: #fff8f8; }

.iu-map td:first-child[b-tsipgv9g9y] { font-weight: 600; white-space: nowrap; }
.iu-map tr:not(.on) td:first-child[b-tsipgv9g9y] { color: #8a94a2; font-weight: 500; }
.iu-map select.rf-in[b-tsipgv9g9y] { width: 100%; max-width: 280px; padding: 6px 10px; font-size: .88rem; }
.iu-fhint[b-tsipgv9g9y] { display: block; font-size: .74rem; font-weight: 500; color: #8a94a2; }
.iu-sample[b-tsipgv9g9y] { color: #5c6674; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.iu-mono[b-tsipgv9g9y] { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .84rem; }
.iu-why[b-tsipgv9g9y] { color: #5c6674; }
.iu-table tr.bad .iu-why[b-tsipgv9g9y] { color: #9b2c2c; }

.iu-pill[b-tsipgv9g9y] { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.iu-pill.new[b-tsipgv9g9y] { background: #e3f4ea; color: #1e6b41; }
.iu-pill.upd[b-tsipgv9g9y] { background: #e4effa; color: #1f5f99; }
.iu-pill.bad[b-tsipgv9g9y] { background: #fdecec; color: #9b2c2c; }

/* ---- options ---- */
.iu-opts[b-tsipgv9g9y] { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.iu-opts .rf-hint[b-tsipgv9g9y] { margin-left: 4px; }
.iu-defaults[b-tsipgv9g9y] { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 14px; }
@media (max-width: 700px) { .iu-defaults[b-tsipgv9g9y] { grid-template-columns: minmax(0, 1fr); } }

/* ---- the three buttons ---- */
.iu-actions[b-tsipgv9g9y] { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin: 4px 0 16px; }

/* ---- report ---- */
.iu-reporthead[b-tsipgv9g9y] { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.iu-reporthead h2[b-tsipgv9g9y] { margin: 0; }
.iu-tiles[b-tsipgv9g9y] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 700px) { .iu-tiles[b-tsipgv9g9y] { grid-template-columns: minmax(0, 1fr); } }
.iu-tile[b-tsipgv9g9y] { padding: 12px 16px; border-radius: 10px; background: #f6f8fc; border: 1px solid #e6ecf3; color: #5c6674; font-size: .86rem; }
.iu-tile span[b-tsipgv9g9y] { display: block; font-size: 1.7rem; font-weight: 800; color: #1f2733; line-height: 1.15; font-variant-numeric: tabular-nums; }
.iu-tile em[b-tsipgv9g9y] { display: block; font-style: normal; font-size: .78rem; color: #8a94a2; }
.iu-tile.ok[b-tsipgv9g9y] { background: #eef8f2; border-color: #c9e8d5; }
.iu-tile.ok span[b-tsipgv9g9y] { color: #1e6b41; }
.iu-tile.bad[b-tsipgv9g9y] { background: #fdf3f3; border-color: #f1d0d0; }
.iu-tile.bad span[b-tsipgv9g9y] { color: #9b2c2c; }

.iu-filter[b-tsipgv9g9y] { display: flex; gap: 6px; margin-bottom: 8px; }
.iu-chip[b-tsipgv9g9y] { border: 1px solid #d6dce6; background: #fff; color: #3d4756; border-radius: 999px; padding: 5px 14px;
    font-size: .82rem; font-weight: 700; cursor: pointer; }
.iu-chip.on[b-tsipgv9g9y] { background: #4f5bd5; border-color: #4f5bd5; color: #fff; }
