/*
 * Tante Toos design system for tools, loaded after the Velzon theme (bootstrap/app/custom.min.css).
 *
 * The theme draws almost everything from --vz-* variables, so most of the look is set here as
 * tokens. The palette is the login page's (templates/security/_auth_layout.html.twig): cream menu
 * and page, white cards, near-neutral dark text, Archivo, orange for the logo and for where you are.
 * Semantic colours (success, warning, danger, info) keep their meaning.
 */

/* ---------- Tokens: light ---------- */
:root,
:root[data-bs-theme=light] {
    --vz-font-sans-serif: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --vz-body-font-family: var(--vz-font-sans-serif);

    --vz-primary: #ee5b27;
    --vz-primary-rgb: 238, 91, 39;
    --vz-primary-text-emphasis: #c9461a;
    --vz-primary-bg-subtle: #fde9e0;
    --vz-primary-border-subtle: #f6b9a1;

    --vz-secondary: #6c6864;
    --vz-secondary-rgb: 108, 104, 100;
    --vz-secondary-text-emphasis: #4a4744;
    --vz-secondary-bg-subtle: #f1eeea;
    --vz-secondary-border-subtle: #dcd7d1;

    --vz-success: #2f9e6a;
    --vz-success-rgb: 47, 158, 106;
    --vz-success-text-emphasis: #237a51;
    --vz-success-bg-subtle: #e1f3ea;
    --vz-info: #2f86b8;
    --vz-info-rgb: 47, 134, 184;
    --vz-info-text-emphasis: #236890;
    --vz-info-bg-subtle: #e2eff7;
    --vz-warning: #f2a72b;
    --vz-warning-rgb: 242, 167, 43;
    --vz-warning-bg-subtle: #fdf1dc;
    /* Bootstrap's own #d9a209 is unreadable on cream and on the warning colour itself */
    --vz-warning-text-emphasis: #7a4f00;
    --vz-danger: #d9412b;
    --vz-danger-rgb: 217, 65, 43;
    --vz-danger-text-emphasis: #ad3322;
    --vz-danger-bg-subtle: #fbe4e0;

    --vz-body-bg: #fbf7ee;
    --vz-body-bg-rgb: 251, 247, 238;
    --vz-body-color: #232120;
    --vz-body-color-rgb: 35, 33, 32;
    --vz-emphasis-color: #141312;
    --vz-heading-color: #1b1a19;
    --vz-secondary-color: #78736e;
    --vz-secondary-color-rgb: 120, 115, 110;
    --vz-secondary-bg: #ffffff;
    --vz-tertiary-bg: #fbf8f3;
    --vz-tertiary-bg-rgb: 251, 248, 243;
    --vz-light: #f7f4ef;
    --vz-light-rgb: 247, 244, 239;
    --vz-light-bg-subtle: #fcfaf7;
    --vz-border-color: #efe9e0;
    --vz-border-color-translucent: rgba(35, 33, 32, .1);
    --vz-input-border-custom: #e6dfd4;
    --vz-input-bg-custom: #ffffff;

    /* Links in a darker orange: #ee5b27 on white is too pale for small text */
    --vz-link-color: #c4461b;
    --vz-link-color-rgb: 196, 70, 27;
    --vz-link-hover-color: #9e3713;
    --vz-link-hover-color-rgb: 158, 55, 19;

    --vz-border-radius: .5rem;
    --vz-border-radius-sm: .375rem;
    --vz-border-radius-lg: .75rem;
    --vz-border-radius-xl: 1rem;

    --vz-card-bg-custom: #ffffff;
    /* Velzon never defines --vz-card-bg at the root (only -custom); the module styles (tickets, chatbot, links) read it, so give it a value here */
    --vz-card-bg: var(--vz-card-bg-custom);
    --vz-card-box-shadow: 0 1px 2px rgba(35, 33, 32, .03), 0 2px 10px rgba(35, 33, 32, .035);

    --vz-header-bg: rgba(251, 247, 238, .85);
    --vz-header-border: #efe9e0;
    --vz-header-item-color: #232120;
    --vz-header-item-bg: rgba(238, 91, 39, .1);
    --vz-header-item-sub-color: #78736e;
    --vz-topbar-user-bg: transparent;
    --vz-page-title-box-shadow: none;
    --vz-footer-bg: transparent;
    --vz-footer-color: #78736e;

    --vz-dropdown-link-hover-bg: #f7f4ef;
    --vz-dropdown-link-active-bg: #fde9e0;
    --vz-dropdown-link-active-color: #c9461a;

    /* Menu: cream with the orange logo; the active page is a solid orange pill */
    --tt-menu-bg: #f4ede1;
    --tt-menu-border: #ebe2d3;
    --tt-menu-decor: none;
    --tt-menu-color: #3b3633;
    --tt-menu-strong: #1b1a19;
    --tt-menu-sub-color: #6d6762;
    --tt-menu-hover-bg: rgba(238, 91, 39, .08);
    --tt-menu-active-bg: #ee5b27;
    --tt-menu-active-color: #ffffff;
    --tt-menu-active-shadow: 0 6px 14px -8px rgba(238, 91, 39, .8);
    --tt-menu-sub-active-bg: rgba(238, 91, 39, .12);
    --tt-menu-sub-active-color: #c9461a;
    --tt-menu-guide: rgba(35, 33, 32, .1);

    color-scheme: light;
}

/* ---------- Tokens: dark ---------- */
:root[data-bs-theme=dark] {
    --vz-primary: #f2693a;
    --vz-primary-rgb: 242, 105, 58;
    --vz-primary-text-emphasis: #f58a63;
    --vz-primary-bg-subtle: rgba(242, 105, 58, .16);
    --vz-primary-border-subtle: rgba(242, 105, 58, .4);

    --vz-secondary: #a29d97;
    --vz-secondary-rgb: 162, 157, 151;
    --vz-secondary-bg-subtle: rgba(162, 157, 151, .14);
    --vz-success-bg-subtle: rgba(47, 158, 106, .16);
    --vz-info-bg-subtle: rgba(47, 134, 184, .16);
    --vz-warning-bg-subtle: rgba(242, 167, 43, .16);
    --vz-danger-bg-subtle: rgba(217, 65, 43, .18);

    --vz-body-bg: #131211;
    --vz-body-bg-rgb: 19, 18, 17;
    --vz-body-color: #e9e6e2;
    --vz-body-color-rgb: 233, 230, 226;
    --vz-emphasis-color: #fff;
    --vz-heading-color: #f5f2ee;
    --vz-secondary-color: #a29d97;
    --vz-secondary-color-rgb: 162, 157, 151;
    --vz-secondary-bg: #1c1b1a;
    --vz-tertiary-bg: #232220;
    --vz-tertiary-bg-rgb: 35, 34, 32;
    --vz-light: #252321;
    --vz-light-rgb: 37, 35, 33;
    --vz-border-color: #2f2d2a;
    --vz-input-border-custom: #383532;
    --vz-input-bg-custom: #181716;

    --vz-link-color: #f58a63;
    --vz-link-color-rgb: 245, 138, 99;
    --vz-link-hover-color: #f8a98b;
    --vz-link-hover-color-rgb: 248, 169, 139;

    --vz-card-bg-custom: #1c1b1a;
    --vz-card-bg: var(--vz-card-bg-custom);
    --vz-card-box-shadow: none;

    --vz-header-bg: rgba(19, 18, 17, .85);
    --vz-header-border: #2a2826;
    --vz-header-item-color: #e9e6e2;
    --vz-header-item-bg: rgba(242, 105, 58, .14);
    --vz-header-item-sub-color: #a29d97;
    --vz-topbar-user-bg: transparent;

    --vz-dropdown-link-hover-bg: #252321;
    --vz-dropdown-link-active-bg: rgba(242, 105, 58, .16);
    --vz-dropdown-link-active-color: #f58a63;

    /* Dark mode: a quiet menu, the orange only on the active page */
    --tt-menu-bg: #1a1918;
    --tt-menu-border: #1a1918;
    --tt-menu-decor: none;
    --tt-menu-color: #d4d0cb;
    --tt-menu-strong: #ffffff;
    --tt-menu-sub-color: #a9a49e;
    --tt-menu-hover-bg: rgba(255, 255, 255, .06);
    --tt-menu-active-bg: #f2693a;
    --tt-menu-active-color: #ffffff;
    --tt-menu-active-shadow: none;
    --tt-menu-sub-active-bg: rgba(242, 105, 58, .16);
    --tt-menu-sub-active-color: #f58a63;
    --tt-menu-guide: rgba(255, 255, 255, .08);

    color-scheme: dark;
}

/* ---------- Menu tokens for the theme (it always sets data-sidebar=dark) ---------- */
:root[data-sidebar=dark],
:root[data-bs-theme=dark][data-sidebar=dark] {
    --vz-vertical-menu-bg: var(--tt-menu-bg);
    --vz-vertical-menu-border: var(--tt-menu-bg);
    --vz-vertical-menu-item-color: var(--tt-menu-color);
    --vz-vertical-menu-item-bg: var(--tt-menu-hover-bg);
    --vz-vertical-menu-item-hover-color: var(--tt-menu-strong);
    --vz-vertical-menu-item-active-color: var(--tt-menu-color);
    --vz-vertical-menu-item-active-bg: var(--tt-menu-active-bg);
    --vz-vertical-menu-sub-item-color: var(--tt-menu-sub-color);
    --vz-vertical-menu-sub-item-hover-color: var(--tt-menu-strong);
    --vz-vertical-menu-sub-item-active-color: var(--tt-menu-sub-active-color);
    --vz-vertical-menu-title-color: var(--tt-menu-sub-color);
    --vz-twocolumn-menu-iconview-bg: var(--tt-menu-bg);
}

/* ---------- Base ---------- */
body {
    font-family: var(--vz-font-sans-serif);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--vz-font-sans-serif);
    letter-spacing: -.01em;
}
.table td, .table th, .tiles-compact h2, .card h2, .card h3, .card h4 { font-variant-numeric: tabular-nums; }
a { text-underline-offset: .15em; }
::selection { background: rgba(238, 91, 39, .22); }

/* ---------- Menu ---------- */
.app-menu.navbar-menu {
    background: var(--tt-menu-decor), var(--tt-menu-bg);
    border-right: 1px solid var(--tt-menu-border);
    box-shadow: none;
}
.navbar-brand-box { padding: 0 1.25rem; background: transparent; }
.app-menu .navbar-brand-box .logo { line-height: 70px; }
.app-menu .logo-lg img { height: 38px; }
/* Orange logo on the cream menu, the white one on the dark menu */
.tt-logo-on-dark { display: none; }
:root[data-bs-theme=dark] .tt-logo-on-light { display: none; }
:root[data-bs-theme=dark] .tt-logo-on-dark { display: inline; }
.navbar-menu .navbar-nav { padding: .25rem .6rem 1.5rem; gap: 2px; }
.navbar-menu .navbar-nav .nav-link {
    font-family: var(--vz-font-sans-serif);
    font-weight: 500;
    font-size: .925rem;
    color: var(--tt-menu-color);
    border-radius: 10px;
    padding: .6rem .8rem;
    margin: 0;
    transition: background-color .15s, color .15s;
}
.navbar-menu .navbar-nav .nav-link i { font-size: 1.15rem; transition: color .15s; }
.navbar-menu .navbar-nav .nav-link:hover { background: var(--tt-menu-hover-bg); color: var(--tt-menu-strong); }
.navbar-menu .navbar-nav .nav-link.menu-link.active {
    background: var(--tt-menu-active-bg);
    color: var(--tt-menu-active-color);
    font-weight: 600;
    box-shadow: var(--tt-menu-active-shadow);
}
.navbar-menu .navbar-nav .nav-link.menu-link.active i { color: var(--tt-menu-active-color); }
/* A group heading that is open but not a page itself: no pill, just bold */
.navbar-menu .navbar-nav .nav-link.menu-link[data-bs-toggle].active {
    background: transparent;
    box-shadow: none;
    color: var(--tt-menu-strong);
}
.navbar-menu .navbar-nav .nav-link.menu-link[data-bs-toggle].active i { color: var(--tt-menu-strong); }
.navbar-menu .navbar-nav .nav-link.menu-link[data-bs-toggle].active:hover { background: var(--tt-menu-hover-bg); }
/* Sub items with a thin guide line; only in the full-width menu (the small menu shows them as a flyout) */
:root[data-sidebar-size=lg] .navbar-menu .navbar-nav .nav-sm { padding: .15rem 0 .35rem .4rem; margin-left: 1.25rem; border-left: 1px solid var(--tt-menu-guide); }
.navbar-menu .menu-dropdown { background: transparent; }
:root:not([data-sidebar-size=lg]) .navbar-menu .menu-dropdown { background: var(--tt-menu-bg); }
.navbar-menu .navbar-nav .nav-sm .nav-link {
    font-family: var(--vz-font-sans-serif);
    font-size: .875rem;
    font-weight: 400;
    color: var(--tt-menu-sub-color);
    padding: .42rem .7rem !important;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-menu .navbar-nav .nav-sm .nav-link::before { display: none; }
.navbar-menu .navbar-nav .nav-sm .nav-link i { font-size: 1rem; margin-right: .35rem; opacity: .85; }
.navbar-menu .navbar-nav .nav-sm .nav-link.active {
    background: var(--tt-menu-sub-active-bg);
    color: var(--tt-menu-sub-active-color);
    font-weight: 600;
}
.navbar-menu .navbar-nav .nav-sm .nav-link.active i { opacity: 1; }
.navbar-menu .menu-link[data-bs-toggle=collapse]::after { opacity: .6; }

/* ---------- Topbar ---------- */
#page-topbar {
    background: var(--vz-header-bg);
    border-bottom: 1px solid var(--vz-header-border);
    box-shadow: none;
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
}
#page-topbar .btn-topbar,
#page-topbar .topnav-hamburger { border-radius: 10px; }
#page-topbar .btn-topbar:hover,
#page-topbar .topnav-hamburger:hover { background: var(--vz-header-item-bg); }
.topbar-user .btn { background: transparent !important; }
.tt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--vz-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
    flex: none;
}
.tt-topbar-title {
    font-weight: 600;
    font-size: .95rem;
    color: var(--vz-secondary-color);
    margin: 0 0 0 .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Page title ---------- */
.page-title-box {
    background: transparent !important;
    border: 0;
    box-shadow: none;
    margin: 0 0 1rem;
    padding: .25rem 0;
}
.page-title-box h4,
.page-title-box .mb-sm-0 {
    font-size: 1.5rem !important;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -.02em;
    color: var(--vz-heading-color);
}
.page-title-box .breadcrumb { font-size: .8125rem; }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--vz-border-color);
    border-radius: 14px;
    box-shadow: var(--vz-card-box-shadow);
    --vz-card-border-radius: 14px;
    --vz-card-inner-border-radius: 13px;
}
.card-header {
    background: transparent;
    border-bottom-color: var(--vz-border-color);
}
.card-title, .card-header h4, .card-header h5 { font-weight: 600; letter-spacing: -.01em; }

/* ---------- Tables ---------- */
.table { --vz-table-border-color: var(--vz-border-color); }
.table > thead > tr > th,
.table thead th {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vz-secondary-color);
}
.table-light,
.table > thead.table-light > tr > th {
    --vz-table-bg: var(--vz-tertiary-bg);
    --vz-table-color: var(--vz-secondary-color);
    background-color: var(--vz-tertiary-bg);
    border-color: var(--vz-border-color);
}
.table-hover > tbody > tr:hover > * { --vz-table-bg-state: rgba(238, 91, 39, .04); }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--vz-font-sans-serif);
    font-weight: 500;
    border-radius: 10px;
    box-shadow: none;
}
.btn-sm, .btn-group-sm > .btn { border-radius: 8px; }
.btn-lg { border-radius: 12px; }
.btn-primary { --vz-btn-color: #fff; --vz-btn-hover-color: #fff; --vz-btn-active-color: #fff; }
.btn-primary:not(:disabled) { box-shadow: 0 6px 14px -8px rgba(var(--vz-primary-rgb), .7); }
.btn-light {
    --vz-btn-bg: var(--vz-tertiary-bg);
    --vz-btn-border-color: var(--vz-border-color);
    --vz-btn-hover-bg: var(--vz-secondary-bg-subtle);
    --vz-btn-hover-border-color: var(--vz-secondary-border-subtle);
    --vz-btn-color: var(--vz-body-color);
    --vz-btn-hover-color: var(--vz-body-color);
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--vz-input-border-custom);
}
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-control:focus, .form-select:focus {
    border-color: var(--vz-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--vz-primary-rgb), .15);
}
.form-check-input:checked { background-color: var(--vz-primary); border-color: var(--vz-primary); }
.form-check-input:focus { border-color: var(--vz-primary); box-shadow: 0 0 0 .2rem rgba(var(--vz-primary-rgb), .15); }
.form-label { font-weight: 600; font-size: .85rem; }
.input-group-text { background: var(--vz-tertiary-bg); border-color: var(--vz-input-border-custom); }

/* ---------- Badges, alerts, nav ---------- */
.badge { font-weight: 600; letter-spacing: .02em; border-radius: 6px; }
.alert { border-radius: 12px; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--vz-primary); }
.nav-tabs-custom .nav-item .nav-link.active, .nav-tabs .nav-link.active { color: var(--vz-primary); }
.nav-tabs-custom .nav-item .nav-link::after { background: var(--vz-primary); }
.page-link { color: var(--vz-link-color); }
.page-item.active .page-link { background-color: var(--vz-primary); border-color: var(--vz-primary); }
.progress { border-radius: 99px; background-color: var(--vz-tertiary-bg); }
.dropdown-menu {
    border: 1px solid var(--vz-border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px -12px rgba(35, 33, 32, .22);
    padding: .35rem;
}
.dropdown-item { border-radius: 8px; }
.modal-content { border-radius: 16px; border: 0; }

/* ---------- Footer ---------- */
.footer {
    background: transparent;
    border-top: 1px solid var(--vz-border-color);
    color: var(--vz-footer-color);
    font-size: .8125rem;
}

/* ---- Menu in two blocks (2026-10-14): "Algemeen" and "Locatie" with the location picker; the location block sits on its own tint ---- */
:root { --tt-menu-loc-bg: #ebe1cf; --tt-menu-title: #8a8178; }
:root[data-bs-theme="dark"] { --tt-menu-loc-bg: #232120; --tt-menu-title: #8f8a84; }
.navbar-menu .navbar-nav .menu-title { padding: .9rem .75rem .35rem; margin: 0; }
.navbar-menu .navbar-nav .menu-title span { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tt-menu-title); }
.navbar-menu .navbar-nav .tt-loc { background: var(--tt-menu-loc-bg); }
.navbar-menu .navbar-nav .tt-loc-top { margin-top: .75rem; border-radius: .9rem .9rem 0 0; padding-top: .65rem; }
.navbar-menu .navbar-nav .tt-loc-bottom { border-radius: 0 0 .9rem .9rem; min-height: .5rem; }
.navbar-menu .navbar-nav .tt-loc > .nav-link { margin: 0 .35rem; }
.tt-side-location { padding: 0 .55rem .6rem; }
/* the location picker: a card with the current location that folds open into a list */
.tt-locpick-current { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .65rem; border: 1px solid var(--tt-menu-border); border-radius: .8rem; background: var(--vz-secondary-bg, #fff); color: var(--tt-menu-strong); text-align: left; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: border-color .15s, box-shadow .15s; }
button.tt-locpick-current:hover { border-color: rgba(238, 91, 39, .45); box-shadow: 0 4px 12px -6px rgba(238, 91, 39, .45); }
button.tt-locpick-current:focus-visible { outline: 2px solid var(--vz-primary); outline-offset: 2px; }
.tt-locpick-pin { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--tt-menu-active-bg); color: #fff; font-size: 1.05rem; }
.tt-locpick-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.tt-locpick-kind { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tt-menu-sub-color); }
.tt-locpick-name { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-locpick-caret { flex: none; color: var(--tt-menu-sub-color); font-size: 1.15rem; transition: transform .2s; }
.tt-locpick.is-open .tt-locpick-caret { transform: rotate(180deg); }
.tt-locpick { position: relative; }
.tt-locpick.is-open .tt-locpick-current { border-color: rgba(238, 91, 39, .45); }
.tt-locpick.is-busy { opacity: .6; pointer-events: none; }
/* floats over the menu below the card (it does not push the menu down) */
.tt-locpick-panel { position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 1050; border: 1px solid var(--tt-menu-border); border-radius: .8rem; background: var(--vz-secondary-bg, #fff); padding: .35rem .35rem .45rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .06); }
.tt-locpick-search { position: relative; margin: .1rem .1rem .4rem; }
.tt-locpick-search i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--tt-menu-sub-color); }
.tt-locpick-search input { width: 100%; padding: .42rem .6rem .42rem 1.9rem; border: 1px solid var(--tt-menu-border); border-radius: .55rem; background: var(--tt-menu-bg); color: var(--tt-menu-strong); font-size: .88rem; outline: none; }
.tt-locpick-search input:focus { border-color: var(--vz-primary); box-shadow: 0 0 0 3px rgba(238, 91, 39, .15); }
.tt-locpick-list { max-height: min(52vh, 22rem); overflow-y: auto; overscroll-behavior: contain; }
.tt-locpick-group + .tt-locpick-group { margin-top: .3rem; padding-top: .3rem; border-top: 1px dashed var(--tt-menu-border); }
.tt-locpick-group-label { padding: .2rem .55rem .15rem; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tt-menu-sub-color); }
.tt-locpick-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; padding: .42rem .55rem; border: 0; border-radius: .5rem; background: transparent; color: var(--tt-menu-color); font-size: .9rem; text-align: left; }
.tt-locpick-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-locpick-item:hover, .tt-locpick-item:focus-visible { background: var(--tt-menu-hover-bg); color: var(--tt-menu-strong); outline: none; }
.tt-locpick-item.is-current { background: var(--tt-menu-sub-active-bg); color: var(--tt-menu-sub-active-color); font-weight: 700; }
.tt-locpick-item i { font-size: 1.05rem; }
.tt-locpick-empty { padding: .5rem .6rem; font-size: .85rem; color: var(--tt-menu-sub-color); }
/* the small icon-only menu (sidebar size sm): no titles and no picker, the block keeps its tint */
[data-sidebar-size="sm"] .navbar-menu .navbar-nav .menu-title, [data-sidebar-size="sm"] .tt-side-location { display: none; }
[data-sidebar-size="sm"] .navbar-menu .navbar-nav .tt-loc-top { padding-top: .35rem; }
/* the menu has 2px between items; inside the location block that gap is filled with the block's tint */
.navbar-menu .navbar-nav .tt-loc + .tt-loc { box-shadow: 0 -2px 0 var(--tt-menu-loc-bg); }
.tt-locpick-panel[hidden], .tt-locpick-item[hidden], .tt-locpick-group[hidden], .tt-locpick-empty[hidden] { display: none !important; }
.tt-locpick-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* collapsed menu (icons only): no tint or extra margins, so the icons stand centred like the rest; a thin line between the blocks */
[data-sidebar-size="sm"] .navbar-menu .navbar-nav .tt-loc { background: transparent; box-shadow: none !important; border-radius: 0; margin-left: 0; margin-right: 0; }
[data-sidebar-size="sm"] .navbar-menu .navbar-nav .tt-loc > .nav-link { margin: 0; }
[data-sidebar-size="sm"] .navbar-menu .navbar-nav .menu-title.tt-loc-top { display: block; height: 1px; margin: .6rem .5rem; padding: 0; background: var(--tt-menu-border); }
[data-sidebar-size="sm"] .navbar-menu .navbar-nav .menu-title.tt-loc-top span, [data-sidebar-size="sm"] .navbar-menu .navbar-nav .tt-loc-bottom { display: none; }

/* ---- Empty state (partials/_empty_state.html.twig) ---- */
.tt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.25rem 1rem 2rem; max-width: 32rem; margin: 0 auto; }
.tt-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--vz-primary-bg-subtle, rgba(238, 91, 39, .1)); color: var(--vz-primary); font-size: 1.6rem; margin-bottom: .9rem; }
.tt-empty-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; }
.tt-empty-text { color: var(--vz-secondary-color); margin: 0 0 .5rem; font-size: .9rem; line-height: 1.5; }

/* ---------- Phone menu: fullscreen overlay (partials/sidebar.html.twig, assets/js/menu-overlay.js) ---------- */
.tt-mo { position: fixed; inset: 0; z-index: 1080; display: flex; flex-direction: column; background: var(--vz-body-bg); color: var(--vz-body-color); font-family: var(--vz-font-sans-serif); }
.tt-mo[hidden] { display: none !important; }
@media (min-width: 992px) { .tt-mo { display: none !important; } }
body.tt-mo-open { overflow: hidden; }
.tt-mo-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--vz-border-color); }
.tt-mo-title { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.tt-mo-btn { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--vz-border-color); border-radius: .8rem; background: var(--vz-secondary-bg); color: var(--vz-body-color); font-size: 1.4rem; padding: 0; }
.tt-mo-btn:active { background: var(--vz-primary-bg-subtle); }
.tt-mo-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem .9rem 2rem; -webkit-overflow-scrolling: touch; }
.tt-mo-loc { position: relative; margin-bottom: 1rem; }
.tt-mo-loc.is-busy { opacity: .6; pointer-events: none; }
.tt-mo-loc-card { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem .85rem; text-align: left; border: 1px solid var(--vz-border-color); border-radius: 1rem; background: var(--vz-secondary-bg); color: inherit; }
.tt-mo-loc-card.is-static { cursor: default; }
.tt-mo-loc-pin { flex: none; width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: var(--vz-primary); color: #fff; font-size: 1.3rem; }
.tt-mo-loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.tt-mo-loc-kind { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vz-secondary-color); }
.tt-mo-loc-name { font-size: 1.15rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-mo-loc-change { flex: none; display: inline-flex; align-items: center; font-size: .82rem; font-weight: 700; color: var(--vz-primary); }
.tt-mo-loc-change i { font-size: 1.2rem; transition: transform .2s; }
.tt-mo-loc.is-open .tt-mo-loc-change i { transform: rotate(180deg); }
.tt-mo-loc-panel { margin-top: .5rem; padding: .5rem; border: 1px solid var(--vz-border-color); border-radius: 1rem; background: var(--vz-secondary-bg); }
.tt-mo-loc-panel[hidden], .tt-mo-loc-item[hidden], .tt-mo-loc-empty[hidden] { display: none !important; }
.tt-mo-loc-search { position: relative; margin-bottom: .4rem; }
.tt-mo-loc-search i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--vz-secondary-color); }
.tt-mo-loc-search input { width: 100%; padding: .65rem .75rem .65rem 2.2rem; border: 1px solid var(--vz-input-border-custom); border-radius: .7rem; background: var(--vz-body-bg); color: inherit; font-size: 1rem; }
.tt-mo-loc-list { max-height: 45vh; overflow-y: auto; overscroll-behavior: contain; }
.tt-mo-loc-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 2.9rem; padding: .5rem .75rem; border: 0; border-radius: .7rem; background: transparent; color: inherit; text-align: left; font-size: 1rem; }
.tt-mo-loc-item:active { background: var(--vz-primary-bg-subtle); }
.tt-mo-loc-item.is-current { background: var(--vz-primary-bg-subtle); color: var(--vz-primary-text-emphasis); font-weight: 700; }
.tt-mo-loc-empty { padding: .6rem .75rem; color: var(--vz-secondary-color); }
.tt-mo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.tt-mo-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .6rem; min-height: 5.6rem; padding: .85rem; border: 1px solid var(--vz-border-color); border-radius: 1rem; background: var(--vz-secondary-bg); color: var(--vz-body-color); text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.15; }
.tt-mo-tile i { font-size: 1.6rem; color: var(--vz-primary); }
.tt-mo-tile:active { background: var(--vz-primary-bg-subtle); }
.tt-mo-tile.is-active { background: var(--vz-primary); border-color: var(--vz-primary); color: #fff; }
.tt-mo-tile.is-active i { color: #fff; }
.tt-mo-sec { margin: 1.6rem .25rem .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vz-secondary-color); }
.tt-mo-general { display: flex; flex-direction: column; gap: .4rem; }
.tt-mo-group, .tt-mo-single { border: 1px solid var(--vz-border-color); border-radius: .9rem; background: var(--vz-secondary-bg); }
.tt-mo-group > summary, .tt-mo-single { display: flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .55rem .85rem; list-style: none; cursor: pointer; font-weight: 700; color: var(--vz-body-color); text-decoration: none; }
.tt-mo-group > summary::-webkit-details-marker { display: none; }
.tt-mo-group > summary > i:first-child, .tt-mo-single > i { color: var(--vz-primary); font-size: 1.25rem; }
.tt-mo-group > summary > span { flex: 1; }
.tt-mo-caret { font-size: 1.3rem; color: var(--vz-secondary-color); transition: transform .2s; }
.tt-mo-group[open] .tt-mo-caret { transform: rotate(180deg); }
.tt-mo-single.is-active { border-color: var(--vz-primary); color: var(--vz-primary-text-emphasis); background: var(--vz-primary-bg-subtle); }
.tt-mo-group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; padding: 0 .5rem .6rem; }
.tt-mo-group-list a { display: flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .4rem .6rem; border-radius: .6rem; color: var(--vz-body-color); text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.15; }
.tt-mo-group-list a i { color: var(--vz-secondary-color); font-size: 1.1rem; flex: none; }
.tt-mo-group-list a:active { background: var(--vz-primary-bg-subtle); }
.tt-mo-group-list a.is-active { background: var(--vz-primary-bg-subtle); color: var(--vz-primary-text-emphasis); }
.tt-mo-group-list a.is-active i { color: var(--vz-primary); }

/* Links en favorieten (trial): favorites in the menu, the phone menu and the page star */
.lk-letter { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: .35rem; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; margin-right: .65rem; }
.navbar-menu .navbar-nav .nav-link .lk-ext { margin-left: auto; font-size: .85rem; opacity: .6; }
.lk-mo-sec { margin-top: 0; }
.lk-mo-favs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.1rem; }
.lk-mo-fav { display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: 0 .75rem; border: 1px solid var(--vz-border-color); border-radius: .8rem; background: var(--vz-card-bg); color: var(--vz-body-color); font-weight: 600; text-decoration: none; min-width: 0; }
.lk-mo-fav:active { background: var(--vz-primary-bg-subtle); }
.lk-mo-fav.is-active { border-color: var(--vz-primary); }
.lk-mo-fav .lk-letter { margin-right: 0; width: 1.2rem; height: 1.2rem; }
.lk-mo-ico { font-size: 1.2rem; color: var(--vz-primary); flex: none; }
.lk-mo-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-mo-fav .lk-ext { flex: none; font-size: .85rem; color: var(--vz-secondary-color); }
.lk-star-form { display: inline-block; margin-left: .35rem; vertical-align: middle; }
.lk-star-btn { border: 0; background: transparent; padding: 0 .25rem; line-height: 1; font-size: 1.2rem; color: var(--vz-secondary-color); cursor: pointer; }
.lk-star-btn.is-on { color: var(--vz-warning); }
.lk-star-btn:hover { color: var(--vz-warning); }
.lk-row { display: flex; align-items: center; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--vz-border-color); }
.lk-row:last-child { border-bottom: 0; }
.lk-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: var(--vz-light); color: var(--vz-secondary-color); font-size: 1.15rem; }
.lk-tile.is-letter { color: #fff; font-size: .95rem; font-weight: 700; }
.lk-main { flex: 1; min-width: 0; }
.lk-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-host { font-size: .78rem; color: var(--vz-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-actions { display: flex; align-items: center; gap: .35rem; flex: none; }

/* Vraag Toos in the top bar, next to Zoeken and in its look; her mark is the O of the logo (partials/_toos_mark) */
.tt-toos-trigger { display: inline-flex; align-items: center; background: transparent; border: 0; color: var(--vz-body-color); }
.tt-toos-trigger:hover { background: var(--vz-tertiary-bg); color: var(--vz-body-color); }
.tt-toos-trigger .tt-toos-mark { font-size: 1.2rem; color: var(--vz-primary); flex: none; }
.tk-pill-toos .tt-toos-mark { font-size: 1rem; flex: none; }
.tt-toos-trigger.is-on { background: var(--vz-primary-bg-subtle); color: var(--vz-primary-text-emphasis, var(--vz-primary)); }

/* "Tante Toos als app" (partials/_install_prompt): a small card at the bottom, above the phone's toolbar and the toasts */
.tt-install { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1090; display: flex; align-items: flex-start; gap: .8rem; width: min(26rem, calc(100vw - 1.5rem)); padding: .9rem 2.4rem .9rem .9rem; border: 1px solid var(--vz-border-color); border-radius: 16px; background: var(--vz-secondary-bg); box-shadow: 0 10px 30px rgba(36, 27, 20, .18); transform: translate(-50%, 1rem); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.tt-install.is-in { transform: translate(-50%, 0); opacity: 1; }
.tt-install[hidden] { display: none; }
.tt-install-ico { flex: none; width: 48px; height: 48px; border-radius: 11px; }
.tt-install-main { min-width: 0; }
.tt-install-title { font: 700 1rem/1.25 Archivo, sans-serif; }
.tt-install-text { font-size: .85rem; color: var(--vz-secondary-color); margin-top: .15rem; line-height: 1.4; }
.tt-install-text b { color: var(--vz-body-color); font-weight: 600; }
.tt-install-share { width: 1.15em; height: 1.15em; vertical-align: -.2em; color: #2f86f6; }
.tt-install-actions { display: flex; gap: .4rem; margin-top: .6rem; }
.tt-install-x { position: absolute; top: .45rem; right: .45rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--vz-secondary-color); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; }
.tt-install-x:hover { background: var(--vz-light); }
@media (prefers-reduced-motion: reduce) { .tt-install { transition: none; } }

/* The back link above a detail page ("‹ Kluisjes · Leeuwarden"): its own class, because the phone rule in
   _tools_styles hides a .text-muted directly under .page-title-box (meant for "Stand van 13:07") */
.tt-back { color: var(--vz-secondary-color); text-decoration: none; }
.tt-back:hover { color: var(--vz-primary); }

/* Locker badge (2026-11-17), partials/_locker_badge.html.twig: a plate in the size colour with the number and the size
   letter, and under it, when the state is known, a bar of three segments for verhuur, deur and inhoud (Maarten picked
   "10+7 met een mono font", IBM Plex Mono). S orange, M violet, L blue (Maarten, 2026-11-17: "oranje
   klein paars midden blauw groot"); no grey, because grey reads as switched off ("grijs insinueert uitgeschakeld"); unknown size dark text on light grey. Whole pixels throughout so the digits cannot land half a pixel
   off, and the text box trimmed to the digits' height where the browser can, so they sit in the middle of the plate. */
.tt-lk { display: inline-flex; flex-direction: column; gap: 3px; flex: none; color: var(--vz-body-color); text-decoration: none; vertical-align: middle; border-radius: 6px; }
.tt-lk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; padding: 0 8px 0 10px; border-radius: 6px; background: var(--vz-light); color: var(--vz-body-color); transition: filter .15s; }
.tt-lk-num, .tt-lk-sz { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap; }
/* four digits wide at least, so a list of lockers lines up whatever the number */
.tt-lk-num { min-width: 4ch; font-size: 17px; font-variant-numeric: tabular-nums; }
.tt-lk-sz { font-size: 10px; opacity: .85; }
@supports (text-box: trim-both cap alphabetic) { .tt-lk-num, .tt-lk-sz { text-box: trim-both cap alphabetic; } }
.tt-lk-s .tt-lk-top { background: var(--vz-primary); color: #fff; }
.tt-lk-m .tt-lk-top { background: #7b5ea7; color: #fff; }
.tt-lk-l .tt-lk-top { background: #3d7ea6; color: #fff; }
a.tt-lk:hover .tt-lk-top { filter: brightness(.9); }
a.tt-lk:focus-visible { outline: 2px solid var(--vz-primary); outline-offset: 2px; }
/* the state bar: verhuur a little wider than deur and inhoud. A click opens every bar on the site (html.tt-lk-open, kept in
   localStorage by base.html.twig): the parts grow and show their icon, the large badge also its word. */
.tt-lk-bar { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2px; cursor: pointer; }
.tt-lk-bar::before { content: ''; position: absolute; inset: -2px 0 -8px; } /* a thin line is hard to hit: a taller tap area */
.tt-seg { display: block; height: 4px; border-radius: 2px; background: #a8a29b; }
.tt-lk-bar .tt-seg { display: flex; align-items: center; justify-content: center; gap: 3px; overflow: hidden; color: #fff; transition: height .18s ease, border-radius .18s ease; }
.tt-lk-bar .tt-seg > svg { flex: none; width: 10px; height: 10px; opacity: 0; transition: opacity .15s; }
.tt-lk-bar .tt-seg > b { display: none; font: 700 10px/1 Archivo, sans-serif; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.tt-lk-bar .tt-seg.is-ok { color: var(--vz-body-color); }
html.tt-lk-open .tt-lk-bar .tt-seg { height: 16px; border-radius: 4px; }
html.tt-lk-open .tt-lk-bar .tt-seg > svg, html.tt-lk-open .tt-lk-bar .tt-seg > b { opacity: 1; }
html.tt-lk-open .tt-lk-sm .tt-lk-bar .tt-seg { height: 13px; }
html.tt-lk-open .tt-lk-sm .tt-lk-bar .tt-seg > svg { width: 8px; height: 8px; }
/* the large badge has room for a word: the parts size to icon and word, the plate goes along */
html.tt-lk-open .tt-lk-lg .tt-lk-bar { grid-template-columns: auto auto auto; gap: 3px; }
html.tt-lk-open .tt-lk-lg .tt-lk-bar .tt-seg { height: 22px; padding: 0 7px; border-radius: 5px; }
html.tt-lk-open .tt-lk-lg .tt-lk-bar .tt-seg > svg { width: 12px; height: 12px; }
html.tt-lk-open .tt-lk-lg .tt-lk-bar .tt-seg > b { display: inline; }
@media (prefers-reduced-motion: reduce) { .tt-lk-bar .tt-seg, .tt-lk-bar .tt-seg > svg, .tt-lk-bar .tt-seg > b { transition: none; } }
.tt-seg.is-free, .tt-seg.is-good { background: var(--vz-success); }
.tt-seg.is-busy { background: var(--vz-primary); }
.tt-seg.is-expired, .tt-seg.is-warn { background: #b7791f; }
.tt-seg.is-alert { background: var(--vz-danger); }
.tt-seg.is-ok { background: #d6cfc7; }
.tt-seg.is-off, .tt-seg.is-unknown { background: #a8a29b; }
/* small (opts sm) in lists and sentences */
.tt-lk-sm { gap: 2px; border-radius: 5px; }
.tt-lk-sm .tt-lk-top { height: 24px; gap: 8px; padding: 0 6px 0 8px; border-radius: 5px; }
.tt-lk-sm .tt-lk-num { font-size: 13px; }
.tt-lk-sm .tt-lk-sz { font-size: 8px; }
.tt-lk-sm .tt-lk-bar .tt-seg { height: 3px; }
/* large (opts lg) for the head of the locker page */
.tt-lk-lg { gap: 4px; border-radius: 8px; }
.tt-lk-lg .tt-lk-top { height: 44px; gap: 14px; padding: 0 11px 0 14px; border-radius: 8px; }
.tt-lk-lg .tt-lk-num { font-size: 25px; }
.tt-lk-lg .tt-lk-sz { font-size: 14px; }
.tt-lk-lg .tt-lk-bar { gap: 3px; }
.tt-lk-lg .tt-lk-bar .tt-seg { height: 5px; border-radius: 3px; }
.tt-lk.is-muted { opacity: .5; }
.tt-lk.is-muted .tt-lk-num { text-decoration: line-through; }
/* the state icons of the locker page (lk.ico) */
.tt-ico { display: block; flex: none; }
.kl-legend .tt-ico, .tt-ico-inline { display: inline-block; vertical-align: -.15em; }
/* legend swatches for the bar */
.tt-seg.tt-sw { display: inline-block; width: 14px; height: 6px; border-radius: 3px; vertical-align: .1em; margin-right: 4px; }

/* Locker state (2026-11-17): verhuur, deur and inhoud as one badge with three parts; partials/_locker_state.html.twig.
   Verhuur carries the colour; deur and inhoud stay quiet unless something is off (door open amber, full while free red). */
.tt-ls { display: inline-flex; align-items: stretch; height: 1.85rem; border: 1px solid var(--vz-border-color); border-radius: .5rem; overflow: hidden; background: var(--vz-secondary-bg); font-size: .8rem; font-weight: 600; line-height: 1; vertical-align: middle; white-space: nowrap; }
.tt-ls > span { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: 0 .4rem; }
.tt-ls > span + span { border-left: 1px solid var(--vz-border-color); }
.tt-ls i { font-size: .95em; font-weight: 400; }
/* fixed widths, so every badge is exactly as wide whatever it says (Vrij/Verlopen, dicht/open, vol/leeg/?) */
.tt-ls-rent { width: 5rem; font-weight: 700; }
.tt-ls-part { width: 4.4rem; }
.tt-ls-rent.is-free { background: var(--vz-success-bg-subtle); color: var(--vz-success-text-emphasis, var(--vz-success)); }
.tt-ls-rent.is-busy { background: var(--vz-primary-bg-subtle); color: var(--vz-primary-text-emphasis, var(--vz-primary)); }
.tt-ls-rent.is-expired { background: var(--vz-warning-bg-subtle); color: var(--vz-warning-text-emphasis, #b7791f); }
.tt-ls-rent.is-off { background: var(--vz-light); color: var(--vz-secondary-color); }
.tt-ls-part.is-ok { color: var(--vz-body-color); }
.tt-ls-part.is-warn { background: var(--vz-warning-bg-subtle); color: var(--vz-warning-text-emphasis, #b7791f); }
.tt-ls-part.is-alert { background: var(--vz-danger-bg-subtle); color: var(--vz-danger); }
.tt-ls-part.is-unknown { color: var(--vz-secondary-color); }
.tt-ls-sm { height: 1.5rem; font-size: .72rem; }
.tt-ls-sm > span { padding: 0 .3rem; }
.tt-ls-sm .tt-ls-rent { width: 4.3rem; }
.tt-ls-sm .tt-ls-part { width: 3.8rem; }
@media (max-width: 575.98px) {
    /* on a phone deur and inhoud show their icon only (door shut/open, dot full/ring empty); the colours still warn */
    .tt-ls .tt-ls-word { display: none; }
    .tt-ls-rent, .tt-ls-sm .tt-ls-rent { width: 4.3rem; }
    .tt-ls-part, .tt-ls-sm .tt-ls-part { width: 2rem; }
}

/* Reservation badge (partials/_reservation_badge, 2026-11-17): a ticket stub with a notch at both ends; the cap carries the
   status (colour and icon), a perforation (the sand cut into the cap), the number in IBM Plex Mono on sand. */
.tt-rb { --rb-h: 24px; --rb-notch: 4px; --rb-cap-w: 24px; --rb-sand: #efe4d6; --rb-ink: #2b2420; --rb-cap: #a39a90;
    display: inline-flex; align-items: stretch; flex: none; height: var(--rb-h); margin: 0; padding: 0; border: 0; border-radius: 3px;
    background: var(--rb-sand); color: var(--rb-ink); font: 600 13px/1 "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums;
    letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; text-decoration: none; -webkit-appearance: none; appearance: none;
    -webkit-mask: radial-gradient(circle var(--rb-notch) at 0 50%, #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle var(--rb-notch) at 100% 50%, #0000 96%, #000) 100% 0 / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--rb-notch) at 0 50%, #0000 96%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle var(--rb-notch) at 100% 50%, #0000 96%, #000) 100% 0 / 51% 100% no-repeat; }
.tt-rb-cap { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--rb-cap-w); padding-left: calc(var(--rb-notch) / 2); background: var(--rb-cap); color: #fff; border-right: 1.5px dashed var(--rb-sand); font-size: 13px; }
.tt-rb-cap i { line-height: 1; }
.tt-rb-num { display: inline-flex; align-items: center; padding: 0 calc(var(--rb-notch) + 5px) 0 6px; }
.tt-rb-busy { --rb-cap: #2f9e6a; }
.tt-rb-expired { --rb-cap: #d39b2c; }
.tt-rb-done { --rb-cap: #9a928a; }
.tt-rb-pending { --rb-cap: #3d7ea6; }
.tt-rb-cancelled { --rb-cap: #d4483b; }
.tt-rb-plain .tt-rb-cap { --rb-cap: #e3d5c3; color: var(--vz-primary); }
a.tt-rb, button.tt-rb { cursor: pointer; }
a.tt-rb:hover, button.tt-rb:hover, a.tt-rb:focus-visible, button.tt-rb:focus-visible { --rb-sand: #f7d9c6; color: var(--rb-ink); outline: 0; }
.tt-rb.is-copied, .tt-rb.is-copied:hover { --rb-sand: #d5efe1; }
.tt-rb.is-copied .tt-rb-num::after { content: "\2713"; margin-left: .3rem; color: #2f9e6a; }
.tt-rb-sm { --rb-h: 20px; --rb-notch: 3px; --rb-cap-w: 19px; font-size: 12px; }
.tt-rb-sm .tt-rb-cap { font-size: 11px; }
.tt-rb-sm .tt-rb-num { padding: 0 calc(var(--rb-notch) + 4px) 0 5px; }
.tt-rb-lg { --rb-h: 30px; --rb-notch: 5px; --rb-cap-w: 31px; font-size: 15px; border-radius: 4px; }
.tt-rb-lg .tt-rb-cap { font-size: 16px; }
.tt-rb-lg .tt-rb-num { padding: 0 calc(var(--rb-notch) + 7px) 0 8px; }
/* with the location (opts.location): the number over a band in the location's colour, both centred over the full width */
.tt-rb-two { --rb-h: 38px; }
.tt-rb-two.tt-rb-sm { --rb-h: 32px; }
.tt-rb-two.tt-rb-lg { --rb-h: 46px; }
.tt-rb-body { display: flex; flex-direction: column; min-width: 5.6rem; max-width: 10rem; }
.tt-rb-two .tt-rb-num { flex: 1; justify-content: center; padding: 0 8px; }
.tt-rb-band { display: block; height: 14px; padding: 0 8px; background: var(--loc-bg, #8c857d); color: var(--loc-fg, #fff); font: 700 9.5px/14px var(--vz-font-sans-serif, Archivo, sans-serif); letter-spacing: .05em; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-rb-two.tt-rb-sm .tt-rb-body { min-width: 5rem; }
.tt-rb-two.tt-rb-sm .tt-rb-band { height: 12px; font-size: 8.5px; line-height: 12px; }
.tt-rb-two.tt-rb-sm .tt-rb-num { padding: 0 7px; }
.tt-rb-two.tt-rb-lg .tt-rb-body { min-width: 6.6rem; }
.tt-rb-two.tt-rb-lg .tt-rb-band { height: 17px; font-size: 10.5px; line-height: 17px; }
.tt-rb-two.tt-rb-lg .tt-rb-num { padding: 0 10px; }
:root[data-bs-theme=dark] .tt-rb { --rb-sand: #3d352e; --rb-ink: #f1e9df; }
:root[data-bs-theme=dark] a.tt-rb:hover, :root[data-bs-theme=dark] button.tt-rb:hover { --rb-sand: #54473d; }
:root[data-bs-theme=dark] .tt-rb-plain .tt-rb-cap { --rb-cap: #54473d; }
:root[data-bs-theme=dark] .tt-rb.is-copied { --rb-sand: #24493a; }

/* Location badge (partials/_location_badge and the command palette, 2026-11-17; .tt-locb, because .tt-loc is the
   location block of the sidebar): the short name on a plate in the
   location's colour (LocationColors), like a small button */
.tt-locb { display: inline-flex; align-items: center; flex: none; max-width: 100%; height: 22px; padding: 0 .5rem; border-radius: 6px; background: var(--loc-bg, #8c857d); color: var(--loc-fg, #fff); font: 600 .75rem/1 var(--vz-font-sans-serif, Archivo, sans-serif); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; text-transform: none; }
.tt-locb-sm { height: 19px; padding: 0 .4rem; font-size: .7rem; border-radius: 5px; }
