/* TweakUI. Colours only from WebODM's theme (app/templates/app/theme.css and its theme-* classes, or currentColor),
   never hard-coded; border colours come from theme-border, so the rules here set only widths and styles. */

/* The TweakUI side-menu item: hidden in the place WebODM renders it until main.js has moved it above About. */
html.tweakui #side-menu > li:has(> a[href="/plugins/tweakui/"]):not(.tweakui-menu) { display: none; }

/* The settings page (templates/settings.html): the navigation pane beside the selected category, above it on a phone.
   The selected category is marked in the link colour (currentColor). */
.tweakui-settings .tweakui-layout { display: flex; gap: 24px; align-items: flex-start; }
.tweakui-settings .tweakui-nav { list-style: none; margin: 0; padding: 0; min-width: 180px; border-width: 0 1px 0 0; border-style: solid; }
.tweakui-settings .tweakui-nav a { display: block; padding: 8px 12px; border-right: 3px solid transparent; text-decoration: none; }
.tweakui-settings .tweakui-nav a.active { border-right-color: currentColor; font-weight: bold; }
.tweakui-settings .tweakui-sections { flex: 1; min-width: 0; }
.tweakui-settings .tweakui-sections h4 { margin-top: 0; }
/* The "Saved" banner: over the top of the category (it takes no room), centred, kept in view while the page scrolls
   (WebODM's header scrolls away); clicks go through it. WebODM's success and failed colours, as its task status. */
.tweakui-settings .tweakui-banner { position: sticky; top: 8px; height: 0; z-index: 20; }
.tweakui-settings .tweakui-status { position: absolute; left: 50%; top: 0; transform: translate(-50%, -6px); display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin: 0; padding: 8px 16px; border-width: 1px; border-style: solid; border-radius: 4px; font-weight: bold; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.tweakui-settings .tweakui-status.tweakui-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tweakui-settings .tweakui-status .fa { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .tweakui-settings .tweakui-status { transition: none; } }
.tweakui-settings .tweakui-group { border-width: 1px; border-style: solid; border-radius: 4px; margin-bottom: 16px; }
.tweakui-settings .tweakui-group h5 { margin: 0; padding: 8px 12px; font-weight: bold; }
.tweakui-settings .tweakui-setting { padding: 8px 12px; }
.tweakui-settings .tweakui-setting p { margin: 0 0 0 20px; }
/* Settings that belong to the one above (data-depends), indented; greyed out while it is off */
.tweakui-settings .tweakui-subsettings { margin-left: 20px; }
.tweakui-settings .tweakui-subsettings.tweakui-off { opacity: 0.5; }
.tweakui-settings .tweakui-subsettings.tweakui-off .tweakui-subsettings.tweakui-off { opacity: 1; }
/* A number setting: its label where a checkbox's label is, then the slider, the box and the unit */
.tweakui-settings .tweakui-number-setting > label { margin-left: 20px; }
.tweakui-default { font-weight: normal; }
.tweakui-settings .tweakui-number { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px 20px; max-width: 360px; }
.tweakui-settings .tweakui-number input[type=range] { flex: 1 1 auto; min-width: 0; }
.tweakui-settings .tweakui-number input[type=number] { flex: 0 0 80px; width: 80px; }
/* A setting an admin withholds from the user (access.py): greyed, with the reason at full strength */
.tweakui-settings .tweakui-withheld label, .tweakui-settings .tweakui-withheld p.text-muted { opacity: 0.5; }
.tweakui-settings .tweakui-withheld-reason { font-weight: bold; }
.tweakui-admin .tweakui-admin-intro { padding: 8px 12px 0; margin: 0; }
/* Settings > Themes: a grid of themes, each a radio button, its swatch (the theme's own colours, from the page's
   data) and its name */
.tweakui-settings .tweakui-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
/* A theme: its radio button, swatch and name (the label), then its buttons (Edit and Export on your own, Copy and
   Copy JSON), which go under the name, at the right, when the card is too narrow for both */
.tweakui-settings .tweakui-theme { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; padding: 0 8px 0 0; border-width: 1px; border-style: solid; border-radius: 4px; }
.tweakui-settings .tweakui-theme label, .tweakui-settings .tweakui-theme-label { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 8px 0 8px 12px; font-weight: normal; cursor: pointer; flex: 1 1 200px; }
.tweakui-settings .tweakui-theme-label { cursor: default; }
.tweakui-settings .tweakui-theme input { margin: 0; flex: none; }
.tweakui-settings .tweakui-theme-name { overflow-wrap: anywhere; }
.tweakui-settings .tweakui-theme:has(input:checked) { border-color: currentColor; font-weight: bold; }
.tweakui-settings .tweakui-theme-actions { display: flex; gap: 4px; flex: none; margin-left: auto; padding: 4px 0; }
.tweakui-settings .tweakui-themes-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 8px; }
.tweakui-settings .tweakui-themes-heading h5 { margin: 0; font-weight: bold; white-space: nowrap; }
.tweakui-settings .tweakui-themes-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
/* My Themes: its buttons on the left, above the heading */
.tweakui-settings .tweakui-themes-heading-stacked { flex-direction: column; align-items: flex-start; }
.tweakui-settings .tweakui-themes-heading-stacked .tweakui-themes-buttons { justify-content: flex-start; }
.tweakui-settings .tweakui-import-text { font-family: monospace; font-size: 12px; resize: vertical; }
.tweakui-settings .tweakui-import-report p, .tweakui-settings .tweakui-import-report ul { margin: 0 0 6px; }
.tweakui-settings .tweakui-import code { white-space: normal; }
.tweakui-settings .tweakui-themes-empty { margin: 0; }
/* Administration > TweakUI > Published Themes (admin.html): inside its group, padded like the settings */
.tweakui-admin .tweakui-published { padding: 8px 12px 12px; }
.tweakui-published .tweakui-themes-heading { margin-top: 0; }
.tweakui-published .tweakui-published-status { margin: 12px 0 0; }
.tweakui-published .tweakui-published-status:empty { display: none; }
.tweakui-published .tweakui-group { margin-top: 16px; }
.tweakui-published .tweakui-publish p { margin: 0 0 8px; }
.tweakui-published .tweakui-publish-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tweakui-published .tweakui-publish-row select { width: auto; max-width: 100%; flex: 0 1 320px; }
/* Bootstrap's .btn display wins over the hidden attribute: hidden stays hidden on the settings page */
.tweakui-settings [hidden] { display: none !important; }
/* The theme editor: the colours in a grid of pickers, each with its name, hex value and WebODM's description */
.tweakui-settings .tweakui-theme-groups + .tweakui-editor { margin-top: 16px; }
.tweakui-settings .tweakui-editor-form { padding: 12px; }
.tweakui-settings .tweakui-editor-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 24px; }
.tweakui-settings .tweakui-editor-color { display: flex; align-items: flex-start; gap: 10px; }
.tweakui-settings .tweakui-editor-color input[type=color] { flex: none; width: 44px; height: 44px; padding: 2px; border: 1px solid; border-radius: 4px; background: transparent; cursor: pointer; }
.tweakui-settings .tweakui-editor-color label { display: block; margin-bottom: 2px; }
.tweakui-settings .tweakui-editor-hex { width: 7em; font-family: monospace; }
.tweakui-settings .tweakui-editor-color p { margin: 2px 0 0; font-size: 12px; }
.tweakui-settings .tweakui-editor-status:empty { display: none; }
.tweakui-settings .tweakui-editor-status { margin: 12px 0 0; }
.tweakui-settings .tweakui-editor-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tweakui-settings .tweakui-editor-buttons [data-editor=delete] { margin-left: auto; }
.tweakui-swatch { display: inline-flex; border-width: 1px; border-style: solid; border-radius: 3px; overflow: hidden; flex: none; }
.tweakui-swatch i { display: block; width: 14px; height: 22px; }
/* A setting's preview (settings_page.js): a thumbnail right of its name and description, a Preview link under them on
   a phone; a click shows it full size in an overlay, over Bootstrap's modal backdrop */
/* Settings > Themes > Sample: WebODM's own controls in the current theme, in two columns (one on a phone) */
.tweakui-settings .tweakui-theme-groups ~ .tweakui-group { margin-top: 16px; }
.tweakui-settings .tweakui-sample-group { border-width: 2px; }
.tweakui-settings .tweakui-sample { padding: 12px; }
.tweakui-settings .tweakui-sample-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; }
.tweakui-settings .tweakui-sample h4 { margin-top: 0; }
.tweakui-settings .tweakui-sample .progress { margin-bottom: 12px; }
.tweakui-settings .tweakui-sample-status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tweakui-settings .tweakui-sample-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tweakui-settings .tweakui-sample .pagination { margin: 12px 0 0; }
.tweakui-settings .tweakui-has-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
.tweakui-settings .tweakui-has-preview > :not(.tweakui-preview) { grid-column: 1; }
.tweakui-settings .tweakui-intro { margin-bottom: 12px; }
.tweakui-settings .tweakui-intro p { margin: 0; }
.tweakui-settings .tweakui-preview { grid-column: 2; grid-row: 1 / span 3; padding: 2px; border-width: 1px; border-style: solid; border-radius: 4px; background: transparent; cursor: zoom-in; line-height: 0; display: inline-block; }
.tweakui-settings .tweakui-preview img { display: block; width: 160px; height: 90px; object-fit: cover; object-position: top left; border-radius: 2px; }
.tweakui-settings .tweakui-preview:hover, .tweakui-settings .tweakui-preview:focus { border-color: currentColor; }
.tweakui-settings .tweakui-preview-text { display: none; }
/* A setting's More button: a link at the end of its summary; the rest of its description under it */
.tweakui-settings .tweakui-more-toggle { white-space: nowrap; }
.tweakui-settings .tweakui-setting p.tweakui-more { margin-top: 4px; }
/* 2D Map > Speed: the memory estimates under its sliders */
.tweakui-settings .tweakui-setting p.tweakui-estimate { margin-top: 4px; }
.tweakui-preview-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.tweakui-preview-overlay .modal-backdrop { position: absolute; z-index: 0; }
.tweakui-preview-overlay figure { position: relative; z-index: 1; margin: 0; max-width: 100%; max-height: 100%; padding: 8px; border-width: 1px; border-style: solid; border-radius: 4px; display: flex; flex-direction: column; }
.tweakui-preview-overlay img { display: block; max-width: 100%; max-height: calc(100vh - 130px); min-height: 0; object-fit: contain; }
.tweakui-preview-overlay figcaption { padding: 6px 28px 0 0; font-weight: bold; }
.tweakui-preview-overlay .close { position: absolute; right: 10px; bottom: 4px; font-size: 26px; color: inherit; opacity: 0.6; }
.tweakui-preview-overlay .close:hover, .tweakui-preview-overlay .close:focus { color: inherit; opacity: 1; }
@media (max-width: 767px) {
    .tweakui-preview-overlay { padding: 12px; }
    .tweakui-settings .tweakui-layout { flex-direction: column; gap: 12px; }
    .tweakui-settings .tweakui-nav { border-width: 0 0 1px 0; width: 100%; display: flex; flex-wrap: wrap; }
    .tweakui-settings .tweakui-nav a { border-right: 0; border-bottom: 3px solid transparent; }
    .tweakui-settings .tweakui-nav a.active { border-bottom-color: currentColor; }
    .tweakui-settings .tweakui-has-preview { grid-template-columns: minmax(0, 1fr); }
    .tweakui-settings .tweakui-preview { grid-column: 1; grid-row: auto; justify-self: start; margin: 4px 0 0 20px; padding: 0; border: 0; line-height: inherit; cursor: pointer; }
    .tweakui-settings .tweakui-intro .tweakui-preview { margin-left: 0; }
    .tweakui-settings .tweakui-preview img { display: none; }
    .tweakui-settings .tweakui-preview-text { display: inline; }
}

/* The header's theme menu (theme_menu.js): beside the user icon, a list of swatches and names, the current one
   checked; scrolls on a short screen */
.navbar-top-links .tweakui-theme-list { max-height: calc(100vh - 70px); overflow-y: auto; min-width: 220px; }
.navbar-top-links .tweakui-theme-list li a.tweakui-theme-item { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 10px; }
.navbar-top-links .tweakui-theme-list .tweakui-swatch i { width: 10px; height: 16px; }
.navbar-top-links .tweakui-theme-list .tweakui-unchecked { visibility: hidden; }
.navbar-top-links .tweakui-theme-list .tweakui-theme-status { padding: 3px 16px; white-space: normal; }
/* The header's units menu (units_menu.js): the current system's name beside a ruler, the systems checked as in the
   theme menu */
.navbar-top-links .tweakui-units-list .tweakui-unchecked { visibility: hidden; }
/* The same menus in the side menu, where WebODM hides its header (desktop mode): items whose lists open below them;
   the theme list scrolls when long */
#side-menu .tweakui-theme-list { max-height: 50vh; overflow-y: auto; }
#side-menu .tweakui-theme-list li a.tweakui-theme-item { display: flex; align-items: center; gap: 8px; }
#side-menu .tweakui-theme-list .tweakui-swatch i { width: 10px; height: 16px; }
#side-menu .tweakui-side-item .tweakui-unchecked { visibility: hidden; }
#side-menu .tweakui-theme-list .tweakui-theme-status { padding: 3px 16px 3px 37px; white-space: normal; }
#side-menu .tweakui-theme-list li.divider { border-top: 1px solid; margin: 4px 0 4px 37px; opacity: 0.4; }
/* On a phone the paintbrush is not at the header's right edge: the menu lines up with the header's edge instead; the
   units menu shows only its ruler */
@media (max-width: 767px) {
    .navbar-top-links .tweakui-theme-menu, .navbar-top-links .tweakui-units-menu { position: static; }
    .navbar-top-links .tweakui-theme-list, .navbar-top-links .tweakui-units-list { right: 8px; left: auto; }
    .navbar-top-links .tweakui-units-name { display: none; }
}
/* A header with more menus than fit beside WebODM's name (core.js fitHeader): narrower menus, then no name */
html.tweakui-header-compact #navbar-top .navbar-top-links > li > a { padding-left: 8px; padding-right: 8px; }
html.tweakui-header-nameless #navbar-top .navbar-header > .navbar-link { display: none; }

/* Collapsible Navigation Pane (nav_pane.js): a small tab on the divider between the side menu and the page, fixed below the
   header (its top set by the script); hidden, the side menu goes and the page takes the whole width, the tab at the
   left edge, within the page's 15 px padding. Only where the side menu is beside the page (from 768 px, as WebODM's
   sb-admin-2.css); narrower it is the header's hamburger menu, left as it is. The tab is in the header, as the side
   menu is, and above the side menu (its z-index 1). */
html.tweakui .tweakui-nav-tab { display: none; }
@media (min-width: 768px) {
    html.tweakui .tweakui-nav-tab { display: block; position: fixed; z-index: 2; left: calc(var(--tweakui-nav-width, 250px) - 7px); width: 14px; height: 40px; padding: 0; border-width: 1px; border-style: solid; border-radius: 4px; color: inherit; font-size: 11px; line-height: 1; cursor: pointer; }
    html.tweakui .tweakui-nav-tab:hover, html.tweakui .tweakui-nav-tab:focus-visible { filter: brightness(1.25); }
    html.tweakui.tweakui-nav-hidden .navbar-default.sidebar { display: none; }
    /* The page's left padding makes room for the tab at its edge, so it doesn't touch the page's title */
    html.tweakui.tweakui-nav-hidden #page-wrapper { margin-left: 0; padding-left: 30px; }
    html.tweakui.tweakui-nav-hidden .tweakui-nav-tab { left: 0; border-left-width: 0; border-radius: 0 4px 4px 0; }
    /* Auto-hide: the hidden pane shown over the page (which keeps its whole width), fixed below the
       header (--tweakui-nav-top, from the script) to the bottom of the window, scrolling on its own; the tab on its
       edge */
    html.tweakui.tweakui-nav-hidden.tweakui-nav-peek .navbar-default.sidebar { display: block; position: fixed; top: var(--tweakui-nav-top, 51px); bottom: 0; margin-top: 0; overflow-y: auto; box-shadow: 2px 0 8px rgba(0, 0, 0, 0.35); }
    html.tweakui.tweakui-nav-hidden.tweakui-nav-peek .tweakui-nav-tab { left: calc(var(--tweakui-nav-width, 250px) - 7px); border-left-width: 1px; border-radius: 4px; }
}

/* Resizable Navigation Pane (nav_pane.js): the side menu and the page beside it take the width the script puts in
   --tweakui-nav-width; labels too long are cut off. The handle is a strip on the divider, from the header down,
   highlighted while the pointer is on it; under Bootstrap's dialogs (1040 and up). Icons only (the narrowest): the
   links' text at size 0 but their first icon, their tooltips the script's, submenu items unindented. */
html.tweakui .tweakui-nav-handle { display: none; }
@media (min-width: 768px) {
    html.tweakui.tweakui-nav-sized .navbar-default.sidebar { width: var(--tweakui-nav-width); }
    html.tweakui.tweakui-nav-sized:not(.tweakui-nav-hidden) #page-wrapper { margin-left: var(--tweakui-nav-width); }
    html.tweakui.tweakui-nav-sized #side-menu > li > a, html.tweakui.tweakui-nav-sized #side-menu .nav-second-level > li > a,
    html.tweakui.tweakui-nav-sized #side-menu .nav-third-level > li > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    html.tweakui.tweakui-nav-icons #side-menu > li > a, html.tweakui.tweakui-nav-icons #side-menu .nav-second-level > li > a,
    html.tweakui.tweakui-nav-icons #side-menu .nav-third-level > li > a { font-size: 0; text-overflow: clip; }
    html.tweakui.tweakui-nav-icons #side-menu > li > a > i:first-child, html.tweakui.tweakui-nav-icons #side-menu .nav-second-level > li > a > i:first-child,
    html.tweakui.tweakui-nav-icons #side-menu .nav-third-level > li > a > i:first-child { font-size: var(--tweakui-nav-icon-size, 15px); line-height: 1.42857143; }
    html.tweakui.tweakui-nav-icons .sidebar .nav-second-level li a, html.tweakui.tweakui-nav-icons .sidebar .nav-third-level li a { padding-left: 15px; }
    html.tweakui .tweakui-nav-handle { display: block; position: fixed; z-index: 1039; bottom: 0; left: calc(var(--tweakui-nav-width, 250px) - 1px); width: 7px; cursor: col-resize; touch-action: none; }
    html.tweakui .tweakui-nav-handle:hover, html.tweakui .tweakui-nav-handle:focus-visible, html.tweakui.tweakui-nav-dragging .tweakui-nav-handle { background-color: currentColor; opacity: 0.25; outline: none; }
    html.tweakui.tweakui-nav-dragging, html.tweakui.tweakui-nav-dragging * { cursor: col-resize !important; user-select: none; }
    html.tweakui.tweakui-nav-hidden .tweakui-nav-handle { display: none; }
}

/* Configured Option Counts (task_options.js): the heading's count in place of WebODM's own number */
.option-group-header[data-tweakui-count] > .option-count { display: none; }
.option-group-header[data-tweakui-count]::after { content: attr(data-tweakui-count); font-size: 0.9em; }
/* Configured Options When Collapsed (task_options.js): a collapsed group shows its configured options, over WebODM's inline display: none */
.option-group[data-tweakui-expand] > .option-group-content { display: block !important; }
.option-group[data-tweakui-expand] .option-subgroup:not([data-tweakui-configured]),
.option-group[data-tweakui-expand] .processing-node-option:not([data-tweakui-configured]) { display: none; }

/* General > Task Details > Task Buttons When Minimized (task_controls.js): a task as buttons only, its +/- a caret */
.task-list-item[data-tweakui-controls="buttons"] > .expanded-panel > .row:first-child { display: none; }
.task-list-item[data-tweakui-controls="buttons"] > .row > .name > i.fa-minus-square::before { content: "\f150"; }

/* General > Task Options > Enhanced Task Details: the rows TweakUI puts in a task's details panel */
.expanded-panel .info-table tr.tweakui-hidden { display: none; }
.tweakui-option-bubbles { display: flex; flex-wrap: wrap; gap: 4px; }
/* A bubble too long for the cell (a phone, a long value) wraps inside rather than widening the table */
.tweakui-option-bubble { display: inline-block; border-width: 1px; border-style: solid; border-radius: 10px; padding: 0 8px; line-height: 1.6; max-width: 100%; overflow-wrap: anywhere; }
.tweakui-option-value { font-weight: bold; margin-left: 5px; }
.tweakui-odx-command { display: flex; align-items: flex-start; gap: 6px; }
.tweakui-odx-command code { flex: 1; min-width: 0; display: block; white-space: normal; border-width: 1px; border-style: solid; padding: 4px 6px; color: inherit; background: transparent; font-size: 90%; }
.tweakui-odx-command code span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
/* The Current Step label keeps its count on its line */
.info-table tr[data-tweakui-row="step"] > td:first-child { white-space: nowrap; padding-right: 8px; }

/* 2D Map > Movable Panels (movable_controls.js): a panel is dragged by its title; a moved one stays above the
   others */
html.tweakui-movable .leaflet-control .title,
html.tweakui-movable .leaflet-control .leaflet-control-autolayers-title,
html.tweakui-movable .leaflet-control-measure h3 { cursor: move; touch-action: none; user-select: none; }
html.tweakui-movable .leaflet-control.tweakui-moved { z-index: 1001 !important; }
html.tweakui-dragging, html.tweakui-dragging * { user-select: none; }

/* 2D Map > Ortho Overlays (other_tasks.js): the button, and each task's row in the panel (WebODM's Layers panel styles
   the rest) */
.leaflet-control.tweakui-other-tasks a.tweakui-other-tasks-button { display: flex; align-items: center; justify-content: center; font-size: 15px; }
.leaflet-control.tweakui-other-tasks .open a.tweakui-other-tasks-button { display: none; }
.tweakui-other-tasks .tweakui-other-task { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0; }
.tweakui-other-tasks .tweakui-other-task-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; margin: 0; font-weight: normal; white-space: nowrap; overflow: hidden; }
.tweakui-other-tasks .tweakui-other-task-name span { overflow: hidden; text-overflow: ellipsis; }
.tweakui-other-tasks .tweakui-other-task-name input { margin: 0; flex: none; }
.tweakui-other-tasks .tweakui-other-task-opacity { width: 90px; flex: none; }
.tweakui-other-tasks .tweakui-other-task-side { flex: none; padding: 0 2px; }
/* While compared: its side of the divider and the divider's direction, on a line of their own beneath the row */
.tweakui-other-tasks .tweakui-other-task-split { flex-basis: 100%; display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 4px; }
.tweakui-other-tasks .tweakui-other-task-split[hidden] { display: none; }
.tweakui-other-tasks .tweakui-other-task-failure { flex-basis: 100%; margin-bottom: 4px; white-space: normal; }
.tweakui-other-tasks .tweakui-other-task-failure[hidden] { display: none; }

/* 2D Map > Map Search (map_search.js): the button (Leaflet's bar), and the box it opens in its place */
.leaflet-control.tweakui-map-search a.tweakui-map-search-button { display: flex; align-items: center; justify-content: center; font-size: 14px; }
.leaflet-control.tweakui-map-search .tweakui-map-search-box { display: none; width: 300px; max-width: calc(100vw - 40px); padding: 6px; border-radius: 4px; }
.leaflet-control.tweakui-map-search.open a.tweakui-map-search-button { display: none; }
.leaflet-control.tweakui-map-search.open .tweakui-map-search-box { display: block; }
.tweakui-map-search .tweakui-map-search-row { display: flex; gap: 4px; }
.tweakui-map-search .tweakui-map-search-input { flex: 1; min-width: 0; }
.tweakui-map-search .tweakui-map-search-status:not(:empty) { margin-top: 4px; }
.tweakui-map-search .tweakui-map-search-results { margin: 4px 0 0; max-height: 200px; overflow-y: auto; }
.tweakui-map-search .tweakui-map-search-results:empty { display: none; }
.leaflet-control.tweakui-map-search .tweakui-map-search-results a { display: block; width: auto; height: auto; padding: 3px 4px; border: 0; line-height: 1.3; text-align: left; white-space: normal; background: none; color: inherit; }
.leaflet-control.tweakui-map-search .tweakui-map-search-results a:hover { text-decoration: underline; }
.tweakui-map-search .tweakui-map-search-results li.active a { font-weight: bold; }

/* 2D Map > Deeper Zoom and 3D Map > Zoom to Pointer > Zoom Sensitivity: the button on the map (a Leaflet control at the bottom left;
   in the 3D view an action button) and its panel, beside it on the 2D map and above it in the 3D view */
.tweakui-zoom-sensitivity { position: relative; }
.tweakui-zoom-sensitivity-3d { display: inline-block; }
.leaflet-control.tweakui-zoom-sensitivity a.tweakui-zoom-sensitivity-button { display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tweakui-zoom-sensitivity .tweakui-zoom-sensitivity-button[aria-expanded=true] { opacity: .8; }
.tweakui-zoom-sensitivity .tweakui-zoom-sensitivity-box { display: none; position: absolute; z-index: 1000; width: 260px; max-width: calc(100vw - 60px); padding: 6px 8px; border: 1px solid; border-radius: 4px; text-align: left; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.tweakui-zoom-sensitivity.open .tweakui-zoom-sensitivity-box { display: block; }
.tweakui-zoom-sensitivity-2d .tweakui-zoom-sensitivity-box { left: 100%; bottom: -2px; margin-left: 8px; }
.tweakui-zoom-sensitivity-3d .tweakui-zoom-sensitivity-box { right: 0; bottom: 100%; margin-bottom: 6px; }
.tweakui-zoom-sensitivity .tweakui-zoom-sensitivity-label { display: block; margin: 0 0 4px; font-weight: bold; }
.tweakui-zoom-sensitivity .tweakui-number { display: flex; align-items: center; gap: 8px; }
.tweakui-zoom-sensitivity .tweakui-number input[type=range] { flex: 1 1 auto; min-width: 0; margin: 0; }
.tweakui-zoom-sensitivity .tweakui-number input[type=number] { flex: 0 0 64px; width: 64px; }
.tweakui-zoom-sensitivity .tweakui-zoom-sensitivity-status:not(:empty) { margin-top: 4px; }

/* 2D Map and 3D Map > Source Frames (source_frames.js): the bar to pick a place, the window of photos, the full-screen
   viewer. The place drawn on a photo (and the map) is yellow with a dark edge, as it must show on any photo, not
   follow the theme */
.tweakui-sf-picking, .tweakui-sf-picking canvas, .tweakui-sf-picking .leaflet-interactive { cursor: crosshair !important; }
.tweakui-sf-label { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1002; max-width: calc(100% - 20px); padding: 6px 10px; border-width: 1px; border-style: solid; border-radius: 4px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4); font-weight: bold; text-align: center; pointer-events: none; }
.tweakui-sf-label .tweakui-sf-hint { font-size: 12px; font-weight: normal; }
.tweakui-sf-head .tweakui-sf-busy { margin: 0 8px; opacity: 0.7; }
.tweakui-sf-head .close { color: inherit; text-shadow: none; opacity: 0.7; }
.tweakui-sf-head .close:hover { color: inherit; opacity: 1; }
.tweakui-sf-button.active { box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25); }
.tweakui-sf-window { position: absolute; right: 10px; top: 64px; z-index: 1002; width: 560px; max-width: calc(100% - 20px); max-height: calc(100% - 124px); display: flex; flex-direction: column; border-width: 1px; border-style: solid; border-radius: 4px; box-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); overflow: hidden; }
.tweakui-sf-head { display: flex; align-items: center; padding: 6px 10px; cursor: move; touch-action: none; user-select: none; font-weight: bold; }
.tweakui-sf-head .tweakui-sf-title { flex: 1; }
.tweakui-sf-head .close { float: none; }
.tweakui-sf-body { display: flex; min-height: 0; flex: 1; overflow: hidden; }
.tweakui-sf-message { margin: 10px; }
.tweakui-sf-list { flex: none; width: 128px; overflow-y: auto; border-width: 0 1px 0 0; border-style: solid; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.tweakui-sf-item { display: block; width: 100%; padding: 2px; border-width: 2px; border-style: solid; border-radius: 4px; text-align: center; color: inherit; }
.tweakui-sf-item.active { border-color: currentColor !important; }
.tweakui-sf-caption { display: block; font-size: 11px; line-height: 1.4; }
.tweakui-sf-main { flex: 1; min-width: 0; overflow-y: auto; padding: 8px; }
.tweakui-sf-photo { position: relative; line-height: 0; }
.tweakui-sf-photo img { width: 100%; height: auto; display: block; border-radius: 3px; user-select: none; }
.tweakui-sf-photo .tweakui-sf-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.tweakui-sf-main-photo { cursor: zoom-in; }
.tweakui-sf-ring { fill: none; stroke: #ffeb3b; stroke-width: 2px; }
.tweakui-sf-ring-outer { fill: none; stroke: #000; stroke-opacity: 0.6; stroke-width: 4px; }
.tweakui-sf-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tweakui-sf-props { margin-bottom: 0; table-layout: fixed; font-size: 12px; }
.tweakui-sf-props th { width: 120px; white-space: nowrap; }
.tweakui-sf-props td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tweakui-sf-viewer { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 100000; display: flex; flex-direction: column; }
.tweakui-sf-viewer-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-width: 0 0 1px 0; border-style: solid; }
.tweakui-sf-viewer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.tweakui-sf-viewer-stage { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.tweakui-sf-viewer-stage .tweakui-sf-photo { max-width: 100%; max-height: 100%; transform-origin: center center; }
.tweakui-sf-viewer-stage .tweakui-sf-photo img { max-width: 100vw; max-height: calc(100vh - 50px); width: auto; border-radius: 0; }
@media (max-width: 600px) {
    .tweakui-sf-window { left: 10px; right: 10px; width: auto; top: auto; bottom: 56px; max-height: calc(100% - 156px); }
    .tweakui-sf-body { flex-direction: column; overflow-y: auto; }
    .tweakui-sf-list { width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-width: 0 0 1px 0; }
    .tweakui-sf-item { width: 96px; flex: none; }
    .tweakui-sf-main { overflow: visible; }
    .tweakui-sf-label { top: 6px; }
}

/* Diagnostic > Storage (templates/storage.html, storage_page.js): the action bar stays at the top while the list
   scrolls; each user's quota, then a table of projects whose rows open to their tasks and a task's files by kind.
   The table scrolls sideways on a phone rather than the page. */
.tweakui-storage .tweakui-storage-actions { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 12px; border-width: 1px; border-style: solid; border-radius: 4px; }
.tweakui-storage .tweakui-storage-selected { flex: 1; min-width: 160px; }
.tweakui-storage .tweakui-storage-confirm { padding: 8px 12px; margin-bottom: 12px; border-width: 2px; border-style: solid; border-radius: 4px; }
.tweakui-storage .tweakui-storage-file { display: none; }
.tweakui-storage .tweakui-storage-confirm ul { max-height: 240px; overflow-y: auto; margin-bottom: 8px; }
.tweakui-storage .tweakui-storage-user { margin-bottom: 24px; }
.tweakui-storage .tweakui-storage-quota { margin-bottom: 8px; max-width: 480px; }
.tweakui-storage .tweakui-storage-quota .progress { margin: 4px 0 0; }
.tweakui-storage .tweakui-storage-scroll { position: relative; overflow-x: auto; }
.tweakui-storage .tweakui-storage-table { margin-bottom: 0; }
.tweakui-storage .tweakui-storage-table > tbody + tbody { border-top-width: 1px; }
.tweakui-storage .tweakui-storage-table td { vertical-align: middle; }
.tweakui-storage .tweakui-storage-table td:first-child, .tweakui-storage .tweakui-storage-table th:first-child { width: 28px; }
.tweakui-storage .tweakui-storage-name .btn-link { padding-left: 0; text-align: left; white-space: normal; }
.tweakui-storage .tweakui-storage-indent { padding-left: 24px; }
.tweakui-storage .tweakui-storage-size { text-align: right; white-space: nowrap; }
.tweakui-storage .tweakui-storage-date, .tweakui-storage .tweakui-storage-buttons { white-space: nowrap; }
/* A row's "•••" menu at its end */
.tweakui-storage .tweakui-storage-buttons { width: 1%; text-align: right; }
/* Bootstrap's bar track keeps its light grey in every theme (WebODM's theme.css doesn't colour it): a faint track in
   the text's colour instead */
.tweakui-storage .progress, .tweakui-performance .progress { background-color: transparent; background-color: color-mix(in srgb, currentColor 15%, transparent); box-shadow: none; }
.tweakui-storage .tweakui-storage-kinds { margin-left: 24px; }
.tweakui-storage .tweakui-storage-kinds td { padding: 2px 12px 2px 0; }
.tweakui-storage .tweakui-storage-share { width: 160px; }
.tweakui-storage .tweakui-storage-kinds td:first-child { white-space: nowrap; }
/* A kind's share of the task: a bar in the text's colour within a theme-border outline */
.tweakui-storage .tweakui-storage-bar { display: block; height: 10px; border-width: 1px; border-style: solid; border-radius: 5px; overflow: hidden; }
.tweakui-storage .tweakui-storage-bar > span { display: block; height: 100%; background: currentColor; opacity: 0.6; }
@media (max-width: 767px) {
    .tweakui-storage .tweakui-storage-date { display: none; }
    .tweakui-storage .tweakui-storage-table th:nth-child(4) { display: none; }
    /* A long name breaks anywhere and a task's mark ("Can be compacted") wraps under it, so the table fits the screen */
    .tweakui-storage .tweakui-storage-name .btn-link { overflow-wrap: anywhere; }
    .tweakui-storage .tweakui-storage-name .label { display: inline-block; white-space: normal; text-align: left; }
    .tweakui-storage .tweakui-storage-share { width: 80px; }
}

/* A row's "•••" menu (core.js's rowMenu, Diagnostic's Performance and Storage): over the page where the script puts
   it, by its button, so a table's scrolling box doesn't cut it off */
.tweakui-row-menu > .dropdown-menu { position: fixed; right: auto; }

/* Diagnostic > Performance (templates/performance.html, performance_page.js): General Assessment, then cards (a processing node
   each, the server) that wrap to one column on a phone, and the recent tasks' table, which scrolls sideways there
   rather than the page. Bars are Bootstrap's progress bars, as WebODM's own Diagnostic page has. */
/* The page's controls beside its heading (under it where there is no room): Updated, the graphs' window, Refresh and
   the gear, whose popover (Refresh Every and History Length) opens below it, its right edge under the bar's */
.tweakui-performance .tweakui-performance-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.tweakui-performance .tweakui-performance-head h3 { margin: 10px 0; }
.tweakui-performance .tweakui-performance-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tweakui-performance .tweakui-performance-status:empty, .tweakui-performance .tweakui-performance-window:empty { display: none; }
.tweakui-performance .tweakui-performance-window::before { content: "\00b7"; margin-right: 10px; }
.tweakui-performance .tweakui-performance-status:empty + .tweakui-performance-window::before { content: none; }
.tweakui-performance .tweakui-performance-settings { position: absolute; top: calc(100% + 4px); right: 0; z-index: 1000; display: flex; flex-direction: column; gap: 12px; width: 300px; max-width: calc(100vw - 32px); padding: 10px 12px; border-width: 1px; border-style: solid; border-radius: 4px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); }
.tweakui-performance .tweakui-performance-settings[hidden] { display: none; }
/* General Assessment: a card in the theme's highlight, its left edge in its worst line's colour (text-success,
   text-warning... as the lines' icons) */
.tweakui-performance .tweakui-performance-assessment { position: relative; margin-bottom: 20px; padding: 8px 14px 6px 20px; border-width: 1px; border-style: solid; border-radius: 4px; overflow: hidden; }
.tweakui-performance .tweakui-performance-assessment-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background-color: currentColor; }
.tweakui-performance .tweakui-performance-assessment h4 { margin: 4px 0 8px; font-weight: bold; }
.tweakui-performance .tweakui-performance-verdicts { margin-bottom: 4px; }
.tweakui-performance .tweakui-performance-verdicts > li { padding: 3px 0; }
.tweakui-performance .tweakui-performance-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.tweakui-performance .tweakui-performance-card { flex: 0 1 360px; min-width: 0; padding: 8px 12px; border-width: 1px; border-style: solid; border-radius: 4px; }
.tweakui-performance .tweakui-performance-card h5 { margin: 4px 0 8px; font-weight: bold; overflow-wrap: anywhere; }
.tweakui-performance .tweakui-performance-facts { width: 100%; }
.tweakui-performance .tweakui-performance-facts th { width: 100px; padding: 3px 12px 3px 0; vertical-align: top; white-space: nowrap; }
.tweakui-performance .tweakui-performance-facts td { padding: 3px 0; }
.tweakui-performance .tweakui-performance-progress { height: 10px; margin: 4px 0 0; }
/* A table's box scrolls sideways at phone width; what is positioned in it (screen-reader text) stays in it */
.tweakui-performance .tweakui-performance-scroll { position: relative; overflow-x: auto; }
.tweakui-performance .tweakui-performance-table td { vertical-align: middle; }
.tweakui-performance .tweakui-performance-number { text-align: right; white-space: nowrap; }
.tweakui-performance .tweakui-performance-date { white-space: nowrap; }
/* Refresh Every and History Length, in the gear's popover: each label over its slider and box */
.tweakui-performance .tweakui-performance-every { display: flex; flex-direction: column; gap: 4px; }
.tweakui-performance .tweakui-performance-every label { margin: 0; }
.tweakui-performance .tweakui-performance-every .tweakui-number { display: flex; align-items: center; gap: 8px; width: 100%; }
.tweakui-performance .tweakui-performance-every input[type=range] { flex: 1 1 auto; min-width: 0; margin: 0; }
.tweakui-performance .tweakui-performance-every input[type=number] { flex: 0 0 64px; width: 64px; }
.tweakui-performance .tweakui-performance-every .tweakui-number > span { flex: 0 0 2.5em; }
/* A section's notes, behind the info button beside its heading */
.tweakui-performance .tweakui-performance-info-button { padding: 0 4px; font-size: 14px; vertical-align: baseline; }
.tweakui-performance .tweakui-performance-info { max-width: 760px; margin: -4px 0 10px; }
.tweakui-performance .tweakui-performance-info p { margin: 0 0 4px; }
/* A drive's card: its mount points wrap anywhere (long paths at phone width) */
.tweakui-performance .tweakui-performance-drive td { overflow-wrap: anywhere; }
/* Processes (superusers), a section under the server's cards that opens: outlined tables whose columns keep the widths given (fixed
   layout; at phone width the table scrolls in its box), each cell's text wrapping at its width, and on each heading's
   right edge a handle that resizes its column */
.tweakui-performance .tweakui-performance-process-view { margin: -8px 0 20px; }
.tweakui-performance .tweakui-performance-process-view > summary { font-size: 14px; font-weight: bold; }
.tweakui-performance .tweakui-performance-processes { margin-top: 10px; }
.tweakui-performance .tweakui-performance-process-table { table-layout: fixed; width: 100%; min-width: 760px; border-width: 1px; border-style: solid; }
.tweakui-performance .tweakui-performance-process-table th { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tweakui-performance .tweakui-performance-process-table td { vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.tweakui-performance .tweakui-performance-command { white-space: normal; overflow-wrap: anywhere; color: inherit; background: none; padding: 0; }
.tweakui-performance .tweakui-performance-resize { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: col-resize; touch-action: none; }
.tweakui-performance .tweakui-performance-resize:hover, .tweakui-performance .tweakui-performance-resize:focus,
.tweakui-performance .tweakui-performance-resize.active { border-right: 3px solid currentColor; opacity: 0.5; outline: none; }
/* The live figures' graphs (inline SVG stretched to the card's width): lines in currentColor, the first series in the
   theme's link colour (read by performance_page.js), the second in its text colour, a light fill under the first;
   hovering shows a cursor and the readings under it */
.tweakui-performance .tweakui-performance-graph { position: relative; height: 48px; margin: 4px 0 2px; border-width: 1px; border-style: solid; border-radius: 3px; touch-action: pan-y; }
.tweakui-performance .tweakui-performance-graph svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.tweakui-performance .tweakui-performance-graph path { fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tweakui-performance .tweakui-performance-graph path.tweakui-performance-graph-area { fill: currentColor; fill-opacity: 0.18; stroke: none; }
.tweakui-performance .tweakui-performance-graph-max, .tweakui-performance .tweakui-performance-graph-zero { position: absolute; left: 4px; font-size: 11px; line-height: 1; pointer-events: none; }
@media (min-width: 768px) { .tweakui-performance .tweakui-performance-graph { height: 60px; } }
.tweakui-performance .tweakui-performance-graph-max { top: 2px; }
.tweakui-performance .tweakui-performance-graph-zero { bottom: 2px; }
.tweakui-performance .tweakui-performance-graph line.tweakui-performance-graph-grid { stroke: currentColor; stroke-opacity: 0.2; stroke-width: 1px; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
/* Under a graph of two series: its legend (a swatch in each line's colour) */
.tweakui-performance .tweakui-performance-graph-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; }
.tweakui-performance .tweakui-performance-graph-swatch { display: inline-block; width: 14px; height: 3px; vertical-align: middle; background-color: currentColor; }
.tweakui-performance .tweakui-performance-graph-cursor { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed currentColor; opacity: 0.6; pointer-events: none; }
.tweakui-performance .tweakui-performance-graph-tip { position: absolute; bottom: calc(100% + 2px); z-index: 2; padding: 2px 6px; border-width: 1px; border-style: solid; border-radius: 3px; font-size: 11px; white-space: nowrap; pointer-events: none; }
.tweakui-performance .tweakui-performance-accent { color: var(--tweakui-performance-accent, currentColor); }
.tweakui-performance .tweakui-performance-swatch { display: inline-block; width: 12px; height: 3px; margin: 0 6px 3px 0; vertical-align: middle; background-color: currentColor; }
/* Recent Task History: a task's Details button, beside its name, opens the row below it (the figures from its report,
   then its notes, each with its line from the log, and the log's other messages); its "•••" menu is at the row's end;
   at phone width the wide columns are hidden and their figures come under the task's name */
.tweakui-performance .tweakui-performance-node { white-space: nowrap; }
.tweakui-performance .tweakui-performance-task-buttons { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; }
.tweakui-performance .tweakui-performance-row-actions { width: 1%; text-align: right; white-space: nowrap; }
.tweakui-performance .tweakui-performance-action-status:empty { display: none; }
.tweakui-performance .tweakui-performance-table > tbody > tr.tweakui-performance-details-row > td { border-top: 0; padding-top: 0; }
.tweakui-performance .tweakui-performance-figures { display: flex; flex-wrap: wrap; gap: 2px 24px; margin: 2px 0 6px; }
.tweakui-performance .tweakui-performance-figures > div { display: flex; gap: 6px; }
.tweakui-performance .tweakui-performance-figures dt { font-weight: bold; }
.tweakui-performance .tweakui-performance-figures dd { margin: 0; }
.tweakui-performance .tweakui-performance-notes { margin: 0 0 6px; }
.tweakui-performance .tweakui-performance-notes > li { padding: 2px 0; }
.tweakui-performance .tweakui-performance-line, .tweakui-performance .tweakui-performance-other li { overflow-wrap: anywhere; }
.tweakui-performance .tweakui-performance-line { margin-left: 1.5em; }
.tweakui-performance .tweakui-performance-line code, .tweakui-performance .tweakui-performance-other code { white-space: normal; color: inherit; background: none; padding: 0; }
.tweakui-performance .tweakui-performance-other summary { display: list-item; cursor: pointer; }
.tweakui-performance .tweakui-performance-other ul { margin: 4px 0 0 1.5em; }
/* Photos Left Out under its note: Copy Names, then the names; a name's thumbnail shows over the page on hover */
.tweakui-performance .tweakui-performance-photos { margin-top: 4px; }
.tweakui-performance .tweakui-performance-photos > .btn { margin: 4px 0 0 1.5em; }
.tweakui-performance .tweakui-performance-photos > .btn + .btn { margin-left: 6px; }
.tweakui-performance .tweakui-performance-photos > p { margin: 4px 0 0 1.5em; }
.tweakui-performance .tweakui-performance-remove-status:not(:empty) { display: block; margin: 4px 0 0 1.5em; }
.tweakui-performance .tweakui-performance-photos li { padding: 1px 0; }
.tweakui-performance .tweakui-performance-remove-photo { margin-left: 6px; padding: 0 5px; font-size: 11px; }
.tweakui-performance .tweakui-performance-thumb { position: fixed; z-index: 1050; padding: 4px; border-width: 1px; border-style: solid; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); pointer-events: none; }
.tweakui-performance .tweakui-performance-thumb img { display: block; max-width: 256px; max-height: 256px; }
.tweakui-performance .tweakui-performance-detail { display: none; }
@media (max-width: 767px) {
    .tweakui-performance .tweakui-performance-card { flex-basis: 100%; }
    .tweakui-performance .tweakui-performance-wide { display: none; }
    .tweakui-performance .tweakui-performance-detail { display: block; }
    /* The table can be wider than a phone (it scrolls sideways): a task's notes stay the screen's width, in view */
    .tweakui-performance .tweakui-performance-details-row td > * { position: sticky; left: 8px; max-width: calc(100vw - 46px); }
}

/* General > Just for Fun > Surprise Me: fireworks-js's canvas over the whole page, above dialogs and the maps'
   controls; clicks go through it */
.tweakui-fireworks {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
}
.tweakui-fireworks canvas {
    display: block;
    pointer-events: none;
}

/* Preset Menu with Filter (preset_menu.js): TweakUI's menu in place of WebODM's preset select (hidden, kept on
   the page), shaped like it: a form-control button with a chevron, and a Bootstrap dropdown menu in theme colours. */
.edit-task-form select[data-tweakui-presets] { display: none !important; }
.tweakui-presets { display: inline-block; vertical-align: middle; position: relative; max-width: 100%; }
.tweakui-presets .tweakui-presets-button { display: flex; align-items: center; gap: 12px; min-width: 200px; max-width: 100%; text-align: left; cursor: pointer; }
.tweakui-presets .tweakui-presets-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tweakui-presets .tweakui-presets-caret { font-size: 0.75em; opacity: 0.7; }
.tweakui-presets .tweakui-presets-menu { min-width: 100%; max-height: 60vh; overflow-y: auto; }
.tweakui-presets .tweakui-presets-menu > li > a.tweakui-presets-nested { padding-left: 38px; }
.tweakui-presets .tweakui-presets-group-head, .tweakui-presets .tweakui-presets-current > a { font-weight: bold; }
.tweakui-presets .tweakui-presets-filter { padding: 2px 8px 6px; }
.tweakui-presets .tweakui-presets-none > span { display: block; padding: 3px 20px; opacity: 0.6; font-style: italic; }
@media (max-width: 767px) {
    .tweakui-presets { display: block; }
}
