/* DTFPRO advert navigation. All selectors stay inside this module. */
.dtf-adnav, .dtf-adnav-dialog, .dtf-adnav-toolbar {
    --dtf-nav-ink: #162345;
    --dtf-nav-muted: #73839d;
    --dtf-nav-blue: #385dff;
    --dtf-nav-hover: #244be6;
    --dtf-nav-line: #e0e6f0;
    --dtf-nav-soft: #edf3ff;
    color: var(--dtf-nav-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}
.dtf-adnav *, .dtf-adnav-dialog *, .dtf-adnav-toolbar * { box-sizing: border-box; }
#secondary .dtf-adnav.widget, .dtf-adnav {
    background: #fff;
    border: 1px solid var(--dtf-nav-line);
    border-radius: 12px;
    padding: 18px 14px 16px;
    margin: 0 0 24px;
}
.dtf-adnav-head, .dtf-adnav-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}
.dtf-adnav .dtf-adnav-title {
    color: var(--dtf-nav-ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0;
    padding: 0;
}
.dtf-adnav button, .dtf-adnav-dialog button, .dtf-adnav-toolbar button {
    font: inherit;
    cursor: pointer;
    border: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}
.dtf-adnav .dtf-adnav-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--dtf-nav-blue);
    padding: 5px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-height: 32px;
}
.dtf-adnav .dtf-adnav-all:hover { color: var(--dtf-nav-hover); background: var(--dtf-nav-soft); }
.dtf-adnav-tree, .dtf-adnav-children {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.dtf-adnav-item { margin: 0 !important; padding: 0 !important; }
.dtf-adnav-row { display: flex; align-items: stretch; border-radius: 8px; margin-bottom: 6px; }
.dtf-adnav-link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--dtf-nav-ink) !important;
    text-decoration: none !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 11px 7px;
    min-height: 46px;
    transition: background-color .15s, color .15s;
}
.dtf-adnav-label { overflow-wrap: anywhere; line-height: 1.45; }
.dtf-adnav-icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; flex: 0 0 24px; }
.dtf-adnav .dtf-adnav-all .dtf-adnav-icon { width: 19px; height: 19px; flex-basis: 19px; }
.dtf-adnav-icon-image { display: block; width: 100%; height: 100%; margin: 0; object-fit: contain; }
.dtf-adnav-icon-image[src$="/printer.svg"], .dtf-adnav-icon-image[src$="/document.svg"] { width: 125%; height: 125%; max-width: none; flex: 0 0 125%; }
/* Library SVGs keep original contours; tint comes from the same solid foreground. */
.dtf-adnav-icon-image { filter: invert(10%) sepia(29%) saturate(1773%) hue-rotate(181deg) brightness(93%) contrast(93%); }
.dtf-adnav-all .dtf-adnav-icon-image, .dtf-adnav-open .dtf-adnav-icon-image,
.is-current > .dtf-adnav-row .dtf-adnav-icon-image {
    filter: invert(30%) sepia(97%) saturate(4051%) hue-rotate(225deg) brightness(102%) contrast(101%);
}
.dtf-adnav .dtf-adnav-toggle, .dtf-adnav-dialog .dtf-adnav-toggle {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    min-height: 40px;
    padding: 6px;
    background: transparent;
    color: var(--dtf-nav-muted);
    border-radius: 6px;
}
.dtf-adnav-toggle .dtf-adnav-icon { width: 17px; height: 17px; flex-basis: 17px; }
.dtf-adnav-toggle[aria-expanded="false"] .dtf-adnav-icon { transform: rotate(-90deg); }
.dtf-adnav-row:hover, .dtf-adnav-toggle:hover { background: #f5f7fc; }
.is-current > .dtf-adnav-row { background: var(--dtf-nav-soft); }
.is-current > .dtf-adnav-row .dtf-adnav-link { color: var(--dtf-nav-blue) !important; font-weight: 600; }
.dtf-adnav-link[aria-current="page"]:not(.dtf-adnav-add) { background: var(--dtf-nav-soft); color: var(--dtf-nav-blue) !important; font-weight: 600; }
.dtf-adnav-children { margin-left: 15px !important; padding-left: 20px !important; border-left: 1px solid #ccd5e6; }
.dtf-adnav-children .dtf-adnav-link { gap: 9px; }
.dtf-adnav-personal { border-top: 1px solid var(--dtf-nav-line); margin-top: 16px; padding-top: 13px; }
.dtf-adnav-personal .dtf-adnav-link { margin-bottom: 5px; }
.dtf-adnav-link > .dtf-adnav-icon:last-child { margin-left: auto; width: 14px; height: 14px; flex-basis: 14px; }
.dtf-adnav-count { display: none; }
.dtf-adnav-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--dtf-nav-blue);
    color: #fff !important;
    border-radius: 9px;
    padding: 12px 10px;
    min-height: 48px;
    margin-top: 17px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: background-color .15s;
}
.dtf-adnav-add .dtf-adnav-icon-image { filter: brightness(0) invert(1); }
.dtf-adnav-add:hover { background: var(--dtf-nav-hover); color: #fff !important; }
.dtf-adnav :is(a,button):focus-visible, .dtf-adnav-dialog :is(a,button,input):focus-visible,
.dtf-adnav-toolbar button:focus-visible { outline: 2px solid var(--dtf-nav-blue); outline-offset: 3px; }
.dtf-adnav-dialog {
    width: min(680px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    margin: auto;
    border: 1px solid var(--dtf-nav-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(24, 39, 72, .15);
    overflow: hidden;
    z-index: 100100;
}
.dtf-adnav-dialog:not([open]) { display: none; }
.dtf-adnav-dialog::backdrop { background: rgba(26,42,76,.20); backdrop-filter: blur(5px); }
.dtf-adnav-dialog-panel { padding: 24px; max-height: calc(100dvh - 50px); overflow-y: auto; overscroll-behavior: contain; }
.dtf-adnav-dialog-head { margin-bottom: 18px; }
.dtf-adnav-dialog-head h2 { margin: 0; padding: 0; font-size: 26px; line-height: 1.3; color: var(--dtf-nav-ink); font-weight: 700; }
.dtf-adnav-dialog .dtf-adnav-close { display: inline-flex; align-items: center; justify-content: center; background: transparent; border-radius: 8px; padding: 8px; width: 40px; height: 40px; }
.dtf-adnav-close:hover { background: var(--dtf-nav-soft); }
.dtf-adnav-search-box { display: flex; align-items: center; gap: 12px; background: #f5f7fb; border: 1px solid #dce3ef; border-radius: 8px; padding: 0 13px; margin-bottom: 20px; min-height: 50px; }
.dtf-adnav-search-box input[type="search"] { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; box-shadow: none; background: transparent; color: var(--dtf-nav-ink); padding: 12px 0; height: auto; font: inherit; outline-offset: 0; }
.dtf-adnav-dialog .dtf-adnav-search-box input[type="search"] { font-size: 16px; }
.dtf-adnav-search-box input::placeholder { color: var(--dtf-nav-muted); opacity: 1; }
.dtf-adnav-search-box:focus-within { outline: 2px solid var(--dtf-nav-blue); outline-offset: 1px; }
.dtf-adnav-dialog .dtf-adnav-search-box input[type="search"]:focus-visible { outline: none; }
.dtf-adnav-dialog .dtf-adnav-link { font-size: 17px; gap: 16px; padding: 13px 10px; min-height: 54px; }
.dtf-adnav-dialog .dtf-adnav-icon { width: 26px; height: 26px; flex-basis: 26px; }
.dtf-adnav-dialog .dtf-adnav-toggle .dtf-adnav-icon { width: 18px; height: 18px; flex-basis: 18px; }
.dtf-adnav-dialog .dtf-adnav-tree > .dtf-adnav-item { padding: 7px 0 !important; border-bottom: 1px solid var(--dtf-nav-line); }
.dtf-adnav-dialog .dtf-adnav-tree > .dtf-adnav-item:last-child { border-bottom: 0; }
.dtf-adnav-dialog .dtf-adnav-all-item { border-bottom: 1px solid var(--dtf-nav-line); padding: 0 0 7px; margin-bottom: 7px; }
.dtf-adnav-dialog .dtf-adnav-children { margin-left: 24px !important; padding-left: 24px !important; }
.dtf-adnav-dialog .dtf-adnav-personal { margin-top: 18px; padding-top: 12px; border-bottom: 1px solid var(--dtf-nav-line); padding-bottom: 6px; }
.dtf-adnav-dialog .dtf-adnav-add { font-size: 16px; margin-top: 20px; min-height: 54px; }
.dtf-adnav-empty { color: var(--dtf-nav-muted); padding: 18px 10px; margin: 0; }
.dtf-adnav [hidden], .dtf-adnav-dialog [hidden], .dtf-adnav-dialog[hidden], .dtf-adnav-toolbar[hidden] { display: none !important; }
.dtf-adnav-toolbar { padding: 12px 0 0; }
.dtf-adnav-toolbar .dtf-adnav-open { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 42px; color: var(--dtf-nav-blue); background: #fff; border: 1px solid var(--dtf-nav-line); border-radius: 9px; }
.dtf-adnav-toolbar .dtf-adnav-open:hover { background: var(--dtf-nav-soft); }
.dtf-adnav-toolbar .dtf-adnav-icon { width: 20px; height: 20px; flex-basis: 20px; }
.dtf-adnav-toolbar--inline { padding: 0 0 16px; }
.dtf-adnav-toolbar--inline > .container { padding: 0; width: 100%; }
.dtfpro-adnav-open { overscroll-behavior: none; }
@media (min-width: 800px) {
    body.dtf-adnav-has-sidebar:has(#secondary .dtf-adnav) .dtf-adnav-toolbar { display: none; }
    body.dtf-adnav-page #content > .container > .site-content-grid:has(> #secondary) { flex-direction: row !important; }
    body.dtf-adnav-page #content > .container > .site-content-grid > #secondary {
        order: -1;
        margin-left: 0;
        margin-right: 30px;
    }
    body.dtf-adnav-page #content > .container > .site-content-grid > #primary {
        order: 1;
        border-left: 0;
        margin-left: 0;
        min-width: 0;
    }
}
@media (max-width: 799px) {
    .dtf-adnav-toolbar { padding-top: 14px; }
    #secondary .dtf-adnav { margin-top: 20px; }
    .dtf-adnav-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
    .dtf-adnav-dialog-panel { padding: 18px; max-height: calc(100dvh - 26px); }
    .dtf-adnav-dialog-head h2 { font-size: 23px; }
    .dtf-adnav-dialog .dtf-adnav-link { font-size: 15px; gap: 12px; }
    .dtf-adnav-dialog .dtf-adnav-children { margin-left: 16px !important; padding-left: 16px !important; }
    .dtf-adnav-dialog .dtf-adnav-add { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .dtf-adnav-link, .dtf-adnav-add { transition: none; }
}
