/*!
 * Exponential Admin UI (exp_adminui): the Netgen Admin UI look for markup that Exponential 6 draws differently
 * from the reference. The reference's own stylesheet (style.css) is copied unchanged and loaded before this file;
 * this file only translates its rules to Exponential's markup, mainly the Exponential UI widgets (exp::datatable)
 * that take the place of the YUI ones. Each block names the style.css rules it mirrors.
 * GNU General Public License v2.0 (or any later version).
 */

/* ---- sub-items table (style.css "subitems yui control" and ".yui-dt") ------------------------------------ */
.exp-dt, .exp-dt-actions, .exp-dt-pager, .exp-dt-dialog {
    --exp-dt-head: #a7a7a7; --exp-dt-head-sortable: #a7a7a7; --exp-dt-head-sorted: #919191; --exp-dt-head-ink: #fff;
    --exp-dt-head-line: transparent; --exp-dt-row: #fff; --exp-dt-row-alt: #fff; --exp-dt-row-hover: #f5f5f5;
    --exp-dt-line: #f5f5f5; --exp-dt-link: #2970ef; --exp-dt-button-ink: #4b4b4b; --exp-dt-button-line: #e4e4e4;
    --exp-dt-button-hover: #adadad;
}
#action-controls-container { display: flex; flex-wrap: wrap; align-items: flex-start; margin: 5px 0 15px; }
#action-controls-container #action-controls { display: flex; flex: 1 1 auto; flex-wrap: wrap; float: none; margin: 0; }
#action-controls-container #tpg { float: none; margin: 0 0 0 5px; }
:where([dir="rtl"]) #action-controls-container #tpg { margin: 0 5px 0 0; }
#action-controls .exp-dt-action-group { display: block; vertical-align: top; }
/* the reference's order: Select and More actions as one group, then the blue Create button, Table options on the right */
#action-controls .exp-dt-action-group:has(#ezbtn-items) { order: 1; }
#action-controls .exp-dt-action-group:has(#ezbtn-more) { order: 2; margin-inline-start: -1px; }
#action-controls .exp-dt-action-group:has(#ezbtn-new) { order: 3; margin-inline-start: 5px; }
#action-controls .exp-dt-action-group:has(#ezbtn-new-multi) { order: 4; margin-inline-start: 5px; }
#action-controls .exp-dt-action-group:has(#ezbtn-options) { order: 5; margin-inline-start: auto; }
#action-controls-container .exp-dt-action {
    margin: 0; padding: 9px 14px; border: 1px solid #e4e4e4; border-radius: var(--a4-radius-s); background: #fff;
    color: #4b4b4b; font-size: 1em; line-height: 1.42857143; text-shadow: none; position: relative;
}
#action-controls-container .exp-dt-action:hover { z-index: 2; background: #e6e6e6; border-color: #adadad; }
#action-controls-container #ezbtn-items { border-radius: var(--a4-radius-s) 0 0 var(--a4-radius-s); }
:where([dir="rtl"]) #action-controls-container #ezbtn-items { border-radius: 0 var(--a4-radius-s) var(--a4-radius-s) 0; }
#action-controls-container #ezbtn-more { border-radius: 0 var(--a4-radius-s) var(--a4-radius-s) 0; }
:where([dir="rtl"]) #action-controls-container #ezbtn-more { border-radius: var(--a4-radius-s) 0 0 var(--a4-radius-s); }
#action-controls-container .exp-dt-button {
    padding: 0; background: transparent; color: inherit; font: inherit; line-height: inherit;
}
#action-controls-container .exp-dt-button::before, #action-controls-container .exp-dt-button::after {
    display: inline-block; font: normal normal normal 14px FontAwesome; text-rendering: auto; -webkit-font-smoothing: antialiased;
}
#action-controls-container .exp-dt-button::before { margin-inline-end: 6px; }
#action-controls-container .exp-dt-button::after { margin-inline-start: 6px; }
#action-controls-container #ezbtn-items-button::before { content: "\f046"; }
#action-controls-container #ezbtn-new-button::before { content: "\f0fe"; }
#action-controls-container #ezbtn-new-multi-button::before { content: "\f0c5"; }
#action-controls-container #ezbtn-more-button::after { content: "\f0d7"; }
#action-controls-container #ezbtn-options-button::before { content: "\f0ce"; }
#action-controls-container #ezbtn-new, #action-controls-container #ezbtn-new-multi { background: #2970ef; border-color: #2970ef; color: #fff; }
#action-controls-container #ezbtn-new:hover, #action-controls-container #ezbtn-new-multi:hover { background: #1862e6; border-color: #1862e6; }
#action-controls-container .exp-dt-action-disabled { opacity: 0.65; cursor: not-allowed; }
#action-controls-container .exp-dt-action-disabled:hover { background: #fff; border-color: #e4e4e4; }

/* the menus of Select, More actions and Create (style.css .yuimenu, .yuimenuitemlabel) */
#action-controls-container .exp-dt-menu {
    min-width: 180px; padding: 5px 0; border: none; border-radius: var(--a4-radius-s); box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.35);
    margin-top: 2px; line-height: 1.42857143;
}
:where([dir="rtl"]) #action-controls-container .exp-dt-menu { box-shadow: -1px 1px 4px 0 rgba(0, 0, 0, 0.35); }
#action-controls-container .exp-dt-menu-group { background: #6b6b6b; color: #fff; font-weight: normal; font-size: 14px; margin: 0; padding: 4px 8px; }
#action-controls-container .exp-dt-menu li { padding: 0; }
#action-controls-container .exp-dt-menu [role=menuitem] { display: block; padding: 4px 8px; color: #333; text-decoration: none; }

/* the pagers: compact one at the top right, full one under the table (style.css .yui-pg-*) */
.exp-dt-first, .exp-dt-prev, .exp-dt-next, .exp-dt-last {
    box-sizing: border-box; width: auto; height: auto; margin: 0; padding: 7px 16px; float: left;
    border: 1px solid #e4e4e4; border-radius: 0; background: #fff; color: #333;
    font-family: inherit; font-size: 12px; line-height: 1.42857143; text-align: center;
}
:where([dir="rtl"]) .exp-dt-first, :where([dir="rtl"]) .exp-dt-prev, :where([dir="rtl"]) .exp-dt-next, :where([dir="rtl"]) .exp-dt-last { float: right; }
.exp-dt-prev, .exp-dt-next { font-size: 18px; }
.exp-dt-first:hover, .exp-dt-prev:hover, .exp-dt-next:hover, .exp-dt-last:hover { background: #e6e6e6; border-color: #adadad; }
.exp-dt-first:disabled, .exp-dt-prev:disabled, .exp-dt-next:disabled, .exp-dt-last:disabled {
    background: #fff; color: #a9a9a9; border-color: #e5e5e5; cursor: not-allowed;
}
.exp-dt-first span, .exp-dt-prev span, .exp-dt-next span, .exp-dt-last span { margin: 0; }
.exp-dt-first [data-icon]::before, .exp-dt-prev [data-icon]::before, .exp-dt-next [data-icon]::before, .exp-dt-last [data-icon]::before {
    display: inline-block; font: normal normal normal 14px FontAwesome; font-size: inherit; -webkit-font-smoothing: antialiased;
}
.exp-dt-first [data-icon]::before { content: "\f048"; }
.exp-dt-prev [data-icon]::before { content: "\f0d9"; }
.exp-dt-next [data-icon]::before { content: "\f0da"; }
.exp-dt-last [data-icon]::before { content: "\f051"; }
.exp-dt-pager-compact { display: flex; }
.exp-dt-pager-compact .exp-dt-prev, .exp-dt-backward .exp-dt-first, .exp-dt-forward .exp-dt-next { border-radius: var(--a4-radius-s) 0 0 var(--a4-radius-s); }
:where([dir="rtl"]) .exp-dt-pager-compact .exp-dt-prev, :where([dir="rtl"]) .exp-dt-backward .exp-dt-first, :where([dir="rtl"]) .exp-dt-forward .exp-dt-next { border-radius: 0 var(--a4-radius-s) var(--a4-radius-s) 0; }
.exp-dt-pager-compact .exp-dt-next, .exp-dt-backward .exp-dt-prev, .exp-dt-forward .exp-dt-last { border-radius: 0 var(--a4-radius-s) var(--a4-radius-s) 0; margin-inline-start: -1px; }
:where([dir="rtl"]) .exp-dt-pager-compact .exp-dt-next, :where([dir="rtl"]) .exp-dt-backward .exp-dt-prev, :where([dir="rtl"]) .exp-dt-forward .exp-dt-last { border-radius: var(--a4-radius-s) 0 0 var(--a4-radius-s); }
.exp-dt-pager-compact .exp-dt-prev, .exp-dt-pager-compact .exp-dt-next { padding: 9px 16px; line-height: 20px; }
.exp-dt-page { padding: 4px 8px; border: 1px solid #e4e4e4; border-radius: var(--a4-radius-s); color: #333; font: inherit; }
.exp-dt-page.exp-dt-current { border-color: #333; font-weight: var(--a4-weight-bold); }

/* the table itself */
.exp-dt-table thead th {
    padding: 10px; border: none; background: #a7a7a7; color: #fff; font-size: 11px; font-weight: var(--a4-weight-medium);
    text-transform: uppercase; line-height: 20px; vertical-align: middle;
}
.exp-dt-table thead th.exp-dt-sortable { padding: 0; }
.exp-dt-table thead th.exp-dt-asc, .exp-dt-table thead th.exp-dt-desc { background: #919191; }
.exp-dt-table thead th .exp-dt-sort { padding: 10px 26px 10px 10px; line-height: 20px; font-size: 11px; font-weight: var(--a4-weight-medium); text-transform: uppercase; }
:where([dir="rtl"]) .exp-dt-table thead th .exp-dt-sort { padding: 10px 10px 10px 26px; }
.exp-dt-table thead th .fa { font-size: 16px; }
.exp-dt-body tr, .exp-dt-body tr:nth-child(even) { background: #fff; }
.exp-dt-body tr:hover { background: #f5f5f5; }
.exp-dt-body tr:first-child td { border-top: none; }
.exp-dt-table tbody td { padding: 10px; border-bottom: 2px solid #f5f5f5; color: #4a4a4a; font-size: 1em; }
.exp-dt-table tbody td a { color: #2970ef; }

/* ---- Exponential branding (owner, 2026-10-06: no Netgen names or marks in the interface) -----------------------
   style.css draws the logo per logo type (.logo-type-ngadminui, .logo-type-default); exp_adminui.ini LogoType=
   exponential selects these: the Exponential mark in the dark header, the full logo on the dark login page, both
   with white ink (images/exponential/, made from Exponential's own logo). */
#header-logo.logo-type-exponential { background-image: url("../images/exponential/logo-mark-white.png"); background-size: 30px auto; }
.loginpage .login-header .logo.logo-type-exponential { background-image: url("../images/exponential/logo-full-white.png"); width: 260px; }
@media screen and (max-width: 800px) {
    #header-logo.logo-type-exponential { background-size: 24px auto; }
}

/* sortable column heads (parts/sortheader.tpl and the like) inside the Admin UI's grey table head: the link blue was
   1.87:1 there; white like the head's own text, underlined on hover */
table th a, table th a:visited, table th a.sort-link, table th a .sort-arrow { color: #fff; }
table th a:hover { color: #fff; text-decoration: underline; }

/* ---- accent colour (owner, 2026-10-06): inside the Admin UI, Exponential's orange accent becomes the Admin UI blue.
   Exponential's admin pages draw their accents from these tokens (admin4.css defines them as orange, and adminui does
   not load admin4.css, so they fell back to their orange defaults); Exponential UI widgets use --exp-accent*.
   Defined here they only apply in the adminui design: admin4, admin4l and the site keep the orange. */
:root {
    --a4-orange: #2970ef; --a4-orange-dark: #1862e6; --a4-orange-soft: rgba(41, 112, 239, 0.12);
    --exp-accent: #2970ef; --exp-accent-dark: #1862e6; --exp-accent-ring: rgba(41, 112, 239, 0.18);
}
/* The administration's shared components (components.css, loaded before this file) take their accent from the --a4-accent*
   tokens; inside the Admin UI they are its blue. Filled controls with white text (-strong) and accent text (-text) use
   the darker blue, white text on it above 5.5:1; -press is their hovered fill. */
:root {
    --a4-accent: #2970ef; --a4-accent-hover: #1862e6; --a4-accent-strong: #1a5fd8; --a4-accent-press: #1450b8;
    --a4-accent-text: #1a5fd8; --a4-accent-soft: rgba(41, 112, 239, 0.12); --a4-ring: rgba(41, 112, 239, 0.45);
}

/* ---- the details panel of the content view (preview.tpl, style.css ".node-info-list") --------------------------
   style.css gives the panel 200px, and as a shrinkable flex item next to wide content it often got only half of that.
   Here it keeps its width (320px by default), which the user can change with the handle on its left edge (mouse,
   touch, or the arrow keys on the focused handle); javascript/exp_adminui_details_resizer.js saves it in the user
   preference exp_adminui_details_width and pagelayout.tpl sets it back as --exp-adminui-details-width. The content
   next to it keeps at least 360px: the width is held in that room whatever was saved on a wider screen, and where
   the room is less than 200px the panel's minimum gives way, down to 160px.
   style.css stacks the panel under the content below 982px. At 200% zoom (about 960 CSS px) that hid the panel's
   width and its handle, so here it stays beside the content down to 720px. The room it needs is the navigation
   column and the tree beside the preview plus 360px + 200px: the preview is 50px narrower than the window below
   about 800px (no tree), 260px narrower from there (a 160px tree) and 340px narrower from about 900px (a 240px
   tree), so its narrowest point at or above 720px is about 540px, which still leaves 180px for the panel. Only
   below 720px (phones, tablets held upright) is it stacked, without the handle. */
.exp-adminui-details-resizer { display: none; }
@media screen and (min-width: 720px) {
    /* undo style.css's stacked layout of 720px-981px */
    .content-preview { display: flex; padding: 0; }
    .content-preview > .node-preview-content { flex: 1 1 auto; min-width: 0; }
    .content-preview > .node-info-list {
        position: relative;
        flex: 0 0 auto;
        width: var(--exp-adminui-details-width, 320px);
        min-width: clamp(160px, calc(100% - 360px), 200px);
        max-width: max(clamp(160px, calc(100% - 360px), 200px), min(640px, calc(100% - 360px)));
        margin: 0;
        border-inline-start: 3px solid #f5f5f5;
        background: transparent;
        box-sizing: border-box;
    }
    .content-preview > .exp-adminui-details-resizer {
        display: block;
        position: relative;
        z-index: 2;
        flex: 0 0 12px;
        width: 12px;
        margin: 0 -9px 0 -3px;  /* takes no room: the panel's 3px left border is the visible edge */
        cursor: col-resize;
        touch-action: none;
        outline: none;
    }
    :where([dir="rtl"]) .content-preview > .exp-adminui-details-resizer { margin: 0 -3px 0 -9px; }
    .content-preview > .exp-adminui-details-resizer::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0; inset-inline-start: 3px;
        width: 3px;
        background: transparent;
        transition: background-color var(--a4-duration);
    }
    .content-preview > .exp-adminui-details-resizer:hover::before,
    .content-preview > .exp-adminui-details-resizer.is-resizing::before { background: #2970ef; }
    .content-preview > .exp-adminui-details-resizer:focus-visible::before { background: #2970ef; box-shadow: 0 0 0 3px rgba(41, 112, 239, 0.35); }
    body.exp-adminui-details-resizing, body.exp-adminui-details-resizing * { cursor: col-resize !important; user-select: none; }
}

/* ---- every view lines up with the breadcrumbs ----------------------------------------------------------
   The main area (.main-content) has no padding of its own: in the reference each view brings it, the breadcrumbs
   (#path), the title band (.box-header) and the body (.box-content) each 20px. Views drawn by the other designs in
   the chain (admin4, admin, standard) and by extensions use markup without those boxes, and so stood at the main
   area's left edge, 20px out of line with the breadcrumbs. The rules below give that markup the same inset, once,
   and leave the reference's boxes as they are, so nothing is padded twice. */
#page .main-content { --exp-adminui-inset: 20px; }
/* a block straight in the main area that is not one of the reference's boxes and holds none of them: an admin4 or
   extension page (.nf, .mp, .ezx ...), a standard design form or table */
#page .main-content > :where(:not(#path, script, style, link, .context-block, .panel, .box-header, .box-content, .box-bc,
        .path-edit-container, .title-wrapper, .tab-block, .content-view-full, .ng-layouts-app, .content-search, .content-edit,
        [class^="message-"], [class*=" message-"], .alert, #exp-adminui-details, .break, .footer, #footer):not(
        :has(.context-block, .panel, .box-header, .box-content, .box-bc, .content-navigation, .ng-layouts-app, .content-view-full))) {
    padding-inline-start: var(--exp-adminui-inset);
    padding-inline-end: var(--exp-adminui-inset);
}
/* the legacy admin's boxes inside a context block: the control bar under a list, and a body (.box-ml) that holds
   its content directly rather than in a .box-content */
#page .main-content .context-block > .controlbar,
#page .main-content form > .controlbar,
#page .main-content > .controlbar,
#page .main-content .context-block > .box-ml:not(:has(.box-content, .panel)) {
    padding-inline-start: var(--exp-adminui-inset);
    padding-inline-end: var(--exp-adminui-inset);
}
#page .main-content :is(.box-content, .panel, .box-header) .controlbar { padding-inline-start: 0; padding-inline-end: 0; }
/* the API access page (design/standard apikey/parts): it centres itself with an auto margin, which in the main
   area's column flex box gives it no width at all (it is an inline-size container) */
#page .main-content > .ak.ak-public { margin: 0 0 2.5em; align-self: stretch; box-sizing: content-box; }
/* the update pages (ezupdate .ezx): a long path in a code element did not break and ran 6px past the main area at
   200% zoom once the page had its inset */
#page .main-content .ezx-head > * { min-width: 0; }
#page .main-content .ezx code { overflow-wrap: anywhere; }
/* the content view's preview: a long link or a wide image in a text field ran the preview out of the main area at
   200% zoom; they wrap and scale down instead */
#page .main-content .node-preview-content .attribute-preview { overflow-wrap: anywhere; }
#page .main-content .node-preview-content .attribute-preview img { max-width: 100%; height: auto; }
/* the content view's preview of a class with an admin_preview override of its own (the admin4 overrides for folder,
   article, image ...): they draw .content-view-full without the .node-preview-content box and its 20px, so the
   preview of the root folder stood at the panel's edge. The override's box gets that inset and the room next to the
   details panel. */
#page .content-preview > .content-view-full, #page .content-preview > form > .content-view-full { padding: 20px; }
#page .content-preview > .content-view-full, #page .content-preview > form { flex: 1 1 auto; min-width: 0; }
/* the design/admin pages that draw their own card (.exp-standalone: class copy and language choice, package
   uninstall, PDF export edit, role copy ...): the card centres itself at 980-1080px with a margin and its own
   padding, reset there only inside admin4's #maincontent, which this design has not. Here it is part of the view,
   with the breadcrumbs' inset when it stands straight in the main area. */
#page .main-content .exp-standalone { max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
#page .main-content > .exp-standalone:not(:has(.context-block, .panel, .box-header, .box-content, .box-bc)) {
    padding-inline-start: var(--exp-adminui-inset);
    padding-inline-end: var(--exp-adminui-inset);
}
/* wide content at 200% zoom (a window of about 960 CSS px leaves the main area about 600px): a legacy list table
   wider than that scrolls sideways in the box that holds it, so the breadcrumbs and the rest of the view stay in
   place (the table stays a table, at its full width); a git remote row stacks its actions; a textarea with a cols
   attribute is held to the main area; the job queue's screen-reader header label stays inside its scrolling box */
@media (max-width: 1199px) {
    #page .main-content :is(.box-content, .box-ml, .box-mr, .panel, .block, form):has(> table.list) { overflow-x: auto; }
    #page .main-content .gm-remote { grid-template-columns: minmax(0, 1fr); }
    #page .main-content .gm-remote-actions { justify-content: flex-start; }
}
#page .main-content textarea { max-width: 100%; box-sizing: border-box; }
#page .main-content .exp-queue-page .q-scroll { position: relative; }

/* ---- the left menus: the link lists of parts/ini_menu.tpl and the trees of parts/content/menu.tpl,
   parts/user/menu.tpl and parts/newsletter/menu.tpl. style.css draws their links in the link blue (3.58:1 on the grey
   column) and the current item in the reference's orange (2.07:1 on the column, 2.61:1 on its white row), and
   pagelayout.css gives the name of the current tree node its red (3.72:1); the accent text blue reads above 4.5:1 on
   both. */
.left-column .leftmenu-items-list > li > a,
.left-column .leftmenu-items-list > li.current > a,
.left-column #trash a,
#content-tree-menu .currentnode > a { color: var(--a4-accent-text); }
#contentstructure #content-tree-menu li.currentnode > a.image-text span.node-name-normal { color: inherit; }

/* The status messages outside the frame's columns (a label or legend with message-error): no margin, a little
   padding. Until Exponential 6.0.15 this rule came from admin4's responsive.css through BackendCSSFileList. */
.message-confirmation,
.message-feedback,
.message-warning,
.message-error {
    padding: 0.5rem;
    margin: 0;
}

/* ---- the interface choices (the side bar's "Interface" dropdown, menu/aside.tpl, with the shared lists
   uiswitch/choices.tpl and uiswitch/grouped.tpl). They are drawn like the side bar's other dropdowns, on the same
   dark flyout (#383838, white text), not with the --a4-* tokens, whose ink is meant for a light surface (1.3:1 here):
   - the provider names like the Cache dropdown's heading and labels: white, 14px, normal weight;
   - the language list and its Apply button like the Cache dropdown's select and Clear button (Bootstrap
     form-control input-sm, btn btn-primary btn-sm, with adminui-rem.css's light field);
   - the design choices like the side bar's own entries: white, #424242 under the pointer and the focus, the current
     one #606060 (as .aside-nav .active), square like the flyout. White reads 11.7:1, 10.4:1 and 6.3:1 on them.
   No dark mode: AdminUI has one look. admin4.js is not loaded here, so the disclosure button stays hidden and the list
   is open inside the dropdown. */
#uiswitch-tool .box-content { padding: 0; }
#uiswitch-tool .a4-uiswitch-provider { display: block; margin: 10px 0 0; padding: 0; }
#uiswitch-tool .a4-uiswitch-provider:first-child { margin-top: 0; }
#uiswitch-tool .a4-stack { display: block; gap: 0; }
#uiswitch-tool .a4-uiswitch-label {
    display: block; margin: 0 0 6px; color: inherit; font-size: 14px; font-weight: normal; line-height: 1.42857143;
}
#uiswitch-tool .a4-uiswitch-toggle[hidden], #uiswitch-tool .a4-uiswitch-menu[hidden] { display: none; }
#uiswitch-tool .a4-uiswitch-menu { margin: 0; }
/* the language list: the Cache dropdown's select.form-control.input-sm */
#uiswitch-tool select.a4-input {
    display: block; width: 100%; height: 30px; min-height: 0; margin: 0 0 10px; padding: 5px 18px 5px 8px;
    border: 1px solid #e8e8e8; border-radius: var(--a4-radius-s);
    background: #f8f8f8 url(../images/select-bg.png) no-repeat right 5px center; background-size: contain;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
    color: #555; font-family: inherit; font-size: 12px; line-height: 1.5;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
    transition: border-color ease-in-out var(--a4-duration), box-shadow ease-in-out var(--a4-duration);
}
:where([dir="rtl"]) #uiswitch-tool select.a4-input { padding: 5px 8px 5px 18px; }
#uiswitch-tool select.a4-input:focus {
    border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
#uiswitch-tool select.a4-input optgroup, #uiswitch-tool select.a4-input option { background-color: #fff; color: #333; }
/* its Apply button: the Cache dropdown's Clear button (btn btn-primary btn-sm) */
#uiswitch-tool .a4-btn {
    display: inline-block; min-height: 0; margin: 0; padding: 5px 10px;
    border: 1px solid #2970ef; border-radius: var(--a4-radius-s); background-color: #2970ef; color: #fff;
    font-family: inherit; font-size: 12px; font-weight: normal; line-height: 1.5; white-space: nowrap; cursor: pointer;
}
#uiswitch-tool .a4-btn:hover:not([disabled]), #uiswitch-tool .a4-btn:focus { border-color: #0f53cc; background-color: #1057d5; color: #fff; }
#uiswitch-tool .a4-btn:active { border-color: #0b3a8e; background-color: #0d49b4; box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); }
#uiswitch-tool .a4-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* the design choices: the side bar's own entries */
#uiswitch-tool .a4-uiswitch-list { display: block; margin: 0; padding: 0; list-style: none; }
#uiswitch-tool .a4-uiswitch-list li { margin: 0; padding: 0; }
#uiswitch-tool .a4-uiswitch-option {
    display: block; width: 100%; min-height: 24px; margin: 0; padding: 6px 10px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: #fff; font-family: inherit; font-size: 14px; font-weight: normal; line-height: 1.42857143; text-align: start; cursor: pointer;
}
#uiswitch-tool .a4-uiswitch-option:hover, #uiswitch-tool .a4-uiswitch-option:focus { background-color: #424242; color: #fff; outline: 0; }
#uiswitch-tool .a4-uiswitch-option:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
#uiswitch-tool .a4-uiswitch-option[aria-current="true"] { background-color: #606060; color: #fff; font-weight: normal; box-shadow: none; }
@media (forced-colors: active) {
    #uiswitch-tool .a4-uiswitch-option[aria-current="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* The sign-in frame's footer (the login page and the second step of a two-factor sign-in): the theme's #7b7b7b was
   3.3:1 on the frame's dark grey; #b3b3b3 is 5.4:1 (WCAG 1.4.3) */
.loginpage #footer, .loginpage #footer p { color: #b3b3b3; }
.loginpage #footer a { text-decoration: underline; }   /* told apart from the text by more than its color (WCAG 1.4.1) */
/* The sign-in button: style.css fills it with #F97B62, on which its white label was 2.6:1. It takes the Admin UI's
   filled accent instead (--a4-accent-strong, white on it above 5.5:1; hovered and pressed --a4-accent-press), as
   every other filled button here. The frame has one look, so there is no dark value to set. */
.loginpage form .btn.btn-primary { background: var(--a4-accent-strong); color: var(--a4-on-accent, #fff); }
.loginpage form .btn.btn-primary:hover, .loginpage form .btn.btn-primary:focus,
.loginpage form .btn.btn-primary:active { background: var(--a4-accent-press); color: var(--a4-on-accent, #fff); }
.loginpage form .btn.btn-primary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* The side bar on a narrow screen (style.css, max-width 800px) shows only the icons and hid each link's label with
   display: none, which left the links without an accessible name. The label stays hidden on screen but is read. */
@media screen and (max-width: 800px) {
    #aside .aside-nav .nav a .tt {
        display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
    .menu-visible #aside .aside-nav .nav a .tt {
        position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
    }
}

/* "Sign in with a passkey" under "Log in" (user/login.tpl, shown by exp_passkey.js where the browser can use
   passkeys): an outlined button the width of the form, on the frame's dark background, and the status line. */
.loginpage form .btn.aui-passkey-button {
    display: block; width: 100%; margin: 12px 0 0; padding: 11px;
    border: 1px solid #b3b3b3; border-radius: 0; background: transparent; color: #fff;
    font-size: 16px; font-weight: var(--a4-weight-medium);
}
.loginpage form .btn.aui-passkey-button:hover, .loginpage form .btn.aui-passkey-button:focus { border-color: #fff; background: #444444; color: #fff; }
.loginpage form .btn.aui-passkey-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.loginpage form .aui-passkey-status { margin: 12px 0 0; }
.loginpage form [hidden] { display: none !important; }

/* ---- The other steps of signing in (user/forgotpassword.tpl, user/register.tpl, user/success.tpl,
   user/activate.tpl): the frame of user/login.tpl (.login-container with the logo) and its dark fields and full-width
   button, a title under the logo, the text in white, links under the form. Without these templates the admin designs'
   ones were shown without a frame, full width, with a light header and white-on-white buttons. The frame has one
   (dark) look, so there is no dark value to set. #b3b3b3 on #383838 is 5.4:1, white 11.6:1. */
.loginpage .login-header .aui-login-title { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.3; color: #fff; }
.loginpage .aui-login-text { margin: 0 0 20px; color: #fff; }
.loginpage .aui-login-text p { margin: 0 0 10px; }
.loginpage .aui-login-label { display: block; margin: 0 0 6px; font-weight: 500; color: #fff; }
.loginpage form .form-control.aui-login-plain,
.loginpage .aui-register-form .form-control { padding-left: 12px; }
.loginpage form .form-control.aui-login-plain[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #f0ad4e; }
.loginpage .aui-login-links { margin: 0 0 30px; text-align: center; color: #b3b3b3; }
.loginpage .aui-login-links a { display: inline-block; margin: 0 10px 6px; color: #fff; text-decoration: underline; }
.loginpage .aui-login-links a:hover, .loginpage .aui-login-links a:focus { color: #fff; text-decoration: none; }
/* the next step as a link ("Sign in"): the look of the sign-in button */
.loginpage .btn.btn-primary.aui-login-button {
    display: block; width: 100%; margin: 10px 0 30px; padding: 11px; border: 0; border-radius: 0;
    background: var(--a4-accent-strong); color: var(--a4-on-accent, #fff);
    font-size: 16px; font-weight: 500; text-transform: uppercase; text-align: center; text-decoration: none;
}
.loginpage .btn.btn-primary.aui-login-button:hover, .loginpage .btn.btn-primary.aui-login-button:focus { background: var(--a4-accent-press); color: var(--a4-on-accent, #fff); }
.loginpage .btn.btn-primary.aui-login-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* registration: wider, for the account's fields; Cancel outlined like "Sign in with a passkey" */
.loginpage .login-container.aui-login-wide { max-width: 760px; }
.loginpage .aui-login-actions { margin: 20px 0 0; }
.loginpage form .aui-login-actions .btn.btn-default {
    display: block; width: 100%; margin: 12px 0 0; padding: 11px;
    border: 1px solid #b3b3b3; border-radius: 0; background: transparent; color: #fff; font-size: 16px;
}
.loginpage form .aui-login-actions .btn.btn-default:hover, .loginpage form .aui-login-actions .btn.btn-default:focus { border-color: #fff; background: #444444; color: #fff; }
.loginpage form .aui-login-actions .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.loginpage .aui-register-form label, .loginpage .aui-register-form legend { color: #fff; }
/* the placeholders of the dark fields: style.css's #7b7b7b was 2.9:1 on #444444; #b3b3b3 is 4.7:1 */
.loginpage form .form-control::placeholder { color: #b3b3b3; opacity: 1; }
/* the two-factor field of the registration form (sevenx_authentication_2fa): its light-page ink and muted grey
   (--tf-*) were dark text on the frame's dark grey; here its text takes the frame's white and #b3b3b3 */
.loginpage .aui-register-form .exp-2fa { --tf-ink: #fff; --tf-muted: #b3b3b3; --tf-line: #5a5a5a; }
/* the required mark and the image field's "There is no image file." took style.css's #333 for a light page */
.loginpage .aui-register-form .required, .loginpage .aui-register-form p { color: #fff; }
