html {
    overflow-y: scroll;
}
/* Bootstrap 5 scrolls smoothly, which Bootstrap 4 didn't. Jumping straight there, as before, keeps paging back to the
   top of a list instant, and stops Safari losing a date picker click while the page is still scrolling. */
:root {
    scroll-behavior: auto;
}
/* AdminLTE 3 gave every card space below it, and DomainMOD's pages rely on it (such as the buttons under Advanced
   Filtering). AdminLTE 4 leaves it out, for cards and for the callouts that hold page introductions. */
.app-content .card,
.app-content .callout {
    margin-bottom: 1rem;
}
.domainmod-css-text-highlight-red {
    color: #a30000;
}
.domainmod-css-text-highlight-green {
    color: #007a29;
}
.domainmod-css-normal-font-weight {
    font-weight: normal;
}
.domainmod-css-width-100-percent {
    width: 100%;
}
.domainmod-css-line-through {
    text-decoration: line-through;
}
.domainmod-css-color-black {
    color: #000000;
}
/* The logo area takes the sidebar's own colour in both modes, so it matches the domain search and menu below it */
.domainmod-css-logo-background-colour {
    background-color: transparent;
    /* No line under the logo area (AdminLTE draws one), and none under the top bar either (below) */
    border-bottom: 0;
}
/* No line under the top bar, to match the logo area beside it */
.app-header {
    border-bottom: 0;
}
/* In light mode the top bar is the main area's colour, so it blends into the page (the dark rule further down is more
   specific and keeps the darkest Polar Night) */
.app-header.bg-body {
    background-color: var(--bs-tertiary-bg) !important;
}
/* The top bar is as tall as the sidebar's logo area (3.5rem), with its items centred, so both have the same room above
   them. Compact mode otherwise caps it at 2.75rem. */
.compact-mode .app-header {
    max-height: none;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}
/* The full logo, centred in the sidebar's logo area. It's positioned within the whole sidebar, so its top is half the
   logo area's height (3.5rem), and AdminLTE's small upward nudge is undone so it sits exactly in the
   middle. The selector matches AdminLTE's own in strength, so this file's later rule wins. */
.sidebar-brand.domainmod-css-logo-background-colour {
    /* Taller than compact mode's usual 2.75rem, so the logo has room above and below it (the top bar matches it) */
    height: 3.5rem;
}
.sidebar-brand.domainmod-css-logo-background-colour .logo-xl {
    top: 1.75rem;
    left: 50%;
    /* AdminLTE's right-to-left build places these images with right offsets, which would compete with left: 50%. The
       logo is centred, so it stays physical. */
    right: auto;
    margin-top: 0;
    transform: translate(-50%, -50%);
}
/* The small logo in the collapsed sidebar, centred and sized to fit it. AdminLTE places it for a wider sidebar, which
   crops it in the compact one. It's positioned within the whole sidebar, so its top is half the logo area's height
   (3.5rem). */
.sidebar-mini.sidebar-collapse .app-sidebar .logo-xs.brand-image-xl {
    top: 1.75rem;
    left: 50%;
    right: auto;
    max-height: 2rem;
    transform: translate(-50%, -50%);
}
/* The sidebar's domain search and menu filter, each with its icon inside the field, at the start. AdminLTE's styles
   for a search like this (.navbar-search) only apply in the header. */
.domainmod-css-search-field {
    position: relative;
}
.domainmod-css-search-field .form-control {
    padding-inline-start: 2.125rem;
}
/* The menu filter's funnel icon, placed like the search button but only decorative (the field filters as you type) */
.domainmod-css-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: .75rem;
    display: flex;
    align-items: center;
    line-height: 1;
    color: var(--lte-search-field-icon-color);
    pointer-events: none;
    transform: translateY(-50%);
}
.domainmod-css-search-submit {
    position: absolute;
    top: 50%;
    inset-inline-start: .75rem;
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1;
    color: var(--lte-search-field-icon-color);
    background: transparent;
    border: 0;
    border-radius: 50rem;
    transform: translateY(-50%);
}
.domainmod-css-search-submit:hover,
.domainmod-css-search-submit:focus-visible {
    color: var(--lte-search-field-color);
}
.domainmod-css-search-submit:focus-visible {
    outline: 2px solid var(--bs-focus-ring-color);
    outline-offset: 2px;
}
/* The domain search: a soft filled box with no outline, a step darker than the sidebar (a step lighter in dark mode),
   with the app's usual field corners rather than AdminLTE's pill. Focus brings back a border and the focus ring. */
.sidebar-search .domainmod-css-search-filled .form-control {
    background-color: rgba(var(--bs-emphasis-color-rgb), .08);
    border-color: transparent;
    border-radius: var(--bs-border-radius);
}
.sidebar-search .domainmod-css-search-filled .form-control:hover {
    background-color: rgba(var(--bs-emphasis-color-rgb), .11);
}
.sidebar-search .domainmod-css-search-filled .form-control:focus {
    background-color: rgba(var(--bs-emphasis-color-rgb), .11);
    border-color: var(--lte-search-field-focus-border-color);
}
[data-bs-theme="dark"] .sidebar-search .domainmod-css-search-filled .form-control {
    background-color: #3b4252;
    border-color: transparent;
}
[data-bs-theme="dark"] .sidebar-search .domainmod-css-search-filled .form-control:hover {
    background-color: #434c5e;
}
[data-bs-theme="dark"] .sidebar-search .domainmod-css-search-filled .form-control:focus {
    background-color: #434c5e;
    border-color: #88c0d0;
}
/* The menu filter: a smaller, quieter plain field with no box, so it steps back from the domain search. Hovering
   shows a faint fill, and focus shows the same border and focus ring as the domain search. */
/* The two fields sit close together, and the menu filter close to the menu (Greg's choice, 2026-11-28): AdminLTE's
   padding under the domain search and above the filter is trimmed, and the menu's own top margin is small (mt-2) */
/* The two fields line up with the menu below them (Greg's choice, 2026-11-28): the same width as a menu item's
   highlight, the icons centred in the menu icons' column, and the text starting where the menu labels start */
.sidebar-wrapper .sidebar-search {
    padding-inline: 0;
}
.sidebar-wrapper .sidebar-search .domainmod-css-search-icon,
.sidebar-wrapper .sidebar-search .domainmod-css-search-submit {
    inset-inline-start: .625rem;
}
.sidebar-wrapper .sidebar-search:has(.domainmod-css-search-filled) {
    padding-bottom: .25rem;
}
.sidebar-wrapper .sidebar-search:has(.domainmod-css-search-quiet) {
    padding-bottom: .25rem;
}
.sidebar-search .domainmod-css-search-quiet .form-control {
    padding-block: .2rem;
    font-size: .8125rem;
    background-color: transparent;
    border-color: transparent;
    border-radius: var(--bs-border-radius);
}
.sidebar-search .domainmod-css-search-quiet .form-control:hover {
    background-color: rgba(var(--bs-emphasis-color-rgb), .05);
}
.sidebar-search .domainmod-css-search-quiet .form-control:focus {
    background-color: rgba(var(--bs-emphasis-color-rgb), .08);
    border-color: var(--lte-search-field-focus-border-color);
}
.domainmod-css-search-quiet .domainmod-css-search-icon {
    font-size: .8125rem;
}
[data-bs-theme="dark"] .sidebar-search .domainmod-css-search-quiet .form-control {
    background-color: transparent;
    border-color: transparent;
}
[data-bs-theme="dark"] .sidebar-search .domainmod-css-search-quiet .form-control:hover {
    background-color: rgba(216, 222, 233, .05);
}
[data-bs-theme="dark"] .sidebar-search .domainmod-css-search-quiet .form-control:focus {
    background-color: #3b4252;
    border-color: #88c0d0;
}
/* Compact text, as AdminLTE 3's text-sm gave (AdminLTE 4 has no text-sm). The tighter spacing comes from AdminLTE's
   compact-mode class, on the body (see Layout::bodyTag()), since AdminLTE's rules for the collapsed sidebar only
   match it there. */
:root {
    --bs-body-font-size: .875rem;
}
/* The sidebar a little narrower than AdminLTE's 250px, leaving the content more room. The full logo (220px on its
   dark mode tile) still fits, and so does the longest menu item. AdminLTE sets it on :root and [data-bs-theme=light],
   so it's set here the same way. */
:root,
[data-bs-theme] {
    --lte-sidebar-width: 230px;
}
/* The header's colour mode menu. Its width is set here rather than in a style attribute, which the CSP blocks. */
.domainmod-css-colour-mode-menu {
    --bs-dropdown-min-width: 8rem;
}
/* The current section in the sidebar menu is shown in DomainMOD's main colour, as before */
.app-sidebar .sidebar-menu > .nav-item > .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}
/* The sign-in, password reset, and MFA pages start near the top instead of being centred in the window (Greg's
   choice, 2026-11-22), so the form isn't halfway down a tall screen. The gap grows a little with the window's height. */
.login-page {
    justify-content: flex-start;
    padding-block: clamp(1.5rem, 8vh, 5rem) 1.5rem;
}
/* The large logo on the sign-in, installer, and bare pages, drawn like the sidebar's logo in dark mode (Greg's
   choice, 2026-11-14): the lettering in a soft off-white with a CSS filter, and the red icon kept in colour by a second
   copy of the image cropped to the icon (the left 14% of the image) and laid over it. Light mode shows the image as
   it is. */
.domainmod-login-logo {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.domainmod-login-logo-icon {
    display: none;
}
[data-bs-theme="dark"] .domainmod-login-logo-image {
    filter: brightness(0) invert(.88);
    clip-path: inset(0 0 0 14%);
}
[data-bs-theme="dark"] .domainmod-login-logo-icon {
    display: block;
    position: absolute;
    top: 0;
    /* Physical, like the crops: the logo image isn't mirrored in right-to-left languages, so its icon stays on the
       image's left */
    left: 0;
    right: auto;
    clip-path: inset(0 86% 0 0);
}
/* Links stay blue with no underline, as before. data-lte-primary="danger" would turn them red, so they're set back
   here (with the same selectors AdminLTE's colours use, so these win), a shade darker than Bootstrap's blue so they
   pass WCAG AA on the light grey page, and in dark mode a lightened Nord Frost, which passes on the cards and on
   striped table rows. */
[data-lte-primary] {
    --bs-link-color: #0b5ed7;
    --bs-link-color-rgb: 11, 94, 215;
    --bs-link-hover-color: #0a58ca;
    --bs-link-hover-color-rgb: 10, 88, 202;
}
[data-bs-theme="dark"][data-lte-primary],
[data-bs-theme="dark"] [data-lte-primary] {
    --bs-link-color: #93c7d5;
    --bs-link-color-rgb: 147, 199, 213;
    --bs-link-hover-color: #b5d9e3;
    --bs-link-hover-color-rgb: 181, 217, 227;
}
/* Outline secondary buttons, used across the app: Bootstrap's grey (#6c757d) is too faint on dark mode's Nord page and
   cards (2.2:1 on a card), so their text and border take dark mode's secondary grey (#B5BDCD, see the dark mode block
   below), which keeps 4.5:1 on the page, the cards, and striped rows. Hovered or pressed, they keep Bootstrap's grey
   background with white text. */
[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #b5bdcd;
    --bs-btn-border-color: #b5bdcd;
    --bs-btn-disabled-color: #b5bdcd;
    --bs-btn-disabled-border-color: #b5bdcd;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* Links drawn as buttons keep Bootstrap's look on hover, rather than underlining their icon and text as one */
a.btn:hover {
    text-decoration: none;
}
/* The sidebar menu underlines only an item's words on hover, not its icon */
.app-sidebar .sidebar-menu .nav-link:hover {
    text-decoration: none;
}
.app-sidebar .sidebar-menu .nav-link:hover > p {
    text-decoration: underline;
}
/* Long submenu names wrap onto a second line rather than being cut off, such as "Domain Registrar Accounts" when the
   sidebar has a scrollbar, or longer names in other languages */
.app-sidebar .sidebar-menu .nav-treeview .nav-link,
.app-sidebar .sidebar-menu .nav-treeview .nav-link > p {
    white-space: normal;
}
/* The collapsed, icon-only sidebar hides an open submenu until it's hovered (and widens), so the open section's links
   don't leave a blank gap under the icons. !important, since AdminLTE's slide animation sets display on the element
   itself. */
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-menu .nav-treeview {
    display: none !important;
}
/* Assets, Settings, Maintenance, and Administration (menu-main.inc.php): the name is a link to the landing page, and
   the arrow is a separate button that opens and closes the submenu. The button sits over the end of the item's row, in
   the same grid row as the link, so the row's highlight still runs under the arrow and the two stay the same height.
   The link leaves room for it wherever the button shows, which isn't in the collapsed sidebar until it's hovered (see
   below), where the room would make the link wider than the others. */
.app-sidebar .sidebar-menu .domainmod-menu-parent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}
.app-sidebar .sidebar-menu .domainmod-menu-parent > .nav-link {
    grid-row: 1;
    grid-column: 1 / -1;
}
body:not(.sidebar-collapse) .app-sidebar .sidebar-menu .domainmod-menu-parent > .nav-link,
.sidebar-collapse .app-sidebar:hover .sidebar-menu .domainmod-menu-parent > .nav-link {
    padding-inline-end: 2.75rem;
}
/* A long name, such as in another language, wraps onto a second line rather than being cut off, as the submenu names
   do. Not in the collapsed sidebar, where the hidden name would wrap in the narrow row and make it taller. */
body:not(.sidebar-collapse) .app-sidebar .sidebar-menu .domainmod-menu-parent > .nav-link,
body:not(.sidebar-collapse) .app-sidebar .sidebar-menu .domainmod-menu-parent > .nav-link > p {
    white-space: normal;
}
.app-sidebar .sidebar-menu .domainmod-menu-parent > .nav-treeview {
    grid-row: 2;
    grid-column: 1 / -1;
}
.domainmod-menu-toggle {
    grid-row: 1;
    grid-column: 2;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    margin-bottom: .2rem;
    padding: 0;
    border: 0;
    border-radius: .375rem;
    background-color: transparent;
    color: var(--lte-sidebar-color);
}
/* The arrow takes the colour of the row's name: AdminLTE's colours for an open item and for the open current section
   (which it draws in grey, not red), and white on the red row of the current section while its submenu is closed */
.menu-open > .domainmod-menu-toggle {
    color: var(--lte-sidebar-hover-color);
}
.menu-open > .nav-link.active + .domainmod-menu-toggle {
    color: var(--lte-sidebar-menu-active-color);
}
.domainmod-menu-parent:not(.menu-open) > .nav-link.active + .domainmod-menu-toggle {
    color: #fff;
}
.domainmod-menu-toggle:hover {
    background-color: var(--lte-sidebar-hover-bg);
}
/* The focus ring is in the arrow's own colour, so it shows on the current section's red row as well as on the
   sidebar */
.domainmod-menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
/* The arrow turns to point down while the submenu is open, as AdminLTE's arrows do. AdminLTE's right-to-left build
   points a closed arrow the other way by turning it half round, so this does the same. */
.domainmod-menu-toggle .nav-arrow {
    transition: transform ease-in-out .3s;
}
.menu-open > .domainmod-menu-toggle .nav-arrow {
    transform: rotate(90deg);
}
[dir="rtl"] .domainmod-menu-toggle .nav-arrow {
    transform: rotate(180deg);
}
[dir="rtl"] .menu-open > .domainmod-menu-toggle .nav-arrow {
    transform: rotate(90deg);
}
/* The collapsed, icon-only sidebar has no room for the arrow, so the button is hidden until the sidebar is hovered
   (and widens), as AdminLTE hides its arrows */
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .domainmod-menu-toggle {
    display: none;
}
/* Links in the footer's sentence and in page introductions (callouts) are underlined, since their colour is too
   close to the text around them to tell them apart */
.app-footer a,
.callout a {
    text-decoration: underline;
}
/* AdminLTE's grey for the sidebar's submenu links is too light to read on the light sidebar (WCAG AA). Dark mode
   keeps its own colour, since AdminLTE's dark rule is more specific. */
.app-sidebar {
    --lte-sidebar-submenu-color: #5c636a;
}
/* A past expiry date on the Domains and SSL lists, in Bootstrap's darker or lighter red for each mode, which stays
   readable (WCAG AA) on the list's background */
.domainmod-css-expired {
    color: var(--bs-danger-text-emphasis);
    font-weight: 600;
}
/* A hosting service's renewal date waiting for its renewal to be confirmed (amber, in the theme's darker or lighter
   shade, which keeps its contrast in light and dark mode) */
.domainmod-css-confirm {
    color: var(--bs-warning-text-emphasis);
    font-weight: 600;
}
/* The red and green highlights, lighter Nord red and green in dark mode so they're readable */
[data-bs-theme="dark"] .domainmod-css-text-highlight-red {
    color: #e6adb2;
}
[data-bs-theme="dark"] .domainmod-css-text-highlight-green {
    color: #adc79a;
}
/* On/off switches a little larger than Bootstrap's, so they're easy to see and click next to the compact text */
.form-switch .form-check-input {
    font-size: 1.25rem;
}
/* The larger switch's own offset (2.5em) is measured at its larger size, so the wrapper's padding matches it, or the
   switch would stick out past the left edge of the fields above it */
.form-switch {
    padding-inline-start: 3.125rem;
}
/* Forms stop at a comfortable reading width instead of stretching across wide screens (the shared form wrapper,
   Form::showFormTop(), adds the class), and an edit page's Danger Zone (Layout::dangerZone()) stops at the same width,
   so their right edges line up, as do the page messages (System::slimMessage()) */
.domainmod-form,
.domainmod-danger-zone,
.domainmod-message {
    max-width: 48rem;
}
/* Flatpickr's calendar in DomainMOD's colours: chosen days in the main colour, and dark mode from Bootstrap's own
   colour variables (Flatpickr doesn't follow data-bs-theme by itself). Flatpickr's stylesheet loads after this one, so
   the chosen days' rules name the calendar and its days too, to outrank Flatpickr's blue in every state (focused,
   hovered, or from the month before or after). */
.flatpickr-calendar .flatpickr-days .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-days .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-days .flatpickr-day.endRange {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}
/* A range that starts and ends on neighbouring days is joined in the same colour */
.flatpickr-calendar .flatpickr-days .flatpickr-day.startRange + .endRange:not(:nth-child(7n+1)) {
    box-shadow: -10px 0 0 var(--bs-primary);
}
.flatpickr-wrapper {
    display: block;
    width: 100%;
}
/* The reports' date range filter keeps its field and button on one line */
.domainmod-date-filter .flatpickr-wrapper {
    display: inline-block;
    width: auto;
}
[data-bs-theme="dark"] .flatpickr-calendar {
    background: var(--bs-body-bg);
    box-shadow: 0 0 0 1px var(--bs-border-color), 0 .5rem 1rem rgba(0, 0, 0, .5);
}
[data-bs-theme="dark"] .flatpickr-calendar.arrowTop::after {
    border-bottom-color: var(--bs-body-bg);
}
[data-bs-theme="dark"] .flatpickr-calendar.arrowBottom::after {
    border-top-color: var(--bs-body-bg);
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-month,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-bs-theme="dark"] .flatpickr-current-month input.cur-year,
[data-bs-theme="dark"] span.flatpickr-weekday,
[data-bs-theme="dark"] .flatpickr-day {
    color: var(--bs-body-color);
    fill: var(--bs-body-color);
    background: transparent;
}
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month svg,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month svg {
    fill: var(--bs-body-color);
}
/* Hovered and focused days, and the days inside a range, apart from the chosen ones and days outside the allowed range.
   It names the calendar and its days to outrank Flatpickr's light grey for today and the other months' days, which
   would leave their light text unreadable. */
[data-bs-theme="dark"] .flatpickr-calendar .flatpickr-days .flatpickr-day:is(:hover, :focus, .inRange):not(.selected, .startRange, .endRange, .flatpickr-disabled) {
    background: var(--bs-secondary-bg);
    border-color: var(--bs-secondary-bg);
    box-shadow: -5px 0 0 var(--bs-secondary-bg), 5px 0 0 var(--bs-secondary-bg);
}
[data-bs-theme="dark"] .flatpickr-day.today {
    border-color: var(--bs-secondary-color);
}
/* The days from the months before and after in Bootstrap's muted text colour, in light mode as well as dark, since
   Flatpickr's own light grey is too faint to read on white. Days outside the allowed range stay faint in light mode. */
.flatpickr-day.prevMonthDay:not(.flatpickr-disabled),
.flatpickr-day.nextMonthDay:not(.flatpickr-disabled),
[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled {
    color: var(--bs-secondary-color);
}
[data-bs-theme="dark"] .flatpickr-day.selected,
[data-bs-theme="dark"] .flatpickr-day.startRange,
[data-bs-theme="dark"] .flatpickr-day.endRange {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
/* Tom Select's multiple choice menus: the highlighted option and chosen item in DomainMOD's main colour, as before,
   and Bootstrap's colours where Tom Select fixes light ones, so the menus follow dark mode */
.ts-dropdown .active,
.ts-wrapper.multi .ts-control > div.active {
    background-color: var(--bs-primary);
    color: #fff;
}
.ts-control,
.ts-control input,
.ts-dropdown {
    color: var(--bs-body-color);
}
.ts-dropdown {
    border-color: var(--bs-border-color);
}
.ts-wrapper.multi .ts-control > div {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}
.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
    border-left-color: var(--bs-border-color);
}
/* Tom Select puts the remove button's divider on the other side in right-to-left languages (it adds .rtl itself) */
.ts-wrapper.plugin-remove_button.rtl .item .remove {
    border-right-color: var(--bs-border-color);
}
/* In right-to-left languages, AdminLTE's mirrored styles draw the menu's arrow on the left, but Tom Select still leaves
   the room for it on the right (its own right-to-left rule doesn't match its current markup), so long text ran under
   the arrow. This swaps the two sides, using Tom Select's own sizes (--ts-pr-min is its usual padding at the start,
   smaller in a multiple choice menu with choices), and !important to beat its left-to-right rule. */
.ts-wrapper.form-select.rtl .ts-control {
    padding-left: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
    padding-right: var(--ts-pr-min) !important;
}
/* A menu you can search (js/search-select.js) keeps one height whether or not it has focus. Tom Select puts its search
   box after the chosen option while the menu has focus, and under a long option (such as a Hosting Service) the box
   wrapped onto a line of its own, so the menu grew by a line, and shrank again as it lost focus. A click on the next
   button then lost its first press, since the button moved between the press and the release. The search box now lies
   over the chosen option instead, which keeps its space and is hidden only while something is typed. */
.ts-wrapper.single.domainmod-search-select.has-items .ts-control > input {
    position: absolute;
    top: .375rem;
    inset-inline-start: .75rem;
    inset-inline-end: var(--ts-pr-caret, 2.25rem);
    width: auto !important;
}
.ts-wrapper.single.domainmod-search-select.domainmod-search-typing .ts-control > .item {
    visibility: hidden;
}
/* The focus ring in DomainMOD's main colour, like the other fields (the menu's border is on its wrapper) */
.ts-wrapper.form-select.focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}
.focus .ts-control {
    box-shadow: none;
}
/* The Bulk Updater's domain picker (js/bulk-domain-picker.js): each result's status greyed beside its name, and in the
   highlighted option's white text, where the grey would be too faint on the main colour. The match is underlined in
   the row's own colour, since white text, and dark mode's text, are too faint on Tom Select's pale yellow. Long names
   wrap instead of being cut off, so two that differ near the end can be told apart on a phone. */
.domainmod-domain-picker-status {
    color: var(--bs-secondary-color);
}
.ts-dropdown .active .domainmod-domain-picker-status {
    color: inherit;
}
.ts-wrapper.domainmod-domain-picker .ts-dropdown .highlight {
    background: none;
    color: inherit;
    text-decoration: underline;
}
.ts-wrapper.domainmod-domain-picker .ts-dropdown .option {
    overflow-wrap: anywhere;
}
/* The picker's more-matches line, at the foot of the open dropdown, set apart from the results */
.domainmod-domain-picker-more {
    padding: 3px .75rem;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
}
/* The Bulk Updater list's count, just under the list (the list's own spacing is under its field) */
.domainmod-domain-list-count {
    margin-top: -.75rem;
    margin-bottom: 1rem;
}
/* htmx's indicators (its own styles are turned off, since the CSP blocks the style tag it would insert): a spinner
   shows only while its request runs, and a link is shown as busy while its task runs (the footer's script marks it
   aria-busy) */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}
a[aria-busy="true"] {
    pointer-events: none;
    opacity: .65;
}
/* AdminLTE's reduced motion rules (its own style tag is skipped, since the CSP blocks it: see head-tags.inc.php):
   animations and transitions finish at once */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* The charts' colours (js/charts.js reads them, since Chart.js draws on a canvas and can't use CSS directly): a
   nine-colour palette (a doughnut's slices use the first five, since it has at most five groups, bars use the first,
   a price comparison's cheapest bars the green third, and the stacked counts the green, red, and amber), a grey for a
   bar chart's "Other" bar, plus the text, grid, and slice border colours, for each colour mode. Domains, Hosting, and
   SSL Certificates each have their own colour wherever a chart shows their costs (the renewal and cost charts), and an
   Overdue column's axis label is red. */
:root,
[data-bs-theme="light"] {
    --domainmod-chart-1: #2563eb;
    --domainmod-chart-2: #dc2626;
    --domainmod-chart-3: #16a34a;
    --domainmod-chart-4: #d97706;
    --domainmod-chart-5: #7c3aed;
    --domainmod-chart-6: #0891b2;
    --domainmod-chart-7: #db2777;
    --domainmod-chart-8: #65a30d;
    --domainmod-chart-9: #92400e;
    --domainmod-chart-other: #94a3b8;
    --domainmod-chart-text: #495057;
    --domainmod-chart-grid: rgba(0, 0, 0, .1);
    --domainmod-chart-border: #ffffff;
    --domainmod-chart-domains: #3e6fb0;
    --domainmod-chart-hosting: #2f9e72;
    --domainmod-chart-ssl: #d4602a;
    --domainmod-chart-overdue-text: #b02a37;
}
/* Dark mode's chart colours come from the Nord palette (Frost and Aurora, a few lightened so every slice and bar has
   at least 3:1 contrast against the card) */
[data-bs-theme="dark"] {
    --domainmod-chart-1: #88c0d0;
    --domainmod-chart-2: #d98e95;
    --domainmod-chart-3: #a3be8c;
    --domainmod-chart-4: #ebcb8b;
    --domainmod-chart-5: #c4a3bf;
    --domainmod-chart-6: #8fbcbb;
    --domainmod-chart-7: #d9a08a;
    --domainmod-chart-8: #a3b8d4;
    --domainmod-chart-9: #e5e9f0;
    --domainmod-chart-other: #8a95ab;
    --domainmod-chart-text: #d8dee9;
    --domainmod-chart-grid: rgba(216, 222, 233, .12);
    --domainmod-chart-border: #3b4252;
    --domainmod-chart-domains: #5b8fd6;
    --domainmod-chart-hosting: #2aa57a;
    --domainmod-chart-ssl: #e0703a;
    --domainmod-chart-overdue-text: #f0a0a0;
}
/* A chart's drawing area. Chart.js sizes the canvas to fill it, so the height is set here (no inline styles under the
   CSP), smaller on narrow screens. */
.domainmod-chart {
    position: relative;
    height: 320px;
}
@media (max-width: 575.98px) {
    .domainmod-chart {
        height: 260px;
    }
}
/* A horizontal bar chart is as tall as its bars need (up to 30, such as a cost report's 15 plus "Other" or a price
   comparison's registrars), so each bar keeps the same thickness however many there are */
.domainmod-chart.domainmod-chart-bars-1 {
    height: 92px;
}
.domainmod-chart.domainmod-chart-bars-2 {
    height: 124px;
}
.domainmod-chart.domainmod-chart-bars-3 {
    height: 156px;
}
.domainmod-chart.domainmod-chart-bars-4 {
    height: 188px;
}
.domainmod-chart.domainmod-chart-bars-5 {
    height: 220px;
}
.domainmod-chart.domainmod-chart-bars-6 {
    height: 252px;
}
.domainmod-chart.domainmod-chart-bars-7 {
    height: 284px;
}
.domainmod-chart.domainmod-chart-bars-8 {
    height: 316px;
}
.domainmod-chart.domainmod-chart-bars-9 {
    height: 348px;
}
.domainmod-chart.domainmod-chart-bars-10 {
    height: 380px;
}
.domainmod-chart.domainmod-chart-bars-11 {
    height: 412px;
}
.domainmod-chart.domainmod-chart-bars-12 {
    height: 444px;
}
.domainmod-chart.domainmod-chart-bars-13 {
    height: 476px;
}
.domainmod-chart.domainmod-chart-bars-14 {
    height: 508px;
}
.domainmod-chart.domainmod-chart-bars-15 {
    height: 540px;
}
.domainmod-chart.domainmod-chart-bars-16 {
    height: 572px;
}
.domainmod-chart.domainmod-chart-bars-17 {
    height: 604px;
}
.domainmod-chart.domainmod-chart-bars-18 {
    height: 636px;
}
.domainmod-chart.domainmod-chart-bars-19 {
    height: 668px;
}
.domainmod-chart.domainmod-chart-bars-20 {
    height: 700px;
}
.domainmod-chart.domainmod-chart-bars-21 {
    height: 732px;
}
.domainmod-chart.domainmod-chart-bars-22 {
    height: 764px;
}
.domainmod-chart.domainmod-chart-bars-23 {
    height: 796px;
}
.domainmod-chart.domainmod-chart-bars-24 {
    height: 828px;
}
.domainmod-chart.domainmod-chart-bars-25 {
    height: 860px;
}
.domainmod-chart.domainmod-chart-bars-26 {
    height: 892px;
}
.domainmod-chart.domainmod-chart-bars-27 {
    height: 924px;
}
.domainmod-chart.domainmod-chart-bars-28 {
    height: 956px;
}
.domainmod-chart.domainmod-chart-bars-29 {
    height: 988px;
}
.domainmod-chart.domainmod-chart-bars-30 {
    height: 1020px;
}
/* DataTables' controls above a table (page length, info, and search) and below it (info and paging) get some space
   from the table, which DataTables 2's Bootstrap 5 styling leaves at none */
div.dt-container > div.top {
    margin-bottom: 0.75rem;
    /* The page length, the "Showing…" line, and the search on one line: length and info on the left, search on the
       right, all centred vertically (they wrap on narrow screens) */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
}
div.dt-container > div.top > .dt-search {
    /* Logical, so the search goes to the far end (the left) in right-to-left languages */
    margin-inline-start: auto;
}
div.dt-container > div.bottom {
    margin-top: 0.75rem;
}
/* The column with Responsive's show and hide control (columnDefs' "control" class) stays narrow, just wide enough for
   its arrow, so the lists' header cells don't need a width attribute */
table.dataTable > thead > tr > th.control {
    width: 20px;
}
/* The control column's cells have no padding at their end edge, so the arrow still fits in those 20px now that the
   other cells have padding on both sides. It's !important because the per-table padding rules in css/datatables/ use
   the table's id, which would otherwise win. */
table.dataTable > thead > tr > th.control,
table.dataTable > tbody > tr > td.control {
    padding-inline-end: 0 !important;
}
/* Tables with the domainmod-table-start class (the asset, fee, report, Data Warehouse, segment, queue, and admin
   lists) start every column at the start edge, amounts, counts, and dates included, overriding DataTables' right
   alignment for number and date columns. A column given one of DataTables' own centre or right alignment classes
   keeps it, and any other column that should line up differently gets its own rule. */
table.dataTable.domainmod-table-start > :is(thead, tbody, tfoot) > tr > :is(.dt-type-numeric, .dt-type-date):not(.dt-center, .dt-right, .dt-head-center, .dt-head-right, .dt-body-center, .dt-body-right) {
    text-align: start;
}
table.dataTable.domainmod-table-start > :is(thead, tfoot) > tr > :is(.dt-type-numeric, .dt-type-date) div:is(.dt-column-header, .dt-column-footer) {
    flex-direction: row;
}
/* DataTables puts every other header and footer cell on the left, so on a right-to-left page the text headings would
   sit on the opposite side from their values: they start at the start edge too, apart from a column given its own
   alignment (such as the Import Queue's centred Delete column) */
table.dataTable.domainmod-table-start > :is(thead, tfoot) > tr > :is(th, td):not(.dt-center, .dt-right, .dt-head-center, .dt-head-right, .dt-body-center, .dt-body-right) {
    text-align: start;
}
/* The landing pages' tiles (Layout::landingTile()): the whole card is one link, so hovering deepens its border and
   keyboard focus rings the whole card, not only the title */
.domainmod-landing-tile {
    transition: border-color 0.15s ease-in-out;
}
.domainmod-landing-tile:hover {
    border-color: var(--bs-secondary-color);
}
.domainmod-landing-tile:focus-within {
    outline: 2px solid var(--bs-focus-ring-color);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .domainmod-landing-tile {
        transition: none;
    }
}
/* A card's title (Layout::landingTile() and landingLinks()) sits beside its icon, so a long word, such as a translated
   title, breaks inside the card instead of running past its edge. Bootstrap's text-break isn't in the right-to-left
   stylesheet, so this is DomainMOD's own. */
.domainmod-landing-title {
    overflow-wrap: anywhere;
}
/* A menu card's links (Layout::landingLinks()) have 0.5rem of inline padding (px-2), so the hover background doesn't
   touch the icon. The list's matching -0.5rem inline margin keeps the icons lined up with the card's own icon, so the
   two change together. */
.domainmod-landing-links {
    margin-inline: -0.5rem;
}
/* A list's status drawn as an icon (Layout::statusBadge() with an icon). Privacy is on most domains, so its grey
   shield is a little smaller and quieter than the coloured status icons. */
.domainmod-status-icon {
    font-size: 1rem;
    line-height: 1;
}
.domainmod-status-icon .bi-shield-lock-fill {
    font-size: 0.85em;
    margin-inline-start: 0.2rem;
}
/* A status icon before an item's name (on the Domains, SSL Certificates, and Hosting lists) leaves a little more room
   before the name than the space alone */
.domainmod-status-icon + a {
    margin-inline-start: 0.25rem;
}
/* In light mode the grey privacy shield is lightened, so it stays quiet but keeps over 3:1 contrast on white, striped,
   and hovered rows */
[data-bs-theme="light"] .domainmod-status-icon.text-body-secondary {
    color: #7d858c !important;
}
/* In light mode the warning colour's emphasis shade is nearly brown, so the pending icons use a deeper gold that
   still has over 3:1 contrast on white */
[data-bs-theme="light"] .domainmod-status-icon.text-warning-emphasis {
    color: #997404 !important;
}
/* Dark mode in the Nord palette (nordtheme.com): Polar Night (#2E3440, #3B4252, #434C5E, #4C566A) for the
   backgrounds and borders, Snow Storm (#D8DEE9, #E5E9F0, #ECEFF4) for the text, Frost for links and info, and Aurora
   for the status colours. A few Aurora shades are lightened (red to #D98E95 for icons and #E6ADB2 for text) so they
   keep at least 3:1 (icons) or 4.5:1 (text) contrast on the cards and on striped table rows. DomainMOD's main colour,
   which AdminLTE takes from Bootstrap's red (data-lte-primary="danger"), is a calmer brand red, #B8434E, which keeps
   white text at 5.3:1. Bootstrap's secondary grey is a light Polar Night blue-grey (#B5BDCD), so .text-secondary text
   keeps 4.5:1 on the page, the cards, and striped rows. Inline code is Bootstrap's dark mode pink lightened to
   #EEAACB, which keeps 4.5:1 there too, since Bootstrap's own pink falls short of it on the page (WCAG 1.4.3). */
[data-bs-theme="dark"],
[data-bs-theme="dark"][data-lte-primary] {
    --bs-body-bg: #3b4252;
    --bs-body-bg-rgb: 59, 66, 82;
    --bs-tertiary-bg: #2e3440;
    --bs-tertiary-bg-rgb: 46, 52, 64;
    --bs-secondary-bg: #434c5e;
    --bs-secondary-bg-rgb: 67, 76, 94;
    --bs-body-color: #d8dee9;
    --bs-body-color-rgb: 216, 222, 233;
    --bs-emphasis-color: #eceff4;
    --bs-emphasis-color-rgb: 236, 239, 244;
    --bs-secondary-color: rgba(216, 222, 233, 0.75);
    --bs-secondary-color-rgb: 216, 222, 233;
    --bs-tertiary-color: rgba(216, 222, 233, 0.5);
    --bs-tertiary-color-rgb: 216, 222, 233;
    --bs-heading-color: #eceff4;
    --bs-border-color: #4c566a;
    --bs-border-color-translucent: rgba(216, 222, 233, 0.15);
    --bs-primary: #b8434e;
    --bs-primary-rgb: 184, 67, 78;
    --bs-danger: #d98e95;
    --bs-danger-rgb: 217, 142, 149;
    --bs-warning: #ebcb8b;
    --bs-warning-rgb: 235, 203, 139;
    --bs-success: #a3be8c;
    --bs-success-rgb: 163, 190, 140;
    --bs-info: #88c0d0;
    --bs-info-rgb: 136, 192, 208;
    --bs-secondary: #b5bdcd;
    --bs-secondary-rgb: 181, 189, 205;
    --bs-primary-text-emphasis: #e6adb2;
    --bs-danger-text-emphasis: #e6adb2;
    --bs-warning-text-emphasis: #ebcb8b;
    --bs-success-text-emphasis: #adc79a;
    --bs-info-text-emphasis: #93c7d5;
    --bs-secondary-text-emphasis: #d8dee9;
    --bs-primary-bg-subtle: #4a3a42;
    --bs-danger-bg-subtle: #4a3a42;
    --bs-warning-bg-subtle: #4a4638;
    --bs-success-bg-subtle: #3d4a3e;
    --bs-info-bg-subtle: #374a52;
    --bs-secondary-bg-subtle: #434c5e;
    --bs-primary-border-subtle: #8f4950;
    --bs-danger-border-subtle: #8f4950;
    --bs-warning-border-subtle: #a89160;
    --bs-success-border-subtle: #768a65;
    --bs-info-border-subtle: #5f8a96;
    --bs-secondary-border-subtle: #616e88;
    --bs-focus-ring-color: rgba(136, 192, 208, 0.75);
    --bs-form-valid-color: #adc79a;
    --bs-form-valid-border-color: #a3be8c;
    --bs-form-invalid-color: #e6adb2;
    --bs-form-invalid-border-color: #d98e95;
    --bs-code-color: #eeaacb;
    --lte-primary-hover: #a23b45;
    --lte-primary-hover-border: #a23b45;
    --lte-primary-active: #8f343d;
    --lte-primary-active-border: #8f343d;
}
/* The sidebar, the header, and the sign-in and installer pages' background in the darkest Polar Night */
[data-bs-theme="dark"] .app-sidebar.bg-body-secondary,
[data-bs-theme="dark"] .app-header.bg-body,
[data-bs-theme="dark"] body.bg-body-secondary {
    background-color: #2e3440 !important;
}
[data-bs-theme="dark"] .app-sidebar {
    --lte-sidebar-color: #d8dee9;
    --lte-sidebar-submenu-color: #d8dee9;
    --lte-sidebar-hover-bg: rgba(216, 222, 233, 0.08);
    --lte-sidebar-menu-active-bg: rgba(216, 222, 233, 0.08);
    --lte-sidebar-submenu-hover-bg: rgba(216, 222, 233, 0.08);
    --lte-sidebar-submenu-active-bg: rgba(216, 222, 233, 0.08);
}
/* Form fields a step darker than the card they sit on, with a border that has 3:1 contrast against the card, and
   a Frost border and focus ring (75% opaque, still over 3:1) when focused. Tom Select draws its border on the wrapper
   (its Bootstrap styling removes the inner control's), so the wrapper gets the same colours. */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .ts-control,
[data-bs-theme="dark"] .ts-wrapper.single .ts-control,
[data-bs-theme="dark"] .ts-dropdown {
    background-color: #2e3440;
    border-color: #8a95ab;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .ts-wrapper.form-select.focus,
[data-bs-theme="dark"] .ts-wrapper.form-control.focus {
    border-color: #88c0d0;
    box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}
/* Checkboxes, radio buttons, and switches: the same 3:1 border, a lighter red border round the brand red when
   checked (so the checked control still stands out from the card), and the Frost focus ring. The data-lte-primary
   selectors outweigh AdminLTE's own red focus ring. */
[data-bs-theme="dark"] .form-check-input {
    border-color: #8a95ab;
}
[data-bs-theme="dark"][data-lte-primary] .form-check-input:checked {
    border-color: #d98e95;
}
[data-bs-theme="dark"][data-lte-primary] .form-check-input:focus {
    border-color: #88c0d0;
    box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}
/* The current sidebar section and Tom Select's highlighted option and chosen items get a thin lighter red edge round
   the brand red, so the highlight stands out from the dark background */
[data-bs-theme="dark"] .app-sidebar .sidebar-menu > .nav-item > .nav-link.active,
[data-bs-theme="dark"] .ts-dropdown .active,
[data-bs-theme="dark"] .ts-wrapper.multi .ts-control > div.active {
    box-shadow: inset 0 0 0 1px #d98e95;
}
/* The date picker's chosen days get the same lighter red border round the brand red, so they stand out from the
   calendar */
[data-bs-theme="dark"] .flatpickr-calendar .flatpickr-days .flatpickr-day.selected,
[data-bs-theme="dark"] .flatpickr-calendar .flatpickr-days .flatpickr-day.startRange,
[data-bs-theme="dark"] .flatpickr-calendar .flatpickr-days .flatpickr-day.endRange {
    border-color: #d98e95;
}
/* Buttons in the brand red, a shade darker on hover and when pressed. Their text stays white. */
[data-bs-theme="dark"] .btn-danger,
[data-bs-theme="dark"] .btn-primary {
    --bs-btn-bg: #b8434e;
    --bs-btn-border-color: #b8434e;
    --bs-btn-hover-bg: #a23b45;
    --bs-btn-hover-border-color: #a23b45;
    --bs-btn-active-bg: #8f343d;
    --bs-btn-active-border-color: #8f343d;
    --bs-btn-disabled-bg: #b8434e;
    --bs-btn-disabled-border-color: #b8434e;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-color: #ffffff;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-focus-shadow-rgb: 136, 192, 208;
    --bs-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
}
/* Solid badges: red with white text, and Nord's yellow, green, and Frost with dark Polar Night text */
[data-bs-theme="dark"] .text-bg-danger,
[data-bs-theme="dark"] .text-bg-primary {
    background-color: #b8434e !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .text-bg-warning {
    background-color: #ebcb8b !important;
    color: #2e3440 !important;
}
[data-bs-theme="dark"] .text-bg-success {
    background-color: #a3be8c !important;
    color: #2e3440 !important;
}
[data-bs-theme="dark"] .text-bg-info {
    background-color: #88c0d0 !important;
    color: #2e3440 !important;
}
[data-bs-theme="dark"] .text-bg-secondary {
    background-color: #4c566a !important;
    color: #eceff4 !important;
}
/* Outline cards' coloured tops: the brand red for DomainMOD's own cards, and Nord's colours for the rest */
[data-bs-theme="dark"] .card-outline.card-danger,
[data-bs-theme="dark"] .card-outline.card-primary {
    border-top-color: #b8434e;
}
[data-bs-theme="dark"] .card-outline.card-warning {
    border-top-color: #ebcb8b;
}
[data-bs-theme="dark"] .card-outline.card-success {
    border-top-color: #a3be8c;
}
[data-bs-theme="dark"] .card-outline.card-info {
    border-top-color: #88c0d0;
}
[data-bs-theme="dark"] .card-outline.card-secondary {
    border-top-color: #8a95ab;
}
/* The Dashboard's totals, one card split into a cell per total, with a divider between cells (beside each other on
   wider screens, stacked on phones). The whole cell is the link. */
.domainmod-dashboard-total + .domainmod-dashboard-total {
    border-top: 1px solid var(--bs-border-color);
}
@media (min-width: 576px) {
    .domainmod-dashboard-total + .domainmod-dashboard-total {
        border-top: 0;
        border-inline-start: 1px solid var(--bs-border-color);
    }
}
.domainmod-dashboard-total .bi {
    color: var(--bs-info-text-emphasis);
}
.domainmod-dashboard-total:hover {
    background-color: var(--bs-tertiary-bg);
}
.domainmod-dashboard-total:focus-within {
    outline: 2px solid var(--bs-focus-ring-color, var(--bs-primary));
    outline-offset: -2px;
}
/* The renewal chart's figures, once shown, take the card's whole width, with the report links on the row below, since
   their table's scroll box (see the dense list style, below) has no width of its own to claim a share of the row */
.domainmod-dashboard-figures[open] {
    flex-basis: 100%;
}
/* The rest of the Dashboard (layout F, Greg's choice, 2026-11-21): blocks with a heading and a note at the end side of
   the header (Needs Attention's item count, Coming Up's "Renewals due"). Every colour is a theme variable, so light and
   dark (Nord) modes follow, and logical properties mirror it in right-to-left languages. */
.domainmod-dashboard-block-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
}
.domainmod-dashboard-block-header::after {
    display: none;
}
.domainmod-dashboard-block-header .card-title {
    float: none;
}
.domainmod-dashboard-block-note {
    margin-inline-start: auto;
    font-size: .875rem;
    color: var(--bs-secondary-color);
}
/* Needs Attention's items: a tinted icon, the sentence (the link, which covers the whole row) with its hint under it,
   and a chevron. The hint is muted text, at least 4.5:1 in both colour modes. */
.domainmod-attention-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.domainmod-attention-item:hover,
.domainmod-attention-item:focus-within {
    background-color: var(--bs-tertiary-bg);
}
.domainmod-attention-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: .5rem;
}
.domainmod-attention-text {
    flex: 1;
    min-width: 0;
}
.domainmod-attention-text a {
    font-weight: 600;
}
.domainmod-attention-hint {
    display: block;
    font-size: .875rem;
    color: var(--bs-secondary-color);
}
.domainmod-attention-none .bi {
    margin-inline-end: .25rem;
}
/* The Suggestions card's tips, laid out like Needs Attention's items: a tinted icon, the summary (a link) with a More
   toggle under it that opens the full text, and the Hide button at the end side. Only the summary is a link, so the row
   has no hover colour, and an open toggle keeps the icon and button at the top. Logical properties and flex order
   mirror it in right-to-left languages. */
.domainmod-suggestion {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.domainmod-suggestion-text {
    flex: 1;
    min-width: 0;
    padding-block: .25rem;
}
.domainmod-suggestion-link {
    font-weight: 600;
}
.domainmod-suggestion-more {
    font-size: .875rem;
    color: var(--bs-secondary-color);
}
.domainmod-suggestion-more summary {
    cursor: pointer;
    width: fit-content;
}
.domainmod-suggestion-more[open] summary {
    margin-bottom: .25rem;
}
.domainmod-suggestion-more[open] p {
    color: var(--bs-body-color);
}
/* Hide is muted, and underlined only on hover, so the summaries stand out */
.domainmod-suggestion-hide {
    --bs-btn-color: var(--bs-secondary-color);
    --bs-btn-hover-color: var(--bs-body-color);
    --bs-btn-active-color: var(--bs-body-color);
    white-space: nowrap;
    text-decoration: none;
}
.domainmod-suggestion-hide:hover,
.domainmod-suggestion-hide:focus-visible {
    text-decoration: underline;
}
/* Coming Up's table: the type in the first column with its chart colour as a dot, and the counts after it, at the start
   side like the other tables, in tabular figures. A zero is muted and isn't a link. */
.domainmod-coming-up {
    font-variant-numeric: tabular-nums;
}
.domainmod-coming-up > :not(caption) > * > * {
    padding-inline: .75rem;
    text-align: start;
    background-color: transparent;
}
.domainmod-coming-up > thead th {
    white-space: nowrap;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bs-secondary-color);
}
.domainmod-coming-up > tbody th {
    font-weight: 400;
}
.domainmod-coming-up > tbody td a {
    font-weight: 600;
}
.domainmod-coming-up > tbody > tr:last-child > * {
    border-bottom: 0;
}
/* Each row is tinted on hover, and while one of its counts has focus, with the same colour as Needs Attention's rows in
   both colour modes. The counts keep their own focus rings, drawn over the tint. */
.domainmod-coming-up > tbody > tr:hover > *,
.domainmod-coming-up > tbody > tr:focus-within > * {
    background-color: var(--bs-tertiary-bg);
}
.domainmod-coming-up-zero {
    color: var(--bs-secondary-color);
}
.domainmod-type-dot {
    display: inline-block;
    width: .6rem;
    height: .6rem;
    margin-inline-end: .5rem;
    border-radius: .2rem;
    vertical-align: middle;
}
.domainmod-type-dot-domains {
    background-color: var(--domainmod-chart-domains);
}
.domainmod-type-dot-hosting {
    background-color: var(--domainmod-chart-hosting);
}
.domainmod-type-dot-ssl {
    background-color: var(--domainmod-chart-ssl);
}
/* Pending's and Import Queue's pills: a rounded outline in the border colour, the label in the body colour, and the
   count in bold */
.domainmod-dashboard-pills {
    gap: .5rem;
}
.domainmod-dashboard-pill {
    display: inline-block;
    padding: .25rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    font-size: .875rem;
    color: var(--bs-body-color);
    text-decoration: none;
}
.domainmod-dashboard-pill:hover,
.domainmod-dashboard-pill:focus-visible {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
}
.domainmod-dashboard-pill-count {
    margin-inline-start: .25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
/* Dark mode's logo (Greg's choice, 2026-11-14): the logo's lettering drawn in a soft off-white (#e0e0e0, close to
   Nord's Snow Storm) with a CSS filter, and
   its red icon kept in colour by a second copy of the image cropped to the icon (the left 14% of the image) and laid
   exactly over it. There's no light tile behind it. Light mode keeps the image as it is. */
.domainmod-logo-icon {
    display: none;
}
[data-bs-theme="dark"] .domainmod-css-logo-background-colour .domainmod-logo-image {
    padding: 0;
    background-color: transparent;
    filter: brightness(0) invert(.88);
    clip-path: inset(0 0 0 14%);
}
[data-bs-theme="dark"] .domainmod-css-logo-background-colour .domainmod-logo-icon {
    display: block;
    clip-path: inset(0 86% 0 0);
}
/* The sidebar's domain search sits close under the logo area */
.app-sidebar .sidebar-wrapper {
    padding-top: .25rem;
}
.sidebar-wrapper .sidebar-search {
    padding-top: 0;
}
/* The menu filter sits right under the domain search (Greg's choice, 2026-11-28): only the domain search's bottom
   padding separates them */
.sidebar-wrapper .sidebar-search + .sidebar-search {
    padding-top: 0;
}
/* Form mistakes on a Tom Select menu (Form::addFieldError()): Tom Select hides the real menu and copies its classes to
   its own wrapper, so Bootstrap's red border for .is-invalid has to be given to Tom Select's control here. */
.ts-wrapper.is-invalid .ts-control {
    border-color: var(--bs-form-invalid-border-color);
}
.ts-wrapper.is-invalid.focus .ts-control {
    border-color: var(--bs-form-invalid-border-color);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
}
/* In dark mode the field rules above set every field's border, which would hide Bootstrap's red border on a field
   with a mistake, so it's set again here, with a red focus ring when it's focused */
[data-bs-theme="dark"] .form-control.is-invalid,
[data-bs-theme="dark"] .form-select.is-invalid {
    border-color: var(--bs-form-invalid-border-color);
}
[data-bs-theme="dark"] .form-control.is-invalid:focus,
[data-bs-theme="dark"] .form-select.is-invalid:focus {
    border-color: var(--bs-form-invalid-border-color);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25);
}
/* The domain edit page's in-place Refresh (js/domain-refresh.js): the button row at the top, lined up with the form
   below it, and a short highlight on each field the refresh changed, fading back to normal (shown without the fade
   for users who prefer reduced motion) */
.domainmod-refresh-row {
    max-width: 48rem;
    margin-bottom: .5rem;
}
.domainmod-refresh-result {
    max-width: 48rem;
}
@keyframes domainmod-refreshed {
    from {
        background-color: var(--bs-success-bg-subtle);
        border-color: var(--bs-success-border-subtle);
    }
}
@keyframes domainmod-refreshed-switch {
    from {
        box-shadow: 0 0 0 .3rem var(--bs-success-border-subtle);
    }
}
.form-control.domainmod-refreshed,
.form-select.domainmod-refreshed {
    animation: domainmod-refreshed 2s ease-out;
}
.form-check-input.domainmod-refreshed {
    animation: domainmod-refreshed-switch 2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    .form-control.domainmod-refreshed,
    .form-select.domainmod-refreshed {
        animation: none;
        background-color: var(--bs-success-bg-subtle);
        border-color: var(--bs-success-border-subtle);
    }
    .form-check-input.domainmod-refreshed {
        animation: none;
        box-shadow: 0 0 0 .3rem var(--bs-success-border-subtle);
    }
}
/* The step indicator on multi-step flows (Layout::stepIndicator()): numbered circles joined by a thin line, the steps
   already done ticked in the success colour, the current one in the main colour, and the ones still to come as an
   outline in the secondary text colour, which has enough contrast for a meaningful outline in both colour modes (the
   border colour is too faint). In narrow containers only the current step keeps its name beside the circles. */
.domainmod-steps {
    --domainmod-step-size: 2rem;
    --domainmod-step-done-color: #fff;
    margin-bottom: 1rem;
}
[data-bs-theme="dark"] .domainmod-steps {
    /* Nord's green is light, so the tick on it is dark */
    --domainmod-step-done-color: #2e3440;
    /* The brand red is too dark against the Nord page for the current circle's edge, so its ring is a light red */
    --domainmod-step-current-ring: #e6adb2;
}
.domainmod-steps ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.domainmod-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--bs-secondary-color);
}
.domainmod-step + .domainmod-step::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--bs-secondary-color);
}
.domainmod-step-number {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: var(--domainmod-step-size);
    height: var(--domainmod-step-size);
    border: 2px solid var(--bs-secondary-color);
    border-radius: 50%;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1;
}
.domainmod-step.is-done .domainmod-step-number {
    color: var(--domainmod-step-done-color);
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}
.domainmod-step.is-current {
    color: var(--bs-emphasis-color);
    font-weight: 600;
}
.domainmod-step.is-current .domainmod-step-number {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--domainmod-step-current-ring, var(--bs-primary));
}
.domainmod-steps {
    container-type: inline-size;
}
/* A step already done that links back to its page (Layout::stepIndicator() with step addresses): the whole step is the
   link, in the step's own colours, and its circle gains a ring on hover and focus */
.domainmod-step-link {
    display: flex;
    align-items: center;
    gap: inherit;
    color: inherit;
    text-decoration: none;
    border-radius: 1rem;
}
.domainmod-step-link:hover .domainmod-step-number,
.domainmod-step-link:focus-visible .domainmod-step-number {
    box-shadow: 0 0 0 .2rem rgba(var(--bs-success-rgb), .4);
}
/* The furthest step reached (after going back) is an outline, not a green circle, so its ring is in the outline's colour */
.domainmod-step.is-reached .domainmod-step-link:hover .domainmod-step-number,
.domainmod-step.is-reached .domainmod-step-link:focus-visible .domainmod-step-number {
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--bs-secondary-color) 40%, transparent);
}
.domainmod-step-link:hover .domainmod-step-name {
    text-decoration: underline;
}
.domainmod-step-link:focus-visible {
    outline: 2px solid var(--bs-focus-ring-color, currentColor);
    outline-offset: 2px;
}
/* More room under the installer's steps, so they don't crowd the page title below them */
.domainmod-install-column .domainmod-steps {
    margin-bottom: 1.75rem;
}
/* In the installer's column the steps span its full width, the joining lines sharing the room left over, so the row
   lines up with the text under it on both sides instead of stopping short under the centred logo */
.domainmod-install-column .domainmod-step + .domainmod-step,
.domainmod-install-column .domainmod-step + .domainmod-step::before {
    flex-grow: 1;
}
/* Any narrow container (a phone, or the installer's column), where every step's name wouldn't fit */
@container (max-width: 40rem) {
    /* One row: a long current step name wraps onto a second line beside its circle rather than pushing circles down */
    .domainmod-steps ol {
        --domainmod-step-size: 1.625rem;
        flex-wrap: nowrap;
        gap: .25rem;
    }
    .domainmod-step {
        flex-shrink: 0;
        gap: .25rem;
    }
    .domainmod-step.is-current {
        flex-shrink: 1;
        min-width: 0;
        line-height: 1.15;
    }
    /* A long word in the name breaks, as a last resort, instead of overlapping the next circles ("anywhere" rather than
       "break-word", since only "anywhere" lets the installer's name, a flex box, shrink below its longest word). A
       wrapped name keeps the width it was given, so its lines are centred in it, the spare room split evenly on each
       side rather than left as a gap before the next circle. */
    .domainmod-step.is-current .domainmod-step-name {
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: center;
    }
    .domainmod-step + .domainmod-step::before {
        width: .625rem;
    }
    /* Hidden from view only, so screen readers still hear every step's name (as Bootstrap's .visually-hidden) */
    .domainmod-step:not(.is-current) .domainmod-step-name {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
}
/* In the installer the current step's name sits halfway between its circle and the next, with a shorter line on each
   side of it, in place of the one line that would run from the name to the next circle */
.domainmod-install-column .domainmod-step.is-current {
    /* A double share of the spare room, split between its three lines, so each is a little shorter than the rest */
    flex-grow: 2;
}
.domainmod-install-column .domainmod-step.is-current .domainmod-step-name {
    display: flex;
    flex-grow: 1;
    align-items: center;
    gap: .5rem;
}
.domainmod-install-column .domainmod-step.is-current:not(:last-child) .domainmod-step-name::before,
.domainmod-install-column .domainmod-step.is-current:not(:last-child) .domainmod-step-name::after {
    content: "";
    /* The lines don't shrink, so a long name wraps rather than overlapping the next circles */
    flex: 1 0 .625rem;
    height: 2px;
    background-color: var(--bs-secondary-color);
}
.domainmod-install-column .domainmod-step.is-current + .domainmod-step {
    flex-grow: 0;
}
/* On the last step there's no line after the name, so the step takes an ordinary share of the spare room, all of it
   going to the line before its circle, and the name ends at the column's edge */
.domainmod-install-column .domainmod-step.is-current:last-child {
    flex-grow: 1;
}
.domainmod-install-column .domainmod-step.is-current:last-child .domainmod-step-name {
    flex-grow: 0;
}
.domainmod-install-column .domainmod-step.is-current + .domainmod-step::before {
    display: none;
}
/* The narrowest spaces (a small phone): the joining lines go, so the current step's name has room */
@container (max-width: 22rem) {
    .domainmod-step + .domainmod-step::before {
        display: none;
    }
}
/* The installer's seven steps need more room for their lines, so on any phone they go there too, and the circles spread
   evenly across the column, a long name wrapping between them */
@container (max-width: 26rem) {
    .domainmod-install-column .domainmod-step + .domainmod-step::before,
    .domainmod-install-column .domainmod-step.is-current .domainmod-step-name::before,
    .domainmod-install-column .domainmod-step.is-current .domainmod-step-name::after {
        display: none;
    }
    .domainmod-install-column .domainmod-steps ol {
        justify-content: space-between;
    }
    .domainmod-install-column .domainmod-step.is-current,
    .domainmod-install-column .domainmod-step.is-current:last-child,
    .domainmod-install-column .domainmod-step + .domainmod-step {
        flex-grow: 0;
    }
}

/* The Renewal Calendar (reporting/renewal-calendar.php): a month as a table of seven equal columns, each day's number
   at the top left of its cell, today outlined in the emphasis colour (well over 3:1 against the cell in both colour
   modes, where the brand red isn't in the Nord dark mode), and the days outside the month on the tertiary background
   so they recede. Bootstrap's own colour variables carry it into the Nord dark mode. */
.domainmod-calendar {
    table-layout: fixed;
}
.domainmod-calendar th {
    text-align: center;
}
.domainmod-calendar th abbr {
    text-decoration: none;
    cursor: default;
}
.domainmod-calendar td {
    vertical-align: top;
    padding: .375rem .5rem;
}
.domainmod-calendar-cell {
    min-height: 6.5rem;
}
.domainmod-calendar-day {
    display: inline-block;
    margin-inline-end: .25rem;
    font-weight: 600;
}
/* Bootstrap's table cells set their own background and inset shadow, so these name the cell to win over them */
.domainmod-calendar td.domainmod-calendar-today {
    box-shadow: inset 0 0 0 2px var(--bs-emphasis-color);
}
.domainmod-calendar td.domainmod-calendar-outside {
    --bs-table-bg: var(--bs-tertiary-bg);
}
/* Long names are cut short with an ellipsis (the full name is in the link's title), since the columns are narrow */
.domainmod-calendar li.text-truncate {
    max-width: 100%;
}
/* In a right-to-left language, the name (isolated in a <bdi>, so it takes its own text's direction) is cut short on
   its own instead, so a left-to-right name keeps its start and loses its end ("averyverylongname…", not
   "…bblecanopy.com"), with the icon still at the start of the line. The <bdi> is what's cut, rather than the link,
   since Firefox puts the ellipsis by the direction of the box that's cut, and the <bdi>'s is the name's own. */
[dir="rtl"] .domainmod-calendar li.text-truncate {
    display: flex;
    gap: .25rem;
    align-items: baseline;
}
[dir="rtl"] .domainmod-calendar li.text-truncate > a {
    display: flex;
    min-width: 0;
}
[dir="rtl"] .domainmod-calendar li.text-truncate > a > bdi {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* The list under the calendar: one table per day, with the same column widths in each, so the days line up. From
   576px up each table is at least 40rem wide (its box scrolls sideways if it must), and on phones it stacks
   (.domainmod-stack-table, below). */
.domainmod-calendar-list {
    table-layout: fixed;
}
@media (min-width: 576px) {
    .domainmod-calendar-list {
        min-width: 40rem;
    }
}
/* A long name breaks onto the next line rather than running into the next column */
.domainmod-calendar-list th,
.domainmod-calendar-list td {
    overflow-wrap: anywhere;
}

/* A table that stacks on phones (below 576px), so it never scrolls sideways: each row becomes a bordered block, and
   each cell shows its column's name (its data-label attribute) before its value, side by side, in the page's
   direction. A row header with a data-label (such as the Task Scheduler's task names) stacks the same way. The header
   row is hidden from view only, so screen readers still have it, and the markup gives the table its roles, since some
   browsers drop a table's meaning once it no longer displays as one. */
@media (max-width: 575.98px) {
    .domainmod-stack-table,
    .domainmod-stack-table > tbody,
    .domainmod-stack-table > tbody > tr,
    .domainmod-stack-table > tbody > tr > td,
    .domainmod-stack-table > tbody > tr > th[data-label] {
        display: block;
        width: 100%;
    }
    .domainmod-stack-table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .domainmod-stack-table > tbody > tr {
        margin-bottom: .5rem;
        border: var(--bs-border-width) solid var(--bs-border-color);
        border-radius: var(--bs-border-radius);
        overflow: hidden;
    }
    .domainmod-stack-table > tbody > tr > td,
    .domainmod-stack-table > tbody > tr > th[data-label] {
        display: grid;
        grid-template-columns: minmax(5.5rem, 35%) minmax(0, 1fr);
        gap: .75rem;
        padding: .25rem .5rem;
        border-bottom-width: 0;
    }
    .domainmod-stack-table > tbody > tr > td::before,
    .domainmod-stack-table > tbody > tr > th[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
    }
}

/* The Task Scheduler's table (admin/scheduler/index.php), from 576px up: the task names and their descriptions take
   the room that's left, and the other columns stay on one line, the run time menu included, after "Daily at"
   (Bootstrap's flex-wrap is !important, so this is too). The cells have more room than table-sm gives, with the
   headings spaced the same, and every cell starts at the top, so the switch, the menu, and Run Now line up with the
   task's name. */
@media (min-width: 576px) {
    .domainmod-scheduler-table > :is(thead, tbody) > tr > :is(th, td):not(:first-child) {
        width: 1%;
        white-space: nowrap;
    }
    .domainmod-scheduler-table > :is(thead, tbody) > tr > :is(th, td) {
        padding-inline: .75rem;
    }
    .domainmod-scheduler-table > tbody > tr > :is(th, td) {
        padding-block: .5rem;
        vertical-align: top;
    }
    .domainmod-scheduler-table .domainmod-task-time > .flex-wrap {
        flex-wrap: nowrap !important;
    }
}
/* Each task's switch (Scheduler::taskSwitch()) is no taller than the line of text beside it */
.domainmod-scheduler-table .form-switch {
    min-height: 0;
}
/* On phones, a task's name starts at the start edge like the other values (a row header is centred by default) */
@media (max-width: 575.98px) {
    .domainmod-scheduler-table > tbody > tr > th {
        text-align: start;
    }
}

/* The Domains and SSL Certificates lists' scroll box, from DataTables (or the page, when JavaScript is off, see
   js/server-list.js), also used by the tables with the dense list style (below). It has no width of its own but at
   least its container's, so the wide table never widens the page around it, and it's positioned, so the cells'
   visually hidden text (absolutely positioned) is clipped by it too. It can take keyboard focus, to scroll with the
   arrow keys. Its scroll padding at the start keeps a link tabbed to out from under the pinned first column: the
   column's widest (see css/datatables/domains-main.css), which the script narrows to the column's actual width. */
.domainmod-list-scroll {
    position: relative;
    inline-size: 0;
    min-inline-size: 100%;
    overflow-x: auto;
    scroll-padding-inline-start: min(18rem, 45vw);
    border-radius: var(--bs-border-radius);
}
.domainmod-list-scroll:focus-visible {
    outline: 2px solid var(--bs-focus-ring-color, var(--bs-primary));
    outline-offset: 2px;
}

/*
 * The dense list style, the Domains list's look (see css/datatables/domains-main.css) for any table that opts in: dense
 * rows, small headings, a divider between columns, hairlines between the rows with a light stripe, a row that lights up
 * under the pointer, and a box around it all that scrolls sideways, with the first column kept in view at the start and
 * its values in bold. The colours come from the theme's variables, so they follow light and dark mode, and the sides
 * are logical, so they mirror in right-to-left languages. By default, values stay on one line, apart from the first
 * column's, which wrap to fit, and nothing is cut short, since these tables have no tooltip for a cut-short value. As
 * in the Domains list, the first column is best kept for each row's name. A page's own stylesheet can let another long
 * column wrap, as the Import Queue does for its statuses. The Import Queue's tables use it.
 *
 * To opt in, a table needs:
 * - the class domainmod-dense-table, in place of Bootstrap's table-striped and DataTables' cell-border, compact, and
 *   dt-responsive (the stripes, lines, and padding are all here),
 * - to sit straight inside <div class="domainmod-list-scroll" tabindex="0" role="region" aria-label="...">, named
 *   after the table, which boxes it in when JavaScript is off,
 * - as a DataTable, to be started with domainmodTable(), with no Responsive and a dom option with the box around the
 *   table alone, such as '<"top"lif>r<"domainmod-list-scroll"t><"bottom"ip><"clear">', so the search and paging
 *   stay outside it. domainmodTable() (js/datatables.js) then takes the page's box off and gives its focus, role,
 *   and name to the new one.
 */
.domainmod-dense-table {
    inline-size: max-content;
    min-inline-size: 100%;
    margin: 0;
    font-size: .8125rem;
}
/* The headings are 12px (.75rem), large enough that a browser's usual minimum font size doesn't enlarge them, and
   stay on one line. */
.domainmod-dense-table > thead > tr > th {
    padding: .5rem;
    border: 0;
    border-block-end: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    box-shadow: none;
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
/* Bootstrap's stripe is drawn as a shadow inside each cell, so it's turned off, and each cell has its own background
   instead, which the pinned first column needs, so the rows don't show through it as they scroll under it. A row's
   heading cell (such as the Dashboard's renewal figures' month) is styled like the others. */
.domainmod-dense-table > tbody > tr > :is(td, th) {
    padding: .3125rem .5rem;
    border: 0;
    border-block-end: 1px solid var(--bs-border-color-translucent);
    background: var(--bs-body-bg);
    box-shadow: none;
    vertical-align: middle;
    white-space: nowrap;
}
.domainmod-dense-table > tbody > tr:nth-of-type(even) > :is(td, th) {
    background: color-mix(in srgb, var(--bs-tertiary-bg) 60%, var(--bs-body-bg));
}
.domainmod-dense-table > tbody > tr:hover > :is(td, th) {
    background: var(--bs-secondary-bg);
}
/* In a right-to-left language, each list cell takes its direction from its own text (Unicode's first strong
   character), so a left-to-right name keeps its punctuation in place ("Quillfern Media Inc.", not ".Quillfern Media
   Inc"), and when it's cut short, it loses its end rather than its start. The cells stay right-aligned, at the start
   edge, as the rest of the page is. */
[dir="rtl"] :is(#domains-main, #ssl-main, #hosting-main, #watch-main, #history-main, .domainmod-dense-table) > tbody > tr > td {
    unicode-bidi: plaintext;
    text-align: right;
}
/* A cell that starts with a name isolated in a <bdi> (the asset lists' names) keeps the page's direction instead, since
   the name already keeps its own punctuation in place, so a marker after it, such as the default badge, sits after it
   in right-to-left order, with its gap on the right side. It names the same tables as the rule above, so it's at least
   as specific. */
[dir="rtl"] :is(#domains-main, #ssl-main, #hosting-main, #watch-main, #history-main, .domainmod-dense-table) > tbody > tr >
    td:has(> a:first-child > bdi:only-child) {
    unicode-bidi: isolate;
}
/* The box has the same border all round as the dividers between columns, so the table is boxed in wherever it's
   scrolled to, with any scrollbar inside the box. The last row's cells lose their bottom border, so the bottom isn't
   drawn twice. Both rules find the box the same way, so a browser without :has() keeps the rows' own lines. */
.domainmod-list-scroll:has(> .domainmod-dense-table) {
    border: 1px solid var(--bs-border-color-translucent);
}
.domainmod-list-scroll:has(> .domainmod-dense-table) > .domainmod-dense-table > tbody > tr:last-child > :is(td, th) {
    border-block-end: 0;
}
/* A totals row (such as All Costs' Total, or the Data Warehouse's All servers) sits in the table's footer, so sorting
   never moves it. It's set off from the rows above by a line and the headings' background, in bold. */
.domainmod-dense-table > tfoot > tr > :is(th, td) {
    padding: .3125rem .5rem;
    border: 0;
    border-block-start: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
    box-shadow: none;
    font-weight: 600;
    text-align: start;
    white-space: nowrap;
}
/* A divider between columns, none after the last */
.domainmod-dense-table > :is(thead, tbody, tfoot) > tr > :not(:last-child) {
    border-inline-end: 1px solid var(--bs-border-color-translucent);
}
/* The first column stays in view at the start as the box scrolls. Like the Domains list's, it's at most 18rem wide,
   and on a phone at most 45vw, so it never covers the columns scrolling under it. Its values wrap to fit, and like the
   Domains list's domains, they're in bold (a link in the cell too), while its heading stays like the others. */
.domainmod-dense-table > :is(thead, tbody, tfoot) > tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    max-inline-size: min(18rem, 45vw);
}
.domainmod-dense-table > tbody > tr > :is(td, th):first-child {
    overflow-wrap: anywhere;
    white-space: normal;
    font-weight: 600;
}
/* The message for a search with no matches spans the whole table, so it starts at the start edge, where the box
   starts scrolled to, instead of being centred across columns that may be out of view. It isn't a name, so it isn't
   in bold either. */
.domainmod-dense-table > tbody > tr > td.dt-empty {
    position: static;
    text-align: start;
    font-weight: inherit;
}

/* On paper (printing, or saving as a PDF) nothing scrolls, so the box lets the table fit the page instead: every value
   may wrap, and the first column is no longer pinned */
@media print {
    .domainmod-list-scroll:has(> .domainmod-dense-table) {
        inline-size: auto;
        overflow: visible;
    }
    .domainmod-dense-table {
        inline-size: 100%;
    }
    /* :nth-child(n) matches every cell, and makes this rule win over the screen rules above (the pinned first column's
       included) */
    .domainmod-dense-table > :is(thead, tbody, tfoot) > tr > :is(td, th):nth-child(n) {
        position: static;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* A real grid that's too wide for a phone (the TLD Price Comparison and SSL Price Comparison tables): its box scrolls
   sideways while the first column (the registrar or provider) stays in view, at the start in either direction.
   Bootstrap gives table cells their own background, so the rows don't show through the column as they scroll under it.
   The box can take keyboard focus (to scroll with the arrow keys), so it shows a focus ring. It never scrolls up and
   down, which the table's hidden caption (Bootstrap keeps a caption 1px tall in the flow) would otherwise give it room
   to. */
.domainmod-scroll-table {
    overflow-y: hidden;
}
.domainmod-scroll-table > table > :is(thead, tbody) > tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    /* A long name wraps, even mid-word, so the column never covers the columns scrolling under it on a narrow phone */
    max-width: 45vw;
    overflow-wrap: anywhere;
}
.domainmod-scroll-table:focus-visible {
    outline: 2px solid var(--bs-focus-ring-color, var(--bs-primary));
    outline-offset: 2px;
}

/* The Bulk Updater's list of domains about to be deleted: a long list scrolls in its own box, so the buttons under it
   stay close. The box can take keyboard focus (to scroll with the arrow keys), so it shows a focus ring, and long names
   wrap. */
.domainmod-confirm-list {
    max-height: min(20rem, 50vh);
    overflow-y: auto;
    overflow-wrap: anywhere;
    padding: .5rem .75rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}
.domainmod-confirm-list:focus-visible {
    outline: 2px solid var(--bs-focus-ring-color, var(--bs-primary));
    outline-offset: 2px;
}

/* A list's empty state (Layout::emptyState()): a panel at the same width as the forms, left-aligned like the rest of
   the page, with the icon, title, text, and actions starting at its left edge */
.domainmod-empty-state {
    max-width: 48rem;
    margin-block: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}
.domainmod-empty-state-text {
    max-width: 36rem;
}

/* Read-only facts (Layout::factList()): each label above its value on phones, and beside it from the sm breakpoint
   (in a column as wide as the longest label), unless the list is stacked for a narrow place such as a table cell.
   The grid follows the page's direction, so the labels sit on the right in right-to-left languages. */
.domainmod-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1rem;
}
.domainmod-facts > dt {
    font-weight: 600;
}
.domainmod-facts > dd {
    margin-bottom: .5rem;
    min-width: 0;
    overflow-wrap: anywhere;
}
/* A short note placed straight after a fact list (Layout::factList()), such as the Watch List's confirmation note,
   sits as close as the list's own rows instead of after the list's bottom margin */
.domainmod-facts-note {
    margin-top: -1rem;
}
@media (min-width: 576px) {
    .domainmod-facts:not(.domainmod-facts-stacked) {
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 1.5rem;
    }
}

/* The Data Warehouse's DNS records (DwDisplay::recordList()), one record per line: long names and values (such as TXT
   records) wrap anywhere rather than widening the table, each name is bold so it stands apart from its value, and the
   SOA record's timers sit in a compact stacked list under it, indented on the start side (the right in right-to-left
   languages) */
.domainmod-dw-records > li {
    overflow-wrap: anywhere;
}
.domainmod-dw-record-name {
    font-weight: 600;
}
.domainmod-dw-records > li + li {
    margin-top: .25rem;
}
.domainmod-dw-records .domainmod-facts {
    margin-block: .25rem;
    padding-inline-start: 1rem;
}
.domainmod-dw-records .domainmod-facts > dd {
    margin-bottom: .25rem;
}

/* A page's introduction (the sentences that open a list or tool page, and Layout::calloutTop()'s callouts): kept to the
   same width as the forms and empty states, so long lines stay readable on wide screens and line up with what follows */
.domainmod-intro {
    max-width: 48rem;
}

/* The installed app's offline page (offline.php): its few lines kept to a readable width in the middle of the screen */
.domainmod-offline {
    max-width: 28rem;
}

/* The Dashboard's Getting Started checklist (Dashboard::gettingStarted()), on a new install: a card at the forms' width,
   a native progress bar (Bootstrap's needs an inline style, which the CSP blocks), and an ordered list of steps with
   the step indicator's circles: done steps ticked in the success colour with the title struck through, the next one's
   circle in the emphasis colour, and the rest as outlines. Logical properties, so right-to-left languages mirror. */
.domainmod-getting-started {
    --domainmod-step-size: 2rem;
    --domainmod-step-done-color: #fff;
    max-width: 48rem;
}
[data-bs-theme="dark"] .domainmod-getting-started {
    /* Nord's green is light, so the tick on it is dark */
    --domainmod-step-done-color: #2e3440;
}
.domainmod-getting-started-progress {
    display: block;
    width: 100%;
    height: 6px;
    appearance: none;
    border: 0;
    border-radius: 3px;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-success);
    overflow: hidden;
}
.domainmod-getting-started-progress::-webkit-progress-bar {
    background-color: var(--bs-secondary-bg);
    border-radius: 3px;
}
.domainmod-getting-started-progress::-webkit-progress-value {
    background-color: var(--bs-success);
    border-radius: 3px;
}
.domainmod-getting-started-progress::-moz-progress-bar {
    background-color: var(--bs-success);
    border-radius: 3px;
}
.domainmod-getting-started-steps {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}
.domainmod-getting-started-step {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .5rem .75rem;
    padding-block: .625rem;
    border-top: 1px solid var(--bs-border-color);
}
.domainmod-getting-started-step:first-child {
    border-top: 0;
}
.domainmod-getting-started-step .domainmod-step-number {
    color: var(--bs-secondary-color);
}
.domainmod-getting-started-step.is-done .domainmod-step-number {
    color: var(--domainmod-step-done-color);
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}
.domainmod-getting-started-step.is-next .domainmod-step-number {
    color: var(--bs-emphasis-color);
    border-color: var(--bs-emphasis-color);
}
.domainmod-getting-started-text {
    flex: 1 1 14rem;
    min-width: 0;
    padding-block-start: .25rem;
}
.domainmod-getting-started-title {
    display: block;
    font-weight: 600;
    color: var(--bs-emphasis-color);
}
.domainmod-getting-started-step.is-done .domainmod-getting-started-title {
    font-weight: 400;
    color: var(--bs-secondary-color);
    text-decoration: line-through;
}
.domainmod-getting-started-explanation {
    display: block;
    font-size: .875em;
    color: var(--bs-secondary-color);
}
.domainmod-getting-started-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    margin-block-start: .25rem;
    font-size: .875em;
}
.domainmod-getting-started-button {
    align-self: center;
    white-space: nowrap;
}
/* The "Hide this checklist" button looks like the links above it: the same small text, lined up with them (no border) */
.domainmod-getting-started-hide {
    --bs-btn-font-size: .875em;
    --bs-btn-border-width: 0;
    text-align: start;
}

/* Backup & Restore's "Before You Back Up" checklist (BackupChecklist::html()), in the Getting Started card and circles.
   A done item keeps its title and text (nothing is struck through, since it's something to keep doing), a warning has
   the warning colour's circle, and notes and checks that failed keep the outlined circle. */
.domainmod-backup-checklist {
    --domainmod-step-warning-color: #000;
}
[data-bs-theme="dark"] .domainmod-backup-checklist {
    --domainmod-step-warning-color: #2e3440;
}
.domainmod-backup-checklist .domainmod-getting-started-step.is-done .domainmod-getting-started-title {
    font-weight: 600;
    color: var(--bs-emphasis-color);
    text-decoration: none;
}
.domainmod-backup-checklist .domainmod-getting-started-step.is-warning .domainmod-step-number {
    color: var(--domainmod-step-warning-color);
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
}

/* The edit domain and SSL certificate pages' titled cards (Layout::formSection()): each card at the forms' width, its
   fields in two columns from tablet width up and one on phones, the notes and other text areas across both columns.
   Grid placement follows the page's direction, so the columns swap by themselves in right-to-left languages. */
.domainmod-form-section {
    margin-block-end: 1rem;
}
/* WebKit on phones widened the page by a few dozen pixels from inside the card (a menu's width settling after load), so
   on phones the card clips sideways only. Phones use the native date field, and on wider screens the date picker,
   which opens inside the card, isn't clipped. */
@media (max-width: 767.98px) {
    .domainmod-form-section {
        overflow-x: clip;
    }
}
.domainmod-form-section-grid {
    display: grid;
    grid-template-columns: 100%;
    column-gap: 1.5rem;
    /* Every field keeps its own bottom margin, so the card body drops its bottom padding instead, and a last row of two
       fields ends the same distance from the card's edge as a last row of one */
    padding-block-end: 0;
}
@media (min-width: 768px) {
    .domainmod-form-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.domainmod-span-all {
    grid-column: 1 / -1;
}
/* A grid item can shrink below its content's width, so a menu with a long option (a long domain name) stays inside its
   column instead of pushing the card wider */
.domainmod-form-section-grid > * {
    min-width: 0;
}

/* The gap after each button from Layout::showButton(), which used to be a trailing non-breaking space (a link wrapped
   around the button underlined it on hover). A logical margin, so it's on the correct side in right-to-left languages. */
.domainmod-css-button {
    /* About the width of the old space, so the gaps between buttons stay the same */
    margin-inline-end: .2em;
}

/* The requirements checklist (System::requirementsChecklist()), on the installer, the System Information page, and the
   upgrade notice: a summary line, then the full list, shown by default (the upgrade notice puts it in a box that opens
   on request). Each row has a tick or a cross (with the status in words for screen readers), a note, and when it isn't
   met, how to fix it. */
.domainmod-requirements {
    max-width: 48rem;
    margin-bottom: 1rem;
}
.domainmod-requirements-summary {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .625rem .875rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
    border-radius: var(--bs-border-radius);
}
.domainmod-requirements-summary > .bi {
    font-size: 1.25rem;
    line-height: 1.2;
}
.domainmod-requirements-summary.is-met {
    color: var(--bs-success-text-emphasis);
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}
.domainmod-requirements-summary.is-not-met {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}
.domainmod-requirements-list {
    overflow: hidden;
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}
.domainmod-requirements-group {
    padding: .25rem .875rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    /* The body colour, since the secondary text colour is too faint on this background in the Nord dark mode */
    color: var(--bs-body-color);
    background-color: var(--bs-secondary-bg);
}
.domainmod-requirements-group + .domainmod-requirements-rows,
.domainmod-requirements-rows + .domainmod-requirements-group {
    border-top: 1px solid var(--bs-border-color);
}
.domainmod-requirements-group.is-attention {
    color: var(--bs-danger-text-emphasis);
}
.domainmod-requirements-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}
.domainmod-requirements-rows > li {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .3125rem .875rem;
}
.domainmod-requirements-rows > li + li {
    border-top: 1px solid var(--bs-border-color);
}
.domainmod-requirements-rows > li > .bi {
    line-height: 1.5;
}
.domainmod-requirements-rows > li.is-met > .bi {
    color: var(--bs-success-text-emphasis);
}
.domainmod-requirements-rows > li.is-not-met > .bi {
    color: var(--bs-danger-text-emphasis);
}
.domainmod-requirements-note,
.domainmod-requirements-fix {
    font-size: .875em;
}
/* The note sits on the same line as the name, at the far end of the row, so each check takes one line (it wraps under
   the name when there isn't room). A fix for a failed check stays on its own line. */
.domainmod-requirements-rows > li > div {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
    min-width: 0;
}
.domainmod-requirements-note {
    margin-inline-start: auto;
    color: var(--bs-secondary-color);
    text-align: end;
}
.domainmod-requirements-fix {
    flex-basis: 100%;
}
.domainmod-requirements-name {
    font-weight: 600;
}

/* The System Information page's details (admin/info), in the requirements checklist's grouped list: a name, and its
   value at the far end of the row, which wraps anywhere, since some values (the server's OS) are one long string */
.domainmod-system-info-value {
    margin-inline-start: auto;
    min-width: 0;
    text-align: end;
    overflow-wrap: anywhere;
}
.domainmod-system-info .domainmod-requirements-fix {
    font-style: italic;
}
/* The MFA Key page (admin/mfa-key), kept to the same readable width as the System Information page's details */
.domainmod-mfa-key-page {
    max-width: 48rem;
}
/* The MFA key's advice (the MFA Key page and the installer's last step, see DomainMOD\SecretKey): paragraphs, a form,
   and copyable blocks, with the paragraphs spaced like the page's text */
.domainmod-mfa-key p {
    margin-bottom: .5rem;
}
.domainmod-mfa-key p:last-child {
    margin-bottom: 0;
}
/* A key or command wraps rather than scrolling, so all of it shows on a narrow page */
.domainmod-mfa-key pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* The CSV Importer (domains/csv-importer/): two numbered cards, side by side on wider screens and stacked on phones,
   with the page's text kept to a readable width */
.domainmod-csv-importer {
    max-width: 60rem;
}
.domainmod-csv-importer-step {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .75rem;
}
.domainmod-csv-importer-number {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--bs-primary);
}
.domainmod-csv-importer ul {
    padding-inline-start: 1.25rem;
}

/* The installer's Back and Next buttons (_includes/layout/install-buttons.inc.php), and the same row on the app's other
   multi-step pages (Go Back and the step's main button, such as the Bulk Updater's): Back on the start side and Next on
   the end side, with the same space above them on every step. On the Ready to Install step's summary, each row ends with
   a small Change link after its value. */
.domainmod-install-buttons,
.domainmod-back-next {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
}
/* The row's gap spaces its buttons, so they drop the gap after each button, and Next lines up with the form's edge */
.domainmod-back-next .domainmod-css-button {
    margin-inline-end: 0;
}
.domainmod-install-summary-change {
    font-size: .875em;
}

/* Accessibility fixes (design item 5). Links inside running text are underlined, since their colour alone doesn't stand
   out enough from the text around them (WCAG 1.4.1). Links that are already set apart are left alone: anything with a
   class (buttons, nav links, tiles, DataTables controls), and links in tables, navigation, breadcrumbs, card footers,
   menus, and the landing pages' link lists. */
.app-content a:not([class]):not(:is(table, nav, .breadcrumb, .card-footer, .dropdown-menu, .list-inline, .dt-container) a) {
    text-decoration: underline;
}
/* The same for links in alerts, toasts, and card text outside .app-content: the page messages in the page header, the
   toasts in the corner, and the bare pages (the upgrade notice, and the debugging mode pages, whose link sits loose
   beside their text). Bootstrap's .alert-link is underlined too, since its bold text in the alert's own colour doesn't
   stand out enough either. */
.alert a:not([class]),
.alert a.alert-link,
.domainmod-toast a:not([class]),
.card-body p a:not([class]),
main > a:not([class]) {
    text-decoration: underline;
}
/* Light mode: inline code, field error messages, and the outline secondary buttons in darker shades, since Bootstrap's
   pink code text, red error text, and grey button text fall just short of 4.5:1 on the light grey page (WCAG 1.4.3).
   The error red is Bootstrap's own next shade down, and the invalid field's border keeps Bootstrap's red. The Nord
   dark mode keeps its own colours. */
[data-bs-theme="light"] {
    --bs-code-color: #a61e5f;
    --bs-form-invalid-color: #b02a37;
}
[data-bs-theme="light"] .btn-outline-secondary {
    --bs-btn-color: #565e64;
    --bs-btn-border-color: #565e64;
    --bs-btn-hover-bg: #565e64;
    --bs-btn-hover-border-color: #565e64;
    --bs-btn-active-bg: #565e64;
    --bs-btn-active-border-color: #565e64;
}

/* The main content area (header.inc.php) can take focus: AdminLTE lets it scroll, so Chromium makes it focusable, and
   it's where the "Skip to main content" link and a click on the page's background land. Once the keyboard had been
   used, the browser drew a focus ring around the whole area (most noticeable in dark mode), so it has none. It isn't a
   control, and the controls inside it keep their own focus rings. */
.app-main:focus {
    outline: none;
}

/* The page header (header.inc.php): the breadcrumb on its own small line just above the title, at the start, and the
   page's actions (Layout::renderPageActions()) on the title's line, at the end, dropping under the title on phones */
.domainmod-page-breadcrumb .breadcrumb {
    font-size: .8125rem;
}
/* AdminLTE gives the breadcrumb a 2.5rem line and the header 1rem above it, which left a tall gap between the top bar
   and the title now that the top bar shares the page's colour. The breadcrumb's selector is stronger than AdminLTE's,
   and the header's matches AdminLTE's in strength and wins because this file loads after it. */
.app-main .app-content-header .domainmod-page-breadcrumb .breadcrumb {
    line-height: 1.5;
}
.app-main .app-content-header {
    padding-top: .5rem;
}
@media (max-width: 575.98px) {
    .domainmod-page-actions {
        width: 100%;
    }
}

/* Page messages (System::slimMessage() and js/messages.js): slim alerts with a leading icon, the text, and a close
   button, and in the main layout a short success as a toast in the corner. The icon sits on the text's first line. */
.domainmod-message-icon {
    flex-shrink: 0;
    line-height: inherit;
}
/* The text stops at about 75 characters a line, which is easier to read than the page's full width, and the close
   button stays at the alert's far end (Greg's choice, 2026-11-27, from the Impeccable trial) */
.domainmod-message-text {
    flex: 1;
    min-width: 0;
    max-width: 75ch;
}
/* A problem to fix (System::showProblem()) spans the page like the Dashboard's cards, with its links in a row and its
   More toggle after them, as the Suggestions card's tips have */
.domainmod-message.domainmod-problem {
    max-width: none;
}
.domainmod-problem-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1.25rem;
    row-gap: .25rem;
    margin-top: .25rem;
}
.domainmod-problem-more summary {
    cursor: pointer;
    width: fit-content;
}
.domainmod-problem-more[open] {
    flex-basis: 100%;
}
.domainmod-problem-more[open] summary {
    margin-bottom: .25rem;
}
.domainmod-message.alert-dismissible {
    padding-inline-end: 1rem;
}
.domainmod-message.alert-dismissible .btn-close {
    position: static;
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: .5rem;
    margin-block: -.25rem;
    margin-inline-end: -.25rem;
}
/* Under the page title, a message gets the same space above it as the header leaves below it, rather than sitting
   tight under the title with its own bottom margin doubling the gap before the page. */
.app-content-header .domainmod-message {
    margin-top: 1rem;
    margin-bottom: 0;
}
.domainmod-message-why summary {
    cursor: pointer;
}
/* A list read down each column, in order: two columns on a phone and three on wider screens (Domain Queue's supported
   registrars). In right-to-left languages the columns run from the right. */
.domainmod-column-list {
    columns: 2;
    column-gap: 1.5rem;
}
@media (min-width: 768px) {
    .domainmod-column-list {
        columns: 3;
    }
}
.domainmod-column-list li {
    break-inside: avoid;
    margin-bottom: .25rem;
}
/* A success that becomes a toast takes no space while the page loads, so nothing jumps. Without JavaScript the media
   query doesn't match and it shows as a slim alert. */
@media (scripting: enabled) {
    .domainmod-toast-source {
        display: none !important;
    }
}
.domainmod-toasts {
    z-index: 1090;
}
.domainmod-toast {
    --bs-toast-bg: var(--bs-body-bg);
    --bs-toast-color: var(--bs-body-color);
    border-inline-start: 4px solid var(--bs-success);
}
.domainmod-toast .domainmod-message-icon {
    color: var(--bs-success);
}
.domainmod-toast .btn-close {
    flex-shrink: 0;
}
/* When neither corner is clear of the focused control, the toast becomes a thin bar across the top of the window, its
   whole message wrapping as needed, and the page leaves room above a newly focused control */
.domainmod-toasts.domainmod-toasts-compact {
    inset-inline: 0;
    width: auto;
    padding: 0 !important;
}
.domainmod-toasts-compact .domainmod-toast {
    width: 100%;
    max-width: none;
    border-radius: 0;
}
.domainmod-toasts-compact .toast-body {
    padding-block: .375rem;
}
html.domainmod-toasts-compact {
    scroll-padding-top: 5.5rem;
}
/* The "Message closed" focus marker shows its words with a visible outline while it has focus. It's taken out of the
   flow and lifted just above where it sits, so showing or hiding it never moves the page (a click on a control below it
   would otherwise land somewhere else). */
.domainmod-focus-marker:focus {
    position: absolute !important;
    z-index: 5;
    transform: translateY(-100%);
    display: inline-block;
    padding: .125rem .375rem;
    background-color: var(--bs-body-bg);
    outline: 2px solid var(--bs-focus-ring-color, var(--bs-primary));
    outline-offset: 2px;
    border-radius: var(--bs-border-radius-sm);
    color: var(--bs-body-color);
}

/* Right-to-left languages (Layout::isRtl(), with AdminLTE's mirrored stylesheets). Icons that point a direction are
   flipped, so "next" still points forward: the View links' arrows, Back and Next, the calendar's and paging's chevrons,
   and Logout. The flip is on the glyph (::before), so a rotation on the icon itself (the sidebar's sub-menu arrows)
   still works. Logos, ticks, the shield, the renew arrows, and other icons that don't mean a direction aren't flipped. */
[dir="rtl"] .bi-arrow-right::before,
[dir="rtl"] .bi-arrow-left::before,
[dir="rtl"] .bi-arrow-right-circle::before,
[dir="rtl"] .bi-arrow-left-circle::before,
[dir="rtl"] .bi-chevron-right::before,
[dir="rtl"] .bi-chevron-left::before,
[dir="rtl"] .bi-box-arrow-right::before {
    display: inline-block;
    transform: scaleX(-1);
}
/* AdminLTE's right-to-left build already turns the sidebar's sub-menu arrows round, so they aren't flipped again */
[dir="rtl"] .nav-arrow::before {
    transform: none;
}
/* DataTables Responsive's row control (the tables that still fold columns away, such as the Data Warehouse lists on a
   domain's edit page) is a triangle drawn with borders, so it's turned round here: a closed row's points left, into
   the row, with its gap on the other side. An open row's points down, as in left-to-right. */
[dir="rtl"] table.dataTable.dtr-inline.collapsed > tbody > tr:not(.dtr-expanded) > :is(td, th).dtr-control::before,
[dir="rtl"] table.dataTable.dtr-column > tbody > tr:not(.dtr-expanded) > :is(td, th):is(.dtr-control, .control)::before {
    border-left: 0 solid transparent;
    border-right: calc(var(--dtr-control-triangle_size) * 2) solid var(--dtr-control-triangle_color);
}
[dir="rtl"] table.dataTable.dtr-inline.collapsed > tbody > tr > :is(td, th).dtr-control::before {
    margin-right: 0;
    margin-left: .5em;
}
[dir="rtl"] table.dataTable.dtr-inline.collapsed.compact > tbody > tr > :is(td, th).dtr-control {
    padding-left: 0;
    padding-right: .333em;
}

/* The filter toolbar (DomainMOD\FilterToolbar, on the Domains and SSL lists): each active filter as a chip that
   removes it, in the theme's secondary background with a border in the secondary text colour (well over 3:1 in both
   colour modes), and the filters in a Bootstrap offcanvas panel, 420px wide and full width on phones. Logical
   properties throughout, so right-to-left languages mirror it, and the panel's padding is trimmed on the smallest
   phones so the date calendar fits. */
.domainmod-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--bs-body-color);
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-secondary-color);
}
.domainmod-filter-chip:hover,
.domainmod-filter-chip:focus-visible {
    color: var(--bs-emphasis-color);
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-emphasis-color);
}
.domainmod-filter-chip .bi {
    font-size: .75em;
}
.domainmod-filter-chip-text {
    overflow-wrap: anywhere;
}
/* A menu beside the Filters button: long lists scroll above its links, and long names wrap */
.domainmod-filter-menu {
    width: max-content;
    max-width: min(24rem, calc(100vw - 2rem));
}
.domainmod-filter-menu-options {
    max-height: min(20rem, 50vh);
    overflow-y: auto;
}
.domainmod-filter-menu .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}
/* A link under a filter in the panel, close to the menu it belongs to */
.domainmod-filter-link {
    margin: -.75rem 0 1rem;
}
.domainmod-filter-panel {
    --bs-offcanvas-width: 420px;
}
.domainmod-filter-panel .domainmod-form,
.domainmod-filter-inline .domainmod-form {
    max-width: none;
}
.domainmod-filter-inline {
    max-width: 48rem;
}
/* The filter panel's Custom Fields section (CustomFieldFilter::panelHtml()): a disclosure in a box, with each field's
   controls grouped under its name. Its summary is a solid bar (charcoal, or the info colour in dark mode), which stays at
   the top of the offcanvas panel while the fields scroll, so it's always there to collapse the section. */
.domainmod-filter-custom-fields {
    --domainmod-custom-fields-bar: var(--bs-gray-800);
    margin-block: 2rem;
    border: var(--bs-border-width) solid var(--domainmod-custom-fields-bar);
    border-radius: var(--bs-border-radius);
}
[data-bs-theme="dark"] .domainmod-filter-custom-fields {
    --domainmod-custom-fields-bar: var(--bs-info-text-emphasis);
}
.domainmod-filter-custom-fields > summary {
    padding: .625rem .75rem;
    font-weight: 600;
    color: var(--bs-body-bg);
    overflow-wrap: anywhere;
    background-color: var(--domainmod-custom-fields-bar);
    border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
}
.domainmod-filter-custom-fields > summary:hover {
    text-decoration: underline;
}
/* Inside the bar, since the panel's edge would cut off a ring around it while it's stuck there */
.domainmod-filter-custom-fields > summary:focus-visible {
    outline: 2px solid var(--bs-body-bg);
    outline-offset: -4px;
}
.domainmod-filter-custom-fields[open] > summary {
    border-end-start-radius: 0;
    border-end-end-radius: 0;
}
.domainmod-filter-panel .domainmod-filter-custom-fields > summary {
    position: sticky;
    top: calc(-1 * var(--bs-offcanvas-padding-y)); /* Over the panel's own padding, where the fields would show above it */
    z-index: 1;
}
/* A field reached with the keyboard isn't left under the bar, even when its text wraps to three lines */
.domainmod-filter-panel .offcanvas-body {
    scroll-padding-top: 8rem;
}
.domainmod-filter-custom-field {
    min-width: 0;
    margin: 0;
    padding: .5rem .75rem 0;
    border: 0;
}
.domainmod-filter-custom-field + .domainmod-filter-custom-field {
    border-top: var(--bs-border-width) solid var(--bs-border-color);
}
.domainmod-filter-custom-field > legend {
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .domainmod-filter-panel {
        --bs-offcanvas-width: 100%;
    }
}
@media (max-width: 359.98px) {
    .domainmod-filter-panel .offcanvas-body {
        padding-inline: .5rem;
    }
    .domainmod-filter-panel .domainmod-filter-custom-field {
        padding-inline: 0;
    }
}
/* The panel opening again after a filter applied from it (js/filter-auto-apply.js) appears at once, with its backdrop,
   rather than sliding in a second time */
.domainmod-filter-reopening .domainmod-filter-panel,
.domainmod-filter-reopening .offcanvas-backdrop {
    transition: none;
}
/* The two-factor setup page's QR code (js/two-factor-qr.js) shrinks to fit a narrow screen, keeping its quiet zone */
.domainmod-two-factor-qr canvas {
    max-width: 100%;
    height: auto;
}

/* The Change History's notes and snapshots (DomainMOD\ChangeHistoryListColumns) keep their line breaks */
.domainmod-history-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* A notes change's preview in a list cell stays short however long its lines are (the whole text is a click away) */
.domainmod-history-preview {
    display: block;
    max-block-size: 20em;
    overflow: hidden;
}
/* The edit pages' Change History table keeps readable columns on a narrow screen and scrolls sideways in its region */
.domainmod-history-section > table {
    min-width: 42rem;
}
/* An opened snapshot or full text scrolls inside its row, so one long item never pushes the rest of the history away */
.domainmod-history-details[open] > :not(summary) {
    max-block-size: 30em;
    overflow: auto;
}
