/* Components.css - VERSIONE 13 - 3 novembre 2026 (le viste di un dispositivo e i report Trips / Shifts) */
/* =====================================================================================================
   Components.css - content components of DeviceTrack, from the MDM control panel prototype.

   OPT-IN: everything here is a class prefixed dt-, so NOTHING on an existing page changes until that page
   uses one of these classes. Loaded after Shell.css (it uses its variables); status colours are semantic
   (green / amber / red / grey) and stay the same whatever the brand colour is.

   Contents:  1. tokens  2. page head  3. cards + stat cards  4. status pills  5. buttons + filters
              6. tables  7. signal, progress, compliance bar  8. lists and timeline  9. fields, tabs
              10. top bar parts (company selector, search)

   Markup patterns:
     page head     <div class="dt-page-head"><div><h1>Devices</h1><p class="dt-sub">9 of 9 devices</p></div></div>
     stat card     <a class="dt-card dt-stat" href="..." style="--bar:#1f9e6e"><div class="n">8</div><div class="l">Online</div></a>
     pill          <span class="dt-pill ok"><i class="d"></i>Compliant</span>      (ok | warn | err | off | info; add "dot" for a dot with no label)
     filters       <div class="dt-filters"><a class="dt-btn sm primary">All</a><a class="dt-btn sm">Online</a></div>
     table         <div class="dt-card dt-table-wrap"><table class="dt-table"> ... </table></div>
     signal        <span class="dt-sig" data-level="3"><i></i><i></i><i></i><i></i></span> <span class="dt-muted dt-small">-84 dBm</span>
   ===================================================================================================== */


/* ---------- 1. tokens ---------------------------------------------------------------------------- */
:root {
    /* the brand colour, for primary actions and the active state (change here to retheme) */
    --dt-accent: #a6452f;
    --dt-accent-dark: #7f3423;
    --dt-accent-soft: #c15c3f;
    --dt-accent-bg: #f8ece8;

    /* status colours - semantic, not brand */
    --dt-ok: #1f9e6e;     --dt-ok-bg: #e7f6ef;
    --dt-warn: #c47d12;   --dt-warn-bg: #fbf1de;
    --dt-err: #c43d3d;    --dt-err-bg: #fbe9e9;
    --dt-off: #8a96a3;    --dt-off-bg: #eef1f4;
    --dt-info: #2e75b6;   --dt-info-bg: #e8f0fb;

    --dt-bg: #f5f7fa;
    --dt-panel: #fff;
    --dt-tap: 44px;
    --dt-mono: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Consolas, 'Roboto Mono', monospace;
}


/* ---------- 2. page head ------------------------------------------------------------------------- */
.dt-page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dt-page-head h1 { margin: 0 0 2px; padding: 0; border: 0; font-size: 22px; line-height: 1.25; font-weight: 700; font-variant: normal; text-transform: none; letter-spacing: -.2px; color: var(--dt-ink); }
.dt-page-head .dt-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.dt-sub { margin: 0; color: var(--dt-muted); font-size: 13px; line-height: 1.4; }
.dt-section-title { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--dt-muted); }
.dt-divider { height: 1px; margin: 18px 0; background: var(--dt-line); }
.dt-muted { color: var(--dt-muted); }
.dt-small { font-size: 12.5px; }
.dt-nowrap { white-space: nowrap; }
.dt-b { font-weight: 700; }
.dt-mono { font-family: var(--dt-mono); }
.dt-flex { display: flex; align-items: center; gap: 10px; }
.dt-spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }


/* ---------- 3. cards and stat cards -------------------------------------------------------------- */
.dt-grid { display: grid; gap: 16px; }
.dt-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dt-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dt-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .dt-cols-4, .dt-cols-3, .dt-cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* The light grey page behind the cards, as in the prototype. Opt-in per page: the page puts "dt-surface" in the MainContentClass
   placeholder (the class of the main area), e.g. <asp:Content ContentPlaceHolderID="MainContentClass">dt-surface</asp:Content> */
.unified-main.dt-surface { background: var(--dt-bg); }

.dt-card { background: var(--dt-panel); border: 1px solid var(--dt-line); border-radius: var(--dt-radius); box-shadow: var(--dt-shadow); }
.dt-card.dt-pad, .dt-pad { padding: 18px; }
.dt-card h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 16px; line-height: 1.3; font-weight: 700; font-variant: normal; text-transform: none; color: var(--dt-ink); }

/* a number, its label, and a coloured bar down the left edge (--bar). Used as a link: it leads to the filtered list. */
.dt-stat {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 16px 18px 16px 22px;
    color: var(--dt-ink);
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--dt-fast) ease, box-shadow var(--dt-fast) ease, transform var(--dt-fast) ease;
}
.dt-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar, var(--dt-accent)); }
.dt-stat .n { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.dt-stat .l { margin-top: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--dt-muted); }
.dt-stat:hover { border-color: #c4d0db; color: var(--dt-ink); text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(16, 32, 56, .08), 0 8px 22px rgba(16, 32, 56, .08); }


/* The old Site.css colours every link (a:link, a:visited, a:hover) and, being a pseudo-class rule, it outranks a plain class.
   So when these components are links - a stat card that leads to a list, a button, a tab - their colours are set again here. */
a.dt-stat, a.dt-stat:link, a.dt-stat:visited, a.dt-stat:hover { color: var(--dt-ink); }
a.dt-btn, a.dt-btn:link, a.dt-btn:visited { color: var(--dt-ink); }
a.dt-btn.primary, a.dt-btn.primary:link, a.dt-btn.primary:visited, a.dt-btn.primary:hover { color: #fff; }
a.dt-btn.danger, a.dt-btn.danger:link, a.dt-btn.danger:visited { color: var(--dt-err); }
a.dt-tab, a.dt-tab:link, a.dt-tab:visited { color: var(--dt-ink-2); }
a.dt-tab:hover, a.dt-tab.active, a.dt-tab.active:link, a.dt-tab.active:visited { color: var(--dt-accent); }

/* ---------- 4. status pills ---------------------------------------------------------------------- */
/* inline-block rather than inline-flex on purpose: it behaves the same everywhere, and sits in a line of text instead of stretching */
.dt-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
.dt-pill .d { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: middle; position: relative; top: -1px; }
/* a pill with only the dot (the timeline) has no label to space it from */
.dt-pill.dot .d { margin-right: 0; }
.dt-pill.ok   { background: var(--dt-ok-bg);   color: var(--dt-ok); }
.dt-pill.warn { background: var(--dt-warn-bg); color: var(--dt-warn); }
.dt-pill.err  { background: var(--dt-err-bg);  color: var(--dt-err); }
.dt-pill.off  { background: var(--dt-off-bg);  color: var(--dt-off); }
.dt-pill.info { background: var(--dt-info-bg); color: var(--dt-info); }

.dt-tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; background: var(--dt-off-bg); color: var(--dt-ink-2); }


/* ---------- 5. buttons and filters --------------------------------------------------------------- */
.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--dt-tap);
    min-width: var(--dt-tap);
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid var(--dt-line);
    border-radius: 10px;
    background: #fff;
    color: var(--dt-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.dt-btn:hover { border-color: #c4d0db; background: #fbfcfe; color: var(--dt-ink); text-decoration: none; }
.dt-btn.primary { background: var(--dt-accent); border-color: var(--dt-accent); color: #fff; }
.dt-btn.primary:hover { background: var(--dt-accent-dark); border-color: var(--dt-accent-dark); color: #fff; }
.dt-btn.danger { border-color: #e8b4b4; color: var(--dt-err); }
.dt-btn.danger:hover { background: var(--dt-err-bg); }
.dt-btn.ghost { border-color: transparent; background: transparent; }
.dt-btn.ghost:hover { background: #eef2f6; }
.dt-btn.sm { height: 34px; min-width: 0; padding: 0 12px; font-size: 13px; }
.dt-btn:disabled, .dt-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* a row of filter buttons: the active one is the primary one */
.dt-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }


/* ---------- 6. tables ---------------------------------------------------------------------------- */
.dt-table-wrap { overflow: hidden; border-radius: var(--dt-radius); }
.dt-table { width: 100%; border-collapse: collapse; background: transparent; border: 0; }
.dt-table th {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--dt-line);
    background: #fafbfc;
    color: var(--dt-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: left;
    text-transform: uppercase;
}
.dt-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--dt-line-2); background: transparent; font-size: 13.5px; vertical-align: middle; }
.dt-table tr:last-child td { border-bottom: 0; }
.dt-table tr.clickable { cursor: pointer; }
.dt-table tr.clickable:hover td { background: #f7fafd; }
.dt-table .dt-empty { padding: 50px 20px; text-align: center; color: var(--dt-muted); }


/* ---------- 7. signal, progress, compliance bar ---------------------------------------------------- */
/* four bars; data-level 1..4 lights that many */
.dt-sig { display: inline-block; height: 16px; font-size: 0; line-height: 0; white-space: nowrap; vertical-align: middle; }
.dt-sig i { display: inline-block; width: 4px; margin-right: 2px; border-radius: 1px; background: #cdd6df; vertical-align: bottom; }
.dt-sig i:last-child { margin-right: 0; }
.dt-sig i:nth-child(1) { height: 5px; }
.dt-sig i:nth-child(2) { height: 8px; }
.dt-sig i:nth-child(3) { height: 11px; }
.dt-sig i:nth-child(4) { height: 15px; }
.dt-sig[data-level="1"] i:nth-child(-n+1),
.dt-sig[data-level="2"] i:nth-child(-n+2),
.dt-sig[data-level="3"] i:nth-child(-n+3),
.dt-sig[data-level="4"] i:nth-child(-n+4) { background: var(--dt-sig-on, var(--dt-ok)); }
/* the colour of the lit bars follows the quality, by the Devices page's rule: good from 50% (green), fair from 25% (amber), poor below (red) */
.dt-sig.good { --dt-sig-on: var(--dt-ok); }
.dt-sig.fair { --dt-sig-on: var(--dt-warn); }
.dt-sig.poor { --dt-sig-on: var(--dt-err); }

.dt-progress { height: 10px; border-radius: 6px; background: #eef1f4; overflow: hidden; }
.dt-progress i { display: block; height: 100%; border-radius: 6px; background: var(--dt-accent-soft); }

/* the stacked bar of states, and its legend */
.dt-compbar { display: flex; height: 16px; margin: 6px 0 12px; border-radius: 8px; overflow: hidden; }
.dt-compbar > div { min-width: 2px; }
.dt-compbar .ok { background: var(--dt-ok); }
.dt-compbar .warn { background: var(--dt-warn); }
.dt-compbar .err { background: var(--dt-err); }
.dt-compbar .off { background: var(--dt-off); }
.dt-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; }
.dt-legend > span { white-space: nowrap; }


/* ---------- 8. lists and timeline ---------------------------------------------------------------- */
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--dt-tap); border-bottom: 1px solid var(--dt-line-2); }
.dt-row:last-child { border-bottom: 0; }

.dt-hist { position: relative; padding-left: 20px; }
.dt-hist .h { position: relative; padding: 9px 0; border-bottom: 1px solid var(--dt-line-2); }
.dt-hist .h:last-child { border-bottom: 0; }
.dt-hist .h::before { content: ""; position: absolute; left: -16px; top: 14px; width: 9px; height: 9px; box-sizing: content-box; border-radius: 50%; background: var(--dt-accent-soft); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--dt-line); }
.dt-hist::after { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 2px; background: var(--dt-line); }


/* ---------- 9. fields and tabs ------------------------------------------------------------------- */
/* input.dt-input (not just .dt-input): the old Site.css styles input[type="text"] with a priority above a plain class */
.dt-input, input.dt-input, select.dt-input, textarea.dt-input { box-sizing: border-box; width: 100%; height: var(--dt-tap); margin: 0; padding: 0 12px; border: 1px solid var(--dt-line); border-radius: 9px; background: #fff; color: var(--dt-ink); font-size: 14px; outline: none; }
.dt-input:focus, input.dt-input:focus, select.dt-input:focus, textarea.dt-input:focus { border: 1px solid var(--dt-accent); box-shadow: 0 0 0 3px rgba(166, 69, 47, .15); }
.dt-input.sm, input.dt-input.sm { height: 34px; width: 260px; max-width: 100%; font-size: 13px; }

.dt-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--dt-line); }
.dt-tab { margin-bottom: -1px; padding: 10px 16px; border-bottom: 2px solid transparent; color: var(--dt-ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.dt-tab:hover { color: var(--dt-accent); text-decoration: none; }
.dt-tab.active { color: var(--dt-accent); border-bottom-color: var(--dt-accent); }


/* ---------- 9b. device list: toolbar and pager --------------------------------------------------- */
.dt-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
/* the filters take the free space and wrap only when they really do not fit; the search box keeps its own size */
.dt-toolbar .dt-filters { margin-bottom: 0; flex: 1 1 auto; }
.dt-listsearch { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--dt-line-2); }
.dt-pager .dt-muted { margin-right: auto; }


/* ---------- 10. top bar parts: company selector and search ----------------------------------------- */
.dt-company-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid var(--dt-line);
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
}
.dt-company-switch:hover { border-color: var(--dt-accent-soft); }
.dt-company-switch .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dt-accent-soft); }
.dt-company-switch select { border: 0; background: transparent; color: var(--dt-ink); font-size: 14px; font-weight: 600; outline: none; cursor: pointer; }

.dt-search { position: relative; flex: 1; max-width: 520px; }
.dt-search input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--dt-line); border-radius: 10px; background: #fff; color: var(--dt-ink); font-size: 14px; outline: none; }
.dt-search input:focus { border-color: var(--dt-accent); box-shadow: 0 0 0 3px rgba(166, 69, 47, .15); }
.dt-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dt-muted); }
.dt-search-results { position: absolute; top: 46px; left: 0; right: 0; z-index: 40; display: none; overflow: hidden; border: 1px solid var(--dt-line); border-radius: 10px; background: #fff; box-shadow: var(--dt-shadow); }
.dt-search-results.show { display: block; }
.dt-search-results .sr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--dt-line-2); cursor: pointer; }
.dt-search-results .sr:hover { background: #f7fafd; }
.dt-search-results .sr:last-child { border-bottom: 0; }


/* ---------- 11. v4: top bar search, inactive selector, fleet map ---------------------------------- */

/* a company selector on a page that does not use it: shown, so it is always in the same place, but clearly not live */
.dt-company-switch.inactive { opacity: .55; }
.dt-company-switch.inactive select { cursor: not-allowed; }

/* the search results: rows are links (the old Site.css colours every link, so their colours are set again) */
.unified-topbar .dt-search-results { z-index: 1500; }
a.sr, a.sr:link, a.sr:visited, a.sr:hover { color: var(--dt-ink); text-decoration: none; }
.dt-search-results .sr.active { background: #f7fafd; }
.dt-search-results .sr .dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--dt-muted); }
.dt-search-results .sr .dot.ok { background: var(--dt-ok); }
.dt-search-results .sr .txt { display: flex; flex-direction: column; min-width: 0; }
.dt-search-results .sr.none { color: var(--dt-muted); cursor: default; }
.dt-search-results .sr.foot { justify-content: space-between; background: #fafbfd; }

/* the map card: Leaflet's own layers stay inside it (isolation), so they never climb over the top bar or its menus */
.dt-mapcard { position: relative; padding: 0; overflow: hidden; isolation: isolate; }
#dt-map { box-sizing: border-box; width: 100%; height: calc(100vh - 270px); min-height: 420px; background: #e8eef6; }
.dt-map-empty { position: absolute; left: 50%; top: 14px; z-index: 900; transform: translateX(-50%); max-width: 80%; padding: 9px 16px; border-radius: 10px; background: #fff; box-shadow: var(--dt-shadow); color: var(--dt-muted); font-size: 13px; }
.dt-map-empty[hidden] { display: none; }
.dt-maplegend { position: absolute; left: 12px; bottom: 28px; z-index: 900; display: flex; gap: 14px; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: var(--dt-shadow); font-size: 12px; color: var(--dt-ink-2); }
.dt-maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.dt-maplegend .pin { display: inline-block; flex: 0 0 11px; width: 11px; min-width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--dt-muted)); }

/* the pins: a drop in the state's colour */
.dt-pin { background: none; border: 0; }
.dt-pin i { display: block; box-sizing: border-box; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; background: var(--c, var(--dt-muted)); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transform: rotate(-45deg); }
.dt-pin.ok, .dt-maplegend .pin.ok { --c: var(--dt-ok); }
.dt-pin.off, .dt-maplegend .pin.off { --c: #8a94a6; }
.dt-pin.info, .dt-maplegend .pin.info { --c: #2e75b6; }
.dt-pin.err, .dt-maplegend .pin.err { --c: var(--dt-err); }

/* the detail that opens on a pin */
.dt-mapcard .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--dt-shadow); }
.dt-mapcard .leaflet-popup-content { margin: 14px 16px; }
.dt-pop { min-width: 220px; font-size: 13px; line-height: 1.4; }
.dt-pop-id { margin-bottom: 2px; font-size: 14px; }
.dt-pop-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.dt-pop-t { width: 100%; margin: 0 0 12px; border-collapse: collapse; }
.dt-pop-t th, .dt-pop-t td { padding: 3px 0; border: 0; background: none; font-size: 13px; text-align: left; vertical-align: middle; }
.dt-pop-t th { width: 86px; padding-right: 10px; color: var(--dt-muted); font-weight: 500; }
.dt-pop-actions { display: flex; gap: 8px; }

/* buttons at the right of a page heading */
.dt-page-head .dt-page-actions { margin-left: auto; }

/* the groups of drops Leaflet.markercluster draws, in the site's colour */
.dt-mapcard .marker-cluster-small, .dt-mapcard .marker-cluster-medium, .dt-mapcard .marker-cluster-large { background-color: rgba(166, 69, 47, .25); }
.dt-mapcard .marker-cluster-small div, .dt-mapcard .marker-cluster-medium div, .dt-mapcard .marker-cluster-large div { background-color: var(--dt-accent); color: #fff; font-weight: 700; }


/* ---------- 12. v5: dialog (add / edit a device) ------------------------------------------------- */
.dt-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 3000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; background: rgba(21, 27, 38, .45); }
.dt-modal[hidden] { display: none; }
.dt-dialog { position: relative; box-sizing: border-box; width: 100%; max-width: 540px; padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.dt-dialog h2 { margin: 0 0 16px; padding: 0; border: 0; font-size: 18px; line-height: 1.3; font-weight: 700; font-variant: normal; text-transform: none; color: var(--dt-ink); }
.dt-field { margin-bottom: 12px; }
.dt-field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--dt-muted); }
.dt-hint { margin-top: 4px; font-size: 12px; color: var(--dt-muted); }
.dt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dt-input[readonly], input.dt-input[readonly] { background: #f4f6f9; color: var(--dt-ink-2); }
.dt-error { margin: 4px 0 12px; padding: 9px 12px; border-radius: 9px; background: #fdecec; color: #a12a2a; font-size: 13px; }
.dt-error[hidden] { display: none; }
.dt-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.dt-btn.disabled { opacity: .45; pointer-events: none; }
.dt-danger { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--dt-line-2); }
.dt-danger[hidden], .dt-confirm[hidden] { display: none; }
.dt-confirm { margin-top: 10px; padding: 12px 14px; border: 1px solid #f1c9c9; border-radius: 10px; background: #fdf3f3; font-size: 13px; line-height: 1.5; }
.dt-confirm .dt-b { margin-top: 6px; color: #a12a2a; }

/* the OTA tab of the device dialog */
.dt-x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 8px; font-size: 22px; line-height: 28px; text-align: center; text-decoration: none; color: var(--dt-muted); }
a.dt-x, a.dt-x:link, a.dt-x:visited { color: var(--dt-muted); text-decoration: none; }
a.dt-x:hover { background: #f1f4f8; color: var(--dt-ink); }
.dt-dialog .dt-tabs { margin: -4px 0 16px; }
.dt-dialog .dt-tabs[hidden] { display: none; }
.dt-ok { margin: 0 0 12px; padding: 9px 12px; border-radius: 9px; background: #e6f6ee; color: #14724f; font-size: 13px; }
.dt-ota-summary { margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--dt-line-2); border-radius: 10px; background: #fafbfd; }
.dt-ota-summary .dt-pop-t { margin: 0; }
.dt-ota-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dt-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dt-check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--dt-ink); }
.dt-check .dt-hint { flex-basis: 100%; margin-top: 0; }
.dt-check input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }


/* ---------- 13. v7: the device page ------------------------------------------------------------------- */
.dt-back { display: inline-block; margin-bottom: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
a.dt-back, a.dt-back:link, a.dt-back:visited { color: var(--dt-muted); text-decoration: none; }
a.dt-back:hover { color: var(--dt-accent); }
.dt-page-head h1.dt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 22px; letter-spacing: 0; }
.dt-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.dt-kv .r { display: flex; align-items: center; gap: 14px; min-height: 20px; padding: 7px 0; border-bottom: 1px solid var(--dt-line-2); font-size: 13.5px; }
.dt-kv .r:last-child { border-bottom: 0; }
.dt-kv .k { flex: 0 0 150px; color: var(--dt-muted); }
.dt-kv .v { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dt-error-text { color: #a12a2a; }
#dt-devmap { box-sizing: border-box; width: 100%; height: 220px; margin-bottom: 12px; overflow: hidden; border-radius: 10px; background: #e8eef6; isolation: isolate; }
.dt-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dt-gap-top { margin-top: 16px; }
.dt-days { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.dt-days .d { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.dt-days .bar { display: flex; flex: 1 1 auto; align-items: flex-end; width: 100%; }
.dt-days .bar i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--dt-accent); }
.dt-days .bar i.z { background: var(--dt-line); }
.dt-days .n { font-size: 13px; font-weight: 700; }
.dt-days .l { font-size: 12px; color: var(--dt-muted); }
.dt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dt-tile { display: block; padding: 14px 16px; border: 1px solid var(--dt-line); border-radius: 10px; background: #fff; font-weight: 600; text-decoration: none; }
a.dt-tile, a.dt-tile:link, a.dt-tile:visited { color: var(--dt-ink); text-decoration: none; }
.dt-tile:hover { border-color: var(--dt-accent); box-shadow: var(--dt-shadow); }


/* ---------- 14. v9: the same dialog on pages written with server controls (OTA Management) ------------- */
/* the little motion the dialogs of the old style had when they open (keyframes in Shell.css). Only when the script in Site.Master adds .dt-opening -
   that is, when the dialog appears where there was none: a partial update re-creates it (a dropdown, an error message) and it must not "pop" every time */
.dt-modal.dt-opening { animation: dt-fade-in var(--dt-med, .2s) ease both; }
.dt-dialog.dt-opening { animation: dt-pop-in var(--dt-med, .2s) var(--dt-ease, ease) both; }
.dt-dialog.dt-wide { max-width: 680px; }

/* a table used only for layout: ITS OWN rows and cells behave as stacked fields, like the ones the script builds. Only its own (child
   combinators): a table inside a cell - a list of checkboxes, say - stays a table */
.dt-dialog table.dt-form { width: 100%; }
.dt-dialog table.dt-form, .dt-dialog table.dt-form > tbody, .dt-dialog table.dt-form > tbody > tr, .dt-dialog table.dt-form > tbody > tr > td { display: block; padding: 0; border: 0; background: none; }
.dt-dialog table.dt-form > tbody > tr { margin-bottom: 12px; }
.dt-dialog table.dt-form > tbody > tr > td > label, .dt-dialog table.dt-form > tbody > tr > td > .dt-lbl {
    display: block; margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--dt-muted);
}
.dt-dialog table.dt-form .dt-check > span { display: inline-flex; align-items: center; gap: 8px; }
.dt-dialog input.dt-input:disabled, .dt-dialog select.dt-input:disabled { background: #f4f6f9; color: var(--dt-ink-2); cursor: not-allowed; }
.dt-dialog textarea.dt-input { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.dt-dialog .dt-pair { display: flex; align-items: center; gap: 8px; }
.dt-dialog .dt-pair > input.dt-input { flex: 1 1 auto; min-width: 0; }
.dt-dialog .dt-pair > select.dt-input { flex: 0 0 auto; width: auto; max-width: 45%; }
.dt-dialog .dt-pair > .dt-check { flex: 0 0 auto; white-space: nowrap; }
.dt-dialog .dt-filepick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dt-dialog .dt-filepick .dt-current { font-weight: 600; word-break: break-all; }
.dt-dialog .dt-filepick .dt-current:empty { display: none; }
.dt-dialog input.dt-file { max-width: 100%; font-size: 13px; }
.dt-dialog .dt-hashline { padding: 9px 12px; border-radius: 9px; background: #f4f6f9; font-family: var(--dt-mono); font-size: 12px; color: var(--dt-ink-2); word-break: break-all; }
.dt-dialog table.dt-checks { width: 100%; border-collapse: collapse; }
.dt-dialog table.dt-checks td { padding: 4px 10px 4px 0; border: 0; background: none; font-size: 13.5px; }
.dt-dialog table.dt-checks input { margin: 0 6px 0 0; vertical-align: middle; }
.dt-dialog .dt-checks-wrap { max-height: 170px; overflow-y: auto; padding: 6px 12px; border: 1px solid var(--dt-line); border-radius: 9px; }
span.dt-error { display: block; }
.dt-error:empty { display: none; }

/* buttons that are real <input type="submit"> (asp:Button): the old Site.css colours every input[type="submit"] - and its hover and
   pressed states too - above a plain class, so the look of .dt-btn is stated again here with a priority above them */
input[type="submit"].dt-btn, input[type="button"].dt-btn, button.dt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--dt-tap); min-width: var(--dt-tap); margin: 0; padding: 0 18px;
    box-sizing: border-box; border: 1px solid var(--dt-line); border-radius: 10px; background: #fff; color: var(--dt-ink);
    font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
}
input[type="submit"].dt-btn.sm, input[type="button"].dt-btn.sm, button.dt-btn.sm { height: 34px; min-width: 0; padding: 0 12px; font-size: 13px; }
input[type="submit"].dt-btn:hover, input[type="button"].dt-btn:hover, button.dt-btn:hover,
input[type="submit"].dt-btn:active, input[type="button"].dt-btn:active, button.dt-btn:active { border-color: #c4d0db; background: #fbfcfe; color: var(--dt-ink); }
input[type="submit"].dt-btn.primary, input[type="button"].dt-btn.primary, button.dt-btn.primary { background: var(--dt-accent); border-color: var(--dt-accent); color: #fff; }
input[type="submit"].dt-btn.primary:hover, input[type="button"].dt-btn.primary:hover, button.dt-btn.primary:hover,
input[type="submit"].dt-btn.primary:active, input[type="button"].dt-btn.primary:active, button.dt-btn.primary:active { background: var(--dt-accent-dark); border-color: var(--dt-accent-dark); color: #fff; }

/* the tab that was just clicked does not get the browser's black frame; keyboard users still see where they are */
a.dt-tab:focus { outline: none; }
a.dt-tab:focus-visible { outline: 2px solid var(--dt-accent); outline-offset: -2px; border-radius: 6px 6px 0 0; }


/* ---------- 15. v9: lists made with server controls (OTA Management): the filter bar, the table, the pager ---------- */
/* the filter bar: the UpdatePanel that holds the fields is the one direct child, and it lays them out in a row */
.dt-filterbar { margin: 0 0 16px; }
.dt-filterbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dt-filterbar .dt-ff { margin: 0; }
.dt-filterbar input.dt-input { width: 210px; }
.dt-filterbar select.dt-input { width: auto; min-width: 160px; }
.dt-filterbar .dt-add { margin-left: auto; }

/* the table is a GridView: sortable headers are links, the pager is a table of links in its last row, the empty list is a one-cell table */
.dt-table-wrap.dt-scroll { overflow-x: auto; }
.dt-table th a, .dt-table th a:link, .dt-table th a:visited { color: inherit; text-decoration: none; }
.dt-table th a:hover { color: var(--dt-accent); }
.dt-table th.dt-actions, .dt-table td.dt-actions { text-align: right; white-space: nowrap; }
.dt-table td.dt-actions .dt-btn { margin-left: 6px; }
.dt-table tr.dt-empty td { padding: 32px 14px; text-align: center; color: var(--dt-muted); }
.dt-table td .dt-hash { display: inline-block; max-width: 230px; overflow: hidden; vertical-align: bottom; text-overflow: ellipsis; white-space: nowrap; font-family: var(--dt-mono); font-size: 12px; color: var(--dt-ink-2); }
.dt-table td .dt-notes { display: inline-block; max-width: 220px; overflow: hidden; vertical-align: bottom; text-overflow: ellipsis; white-space: nowrap; color: var(--dt-ink-2); }
.dt-table tr.pager > td { padding: 2.5px !important; border-bottom: 0; background: #fafbfd; text-align: center; }
.dt-table tr.pager table { width: auto; margin: 0 auto; border: 0; }
.dt-table tr.pager td td { padding: 0 2px; border: 0; background: none; }
.dt-table tr.pager a, .dt-table tr.pager span {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--dt-line);
    border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--dt-ink);
}
.dt-table tr.pager a:hover { border-color: var(--dt-accent); color: var(--dt-accent); }
.dt-table tr.pager span { border-color: var(--dt-accent); background: var(--dt-accent); color: #fff; }   /* the current page is a plain span */

/* a file that the devices reported but that has no file on the server (the page adds the "[VIRTUAL]" text, with this class) */
.badge-virtual { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 20px; background: #fff3e2; color: #a35a00; font-size: 11px; font-weight: 700; letter-spacing: .3px; vertical-align: middle; }


/* ---------- 16. v10: the files of a device (device page) ------------------------------------------------ */
.dt-files-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; font-size: 13.5px; }
.dt-files-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.dt-warn { margin: 8px 0 0; padding: 9px 12px; border-radius: 9px; background: var(--dt-warn-bg); color: var(--dt-warn); font-size: 13px; }
.dt-files-table { border: 1px solid var(--dt-line-2); }
.dt-table.dt-table-sm th, .dt-table.dt-table-sm td { padding: 8px 12px; }
.dt-table.dt-table-sm td { font-size: 13px; }


/* ---------- 17. v11: the Administration pages (Companies, Fleet, Users, Vehicles, Settings) ------------ */
/* the table of these pages is an EnhancedGridView: it marks the sorted column (sort-asc / sort-desc) and puts a "Show N of M records" box in the pager */
.dt-table th.sort-asc, .dt-table th.sort-desc { background: transparent; color: var(--dt-ink); }
.dt-table th.sort-asc a::after, .dt-table th.sort-desc a::after { margin-left: 6px; font-size: 9px; color: var(--dt-accent); }
.dt-table th.sort-asc a::after { content: "\25B2"; }
.dt-table th.sort-desc a::after { content: "\25BC"; }
.dt-table tr.pager .page-size { position: static; margin-top: 8px; padding: 0; text-align: right; font-size: 12.5px; color: var(--dt-muted); }
.dt-table tr.pager .page-size select { width: auto; height: 30px; margin: 0 4px; padding: 0 8px; border: 1px solid var(--dt-line); border-radius: 8px; background: #fff; font-size: 13px; color: var(--dt-ink); }
/* editing in the row (Users, Vehicles): the boxes the grid puts in the cells */
.dt-table td input[type="text"] { box-sizing: border-box; width: 100%; min-width: 90px; height: 32px; padding: 0 10px; border: 1px solid var(--dt-line); border-radius: 8px; background: #fff; font-size: 13px; color: var(--dt-ink); }
.dt-table td input[type="checkbox"] { width: 16px; height: 16px; margin: 0; vertical-align: middle; }

/* the settings rows (SettingsEditor): the code puts a class on their fields when a value is wrong ("validation-hint") and REPLACES any class the markup gave them,
   so their look is tied to the row, not to the field */
.dt-dialog tr.dt-setting input[type="text"], .dt-dialog tr.dt-setting select { box-sizing: border-box; width: 100%; height: var(--dt-tap); margin: 0; padding: 0 12px; border: 1px solid var(--dt-line); border-radius: 9px; background: #fff; color: var(--dt-ink); font-size: 14px; outline: none; }
.dt-dialog tr.dt-setting input[type="text"]:focus, .dt-dialog tr.dt-setting select:focus { outline: none; border-color: var(--dt-accent); }
.dt-dialog tr.dt-setting input[type="text"]:disabled, .dt-dialog tr.dt-setting select:disabled { background: #f4f6f9; color: var(--dt-ink-2); cursor: not-allowed; }
.dt-dialog tr.dt-setting input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
.dt-dialog tr.dt-setting input.validation-hint, .dt-dialog tr.dt-setting select.validation-hint { border-color: #c0392b; }
.dt-dialog tr.dt-setting span.validation-hint { display: block; margin-top: 4px; font-size: 12px; color: #a12a2a; }

/* checkboxes of a form, side by side */
.dt-dialog .dt-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.dt-dialog .dt-check-grid .dt-check { margin: 0; }
.dt-dialog .dt-companies { max-height: 320px; }

/* the landing page of Administration: the links as cards */
.admin-menu ul, .admin-menu ul.level1 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.admin-menu ul li { margin: 0; padding: 0; list-style: none; }
.admin-menu ul li a { display: block; padding: 18px 20px; border: 1px solid var(--dt-line); border-radius: var(--dt-radius); background: #fff; box-shadow: var(--dt-shadow); font-size: 15px; font-weight: 600; text-decoration: none; }
.admin-menu ul li a, .admin-menu ul li a:link, .admin-menu ul li a:visited { color: var(--dt-ink); }
.admin-menu ul li a:hover { border-color: var(--dt-accent); color: var(--dt-accent); }


/* ---------- 18. v13: the views of a device (DeviceViews.aspx) and the Trips / Shifts reports ------------------------------ */
/* These pages host the old user controls (Controls/Device*.ascx), which are not touched: they write the old classes (.filter, .data-table, .pager,
   .modal-popup ...). The pages put .dt-views on the main area and every rule below is scoped to it, so the old map (DevicesClassic.aspx) and the other old
   pages keep looking as they did. The old stylesheet has a few !important and some deep selectors: where a rule here has to beat them, it does. */

.dt-views h2.section-title { display: block; margin: 0 0 14px; padding: 0; border: 0; font-size: 22px; line-height: 1.25; font-weight: 700; font-variant: normal; text-transform: none; color: var(--dt-ink); }
.dt-views .section { margin: 0 0 22px; }
.dt-views .section h1, .dt-views .section h2, .dt-views .section h3, .dt-views .section h4, .dt-views .filter h3 { flex: 0 0 100%; margin: 0 0 10px; padding: 0; border: 0; font-size: 15px; line-height: 1.3; font-weight: 700; font-variant: normal; text-transform: none; color: var(--dt-ink); }

/* the filter bar: search / device / dates / company / fleet / Search / Download */
.dt-views .filter { margin: 0 0 14px; padding: 0; }
/* the controls draw the bar as  div.filter > div (the update panel) > fields: the panel is the flexible row */
.dt-views .filter > div { display: flex; flex-wrap: wrap; align-items: center; }
.dt-views .filter .filter-field { display: flex; align-items: center; gap: 8px; position: relative; overflow: visible; margin: 0 14px 10px 0; font-size: 13px; color: var(--dt-muted); }
.dt-views .filter .clear { display: none; }
.dt-views .filter input[type="text"], .dt-views .filter select { box-sizing: border-box; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--dt-line); border-radius: 9px; background: #fff; color: var(--dt-ink); font-size: 14px; outline: none; }
.dt-views .filter input[type="text"].date-picker { width: 160px; }
.dt-views .filter .filter-field.text-search input[type="text"] { width: 230px; padding-right: 36px; }
.dt-views .filter .filter-field.text-search::after { top: 9px; right: 10px; left: auto; color: var(--dt-muted); }
.dt-views .filter input[type="text"]:focus, .dt-views .filter select:focus { border-color: var(--dt-accent); box-shadow: 0 0 0 3px rgba(166, 69, 47, .15); }
.dt-views .filter input[type="checkbox"] { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: middle; }
.dt-views .filter input[type="submit"], .dt-views .filter input[type="button"], .dt-views .modal-popup input[type="submit"], .dt-views .modal-popup input[type="button"] { box-sizing: border-box; height: 38px; margin: 0 14px 10px 0; padding: 0 18px; border: 1px solid var(--dt-line); border-radius: 9px; background: #fff; color: var(--dt-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; vertical-align: middle; }
.dt-views .filter .filter-field input[type="submit"] { margin: 0; }
.dt-views .filter input[type="submit"]:hover, .dt-views .filter input[type="button"]:hover, .dt-views .modal-popup input[type="submit"]:hover, .dt-views .modal-popup input[type="button"]:hover,
.dt-views .filter input[type="submit"]:active, .dt-views .filter input[type="button"]:active, .dt-views .modal-popup input[type="submit"]:active, .dt-views .modal-popup input[type="button"]:active { border-color: #c4d0db; background: #fbfcfe; color: var(--dt-ink); }

/* "Download": a button that opens a list (CSV / XLSX / XLS) while the pointer is on it - the old mechanism, with the old geometry replaced */
.dt-views .button.download-button.multiple-choice-button { position: relative; right: auto; top: auto; display: block; flex: 0 0 auto; box-sizing: border-box; height: 38px; min-width: 128px; margin: 0 0 10px; padding: 0 34px 0 14px; overflow: visible; vertical-align: middle; border: 1px solid var(--dt-line); border-radius: 9px; background: #fff; color: var(--dt-ink); font-size: 13.5px; font-weight: 600; line-height: 36px; text-align: left; }
.dt-views .button.multiple-choice-button:hover { height: 38px; border-color: #c4d0db; background: #fbfcfe; color: var(--dt-ink); }
.dt-views .button.multiple-choice-button::after { top: 6px; right: 8px; font-size: 22px; color: var(--dt-muted); }
.dt-views .button.multiple-choice-button > a { display: none; position: absolute; left: -1px; right: -1px; z-index: 30; box-sizing: border-box; height: 38px; margin: 0; padding: 0 14px; border: 1px solid var(--dt-line); background: #fff; color: var(--dt-ink); font-weight: 500; line-height: 36px; opacity: 1; white-space: nowrap; }
.dt-views .button.multiple-choice-button:hover > a { display: block; }
.dt-views .button.multiple-choice-button > a:hover { background: var(--dt-accent-bg); color: var(--dt-accent-dark); }
.dt-views .button.multiple-choice-button > a:nth-of-type(1) { top: calc(100% - 1px); }
.dt-views .button.multiple-choice-button > a:nth-of-type(2) { top: calc(100% + 37px); }
.dt-views .button.multiple-choice-button > a:nth-of-type(3) { top: calc(100% + 75px); border-radius: 0 0 9px 9px; }

/* the table: the sorted column, the pager and the "Show N of M" box are the ones of EnhancedGridView */
.dt-views table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--dt-line); border-radius: var(--dt-radius); background: #fff; overflow: hidden; }
.dt-views div:has(> table.data-table) { overflow-x: auto; }
.dt-views table.data-table tr th { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--dt-line); background: #fafbfc; color: var(--dt-muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.dt-views table.data-table thead tr { border: 0; background: transparent; }
.dt-views table.data-table tr td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--dt-line-2); background: transparent; font-size: 13.5px; text-align: left; vertical-align: middle; }
.dt-views table.data-table tbody tr, .dt-views table.data-table tbody tr.alt, .dt-views table.data-table tbody tr:nth-child(odd), .dt-views table.data-table tbody tr:nth-child(even) { border: 0; background: transparent; }
.dt-views table.data-table tbody tr:last-child td { border-bottom: 0; }
.dt-views table.data-table > tbody > tr:not(.pager):hover { background: transparent; }
.dt-views table.data-table > tbody > tr:not(.pager):hover td { background: #f7fafd; }
.dt-views table.data-table th a, .dt-views table.data-table th a:link, .dt-views table.data-table th a:visited { display: inline; padding: 0; color: inherit; text-decoration: none; }
.dt-views table.data-table > thead > tr > th > a:hover, .dt-views table.data-table th a:hover { background: transparent; color: var(--dt-accent); }
.dt-views table.data-table th.sort-asc, .dt-views table.data-table th.sort-desc { background: #fafbfc; color: var(--dt-ink); }
.dt-views table.data-table th.sort-asc a::after, .dt-views table.data-table th.sort-desc a::after { margin-left: 6px; font-family: inherit; font-size: 9px; font-weight: 700; color: var(--dt-accent); }
.dt-views table.data-table th.sort-asc a::after { content: "\25B2"; }
.dt-views table.data-table th.sort-desc a::after { content: "\25BC"; }
.dt-views table.data-table tr.pager > td { padding: 12px !important; border-bottom: 0; background: #fafbfd; text-align: center; }
.dt-views table.data-table tr.pager table { float: none; width: auto; margin: 0 auto; border: 0; }
.dt-views table.data-table tr.pager td td { padding: 0 2px !important; border: 0; background: none; }
.dt-views table.data-table tr.pager a, .dt-views table.data-table tr.pager span { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: auto; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--dt-line); border-radius: 8px; background: #fff; color: var(--dt-ink-2); font-size: 13px; line-height: 1; text-decoration: none; }
.dt-views table.data-table tr.pager a:hover { border-color: var(--dt-accent); background: #fff; color: var(--dt-accent); }
.dt-views table.data-table tr.pager span { border-color: var(--dt-accent); background: var(--dt-accent); color: #fff; font-weight: 700; }
.dt-views table.data-table tr.pager .page-size { position: static; margin-top: 8px; padding: 0; text-align: right; font-size: 12.5px; color: var(--dt-muted); }
.dt-views table.data-table tr.pager .page-size select { width: auto; height: 30px; margin: 0 4px; padding: 0 8px; border: 1px solid var(--dt-line); border-radius: 8px; background: #fff; font-size: 13px; color: var(--dt-ink); }

/* the buttons of a row (Details / Route / TIM Details ...): small light buttons with icon and text, not the old red ones */
.dt-views table.data-table a.button, .dt-views table.data-table a.command-button { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; height: 32px; margin: 0 4px 0 0; padding: 0 12px 0 10px; border: 1px solid var(--dt-line); border-radius: 8px; background: #fff; color: var(--dt-ink-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dt-views table.data-table a.button:hover, .dt-views table.data-table a.command-button:hover { border-color: var(--dt-accent); background: #fff; color: var(--dt-accent); }

/* the search-by-device tokens (jQuery token input) */
.dt-views ul.token-input-list-devicetrack { box-sizing: border-box; min-width: 240px; min-height: 38px; padding: 3px 6px; border: 1px solid var(--dt-line); border-radius: 9px; background: #fff; font-family: inherit; font-size: 13px; }
.dt-views ul.token-input-list-devicetrack li input { padding: 3px 4px; background: transparent; font-size: 13px; }
.dt-views li.token-input-token-devicetrack { margin: 3px 4px 3px 0; padding: 2px 9px; border: 1px solid #e8c9bf; border-radius: 999px; background: var(--dt-accent-bg); color: var(--dt-accent-dark); font-size: 12px; font-weight: 600; }
.dt-views li.token-input-token-devicetrack span { margin-left: 6px; color: var(--dt-accent-soft); }
.dt-views li.token-input-selected-token-devicetrack { border-color: var(--dt-accent); background: var(--dt-accent); color: #fff; }
body div.token-input-dropdown-devicetrack { border: 1px solid var(--dt-line); border-radius: 0 0 9px 9px; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); font-family: inherit; font-size: 12.5px; z-index: 3500; }

/* the map of a trip's route / of the tracking */
.dt-views #map { margin: 0 0 14px; border: 1px solid var(--dt-line); border-radius: var(--dt-radius); overflow: hidden; }

/* the details windows (a trip, a shift, a transaction, the import of tracking data) and the "please wait" box */
.dt-views .modal-background { background: rgba(21, 27, 38, .45); opacity: 1; filter: none; z-index: 3000; }
.dt-views .modal-popup { box-sizing: border-box; z-index: 3001; min-width: 360px; padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.dt-views .modal-popup.modal-big { width: 92vw !important; max-width: 980px !important; height: 88vh !important; max-height: 880px !important; }
.dt-views .modal-popup h2 { margin: 0 0 14px; padding: 0 34px 12px 0; border-bottom: 1px solid var(--dt-line); font-size: 18px; line-height: 1.3; font-weight: 700; font-variant: normal; text-transform: none; color: var(--dt-ink); }
.dt-views .modal-popup .modal-popup-content { top: 66px; left: 24px; right: 24px; bottom: 22px; }
.dt-views .has-command-row .modal-popup-content { bottom: 68px; }
.dt-views .modal-popup .command-row { left: 24px; right: 24px; bottom: 20px; padding-top: 12px; border-top: 1px solid var(--dt-line); text-align: right; }
.dt-views .modal-popup .command-row td { text-align: right; }   /* in the import window it is a table row */
.dt-views .modal-popup .modal-popup-close { top: 22px; right: 24px; }
.dt-views #loading { border-radius: 12px; }

/* inside a details window: the key / value tables, and the Hex / Base64 tabs */
.dt-views table.item-table { width: 100%; margin: 0 0 18px; border-collapse: collapse; }
.dt-views table.item-table th, .dt-views table.item-table td { padding: 7px 12px; border: 0; border-bottom: 1px solid var(--dt-line-2); font-size: 13.5px; text-align: left; vertical-align: top; }
.dt-views table.item-table thead tr, .dt-views table.item-table tbody tr, .dt-views table.item-table tbody tr:nth-child(odd), .dt-views table.item-table tbody tr:nth-child(even) { border: 0; background: transparent; }
.dt-views table.item-table tbody th { width: 38%; color: var(--dt-muted); font-weight: 600; text-align: left; }
.dt-views table.item-table .section th { padding: 14px 12px 8px; border-bottom: 1px solid var(--dt-line); color: var(--dt-ink); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.dt-views .hex, .dt-views .base64 { font-family: var(--dt-mono); font-size: 12.5px; }
.dt-views .tabs > ul > li > a { border: 1px solid var(--dt-line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #fafbfc; color: var(--dt-ink-2); font-size: 12px; }
.dt-views .tabs > ul > li:first-child > a, .dt-views .tabs > ul > li:last-child > a { border-radius: 8px 8px 0 0; }
.dt-views .tabs > ul > li.selected > a { border-bottom: 1px solid #fff; background: #fff; color: var(--dt-accent); font-weight: 700; }
.dt-views .tabs > div { border: 1px solid var(--dt-line); border-radius: 0 8px 8px 8px; padding: 8px 10px; }

