/*
 * Rental System theme "B · Farvet": calm, compact restyle layered over layout.css and the jQuery UI theme.
 * Loaded last in $cssFiles (includes/config.inc.php); styling only, the markup stays as it is.
 * --accent follows the tenant colour: index_full.php sets it on <body> when the setting is dark enough for white text.
 * Not used by the shop, the PDFs (pdf.css, print.css) or the login page.
 */

@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url(fonts/figtree-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-display: swap;
    font-weight: 300 900;
    src: url(fonts/figtree-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ink: #26332F;
    --ink-2: #3A4744;
    --muted: #5E6B67;
    --line: #DCE3E0;
    --divider: #EDF1EF;
    --page: #F1F3F2;
    --surface: #FFFFFF;
    --zebra: #F8FAF9;
    --accent: #2F7A5B;
    --accent-soft: #2F7A5B1A;
    --accent-ring: #2F7A5B24;
    --accent-strong: #24614A;
    --ok: #2E7D4F;
    --warn: #A35A0B;
    --filter-active: #FFF1B8;
    --error-bg: #FDECEA;
    --error-ink: #8C2F28;
    --error-line: #C4473F;
    --error-text: #A63A32;
    --shadow-card: 0 1px 2px rgba(19, 32, 29, .06), 0 6px 20px rgba(19, 32, 29, .05);
    --shadow-pop: 0 16px 40px rgba(19, 32, 29, .18);
}
/* Klassisk (no data-theme, index_head.php): the green of the theme as it was, with the logo (svg.wio-logo below) in
   WIOsoft's red, #ED1C24 of the old layout.css and W logo; the other themes set their own --logo-* */
html:not([data-theme]) {
    --logo-accent: #ED1C24;
    --logo-tile: #ED1C24;
}
@supports (color: color-mix(in srgb, red 10%, transparent)) {
    :root, body {
        --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
        --accent-ring: color-mix(in srgb, var(--accent) 14%, transparent);
        --accent-strong: color-mix(in srgb, var(--accent) 80%, #000);
    }
}

/* ---------- Base ---------- */
html { background: var(--page); }
body {
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    font-size: 12px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
* { font-family: var(--font); font-size: 12px; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; color: var(--ink); }
h1 { font-size: 17px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
hr { border: 0; border-top: 1px solid var(--divider); }
.red { color: var(--error-text) !important; }
.green { color: #2E7D4F !important; }
.orange { color: #A35A0B !important; }
::selection { background: var(--accent-ring); }

/* ---------- Header ---------- */
div#header {
    background: var(--surface);
    height: 52px;
    box-sizing: border-box;
}
/* native 40 px: the default logo is a 161x40 PNG, so any other height blurs it */
div#logo { padding: 6px 18px 6px 20px; }
div#logo img { height: 40px !important; width: auto; display: block; }
div#master-search { top: 10px; left: 200px; }
/* the default logo, the RentalTrax mark and name (viewHelper::brandLogo(), inline from images/logo.svg), is 173 px wide
   at 40 px; its colours follow the theme: the name in --ink and the accent (Klassisk: the tenant's colour), the mark
   alone on a tile in the accent. Each theme may set its own --logo-* (theme-rentaltrax.css, -dark.css, -blue.css). */
div#logo a.wio-brand { display: block; line-height: 0; }
div#logo svg.wio-logo { display: block; height: 40px; width: auto; }
div#logo svg.wio-logo-mark { display: none; width: 36px; height: 36px; margin: 2px 0; }
/* the fallbacks resolve here, below <body>, so Klassisk gets the tenant's --accent that index_full.php sets on <body> */
svg.wio-logo .logo-ink { fill: var(--logo-ink, var(--ink)); }
svg.wio-logo .logo-accent { fill: var(--logo-accent, var(--accent)); }
svg.wio-logo .logo-tile { fill: var(--logo-tile, var(--accent)); }
svg.wio-logo .logo-bar { fill: var(--logo-bar, #FFFFFF); }
svg.wio-logo .logo-bar-2 { fill: var(--logo-bar-2, rgba(255, 255, 255, .62)); }
body:has(#logo .wio-brand) div#master-search { left: 218px; }
/* the user menu floats right and the search sits at a fixed left: below about 1240 px the name would leave the
   search over the menu's first links, so the header shows the RentalTrax mark alone (as it did the W) */
@media (min-width: 761px) and (max-width: 1239px) {
    div#logo svg.wio-logo-full { display: none; }
    div#logo svg.wio-logo-mark { display: block; }
    body:has(#logo .wio-brand) div#master-search { left: 76px; }
}
div#master-search input[type=text] {
    box-sizing: border-box;
    width: 240px !important;
    height: 32px;
    padding: 0 12px 0 32px;
    border: 0;
    border-radius: 999px;
    background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235E6B67' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%;
    color: var(--ink);
}
div#master-search input[type=text]:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); background-color: var(--surface); }
div#user-menu {
    margin: 11px 20px 0 0;
    color: var(--muted);
    font-weight: 400;
    line-height: 30px;
}
div#user-menu a { color: var(--ink-2); font-weight: 400; }
div#user-menu a:hover { color: var(--accent); }
div#user-menu a[href*="upgrade"] { color: var(--accent); font-weight: 600; }
div#user-menu button.wio-feedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--page);
    color: var(--ink-2);
    vertical-align: middle;
    cursor: pointer;
}
div#user-menu button.wio-feedback[hidden] { display: none; }
div#user-menu button.wio-feedback:hover { color: var(--accent); }
div#user-menu select {
    height: 30px;
    margin: 0 4px;
    padding: 0 26px 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background-color: var(--surface);
    color: var(--ink-2);
    vertical-align: middle;
    width: 110px;
}

/* ---------- Menu bar ---------- */
div#menu-top {
    top: 52px;
    padding: 4px 12px;
    background: var(--accent);
    box-sizing: border-box;
}
div#menu-top::after { content: ''; display: block; clear: both; }
ul.dropdown li { border: 0; }
ul.dropdown > li { margin: 0 2px 0 0 !important; }
ul.dropdown li a {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 17px;
    font-weight: 500;
    color: #FFFFFF;
    border-radius: 999px;
}
ul.dropdown > li > a.active,
ul.dropdown > li:hover > a,
ul.dropdown > li.hover > a {
    background: #FFFFFF;
    color: var(--accent);
    font-weight: 600;
}
ul.dropdown > li > a:hover { color: var(--accent); }
ul.dropdown li:hover, ul.dropdown li.hover { background: transparent; }
ul.dropdown li.hover a { color: var(--ink-2); }
ul.dropdown li.hover a:hover { color: var(--accent); }
ul.dropdown > li.hover > a { color: var(--accent); }

/* Level two and three: white cards */
ul.dropdown ul {
    width: 220px;
    top: calc(100% + 6px);
    padding: 6px;
    background: var(--surface);
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-pop);
    box-sizing: border-box;
}
/* invisible bridge so the pointer can cross the gap to the card */
ul.dropdown ul::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
ul.dropdown ul ul { left: calc(100% + 8px); top: -6px; }
ul.dropdown ul ul::before { top: 0; bottom: 0; left: -10px; right: auto; width: 10px; height: auto; }
ul.dropdown ul li { border: 0; position: relative; }
ul.dropdown ul li a {
    display: flex;
    align-items: center;
    width: auto;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 400;
    background: transparent;
}
ul.dropdown ul li:hover > a,
ul.dropdown ul li.active > a,
ul.dropdown ul li.hover > a {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
/* jquery.dropdownPlain.js appends span.menu-arrow (" » ") to items with a submenu */
ul.dropdown span.menu-arrow { margin-left: auto; padding-left: 8px; font-size: 0; }
ul.dropdown span.menu-arrow::after { content: '\203A'; font-size: 13px; line-height: 1; color: #7A8784; font-weight: 400; }
ul.dropdown ul li:hover > a span.menu-arrow::after { color: var(--accent); }
li.sub_menu a.active { background: transparent; color: inherit !important; }
ul.dropdown > li.sub_menu > a.active { background: #FFFFFF; color: var(--accent) !important; }

/* ---------- Icons: one line set (css/icons/*.svg, 24 px grid, 1.75 px stroke) ----------
   Painted over the legacy PNGs (html::getIcon(), matched by file name) in the current text colour: the SVG is the
   mask, the PNG itself is pushed out of its box. A PNG without an SVG keeps its old look. */
:is(img[src*="images/icons/save."],
img[src*="images/icons/new."],
img[src*="images/icons/pay."],
img[src*="images/icons/delete."],
img[src*="images/icons/delete_small."],
img[src*="images/icons/email."],
img[src*="images/icons/email_customer."],
img[src*="images/icons/download."],
img[src*="images/icons/download_customer."],
img[src*="images/icons/copy."],
img[src*="images/icons/invoice_new."],
img[src*="images/icons/invoice_pay."],
img[src*="images/icons/invoice_download."],
img[src*="images/icons/invoice_credit."],
img[src*="images/icons/creditnote_new."],
img[src*="images/icons/creditnote_download."],
img[src*="images/icons/ok."],
img[src*="images/icons/notice."],
img[src*="images/icons/error."],
img[src*="images/icons/zoom."],
img[src*="images/icons/clock."],
img[src*="images/icons/edit."],
img[src*="images/icons/dialog."],
img[src*="images/icons/complaint."],
img[src*="images/icons/service_create."],
img[src*="images/icons/service_in_progress."]) {
    box-sizing: border-box;
    width: 16px !important;
    height: 16px !important;
    padding: 0;
    border: 0;
    color: var(--ink-2);
    background: currentColor;
    object-position: -9999px 0;
    -webkit-mask: var(--glyph) no-repeat center / contain;
    mask: var(--glyph) no-repeat center / contain;
    vertical-align: -3px;
    margin: 0 3px;
}
img[src*="images/icons/save."] { --glyph: url(icons/save.svg); }
img[src*="images/icons/new."] { --glyph: url(icons/new.svg); }
img[src*="images/icons/pay."] { --glyph: url(icons/pay.svg); }
img[src*="images/icons/delete."] { --glyph: url(icons/delete.svg); }
img[src*="images/icons/delete_small."] { --glyph: url(icons/delete.svg); }
img[src*="images/icons/email."] { --glyph: url(icons/email.svg); }
img[src*="images/icons/email_customer."] { --glyph: url(icons/email_customer.svg); }
img[src*="images/icons/download."] { --glyph: url(icons/download.svg); }
img[src*="images/icons/download_customer."] { --glyph: url(icons/download_customer.svg); }
img[src*="images/icons/copy."] { --glyph: url(icons/copy.svg); }
img[src*="images/icons/invoice_new."] { --glyph: url(icons/invoice_new.svg); }
img[src*="images/icons/invoice_pay."] { --glyph: url(icons/invoice_pay.svg); }
img[src*="images/icons/invoice_download."] { --glyph: url(icons/invoice_download.svg); }
img[src*="images/icons/invoice_credit."] { --glyph: url(icons/invoice_credit.svg); }
img[src*="images/icons/creditnote_new."] { --glyph: url(icons/creditnote_new.svg); }
img[src*="images/icons/creditnote_download."] { --glyph: url(icons/creditnote_download.svg); }
img[src*="images/icons/ok."] { --glyph: url(icons/ok.svg); }
img[src*="images/icons/notice."] { --glyph: url(icons/notice.svg); }
img[src*="images/icons/error."] { --glyph: url(icons/error.svg); }
img[src*="images/icons/zoom."] { --glyph: url(icons/zoom.svg); }
img[src*="images/icons/clock."] { --glyph: url(icons/clock.svg); }
img[src*="images/icons/edit."] { --glyph: url(icons/edit.svg); }
img[src*="images/icons/dialog."] { --glyph: url(icons/dialog.svg); }
img[src*="images/icons/complaint."] { --glyph: url(icons/complaint.svg); }
img[src*="images/icons/service_create."] { --glyph: url(icons/service_create.svg); }
img[src*="images/icons/service_in_progress."] { --glyph: url(icons/service_in_progress.svg); }
/* in buttons: the button's text colour (accent, white on the filled action) */
.button span img.icon:is([src*="images/icons/"]) { width: 14px !important; height: 14px !important; margin: 0; color: inherit; vertical-align: 0; }
/* row actions and links: muted, accent on hover */
a:hover > img[src*="images/icons/"], a:hover span img[src*="images/icons/"] { color: var(--accent); }
/* delivery (out, accent) and collection (back in, amber) markers in the day overview and delivery boards */
img:is([src*="images/icons/delivery."], [src*="images/icons/delivery_us."], [src*="images/icons/delivery_customer."], [src*="images/icons/collection."], [src*="images/icons/collection_us."], [src*="images/icons/collection_customer."]) {
    box-sizing: border-box;
    width: 18px !important;
    height: 18px !important;
    margin: 0 3px;
    color: var(--accent);
    background: currentColor;
    object-position: -9999px 0;
    -webkit-mask: var(--glyph) no-repeat center / contain;
    mask: var(--glyph) no-repeat center / contain;
    vertical-align: middle;
}
img:is([src*="images/icons/collection."], [src*="images/icons/collection_us."], [src*="images/icons/collection_customer."]) { color: var(--warn); }
img[src*="images/icons/delivery."] { --glyph: url(icons/delivery.svg); }
img[src*="images/icons/delivery_us."] { --glyph: url(icons/delivery_us.svg); }
img[src*="images/icons/delivery_customer."] { --glyph: url(icons/delivery_customer.svg); }
img[src*="images/icons/collection."] { --glyph: url(icons/collection.svg); }
img[src*="images/icons/collection_us."] { --glyph: url(icons/collection_us.svg); }
img[src*="images/icons/collection_customer."] { --glyph: url(icons/collection_customer.svg); }
/* jQuery UI sprite icons in page content (booking lines: move up/down, add line): the same line set */
#content :is(.ui-icon-circle-triangle-n, .ui-icon-circle-triangle-s, .ui-icon-circle-plus) {
    width: 16px;
    height: 16px;
    color: var(--ink-2);
    background: currentColor;
    -webkit-mask: var(--glyph) no-repeat center / contain;
    mask: var(--glyph) no-repeat center / contain;
}
#content .ui-icon-circle-triangle-n { --glyph: url(icons/up.svg); }
#content .ui-icon-circle-triangle-s { --glyph: url(icons/down.svg); }
#content .ui-icon-circle-plus { --glyph: url(icons/line_add.svg); }
#content .ui-icon-circle-plus[href*="bookingNewlineHeader"] { --glyph: url(icons/title_add.svg); }
#content .ui-icon-circle-plus:is([onclick*="addSubRow"], [href*="bookingNewSubline"]) { --glyph: url(icons/subline_add.svg); }
#content :is(.ui-icon-circle-triangle-n, .ui-icon-circle-triangle-s, .ui-icon-circle-plus) { margin: 2px 0; border-radius: 4px; }
#content a:hover:is(.ui-icon-circle-triangle-n, .ui-icon-circle-triangle-s, .ui-icon-circle-plus) { background-color: var(--accent); }
#content a:hover:is(.ui-icon-circle-triangle-n, .ui-icon-circle-triangle-s, .ui-icon-circle-plus) { color: var(--accent); }
/* status and destructive icons keep their meaning */
img[src*="images/icons/ok."] { color: var(--ok); }
img[src*="images/icons/notice."] { color: var(--warn); }
img[src*="images/icons/invoice_credit."] { color: var(--error-line); }
img:is([src*="images/icons/error."], [src*="images/icons/delete."], [src*="images/icons/delete_small."]) { color: var(--error-line); }

/* ---------- Page title row & top buttons ---------- */
#top {
    top: 98px;
    left: 20px;
    right: 20px;
    border-bottom: 0;
    background: transparent;
}
#top h1 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 32px;
    padding: 0;
}
#topmenu { top: 98px; right: 20px; height: 32px; }
#topmenu ul li, #topmenu-sub ul li { padding-top: 0; margin-left: 8px; }
#topmenu ul li span.sep { display: none; }
#content {
    margin: 140px 20px 0 20px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.35;
}
#topmenu-sub { border-color: var(--divider); }

/* ---------- Buttons ---------- */
.button, a.button {
    float: left;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}
.button span, li.back .button span, .button.btn-back span {
    float: none;
    padding: 0;
    background: none;
    color: inherit;
    font-size: 12px;
}
.button > span {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 28px;
    padding: 0 12px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}
.button span span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-weight: 600;
    color: inherit;
}
.button:hover > span { background: var(--accent-soft); }
.button:hover span span { color: inherit; }
.button span .icon, button.button span .icon { position: static; margin: 0; height: 14px; width: auto; display: inline-block; }
/* Back/close buttons: grey */
li.back .button > span, .button.btn-back > span {
    padding: 0 12px;
    border-color: transparent;
    background: var(--page);
    color: var(--ink-2);
}
li.back .button:hover > span, .button.btn-back:hover > span { background: #E4E9E7; }
/* on the grey page background the back button is white */
#topmenu li.back .button > span { border-color: var(--line); background: var(--surface); }
.form-dialog #topmenu li.back .button > span, .dialog #topmenu li.back .button > span { border-color: transparent; background: var(--page); }
#topmenu li.back .button:hover > span { background: #E4E9E7; }
li.back .button span span, .btn-back span span { padding-left: 0; }
/* The first action of a #topmenu (Opret ..., Gem og luk, Gem): filled accent */
#topmenu .button > span { height: 32px; }
.form-dialog #topmenu .button > span, .dialog #topmenu .button > span { height: 28px; }
#topmenu ul > li.item:first-child .button > span {
    height: 32px;
    padding: 0 16px;
    border-color: var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(19, 32, 29, .15);
}
#topmenu ul > li.item:first-child .button:hover > span { background: var(--accent-strong); border-color: var(--accent-strong); }
#topmenu ul li a img, #topmenu-sub ul li a img { margin: 0; }
/* Destructive actions (Slet ...: the delete icon or a delete handler): muted red outline with a trash icon, never the
   filled accent, even as the first #topmenu action */
.button:is(:has(img[src*="icons/delete"]), [onclick*="delete" i], [href*="action=delete"], [href*="task=delete"]) > span,
#topmenu ul > li.item:first-child .button:is(:has(img[src*="icons/delete"]), [onclick*="delete" i], [href*="action=delete"], [href*="task=delete"]) > span {
    border-color: var(--error-line);
    background: var(--surface);
    color: var(--error-text);
    box-shadow: none;
}
.button:is(:has(img[src*="icons/delete"]), [onclick*="delete" i], [href*="action=delete"], [href*="task=delete"]):hover > span,
#topmenu ul > li.item:first-child .button:is(:has(img[src*="icons/delete"]), [onclick*="delete" i], [href*="action=delete"], [href*="task=delete"]):hover > span { border-color: var(--error-line); background: var(--error-bg); }
.button:is(:has(img[src*="icons/delete"]), [onclick*="delete" i], [href*="action=delete"], [href*="task=delete"]) span .icon { display: none !important; }
.button:is(:has(img[src*="icons/delete"]), [onclick*="delete" i], [href*="action=delete"], [href*="task=delete"]) > span::before {
    content: '';
    width: 13px;
    height: 13px;
    margin-right: 5px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* plain <button>/<input type=submit> */
input[type=submit], input[type=button], button:not(.button):not(.ui-button):not(.ui-datepicker-trigger):not(.wio-ms *, .wio-ms-panel *, .wio-ss *) {
    height: 28px;
    padding: 0 12px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}
button.button { border: 0; padding: 0; height: auto; background: transparent; font: inherit; }
/* buttons side by side (Se alle e-mails, Se tidligere ordrer ...): a gap between them and below the row */
.button + .button { margin-left: 8px; }
.button.float-right + .button.float-right { margin-left: 0; margin-right: 8px; }
:not(li):has(> .button + .button) { margin-bottom: 8px; }
#content > div:first-child:has(> a.button + a.button) { float: none !important; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
#content > div:first-child:has(> a.button + a.button) > a.button { float: none; margin: 0 !important; }

/* Inline action links ("Rediger" ...) */
.action-link { background: none; padding: 0; color: var(--accent); font-weight: 500; white-space: nowrap; }
.action-link::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 3px;
    vertical-align: -2px;
    background: currentColor;
    -webkit-mask: url(icons/edit.svg) no-repeat center / contain;
    mask: url(icons/edit.svg) no-repeat center / contain;
}
/* a customer's "Bookinger" (viewHelper::listCustomer()): a list instead of the pencil */
.action-link.action-link-bookings::before { -webkit-mask-image: url(icons/list.svg); mask-image: url(icons/list.svg); }
.customer-actions { display: inline-flex; gap: 8px; white-space: nowrap; }

/* Side buttons next to a field (Opret kunde, Send mail, Send SMS) */
a.side-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    height: 26px;
    margin: 0 0 0 6px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}
a.side-button span { font-size: 11px; }
a.side-button:hover { border-color: var(--accent); color: var(--accent); }
a.side-button::before {
    content: '';
    width: 13px;
    height: 13px;
    background: currentColor;
    -webkit-mask: var(--side-icon) no-repeat center / contain;
    mask: var(--side-icon) no-repeat center / contain;
}
a.side-button-customer { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21c0-3.9 3.1-7 7-7 1.5 0 2.9.5 4 1.3M19 14v6M16 17h6'/%3E%3C/svg%3E"); }
a.side-button-mail { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
a.side-button-sms { --side-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }

/* ---------- Form fields ---------- */
input, textarea, select {
    font-family: var(--font);
    font-size: 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-sizing: border-box;
}
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=tel],
input[type=url], input:not([type]), select {
    height: 26px;
    padding: 0 6px;
}
/* closed selects: one chevron in every browser (the option list itself is drawn by the OS) */
select:not([multiple]):not([size]) {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235E6B67' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    cursor: pointer;
    min-width: 48px;
}
#topmenu select:not([multiple]):not([size]), #topmenu-sub select:not([multiple]):not([size]) { padding: 0 24px 0 8px; height: 28px; }
select[multiple], select[size] { height: auto; padding: 2px 4px; }
textarea { min-height: 42px; padding: 4px 8px; line-height: 1.4; }
input[type=checkbox], input[type=radio] {
    width: 13px;
    height: 13px;
    padding: 0;
    margin: 0 4px 0 0;
    vertical-align: -2px;
    accent-color: var(--accent);
}
input[type=file] { border: 0; background: transparent; height: auto; padding: 0; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-ring);
}
input[readonly]:focus { box-shadow: none; }
.input input, .input textarea, .input select { margin: 1px 4px 1px 0; }
/* layout.css gives inputs in form tables a grey gradient image */
.input input:not(.cost):not([type=checkbox]):not([type=radio]), .input textarea { background-image: none; background-color: var(--surface); }
input + .button, select + .button, textarea + .button { margin-left: 6px; }
.datePickerTable input.checkbox, .datePickerTable input[type=checkbox] { margin-left: 8px; }
/* the box and its text apart ("Fortløbende" follows its box without a space; layout.css zeroes #content .checkbox) */
label.check-option > input[type=checkbox], label.check-option > input[type=radio],
#content label.check-option > input[type=checkbox], #content label.check-option > input[type=radio] { margin-right: 5px; }
input.daterange { width: 180px; }
input.selection, input.selection:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
    height: auto;
    padding: 0;
    color: var(--muted);
    font-size: 11px;
}
input.cost { background: #FCEFD3; }
input.float { font-size: 12px !important; }
input.date-input { width: 88px; }
input.time { width: 58px; }
ul.tagit { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin: 3px 0; }
ul.tagit li.tagit-choice { background: var(--accent-soft); border: 0; border-radius: 999px; color: var(--accent); }
ul.tagit input[type=text] { height: 22px; border: 0; background: transparent; box-shadow: none; }

/* ---------- Search select (wioSearchSelect() in js/wioAutocomplete.js) ----------
   one box like the multiselect's: zoom icon, the chosen item as a chip with its whole text (wrapped over more lines
   when long; the search field then moves to a line of its own), the search field. The read-only input.selection
   stays in the form with a 1px box, so jQuery Validate still checks it and its label.error lands under the box */
.wio-ss { position: relative; display: inline-flex; flex-direction: column; width: min(100%, 340px); min-width: 200px; vertical-align: top; margin: 1px 4px 1px 0; }
.wio-ss > input.wio-ss-native {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.wio-ss-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    min-height: 26px;
    padding: 2px 3px 2px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    cursor: text;
    box-sizing: border-box;
    transition: border-color .12s, box-shadow .12s;
}
.wio-ss-control:hover { border-color: #C9D2CE; }
.wio-ss-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.wio-ss:has(> input.wio-ss-native.error) .wio-ss-control { border-color: var(--error-line); box-shadow: 0 0 0 3px #C4473F1F; }
.wio-ss > label.error { margin-top: 2px; }
.wio-ss-control > .wio-ss-icon { flex: none; margin: 0 1px 0 0; color: var(--muted); }
.wio-ss-chip {
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    max-width: calc(100% - 22px);
    padding: 2px 2px 2px 8px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    line-height: 16px;
    box-sizing: border-box;
    cursor: default;
}
.wio-ss-chip .wio-ss-text { padding-right: 6px; white-space: normal; overflow-wrap: anywhere; }
.wio-ss-chip .wio-ss-text:not(:last-child) { padding-right: 0; }
.wio-ss-chip > .wio-ss-clear {
    flex: none;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.wio-ss-chip > .wio-ss-clear::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wio-ss-chip > .wio-ss-clear:hover { background: var(--accent); color: #FFFFFF; }
.wio-ss-control > input.wio-ss-search, .wio-ss-control > input.wio-ss-search:focus {
    flex: 1 1 70px;
    width: 70px;
    min-width: 70px;
    height: 20px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.wio-ss-control > input.wio-ss-search::placeholder { color: var(--muted); }
/* nothing chosen: no chip; a choice is shown: the search field needs no placeholder */
.wio-ss-control.is-empty > .wio-ss-chip { display: none; }
.wio-ss-control:not(.is-empty) > input.wio-ss-search::placeholder { color: transparent; }

/* ---------- Multiselect (js/wioMultiselect.js over every <select multiple>) ----------
   chips for the chosen options in a field-like box, the options in a dropdown panel appended to <body> */
.wio-ms { position: relative; display: inline-flex; flex-direction: column; width: min(100%, 340px); min-width: 180px; vertical-align: top; margin: 1px 4px 1px 0; }
.wio-ms > select.wio-ms-native, select.wio-ms-native {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.wio-ms-control {
    position: relative;
    min-height: 26px;
    padding: 2px 26px 2px 3px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    cursor: text;
    box-sizing: border-box;
    transition: border-color .12s, box-shadow .12s;
}
.wio-ms-control:hover { border-color: #C9D2CE; }
.wio-ms.is-focused .wio-ms-control, .wio-ms.is-open .wio-ms-control { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.wio-ms:has(> select.error) .wio-ms-control { border-color: var(--error-line); box-shadow: 0 0 0 3px #C4473F1F; }
.wio-ms.is-disabled .wio-ms-control { background: var(--zebra); cursor: default; }
.wio-ms > label.error { order: 10; margin-top: 2px; }
.wio-ms-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-height: 20px; }
.wio-ms-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    height: 20px;
    padding: 0 2px 0 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    box-sizing: border-box;
}
.wio-ms-chip-remove {
    flex: none;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.wio-ms-chip-remove::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wio-ms-chip-remove:hover { background: var(--accent); color: #FFFFFF; }
.wio-ms .wio-ms-search, .wio-ms .wio-ms-search:focus {
    flex: 1 1 60px;
    width: 60px;
    min-width: 60px;
    height: 20px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.wio-ms .wio-ms-search::placeholder { color: var(--muted); }
/* data-compact="1" (grid filters): one line, the choice as the placeholder text instead of chips */
.wio-ms.is-compact { width: auto; min-width: 150px; max-width: 220px; }
.wio-ms.is-compact .wio-ms-chips { flex-wrap: nowrap; overflow: hidden; }
.wio-ms.is-compact.has-value .wio-ms-search::placeholder { color: var(--ink); }
.wio-ms.is-compact .wio-ms-search { text-overflow: ellipsis; }
.wio-ms-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    background: var(--muted);
    cursor: pointer;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wio-ms.is-open .wio-ms-toggle { transform: rotate(180deg); }
.wio-ms-panel {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: min(420px, calc(100vw - 16px));
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    box-sizing: border-box;
    font-size: 12px;
}
.wio-ms-list { max-height: 224px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.wio-ms-group { padding: 6px 8px 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.wio-ms-group:first-child { padding-top: 3px; }
.wio-ms-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 5px;
    color: var(--ink);
    line-height: 1.3;
    cursor: pointer;
}
.wio-ms-option.is-active { background: var(--accent-soft); }
.wio-ms-option .wio-ms-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wio-ms-box {
    flex: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    box-sizing: border-box;
    position: relative;
}
.wio-ms-option.is-active .wio-ms-box { border-color: var(--accent); }
.wio-ms-option.is-selected .wio-ms-box { border-color: var(--accent); background: var(--accent); }
.wio-ms-option.is-selected .wio-ms-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #FFFFFF;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 9px 9px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 9px 9px;
}
.wio-ms-empty { padding: 8px; color: var(--muted); font-size: 11px; }
.wio-ms-footer { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 5px 8px 2px; border-top: 1px solid var(--divider); }
.wio-ms-footer button {
    height: 22px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.wio-ms-footer button:hover { border-color: var(--accent); background: var(--accent-soft); }
.wio-ms-count { margin-left: auto; color: var(--muted); font-size: 11px; }

/* label-left / input-right form tables */
#content .label {
    width: 165px;
    padding: 7px 12px 0 0;
    border-top: 1px solid var(--divider);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    vertical-align: top;
}
#content .input {
    border-top: 1px solid var(--divider);
    background: transparent;
    color: var(--ink);
}
#content td.input { padding: 2px 0; }
#content td.input > b, #content td.input table b {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
}
#content .desc {
    padding: 0 12px 3px 0;
    font-style: normal;
    font-size: 11px;
    line-height: 1.3;
    color: var(--muted);
    vertical-align: top;
}
#content .desc * { font-size: 11px; }
/* checkbox lists (categories, themes: a label.check-list-item + <br> per item, a few items per cell; only those,
   not any table with a labelled checkbox such as the booking dates' "Fortløbende"): the page's cells are
   dissolved and every label flows, in order, down one set of equal columns as many as fit the width, so the
   list reads top to bottom and left to right and the columns line up (not cells wrapping into ragged bands);
   a name longer than its column is cut with "…" (the page puts the whole name in the label's title) */
#content td.input table:has(td > label.check-list-item) { display: block; width: auto; }
#content td.input table:has(td > label.check-list-item) > tbody { display: block; }
#content td.input table:has(td > label.check-list-item) > tbody > tr {
    display: block;
    padding-top: 2px;
    column-width: 14em;
    column-gap: 18px;
}
#content td.input table:has(td > label.check-list-item) > tbody > tr > td { display: contents; }
#content td.input table:has(td > label.check-list-item) > tbody > tr > td > br { display: none; }
#content td.input table:has(td > label.check-list-item) label.check-list-item {
    display: block;
    break-inside: avoid;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* forms laid out in three or more columns (factor table: the same help text on every row): one line each */
#content form > table > tbody > tr:has(> td:nth-child(3) > table td.label) td.label { width: auto; white-space: nowrap; }
#content form > table > tbody > tr:has(> td:nth-child(3) > table td.label) td.desc {
    max-width: 210px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#content tr:first-child > :is(td.label, td.input, td.reg) { border-top-color: transparent; }
#content .reg {
    padding: 6px 0 0 4px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    vertical-align: top;
    width: 12px;
}
#content .spacer { height: auto; padding: 8px 0 2px; }
#content .spacer h2, #content td.spacer h2 { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink); }
#content .inputEdit { background: var(--zebra); border-top: 1px solid var(--divider); color: var(--ink); }
#content .input .radio { background: transparent; color: var(--ink); font-size: 12px; }
/* a radio's or checkbox's text is its <label> (html::radio(), html::checkBox(), the lists and type dialogs): clicking it selects it */
label.check-option, label.check-option input, td.label > label[for] { cursor: pointer; }
#content .last { padding: 6px 0; }
.label { color: var(--ink-2); font-size: 12px; }

/* errors */
input.error, textarea.error, select.error {
    border-color: var(--error-line);
    box-shadow: 0 0 0 3px #C4473F1F;
}
label.error, span.error {
    color: var(--error-text);
    font-size: 11px;
    font-weight: 600;
}
#error ul { color: var(--error-text); }

/* ---------- Messages ---------- */
.message-wrap {
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px 6px 32px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background-position: 10px 50%;
    background-size: 14px 14px;
    box-shadow: var(--shadow-card);
}
.message-error { background-color: var(--error-bg); color: var(--error-ink); }
.message-success { background-color: #DDF0E4; color: #14532D; }
.message-notice { background-color: #FCEFD3; color: #7A4A06; }
.message-guide { background-color: var(--accent-soft); color: var(--ink); }
/* message icons: the line set in the message colour instead of layout.css's PNG backgrounds */
.message-wrap:is(.message-error, .message-success, .message-notice, .message-guide) { background-image: none; }
.message-wrap:is(.message-error, .message-success, .message-notice, .message-guide)::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    background: currentColor;
    -webkit-mask: var(--msg-icon) no-repeat center / contain;
    mask: var(--msg-icon) no-repeat center / contain;
}
.message-error { --msg-icon: url(icons/error.svg); }
.message-success { --msg-icon: url(icons/ok.svg); }
.message-notice, .message-guide { --msg-icon: url(icons/notice.svg); }
.fixed-message {
    border: 0;
    border-radius: 8px;
    background-color: var(--accent-soft);
    font-size: 12px;
    color: var(--ink);
}
.fixed-message.notice { background-color: #FCEFD3; color: #7A4A06; }

/* ---------- Tabs (jQuery Tools) ---------- */
ul.tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    height: auto;
    padding: 3px !important;
    border: 0;
    border-radius: 999px;
    background: var(--page);
}
ul.tabs li { float: none; }
ul.tabs a {
    float: none;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 500;
    top: 0;
}
ul.tabs a:hover { background: var(--surface); color: var(--ink); }
ul.tabs a.current { background: var(--accent); color: #FFFFFF; font-weight: 600; border: 0; }
ul.tabs a span.tab-count {
    font-size: 10px;
    font-weight: 600;
    padding: 0 6px;
    line-height: 15px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
}
ul.tabs a.current span.tab-count { background: rgba(255, 255, 255, .25); color: #FFFFFF; }
li.shop-tab a { background: #E4E9E7; color: var(--ink-2); }
/* the first pane shows before jQuery Tools' tabs() runs (layout.css hides every pane until then), so a form with tabs
   has its final shape from the first paint and nothing below it jumps down when the script opens that pane; tabs()
   then shows and hides the panes inline, as before */
div.panes > div.pane:first-of-type { display: block; }
.panes div.pane {
    margin-top: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

/* Form section boxes: each column table of a form or pane; a form without tabs is a white card on pages */
#content > form:has(> table td.label) {
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.form-dialog #content > form:has(> table td.label) { padding: 0; box-shadow: none; border-radius: 0; }
#content > form > table > tbody > tr > td > table:has(td.label),
.panes div.pane > table > tbody > tr > td > table:has(td.label) {
    background: var(--zebra);
    border-radius: 10px;
    padding: 2px 12px 4px;
    border-collapse: separate;
}
#content > form > table > tbody > tr > td:has(> table td.label),
.panes div.pane > table > tbody > tr > td:has(> table td.label) { padding: 0 12px 6px 0; }
#content > form > table > tbody > tr > td:has(> table td.label):last-child,
.panes div.pane > table > tbody > tr > td:has(> table td.label):last-child { padding-right: 0; }

/* ---------- Grids ---------- */
div.grid-container {
    box-sizing: border-box; /* width:100% (layout.css) includes the themes' card border: else 2px too wide and grid-wrapper scrolls */
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}
table.grid { border: 0; border-collapse: separate; border-spacing: 0; }
table.grid th, table.grid td.inline-header {
    padding: 8px 8px 4px 10px;
    border: 0;
    background: var(--accent-soft);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}
table.grid th * { font-size: 11px; }
table.grid th a { color: var(--ink-2); font-weight: 600; padding: 0; }
table.grid th a:hover { color: var(--accent); }
table.grid th a.sort { color: var(--accent); }
table.grid th img { margin-left: 4px; vertical-align: -2px; }
table.grid th a.sort:has(img[src$="ASC.png"]) img, table.grid th a.sort:has(img[src$="DESC.png"]) img { display: none; }
table.grid th a.sort:has(img[src$="ASC.png"])::after { content: ' \2191'; }
table.grid th a.sort:has(img[src$="DESC.png"])::after { content: ' \2193'; }
table.grid th input { border: 0; }
table.grid td.inline-header { padding: 8px 10px; font-size: 12px; color: var(--ink); background: var(--accent-soft); }
table.grid td.filter {
    padding: 2px 6px 8px 10px;
    border: 0;
    background: var(--accent-soft);
    color: var(--ink);
    vertical-align: top;
}
table.grid td.filter input, table.grid td.filter select, table.grid td.filter textarea {
    height: 26px;
    border: 0;
    border-radius: 6px;
    background-color: var(--surface);
}
table.grid td.filter input:focus, table.grid td.filter select:focus { box-shadow: 0 0 0 2px var(--accent-ring); }
table.grid td.filter img { margin: 6px 4px 0 0; }
/* a checkbox filter (grid::addCheckboxFilter()): the box and its text on one line, as tall as the other filters */
table.grid td.filter label.check-option { display: inline-flex; align-items: center; height: 26px; white-space: nowrap; }
table.grid td.filter label.check-option > input[type=checkbox] { width: auto; height: auto; margin: 0 5px 0 0; }
/* a grid filter dropdown with a choice made is yellow, so the active filters stand out */
table.grid td.filter select:has(option:checked:not([value=""])),
table.grid td.filter .wio-ms.has-value .wio-ms-control { background-color: var(--filter-active); }
table.grid td.filter .wio-ms .wio-ms-search { background-color: transparent; }
/* inputs inside data rows (prices, quantities): smaller, so rows stay as dense as before */
table.grid td:not(.filter) input:not([type=checkbox]):not([type=radio]):not([type=file]), table.grid td:not(.filter) select { height: 22px; padding: 0 4px; }
table.grid td:not(.filter) select:not([multiple]):not([size]) { padding-right: 22px; background-position: right 6px center; }
table.grid td:not(.filter) :is(input.float, input.int) { padding: 0 3px; }
/* rows hold several lines (booking, customer, actions): tighter leading keeps today's rows per screen */
table.grid td {
    padding: 5px 8px 5px 10px;
    color: var(--ink);
    line-height: 1.3;
}
table.grid td.cell-first, table.grid td.cell-second {
    border: 0;
    border-top: 1px solid var(--divider);
}
/* zebra without specificity: colour classes passed to gridCell() (forecast-*, cell-error ...) keep their background */
:where(table.grid tr:not(:has(> td.cell-first)) > td.cell-second) { background-color: var(--zebra); }
/* not on the hovered row or cell: the hover colour runs across the whole row */
table.grid tr:not(.grid-row-over):not(:has(> td.cell-first)) > td.cell-second.grid-cell-clickable:not(.grid-cell-clickable-over) { background-color: var(--zebra); }
table.grid td.grid-cell-clickable { background-image: none; }
table.grid td.grid-cell-clickable-over { background: var(--accent-soft); }
table.grid tr.grid-row-over td, table.grid tr.grid-row-over { background-color: var(--accent-soft); }
table.grid td.row-full { border-bottom: 0; border-top: 1px solid var(--divider); }
table.grid td.sub { background: #FCEFD3; color: #5E3A05; font-weight: 600; }
div.grid-results { font-weight: 400; color: var(--muted); font-size: 11px; }
div.grid-pagesize { float: left; line-height: 28px; font-size: 11px; color: var(--muted); }
div.grid-pagesize select { width: auto; min-width: 0; padding-top: 1px; padding-bottom: 1px; margin-left: 4px; margin-right: 4px; }
table.grid td.pagnition {
    padding: 8px 14px;
    background: var(--surface);
    border-top: 1px solid #E6EBE9;
    color: var(--muted);
    text-align: right;
}
table.grid td.pagnition a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-left: 2px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--page);
    color: var(--ink-2);
    font-size: 11px;
}
table.grid td.pagnition a:hover { background: var(--accent-soft); color: var(--accent); }
a.grid-active-page, table.grid td.pagnition a.grid-active-page {
    background: var(--accent);
    color: #FFFFFF !important;
    font-weight: 600;
}
table.grid td.empty-grid { padding: 14px 10px; border-top: 0; color: var(--muted); font-weight: 500; }
table.grid tr:has(> td.row-full > div.grid-results:empty) { display: none; }
.booking-options { border-top: 1px solid var(--divider); margin-top: 3px; padding-top: 3px; }
td.subline { background-color: var(--zebra); }
.total-list, .price-display-total { font-weight: 600; }
.currency, .price-display, .total-list, td.value { font-variant-numeric: tabular-nums; }

/* ---------- Report tables (table.chart-table under the report charts) ---------- */
table.chart-table {
    margin-top: 12px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
table.chart-table th.chart-label, table.chart-table tr:first-child > td.legend {
    padding: 8px 6px 6px;
    border: 0;
    background: var(--accent-soft);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600 !important;
    text-align: right;
}
table.chart-table td.value, table.chart-table td.legend {
    padding: 5px 6px;
    border: 0;
    border-top: 1px solid var(--divider);
    line-height: 1.3;
}
table.chart-table td.value { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.chart-table td.legend { padding-left: 12px; font-weight: 600; -webkit-text-fill-color: var(--ink); }
table.chart-table td.legend:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
}
table.chart-table td.value:last-child, table.chart-table th.chart-label:last-child { padding-right: 12px; }
table.chart-table tr:nth-child(odd) > td.value, table.chart-table tr:nth-child(odd) > td.legend { background: var(--zebra); }
table.chart-table tr:first-child > td.legend { background: var(--accent-soft); }
/* the year totals */
table.chart-table td.master {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--accent-soft) !important;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Dashboard & boxes ---------- */
/* dashboard cards: header + white body; the day overview fills its card */
div.fp-item {
    margin: 0 12px 12px 0;
    padding: 0 10px 8px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    box-sizing: border-box;
}
td:last-child > div.fp-item, div.fp-item-last { margin-right: 0; }
/* the dashboard's three columns (pages/frontpage/*.php): fixed shares of the width, whatever their cards hold;
   with the calendar on the left (fp_calendar) that column is the widest */
.dashboard-columns { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr) minmax(360px, 1fr); gap: 12px; align-items: start; }
.dashboard-columns.with-calendar { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(360px, 1fr); }
.dashboard-col { min-width: 0; }
.dashboard-columns div.fp-item { margin-right: 0; }
/* the day overview scrolls only when the window is full; its cards wrap instead of widening the column */
.dashboard-columns div.locations { max-height: max(500px, calc(100vh - 320px)); }
.dashboard-columns div.locations ul { float: none; }
.dashboard-columns div.locations :is(.booking, .customer) { white-space: normal; }
/* "Ledige produkter": the period's end wraps under its start when the column is narrow */
.dashboard-columns #dayform table.datePickerTable { width: auto !important; }
.dashboard-columns #dayform table.datePickerTable > tbody > tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
/* the day overview's heading: ‹ day › and "I dag" when another day is shown (pages/frontpage/admin/dayoverview.php) */
h1.day-nav { display: flex; align-items: center; gap: 6px; }
h1.day-nav .action-link { margin-left: auto; }
h1.day-nav a.day-nav-arrow { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
    border-radius: 6px; font-size: 18px; line-height: 1; color: var(--ink-2); text-decoration: none; }
h1.day-nav a.day-nav-arrow:hover { background: var(--accent-soft); color: var(--accent); }
h1.day-nav a.day-nav-today { font-size: 12px; font-weight: 500; color: var(--accent); }
/* a card's top: what happens (delivery out in the accent, collection back in amber) and at what time */
div.locations td.location-head { padding: 2px 2px 4px; }
div.locations .location-badge { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 2px; border-radius: 999px;
    font-weight: 600; font-size: 12px; }
div.locations .location-badge.location-out { color: var(--accent); background: var(--accent-soft); }
div.locations .location-badge.location-in { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
div.locations .location-time { margin-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* the lines: a line with 0 is greyed */
div.locations .equipment-line-zero { opacity: .55; }
div.fp-item .selector { margin: 0 -10px 8px; }
/* grids and stat tiles inside a dashboard card run edge to edge, right under the card header */
div.fp-item:has(.grid-wrapper, > table.grid, > .dashboard-stats-table) .selector { margin-bottom: 0; }
div.fp-item .grid-wrapper { margin-left: -10px; margin-right: -10px; }
div.fp-item > table.grid { width: calc(100% + 20px); margin: 0 -10px; }
div.fp-item:has(> .grid-container) .selector { margin-bottom: 0; }
div.fp-item > .grid-container { width: calc(100% + 20px); margin: 0 -10px; }
#content div.fp-item td.label { width: auto; white-space: nowrap; }
div.fp-item .dashboard-stats-table { width: calc(100% + 20px); margin: 0 -10px; box-shadow: none; border-radius: 0; }
div.fp-item div.grid-container { box-shadow: none; border-radius: 0; }
div.fp-item div.locations { width: auto; box-sizing: border-box; }
/* a grid's header row is not part of the card header: only the title is tinted, so every card's banner has the same height */
div.fp-item table.grid th { background: var(--surface); border-bottom: 1px solid var(--divider); }
/* a grid cell that stays on one line (dates, amounts: grid::gridCell($id, …, 'nowrap')) */
table.grid td.nowrap { white-space: nowrap; }
/* the magnifier's popup with a booking's lines (booking::bookingOptions(), js/js.js) */
.booking-lines-tip { max-width: 420px; }
.booking-lines-tip .ui-tooltip-content { font-size: 12px; line-height: 1.5; white-space: nowrap; }
.booking-lines-tip .booking-lines-sub { padding-left: 14px; color: var(--muted); }
/* the copy icon's start date question (bookingCopy(), js/js.js) */
.booking-copy-dialog h2 { margin: 0 0 12px; font-size: 15px; }
.booking-copy-dialog label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.booking-copy-dialog input.booking-copy-start { width: 180px; }
div.locations { border-color: var(--divider); border-radius: 10px; scrollbar-width: thin; scrollbar-color: #C9D2CE transparent; }
div.locations ul li { border-color: var(--line); border-radius: 8px; }
div.locations .booking, div.locations .customer { border-color: var(--divider); border-style: solid; }
div.locations .method { background: var(--zebra); }
div.locations .equipment { background: #FCEFD3; color: #5E3A05; border-radius: 0 0 6px 6px; }
/* the dashboard's day overview (bookingoverview::showDeliveriesAndCollections()): the card itself is the frame, so the
   list has none; each activity a light card with a stripe in its direction's colour (out accent, in amber), booking and
   customer side by side without the dotted boxes, the lines a calm list in columns instead of an amber block */
div.fp-item div.locations { border: 0; border-radius: 0; padding: 0 2px 0 0; }
div.fp-item .locations-count { display: block; padding: 6px 0 2px; font-weight: 500; font-size: 11px; color: var(--muted); }
div.fp-item .locations-download { display: flex; align-items: center; gap: 6px; padding: 8px 0 2px; color: var(--muted); font-size: 11px; }
div.fp-item div.locations ul li { margin: 8px 0 0; padding: 8px 10px 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); }
div.fp-item div.locations ul li:has(.location-out) { box-shadow: inset 3px 0 0 var(--accent); }
div.fp-item div.locations ul li:has(.location-in) { box-shadow: inset 3px 0 0 var(--warn); }
div.fp-item div.locations .location > table { border-collapse: collapse; }
div.fp-item div.locations :is(.booking, .customer) { width: 50%; padding: 6px 0 4px; border: 0; vertical-align: top; line-height: 1.45; }
div.fp-item div.locations .customer { padding-left: 14px; }
div.fp-item div.locations .booking-options { border-top: 0; margin-top: 4px; padding-top: 0; }
div.fp-item div.locations .address { margin-top: 4px; padding: 6px 0 0; border-top: 1px solid var(--divider); color: var(--ink-2); line-height: 1.45; }
div.fp-item div.locations td.equipment { padding: 0; background: none; color: var(--ink); border-radius: 0; }
div.fp-item div.locations .equipment-lines { columns: 2 240px; column-gap: 24px; margin-top: 8px; padding: 6px 10px; border-radius: 8px;
    background: var(--zebra); box-shadow: inset 0 0 0 1px var(--divider); line-height: 1.6; }
div.fp-item div.locations .equipment-line { break-inside: avoid; font-variant-numeric: tabular-nums; }
div.fp-item div.locations .equipment-line b { color: var(--accent); }
/* "Aktiviteter" (pages/frontpage/admin/bookings.php, order/bookings.php): a day is a tinted band, the booking cell wide enough for its icons */
div.fp-item table.grid td.fp-day { padding: 0; background: var(--zebra); border-bottom: 1px solid var(--divider); }
div.fp-item h2.fp-day { margin: 0; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
div.fp-item table.grid td.fp-booking { width: 50%; }
div.fp-item table.grid td.fp-booking .booking-options { border-top: 0; }
/* a booking's icons in the dashboard's cards: tight hit areas in one row with "Rediger" (the &nbsp; between them dropped) */
div.fp-item :is(div.locations, td.fp-booking) .booking-options { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 0; }
div.fp-item :is(div.locations, td.fp-booking) .booking-options > a { display: inline-flex; padding: 4px; border-radius: 6px; font-size: 12px; }
div.fp-item :is(div.locations, td.fp-booking) .booking-options > a img.icon { margin: 0; padding: 0; }
div.fp-item :is(div.locations, td.fp-booking) .booking-options > a:hover { background: var(--accent-soft); }
div.fp-item :is(div.locations, td.fp-booking) .booking-options > a.action-link { margin-left: 4px; padding: 3px 4px; }
/* the dashboard's main action (Opret booking) is filled, like the first action of other pages' #topmenu */
#topmenu ul > li.primary .button > span { padding: 0 16px; border-color: var(--accent); background: var(--accent); color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(19, 32, 29, .15); }
#topmenu ul > li.primary .button:hover > span { background: var(--accent-strong); border-color: var(--accent-strong); }
#topmenu ul > li.primary .button span .icon { filter: brightness(0) invert(1); }
.dashboard-stats-table { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); margin-bottom: 12px; }
.dashboard-stats-table td { padding: 14px 20px; }
.dashboard-stats-table tr:first-child td { border-bottom-color: var(--divider); }
.dashboard-stats-table td:first-child { border-right-color: var(--divider); }
.metric { margin: 0 8px 8px 0; }
/* calendar (fullcalendar) */
.fc-header .fc-button-effect { display: none; }
.fc-header .fc-button { margin: 0 4px 0 0; border: 0; background: none; }
.fc-header .fc-button .fc-button-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 28px;
    min-width: 28px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line) !important;
    border-radius: 999px;
    background: var(--surface) !important;
    color: var(--ink-2) !important;
}
.fc-header .fc-button-prev .fc-button-inner, .fc-header .fc-button-next .fc-button-inner { padding: 0; width: 28px; }
.fc-header .fc-button .fc-button-content { padding: 0; line-height: 26px; font-size: 12px; font-weight: 500; }
.fc-header .fc-state-hover .fc-button-inner { background: var(--accent-soft) !important; color: var(--accent) !important; }
.fc-header .fc-state-active .fc-button-inner { border-color: var(--accent) !important; background: var(--accent) !important; color: #FFFFFF !important; font-weight: 600; }
.fc-header .fc-state-disabled .fc-button-inner { opacity: .45; }
.fc-header-right .fc-button { margin: 0 0 0 4px; }
/* prev/next: chevrons from the icon set instead of the ◄ ► characters (they render at different sizes) */
.fc-header :is(.fc-button-prev, .fc-button-next) .fc-button-content { font-size: 0; width: 16px; height: 16px; }
.fc-header :is(.fc-button-prev, .fc-button-next) .fc-button-content::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--glyph) no-repeat center / contain;
    mask: var(--glyph) no-repeat center / contain;
}
.fc-header .fc-button-prev .fc-button-content::before { --glyph: url(icons/prev.svg); }
.fc-header .fc-button-next .fc-button-content::before { --glyph: url(icons/next.svg); }
/* inside a dashboard card the calendar is not a card of its own */
div.fp-item .fc { padding: 8px 0 0; border-radius: 0; box-shadow: none; background: transparent; }
.fc { padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card); }
.fc-widget-header, .fc-widget-content { border-color: var(--divider); }
.fc-state-highlight { background: var(--accent-soft); }
.fc-header .fc-button { margin-right: 4px; }
.fc-header .fc-button-inner, .fc-header .fc-state-default .fc-button-inner {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
}
.fc-header .fc-state-active .fc-button-inner { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
.fc-header .fc-state-hover .fc-button-inner { background: var(--accent-soft); }
.fc-header .fc-button-content { line-height: 26px; font-size: 12px; }
.fc-header-title h2 { font-size: 14px; }
div.fp-item .selector, ul.week-overview-days .selector, table.render-table h2 {
    padding: 7px 12px;
    border-radius: 10px 10px 0 0;
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
}
div.fp-item .selector a.action-link { color: var(--accent); }
/* layout editor (booking_layout): edit/delete centred at the right of each field row, not floated up over its border
   (layout.css's margin-top: -7px was made for the small PNGs) */
table.render-table .sortable li { display: flex; align-items: center; }
table.render-table .sortable li > a { display: flex; flex: none; }
table.render-table .sortable li > a:first-of-type { margin-left: auto; padding-left: 6px; }
table.render-table .sortable li > a span { display: flex; }
table.render-table .sortable li img { float: none; margin: 0 3px; }
div.selector { padding: 6px 0; border-color: var(--divider); border-style: solid; border-width: 1px 0; }
/* instruction headings with an action button (Ikke krediterede faktura, Ikke faktureret ...) */
div.selector h1, div.selector h2 { margin: 0; font-size: 13px; font-weight: 500; line-height: 28px; }
div.selector h1 .button, div.selector h2 .button { margin: 0 12px 0 0; }
div.selector h1 .button.float-right, div.selector h2 .button.float-right { margin: 0 0 0 12px; }
div.selector h1::after, div.selector h2::after { content: ''; display: block; clear: both; }
.boxhead {
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(19, 32, 29, .2);
}
.boxcontent { border-color: var(--line); color: var(--ink); font-size: 12px; }
.metric { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-card); }
.metric-name { color: var(--muted); }
.metric-value { color: var(--accent); font-weight: 600; }
ul.background-tasks li, ul.shortcuts li, ul li.ui-menu-item { border-color: var(--divider); }
.popHead { background-color: #FCEFD3; }
.tooltip { border-radius: 10px; box-shadow: var(--shadow-pop); color: var(--ink); }
div.item-header { background: var(--accent-soft); border: 0; border-radius: 8px; }
.calculator-container, div.chart-area, div.locations { border-color: var(--line); border-radius: 10px; }
.dashboard-stats-table td .d-number { font-weight: 600; }
/* a year's +/- against the year before, under its total (report&board=bookings) */
.dashboard-stats-table td .d-diff { margin-top: 6px; font-size: 14px; font-weight: 600; }
.dashboard-stats-table td .d-diff .d-diff-label { font-weight: 400; font-size: 12px; color: var(--muted); }
/* the all-years total after the years' cards */
.dashboard-stats-table td.d-all-years { border-left: 1px solid var(--divider); background: var(--accent-soft); }
.dashboard-stats-table td.d-all-years .d-number { color: var(--ink); }
/* Dashboard "Ordreværdi" (pages/frontpage/admin/ordervalue.php): one figure per row */
div.fp-item.ordervalue .dashboard-stats-table { width: calc(100% + 20px); margin: 0 -10px; box-shadow: none; border-radius: 0; }
div.fp-item.ordervalue .dashboard-stats-table td { border-right: 0; text-align: left; padding: 8px 10px; }
div.fp-item.ordervalue .d-number { font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
div.fp-item.ordervalue .d-number a { color: inherit; font: inherit; text-decoration: none; }
div.fp-item.ordervalue .d-number a:hover { text-decoration: underline; }
div.fp-item.ordervalue .dashboard-stats-table tr:not(:last-child) td { border-bottom: 1px solid var(--divider); }
div.fp-item.ordervalue .d-desc { text-transform: none; font-size: 11px; color: var(--muted); margin-top: 1px; }
div.fp-item.ordervalue .d-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
div.fp-item.ordervalue .d-sub b { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
div.fp-item.ordervalue .ordervalue-note { font-size: 11px; color: var(--muted); padding: 2px 0 4px; }

/* ---------- jQuery UI (dialogs, datepicker, autocomplete) ---------- */
.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: var(--font); }
.ui-widget { font-size: 12px; }
.ui-widget-content { border-color: var(--line); background: var(--surface); color: var(--ink); }
.ui-widget-content a { color: var(--ink-2); }
.ui-widget-header { border: 0; background: var(--accent); color: #FFFFFF; font-weight: 600; }
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-weight: 500;
}
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover,
.ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
}
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #FFFFFF; }
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    border: 1px solid #F0D9A8;
    background: #FCEFD3;
    color: #5E3A05;
}
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {
    border: 1px solid var(--error-line);
    background: var(--error-bg);
    color: var(--error-ink);
}
.ui-corner-all { border-radius: 6px !important; }
.ui-widget-overlay { background: rgb(19, 32, 29); opacity: .32; }

/* Dialogs (formDialog: non-modal, so the dimming is the dialog's own shadow) */
.ui-dialog {
    padding: 0;
    border: 0;
    border-radius: 16px !important;
    background: var(--surface);
    box-shadow: 0 28px 72px rgba(19, 32, 29, .32), 0 0 0 100vmax rgba(19, 32, 29, .32);
}
.ui-dialog .ui-dialog-content { padding: 0 16px 10px; background: transparent; }
.ui-dialog .ui-dialog-titlebar {
    display: block;
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 300;
    padding: 0;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
}
.ui-dialog .ui-dialog-title { display: none; }
.ui-dialog .ui-dialog-titlebar-close {
    position: static;
    margin: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%233A4744' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center;
    display: block;
}
.ui-dialog .ui-dialog-titlebar-close:hover { background-color: #E4E9E7; }
.ui-dialog .ui-dialog-titlebar-close span { display: none; }
.ui-dialog .ui-dialog-buttonpane { border: 0; padding: 6px 16px 10px; }
.dialog #top, .form-dialog #top { top: 8px; left: 16px; right: 16px; }
.dialog #top h1, .form-dialog #top h1 { font-size: 14px; line-height: 28px; }
.dialog #topmenu, .form-dialog #topmenu { top: 8px; right: 46px; height: 28px; }
.form-dialog #topmenu ul > li.item:first-child .button > span { height: 28px; padding: 0 14px; box-shadow: none; }
/* the booking (order) dialog uses the screen width, its line texts grow with it (!important: jQuery UI sets an
   inline width:auto on the dialog content) */
.form-dialog:has(form.booking-form) { width: min(1800px, calc(100vw - 60px)) !important; }
form.booking-form #booking-lines textarea { width: 100% !important; min-width: 200px; box-sizing: border-box; }
.booking-lines-tools { display: flex; justify-content: flex-end; margin: 8px 0; }
.dialog #content, .form-dialog #content { margin: 44px 0 0 0; float: left; width: 100%; }
.dialog .message-wrap, .form-dialog .message-wrap {
    position: relative;
    transform: none;
    margin: 40px 0 -36px;
    box-shadow: none;
}
.form-dialog .panes div.pane { margin-top: 6px; padding: 0; box-shadow: none; border-radius: 0; }
.form-dialog div.grid-container { box-shadow: none; border: 1px solid var(--divider); }
#fancybox-content #top { top: 8px; }
#fancybox-content #content { margin-top: 44px; }

/* Belægning (report_forecast): availability in soft theme colours, same meaning as before */
table.grid td.forecast-free { background: #D9F0E2; color: #14532D; }
table.grid td.forecast-partial { background: #FCE3C4; color: #7A4A06; }
table.grid td.forecast-booked { background: #F6D3CF; color: #8C2F28; }
table.grid td.forecast-over { background: #EADCF5; color: #5B2A86; font-weight: 600; }

/* Datepicker */
.ui-datepicker { padding: 6px; border-radius: 12px !important; box-shadow: var(--shadow-pop); border: 0; }
.ui-datepicker .ui-datepicker-header { border-radius: 8px !important; }
.ui-datepicker td a, .ui-datepicker td span { text-align: center; border-radius: 6px !important; }

/* Autocomplete */
ul.ui-autocomplete {
    min-width: 300px;
    max-height: 380px;
    padding: 4px;
    border: 0;
    border-radius: 12px !important;
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    scrollbar-width: thin;
    scrollbar-color: #C9D2CE transparent;
}
ul.ui-autocomplete li.ui-menu-item { border: 0; }
ul.ui-autocomplete li.ui-menu-item + li.ui-menu-item { border-top: 1px solid var(--divider); }
.ui-menu .ui-menu-item a {
    display: block;
    margin: 1px 0;
    padding: 5px 8px;
    border: 0;
    border-radius: 8px !important;
    color: var(--ink-2);
    font-size: 11px;
    line-height: 1.35;
}
.ui-menu .ui-menu-item a::first-line { color: var(--ink); font-size: 12px; font-weight: 600; }
.ui-menu .ui-menu-item a b, .ui-menu .ui-menu-item a strong { color: var(--muted); font-size: 11px; font-weight: 500; }
.ui-menu .ui-menu-item a.ui-state-hover, .ui-menu .ui-menu-item a.ui-state-active, .ui-menu .ui-menu-item a.ui-state-focus {
    margin: 1px 0;
    border: 0;
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 400;
}

/* Time picker (jquery.timePicker: booking start/end time) */
div.time-picker {
    width: 72px;
    height: 220px;
    margin-top: 4px;
    padding: 4px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    scrollbar-width: thin;
    scrollbar-color: #C9D2CE transparent;
}
div.time-picker-12hours { width: 88px; }
div.time-picker li {
    padding: 3px 8px;
    border: 0;
    border-radius: 6px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
div.time-picker li:hover { background: var(--accent-soft); color: var(--ink); }
div.time-picker li.selected { background: var(--accent); color: #FFFFFF; font-weight: 600; }

/* ---------- Login page (login.php): the RentalTrax look of the website ----------
   Two halves: the brand side (ink, the RentalTrax name, the promise, green waves drifting along the bottom) and the
   form on a white card on the off-white page. Phones: the brand side is a short band above the form. The form keeps
   its table (label/input rows, buttons row), so the login, the forgotten password and the OAuth consent work as before. */
body.login-page { --accent: #2F7A5B !important; --accent-strong: #24614A !important; --accent-ring: #2F7A5B24 !important;
    margin: 0; min-height: 100vh; background: var(--page); }
body.login-page, body.login-page :is(h1, h2, p, td, input, button, a, span, div) { font-family: var(--font); }
body.login-page td.login-app { text-align: center !important; width: 100%; box-sizing: border-box; padding-top: 14px; font-size: 13px; }
body.login-page td.login-app :is(a, strong) { font-size: inherit; color: var(--accent); }
body.login-page .login-shell { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); min-height: 100vh; }

/* the brand side */
body.login-page .login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 56px 56px;
    background: radial-gradient(120% 90% at 0% 0%, #34443F 0%, var(--ink) 55%, #1C2623 100%);
    color: #F1F3F2;
}
body.login-page .login-brand-logo { position: relative; z-index: 1; display: block; width: 173px; height: 40px; }
body.login-page .login-brand-text { position: relative; z-index: 1; margin-bottom: 18vh; }
body.login-page .login-brand-text h2 {
    margin: 0 0 18px;
    max-width: 12em;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -.035em;
    color: #FFFFFF;
}
body.login-page .login-brand-text h2 span { color: #9ED4B8; font-size: inherit; letter-spacing: inherit; font-weight: inherit; }
body.login-page .login-brand-text p { margin: 0; max-width: 30em; font-size: 15px; line-height: 1.55; color: #B3BFBA; }
/* three layers of green waves at different speeds */
body.login-page .login-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; pointer-events: none; overflow: hidden; }
body.login-page .login-waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: login-wave 34s linear infinite; }
body.login-page .login-waves svg:nth-child(2) { height: 80%; animation-duration: 24s; animation-direction: reverse; }
body.login-page .login-waves svg:nth-child(3) { height: 58%; animation-duration: 17s; }
body.login-page .login-waves .wave-1 { fill: rgba(158, 212, 184, .10); }
body.login-page .login-waves .wave-2 { fill: rgba(47, 122, 91, .45); }
body.login-page .login-waves .wave-3 { fill: rgba(47, 122, 91, .85); }
@keyframes login-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { body.login-page .login-waves svg { animation: none; } }

/* the form side */
body.login-page .login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px 24px; }
body.login-page #login {
    position: static;
    width: 400px;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 36px 36px 26px;
    box-sizing: border-box;
    border: 1px solid var(--divider);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(19, 32, 29, .05), 0 24px 60px -16px rgba(19, 32, 29, .22);
    font-size: 14px;
}
body.login-page .login-title { margin: 0 0 4px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
body.login-page .login-sub { margin: 0 0 26px; font-size: 14px; color: var(--muted); min-height: 1em; }
body.login-page #login table { width: 100%; border-collapse: collapse; }
body.login-page #login td { padding: 0; }
body.login-page #login td[colspan] { text-align: left; }
body.login-page #login td[colspan] img { display: block; height: 40px; width: auto; margin-bottom: 22px; }
body.login-page #login td[colspan] br, body.login-page #login tr:has(> td[style*="height:20px"]) { display: none; }
body.login-page #login td.label, body.login-page #login td.input { display: block; width: auto; border: 0; }
body.login-page #login td.label { padding: 0 0 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
body.login-page #login td.input { padding: 0 0 16px; }
body.login-page #login :is(input[type=text], input[type=password]) {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
}
body.login-page #login :is(input[type=text], input[type=password]):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
/* the buttons row: log in, full width in ink, and the forgotten password (or Back) as a link under it */
body.login-page #login tr:has(.button) { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 14px; padding-top: 6px; }
body.login-page #login tr:has(.button) > td { display: block; padding: 0; text-align: center; }
body.login-page #login button.button { float: none; width: 100%; }
body.login-page #login button.button > span {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 15px;
}
body.login-page #login button.button > span span { font-size: 15px; }
body.login-page #login button.button:hover > span { background: var(--ink-2); }
body.login-page #login .btn-back { float: none; display: inline-block; }
body.login-page #login .btn-back > span { height: auto; padding: 0; border: 0; background: transparent; color: var(--accent); font-weight: 600; }
body.login-page #login .btn-back > span span { font-size: 13px; }
body.login-page #login .btn-back:hover > span { background: transparent; text-decoration: underline; }
/* a message (wrong password, new password sent) sits in the card above the title, not where the system shows it */
/* (js.js showMessage() sets left and a width inline) */
body.login-page #login .message-wrap { position: relative; top: auto !important; left: auto !important; width: auto !important; transform: none; margin: 0 0 18px; padding: 10px 12px 10px 34px; box-shadow: none; font-size: 13px; }
body.login-page .login-version { position: static; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
body.login-page .login-version strong { color: var(--ink); font-weight: 700; }
body.login-page .login-version a { color: var(--muted); font-size: 12px; }
body.login-page .login-version a[href*="x.com"] { color: var(--accent); font-weight: 600; }
body.login-page #ie-warning { position: static; }

/* phones: the brand side as a band above the form */
@media (max-width: 760px) {
    body.login-page .login-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    body.login-page .login-brand { gap: 16px; padding: 22px 20px 64px; }
    body.login-page .login-brand-logo { width: 138px; height: 32px; }
    body.login-page .login-brand-text { margin: 0; }
    body.login-page .login-brand-text h2 { margin: 0; font-size: 24px; }
    body.login-page .login-brand-text p { display: none; }
    body.login-page .login-waves { height: 55%; }
    body.login-page .login-main { justify-content: flex-start; padding: 0 16px 32px; margin-top: -40px; position: relative; z-index: 1; }
    body.login-page #login { padding: 28px 22px 22px; }
}

/* ---------- Footer, support tab, loading ---------- */
div#footer {
    margin-top: 16px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
}
div.footer-text { padding-left: 20px; }
div.footer-text, div#footer * { font-size: 11px; color: var(--muted); }
.loading { color: var(--muted); }

/* "Hent via CVRapi" on the customer form (cvrLookup() in js/js.js) */
.cvr-lookup-dialog .cvr-lookup-search { margin: 8px 0 12px; }
.cvr-lookup-dialog .cvr-lookup-table th { text-align: left; padding: 2px 12px 2px 0; white-space: nowrap; vertical-align: top; }
.cvr-lookup-dialog .cvr-lookup-table td { padding: 2px 0; }
/* its errors and warnings: not .message-error, whose legacy PNG (layout.css) repeats across a plain paragraph */
.cvr-lookup-dialog .cvr-lookup-error { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--error-bg); color: var(--error-ink); font-weight: 600; }
.cvr-lookup-dialog .cvr-lookup-table + .cvr-lookup-error { margin-top: 10px; }

/* The accounting integrations' logs (classes/apiLog.php: E-conomic → Log, Tripletex → Log): one card per error */
.api-log { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.api-log-entry { padding: 6px 10px; border-left: 3px solid var(--error-line); border-radius: 4px; background: var(--error-bg); color: var(--ink); max-width: 900px; }
.api-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 2px; }
.api-log-subject { font-weight: 700; color: var(--error-ink); }
.api-log-status { padding: 0 6px; border-radius: 9px; background: var(--error-line); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; }
.api-log-url { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.api-log-message { overflow-wrap: anywhere; }
.api-log-hint { margin-top: 2px; color: var(--warn); font-weight: 600; }
.api-log-fields { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.api-log-fields li { margin: 1px 0; list-style: disc; }
.api-log-value { color: var(--muted); }
.api-log-raw { margin-top: 4px; }
.api-log-raw summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.api-log-raw pre { margin: 4px 0 0; padding: 6px 8px; max-height: 300px; overflow: auto; border-radius: 4px; background: var(--surface); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* booking line: the products chosen as related to its product (equipment tab "Relation", bookingRelatedSuggestions()):
   the chips on one row, shrinking (ellipsis, the whole name in the tooltip); a chip once added stays, marked, so the
   line does not jump */
.booking-related { clear: both; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; line-height: 18px; max-width: 100%; }
.booking-related button.booking-related-add { flex: 0 1 auto; min-width: 0; box-sizing: border-box; height: 22px; margin: 0; padding: 0 9px; border: 1px solid var(--accent); border-radius: 11px; background: transparent; color: var(--accent); font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.booking-related button.booking-related-add:hover { background: var(--accent); color: #fff; }
.booking-related button.booking-related-add.is-added,
.booking-related button.booking-related-add.is-added:hover { background: var(--accent-soft); color: var(--accent); border-color: transparent; cursor: default; }

/* product form, tab "Relation" (equipment::formRelation(), equipmentRelatedField()): one box, the chosen products as
   chips on one row, then the search field (gone when the box is full) */
.wio-ss.equipment-related { width: min(100%, 760px); }
.wio-ss.equipment-related .wio-ss-control { flex-wrap: nowrap; min-height: 30px; }
.wio-ss.equipment-related .wio-ss-chip { flex: 0 1 auto; max-width: none; align-items: center; }
.wio-ss.equipment-related .wio-ss-chip .wio-ss-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wio-ss.equipment-related .wio-ss-control.is-full { cursor: default; }

/* ---------- Report "Omsætning pr. uge" (pages/report/weeks.php) ---------- */
.report-weeks { padding: 4px 0 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.report-weeks .rw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 12px; }
.report-weeks .rw-card { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); padding: 14px 18px; }
.report-weeks .rw-card-main { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring), var(--shadow-card); }
.report-weeks .rw-card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.report-weeks .rw-card-value { font-size: 24px; font-weight: 700; margin: 4px 0 6px; color: var(--ink); }
.report-weeks .rw-card-main .rw-card-value { color: var(--accent-strong); }
.report-weeks .rw-card-sub { font-size: 12px; color: var(--muted); }
.report-weeks .rw-note { margin: 0 0 10px; color: var(--muted); }
.report-weeks .rw-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.report-weeks .rw-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.report-weeks .rw-swatch { display: inline-block; width: 18px; height: 8px; border-radius: 4px; background: var(--accent); }
.report-weeks .rw-swatch-current { background: var(--filter-active); box-shadow: inset 0 0 0 1px var(--warn); }
.report-weeks .rw-swatch-future { background: var(--line); }
.report-weeks .rw-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.report-weeks .rw-month { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; }
.report-weeks .rw-month-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--divider); }
.report-weeks .rw-month-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.report-weeks .rw-month-total { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.report-weeks table.rw-weeks { width: 100%; border-collapse: collapse; }
.report-weeks .rw-week > * { padding: 7px 14px; border-top: 1px solid var(--divider); vertical-align: middle; }
.report-weeks .rw-week:first-child > * { border-top: 0; }
.report-weeks .rw-week-no { width: 1%; white-space: nowrap; text-align: left; font-weight: 600; font-size: 13px; }
.report-weeks .rw-week-days { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.report-weeks .rw-week-amount { position: relative; }
.report-weeks .rw-bar { height: 6px; border-radius: 3px; background: var(--divider); margin-bottom: 4px; }
.report-weeks .rw-bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); min-width: 0; }
.report-weeks .rw-amount { font-weight: 600; font-size: 14px; }
.report-weeks .rw-count { margin-left: 6px; font-size: 11px; color: var(--muted); }
.report-weeks .rw-week-change { width: 1%; white-space: nowrap; text-align: right; }
.report-weeks .rw-week.rw-empty .rw-amount { color: var(--muted); font-weight: 400; }
.report-weeks .rw-week.rw-current > * { background: var(--filter-active); }
.report-weeks .rw-week.rw-future .rw-bar span { background: var(--line); }
.report-weeks .rw-week.rw-future .rw-amount, .report-weeks .rw-week.rw-future .rw-week-no { color: var(--muted); }
.report-weeks .rw-change { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.report-weeks .rw-up { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.report-weeks .rw-down { color: var(--error-text); background: var(--error-bg); }
.report-weeks .rw-flat, .report-weeks .rw-none { color: var(--muted); }
.report-weeks .rw-top { margin-top: 12px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; }
.report-weeks table.rw-top-list { width: 100%; border-collapse: collapse; }
.report-weeks .rw-top-list th, .report-weeks .rw-top-list td { padding: 7px 14px; border-top: 1px solid var(--divider); vertical-align: middle; text-align: left; }
.report-weeks .rw-top-list thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.report-weeks .rw-top-list .rw-top-rank { width: 1%; white-space: nowrap; color: var(--muted); font-weight: 600; }
.report-weeks .rw-top-list .rw-top-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-weeks .rw-top-list tr.rw-current > * { background: var(--filter-active); }
.report-weeks .rw-top-list tr.rw-future .rw-amount { color: var(--muted); }
.report-zips .rw-top-list tr.rw-total > * { border-top: 2px solid var(--line); font-weight: 700; }
.report-zips .rw-top-list .rw-week-amount { min-width: 160px; }
@media (max-width: 600px) {
    .report-weeks .rw-months { grid-template-columns: 1fr; }
    .report-weeks .rw-count { display: block; margin-left: 0; }
}

/* Date range picker: "Nulstil" at the bottom of the menu, apart from the presets (html::dateRangeSelect()) */
.ui-daterangepicker li.ui-daterangepicker-reset { margin-top: 1em !important; border-top: 1px solid var(--line); border-radius: 0; padding-top: 4px; }
.ui-daterangepicker li.ui-daterangepicker-reset a { color: var(--accent); }

/* the feedback form (WioSentry::browserScript()) in the tenant colour */
#sentry-feedback { --accent-background: var(--accent); --accent-foreground: #fff; }

/* The banner that points a phone's user to the phone app (index_full.php) */
.app-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--accent); color: #fff; font-size: 15px; position: relative; z-index: 50; }
.app-banner[hidden] { display: none; }
.app-banner span { flex: 1; min-width: 0; }
.app-banner a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.app-banner button { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; padding: 4px 8px; cursor: pointer; }

/* a line of help under a form field */
.field-hint { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted, #6b7280); }
