/* Keep document actions within reach on desktop and in narrower list tables. */
/* Disabled state must override the highly specific company accent selectors. */
.journey-copy .btn:disabled { color:var(--dte-muted, #69746e)!important; background:var(--dte-soft, #eef1ef)!important; border-color:var(--dte-border, #cbd3cd)!important; box-shadow:none!important; }
[data-copy-hint] > :disabled { pointer-events:none; }
.journey-copy-tooltip { position:fixed; inset:auto; margin:0; padding:.5rem .7rem; width:max-content; max-width:min(22rem,calc(100vw - 16px)); border:1px solid #607368; border-radius:7px; color:#fff; background:#293d33; font-size:.8rem; line-height:1.4; white-space:normal; box-shadow:0 4px 14px #0003; z-index:1000; }
.journey-copy-tooltip[hidden] { display:none!important; }
details[data-list-actions] > div[popover] { margin:0; bottom:auto; width:auto; }
@media (min-width:601px) {
    details.kebab[data-list-actions][open] > div {
        position:fixed;
        left:var(--list-menu-left, auto);
        top:var(--list-menu-top, 8px);
        right:auto;
        width:15rem;
        min-width:0;
        max-width:calc(100vw - 16px);
        max-height:calc(100dvh - 16px);
        overflow:auto;
        overscroll-behavior:contain;
    }
}
details[data-list-actions] .list-action-group > summary {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    width:100%; height:auto; min-height:38px; border:0; border-radius:3px;
    padding:.5rem .9rem; font:inherit; font-size:.875rem; white-space:normal;
    color:var(--dte-ink); background:transparent;
}
details[data-list-actions] .list-action-group[open] > summary { background:#edf5ef; }
details[data-list-actions] [data-list-submenu] { padding:.25rem; margin:0 .25rem .4rem .6rem; border-left:2px solid var(--dte-border); }
details[data-list-actions] [data-list-submenu] form { margin:0; }
details[data-list-actions] [data-list-submenu] label { padding:.4rem .6rem; }
details[data-list-actions] [data-list-submenu] input { max-width:100%; }
@media (min-width:601px) and (min-height:521px) {
    details.kebab[data-list-actions][open] > div { overflow:visible; }
    details[data-list-actions] .list-action-group[open] > [data-list-submenu] {
        position:fixed; left:var(--list-submenu-left, 8px); top:var(--list-submenu-top, 8px);
        width:17rem; max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px);
        overflow:auto; overscroll-behavior:contain; padding:.3rem; margin:0;
        border:1px solid var(--dte-border); border-radius:8px; background:var(--dte-card, #fff);
        box-shadow:0 8px 24px #16392324; z-index:90;
    }
}
@media (pointer:coarse) {
    details[data-list-actions] .list-action-group > summary,
    details[data-list-actions] [data-list-submenu] a,
    details[data-list-actions] [data-list-submenu] button { min-height:44px; }
}
.job-date-link { white-space:nowrap; text-underline-offset:3px; }
.job-date-link span { display:inline-block; margin-left:.15rem; }
.job-customer-link { display:inline-block; }
@media (max-width:900px) {
    /* Keep booking/quote details readable inside their horizontal scroller.
       Recent lists and searched results must not squeeze references to letters. */
    .document-list-scroll table { min-width:58rem; }
}
@media (max-width:1200px) {
    .document-list-scroll { max-width:100%; overflow-x:auto; }
    .document-list-scroll .row-actions,
    .document-list-scroll .row-actions-head { position:sticky; right:0; background:var(--dte-card); z-index:12; }
    .document-list-scroll .row-actions:has(> details[open]) { z-index:80; }
}
