﻿/* dts - 11-12-26 - Claude: the finder's look, shared by every finder tab (Traffic Cop, Message Tracker, Appointments, Recent
   Visits, Directory) and the shell (FinderPage.razor). Moved here unchanged from TrafficCop.razor.css (scoped CSS only reaches
   one component); "::deep" dropped since a global sheet reaches DevExpress's inner elements anyway. All fd-* / mt-* names.
   - built w the help of AI */

/* dts - 10-30-26 17:50 - Claude: finder layout = the agreed refreshed design (canvas 10-30). Find on top, list in the middle,
   blue action bar for the selected visit under it, cream history panel on the right; list and history share the height and
   scroll on their own; stacks on a phone. Status colours come from grid5851.css (fixed Globals colours). - built w the help of AI */

.fd { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.fd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fd-title { font-weight: 600; color: #315678; font-size: 1rem; }
/* 11-13-26 Claude: 32 px, the same height as the standard .b5 button beside it (Schedule Planner) */
.fd-search { flex: 1 1 320px; min-width: 0; height: 32px; box-sizing: border-box; padding: 4px 8px; border: 1px solid #b9c0ca; border-radius: 4px; }
.fd-countdown { font-size: .75rem; color: #4a5260; }
.fd-iconbtn { width: 30px; height: 30px; border: 1px solid #b9c0ca; border-radius: 4px; background: #fff; color: #2e8b3a; font-size: 1rem; cursor: pointer; }
.fd-iconbtn:disabled { color: #aab; cursor: default; }

/* 10-31-26 20:40 Claude: tab control - folder tabs on their own surface; the active tab is white and joins the panel */
.fd-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px; padding: 0 6px; margin-bottom: -5px; position: relative; z-index: 1; }
.fd-tab { padding: 3px 12px 4px; border: 1px solid #c3ccd8; border-radius: 6px 6px 0 0; background: #e6ecf3; color: #3a4a5c; font-size: .8rem; white-space: nowrap; }
.fd-tab:not(.active):not(.disabled):hover { background: #d7e1ec; cursor: pointer; }
.fd-tab.active { border-bottom-color: #fff; background: #fff; color: #1f3a52; font-weight: 600; padding-top: 5px; padding-bottom: 5px; box-shadow: inset 0 3px 0 #315678; }
.fd-tab.disabled { background: #eef1f5; color: #8792a0; font-style: italic; cursor: default; }
.fd-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #c3ccd8; border-radius: 0 6px 6px 6px; padding: 6px; }
.fd-badge { background: #315678; color: #fff; border-radius: 999px; padding: 0 6px; font-size: .72rem; }

.fd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fd-group { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: #4a5260; }
.fd-group select { font-size: .76rem; padding: 1px 3px; }
.fd-seg { display: flex; flex-wrap: wrap; border: 1px solid #b9c0ca; border-radius: 4px; overflow: hidden; }
.fd-seg button { border: 0; border-right: 1px solid #d9dde3; background: #fff; padding: 1px 7px; font-size: .75rem; cursor: pointer; color: #3a414c; }
.fd-seg button:last-child { border-right: 0; }
.fd-seg button.on { background: lightyellow; font-weight: 700; font-style: italic; color: #1b1f24; }   /* CHECKED_COLOR, like WinForms */
.fd-seg button:disabled { color: #9aa2ad; cursor: default; }
.fd-spacer { flex: 1; }
.fd-muted { font-size: .75rem; color: #5a6472; }
.fd-btn { border: 1px solid #b9c0ca; border-radius: 4px; background: #fff; padding: 3px 10px; cursor: pointer; }
.fd-primary { background: #315678; border-color: #315678; color: #fff; }
.fd-btn:disabled { opacity: .5; cursor: default; }
.fd-showing { display: flex; align-items: center; gap: 8px; background: #fffbe0; border: 1px solid #ece3a8; padding: 1px 4px 1px 8px; font-size: .76rem; color: #4a3f00; }
.fd-showing-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-btn-sm { padding: 0 8px; font-size: .75rem; }
.fd-problem { color: #8a1c1c; }
.fd-working { color: #5a6472; padding: 1rem; }

.fd-main { flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.fd-left { flex: 999 1 560px; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.fd-gridwrap { flex: 1 1 0; min-height: 160px; display: flex; flex-direction: column; }
.fd-gridwrap .dxbl-grid { flex: 1; min-height: 0; height: 100%; }

.fd-actions { display: flex; flex-direction: column; gap: 5px; padding: 6px 8px; background: #315678; border-radius: 4px; }
/* 11-01-26 07:20 Claude: action bar tabs - the selected visit on the left, Technician / General tabs on the right */
.fd-atop { display: flex; align-items: center; gap: 8px; }
/* 11-01-26 07:55 Claude: vertical tabs down the left edge of the blue bar (Damian: tabs on top wasted height; no gold stripe) */
.fd-actwrap { display: flex; align-items: stretch; }
.fd-atabs { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; flex: 0 0 auto; }
.fd-atab { writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 3px; border: 1px solid #c3ccd8; border-left: 0; border-radius: 0 6px 6px 0; background: #e6ecf3; color: #3a4a5c; font-size: .72rem; cursor: pointer; margin-right: -1px; }
.fd-atab:not(.on):hover { background: #d7e1ec; }
.fd-atab.on { background: #315678; border-color: #315678; color: #fff; font-weight: 600; }
.fd-atab:focus { outline: none; }
.fd-atab:focus-visible { box-shadow: 0 0 0 2px #9fc0e0; }
.fd-actwrap .fd-actions { flex: 1 1 auto; min-width: 0; }
.fd-abtns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.fd-sel { flex: 1 1 auto; min-width: 0; color: #FCD08D; font-weight: 600; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-lbl { color: #fff; font-size: .75rem; }
.fd-seg-gold { border-color: #FCD08D; }
.fd-abtn { border: 1px solid #fff; border-radius: 4px; background: #fff; color: #1f3a52; padding: 3px 8px; font-size: .78rem; cursor: pointer; }
.fd-abtn:disabled, .fd-seg-gold button:disabled { background: transparent; color: #c9d6e3; border-color: #7f9ab3; cursor: not-allowed; }

/* 10-31-26 21:20: VIN (tap to copy), best number (phone link), contact - small cards so they read as things you can use */
.fd-fact { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px; border: 1px solid #e0d3ad; border-radius: 6px; background: #fffdf6; color: #1f2a36; text-decoration: none; font: inherit; }
.fd-flbl { color: #7a6a45; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; }
.fd-fval { font-weight: 600; }
.fd-fval.mono { font-family: Consolas, 'Cascadia Mono', monospace; letter-spacing: .02em; }
.fd-copy { cursor: pointer; }
.fd-copy:hover, a.fd-fact:hover { border-color: #315678; background: #fff; }
.fd-copied { color: #2e8b3a; font-size: .7rem; }
.fd-more:disabled { color: #a9a08a; cursor: not-allowed; margin-left: -3px; }
/* 10-31-26 22:10 Claude: history type chips (frmFinder supersearch shortcuts) - colours match the line chips */
.fd-ctx { font-size: .78rem; color: #3a414c; }
/* 10-31-26 Claude: compact history line - fixed narrow age column, camera slot, then the text (Damian, option A) */
/* 10-31-26 16:50 Claude: the line type as a small fixed-width chip, coloured by LineKind (Damian); full type in the tooltip */
/* 10-31-26 18:00: two lines inside the chip ("Internal / Message"), so the whole type shows (Damian) */

/* 10-30-26 18:50 Claude: wide screens - everything fits the window; the list and history scroll inside, never the page,
   so the blue action bar is always on screen (Damian: it sometimes needed scrolling). Before, the history panel could
   wrap under the list when the window narrowed, or a long history detail pushed the page taller. */
@media (min-width: 901px) {
    .fd-main { flex-wrap: nowrap; overflow: hidden; }
    .fd-left { flex: 3 1 0; }
    .fd-right { flex: 2 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
    .fd-right .fd-actwrap { flex: 1 1 auto; min-height: 90px; overflow: auto; }   /* dts - 11-9-26: the card has the whole column (history is a popup) */
}

@media (max-width: 900px) {
    .fd { height: auto; }
    .fd-gridwrap { flex: none; max-height: 60vh; }
    .fd-sel { max-width: 100%; }
}
/* 10-31-26 22:30 Claude: Next Promise chip + Parts Arrived tick */
.fd-np { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fd-npage { font-variant-numeric: tabular-nums; min-width: 2.6em; font-weight: 600; }
.fd-npchip { font-size: .62rem; font-weight: 700; line-height: 1.35; padding: 0 6px; border-radius: 7px; border: 1px solid rgba(0,0,0,.18); background: rgba(255,255,255,.75); color: #1f2a36; }
.fd-npchip.k-contact { color: #1d4f8a; }
.fd-npchip.k-completion { color: #6a3d00; }
.fd-npchip.k-none { color: #6b7380; font-weight: 600; }
.fd-check { color: #1f6b35; font-weight: 800; }
/* 10-31-26 22:55 Claude: history type - small "Types" button / the chosen chip with x; chips open under the search bar */
/* 10-31-26 23:05 Claude: stop the visit grid's scrollbar flicker (Damian) - same fix as the message queue (10-24): reserve
   the scrollbar's room so a list that overflows by a few px doesn't keep adding/removing it and re-laying out */
.fd-gridwrap .dxbl-scroll-viewer-content { scrollbar-gutter: stable; }
/* 11-01-26 Claude: one-line, compact column headers (Damian: "To Log" wrapping made the whole header row two lines tall) */
.fd-gridwrap th, .fd-gridwrap th * { white-space: nowrap; }
.fd-gridwrap th { padding-top: 3px !important; padding-bottom: 3px !important; font-size: .78rem; }


/* dts - 11-01-26 14:15 - Claude: action bar lighter and smaller (Damian 11-01: too dark, too big; let the page colour from the
                   IM notification system bleed through). A see-through blue gradient, stronger on the left by the tabs, fading to
                   the right. Dark text now, since the background is light. Overrides the rules above. - built w the help of AI */
.fd-actions { gap: 3px; padding: 4px 6px; background: linear-gradient(to right, rgba(49, 86, 120, .38), rgba(49, 86, 120, .08)); border: 1px solid rgba(49, 86, 120, .30); }
.fd-abtns { gap: 4px; }
.fd-sel { flex: 1 1 12em; margin-right: auto; color: #1f3a52; font-size: .76rem; }
.fd-lbl { color: #1f3a52; font-weight: 600; font-size: .72rem; }
.fd-abtn { padding: 2px 7px; font-size: .74rem; border-color: rgba(49, 86, 120, .45); }
.fd-abtn:not(:disabled):hover { background: #eef4fa; }
.fd-abtn:disabled, .fd-seg-gold button:disabled { background: rgba(255, 255, 255, .40); color: #6f7f90; border-color: rgba(49, 86, 120, .25); }
.fd-seg-gold { border-color: rgba(49, 86, 120, .35); }
.fd-seg-gold button { background: rgba(255, 255, 255, .40); }
.fd-atabs { padding: 4px 0; }
.fd-atab { padding: 8px 2px; font-size: .70rem; background: rgba(230, 236, 243, .75); }
.fd-atab.on { background: rgba(49, 86, 120, .38); border-color: rgba(49, 86, 120, .30); color: #13283d; font-weight: 700; }

/* dts - 11-02-26 - Claude: Traffic Cop redesign (Damian 11-02) - key tag badge, parts chip, Next as age + icon, the
                   selected-visit card in the blue panel, and the iPhone card list. - built w the help of AI */
.fd-ell { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-who { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.fd-who-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.fd-who-veh { color: #4a5260; font-size: .74rem; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; min-width: 0; }
/* key tag: OF = old friend (teal), NF = new friend (violet) */
.fd-key { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 0 6px 0 4px; border-radius: 9px; font-size: .7rem; line-height: 1.45; border: 1px solid #cfd5dd; background: #f1f3f6; color: #3a414c; font-variant-numeric: tabular-nums; }
.fd-key.k-of { background: #fff3d4; border-color: #c99a2e; color: #7a4f00; }   /* 11-02-26: old friend = brass (Damian: too close before) */
.fd-key.k-nf { background: #e2efff; border-color: #6f9fd8; color: #1a4f94; }   /* new friend = modern blue */
/* 11-02-26 17:40 Claude: parts status as plain text, no chip (Damian: chips fought the row colours; same call as Role).
   17:50: no colour either (Damian: why colour this column?) - the row colour is the board; parts sorts worst-first by the
   model's PartsSortKey. Never cut off: no ellipsis - the column is sized for the longest ("39/43 · no ETA"). */
.fd-parts { display: inline-block; white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
/* Next: age + flag (completion) / phone (contact); red when past */
.fd-next { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-next.k-contact svg { color: #1d4f8a; }
.fd-next.k-completion svg { color: #1b1f24; }   /* 11-02-26: checkered flag - black / white, red when late */
.fd-next.late { color: #b01c1c; }
.fd-next.late svg { color: #b01c1c; }
.fd-next.none { color: #8a929c; font-weight: 400; }

/* selected-visit card (blue panel) */
.fd-vcard { display: flex; flex-direction: column; gap: 3px; padding: 4px 6px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(49, 86, 120, .25); border-radius: 5px; }
.fd-vcard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.fd-vcard-who { font-weight: 700; color: #1f3a52; }
.fd-vcard-veh { color: #3a414c; font-size: .78rem; }
.fd-vcard-st { flex: 1 1 14em; min-width: 0; color: #4a5260; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.fd-vcard .fd-fact { align-items: center; }

/* iPhone: cards instead of the grid */
.fd-phone { display: none; }
@media (max-width: 600px) {
    .fd-wide { display: none !important; }
    .fd-phone { display: flex; flex-direction: column; gap: 4px; }
    .fd-psort { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #4a5260; }
    .fd-psort .fd-seg button { padding: 3px 8px; font-size: .78rem; }
    .fd-cards { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow: auto; }
    .fd-vc { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 1px solid #d3d9e1; border-radius: 6px; background: #fff; padding: 5px 8px; font: inherit; cursor: pointer; }
    .fd-vc.sel { box-shadow: 0 0 0 2px #315678; }
    .fd-vc-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .fd-vc-top .fd-who-name { flex: 1 1 auto; }
    .fd-vc-veh { color: #4a5260; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fd-vc-bot { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .76rem; }
    .fd-vc-status { flex: 1 1 auto; color: #3a414c; }
    .fd-vc-log { flex: 0 0 auto; color: #4a5260; font-variant-numeric: tabular-nums; }
    .fd-vcard-st { text-align: left; white-space: normal; }
}
/* phone cards use the same house row colours as the grid (grid5851.css only colours grid rows) */
.fd-vc.row-red { background: lightcoral; }
.fd-vc.row-yellow { background: yellow; }
.fd-vc.row-green { background: yellowgreen; }
.fd-vc.row-blue { background: lightsteelblue; }
.fd-vc.row-lightgreen { background: lightgreen; }
/* 11-02-26 Claude: refresh companions in the Showing bar; reply button in the history search row */
.fd-refresh { flex: 0 0 auto; border: 1px solid #b9c0ca; border-radius: 4px; background: #fff; padding: 0 8px; font-size: .75rem; cursor: pointer; color: #1f3a52; white-space: nowrap; }
.fd-refresh:hover { background: #eef4fa; }
.fd-cd { color: #6b7380; font-variant-numeric: tabular-nums; margin-left: 2px; }
.fd-role { white-space: nowrap; }
.fd-roleitem { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; }
/* 11-02-26 17:35 Claude: the role icons come in as MarkupString, which Blazor's scoped CSS can't see - a plain ".fd-roleitem svg"
   rule never applied, so with several roles the icons shrank (Damian 17:26). reaches them: fixed size, never shrink. */
.fd-roleitem svg { flex: 0 0 auto; width: 12px; height: 12px; }
/* 11-02-26 17:30 Claude: icons first, then the names - the names get the "…" when the column is narrow, the icons never do */
.fd-roleitem { max-width: 100%; }
.fd-rolenames { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 11-02-26 09:10 Claude: promise date/time and client waiting on the selected-visit card */
.fd-fact.fd-waiting { background: #d63b3b; border-color: #b02626; color: #fff; font-weight: 700; }
.fd-fact.fd-late .fd-fval { color: #b01c1c; }
/* 11-02-26 09:30 Claude: the status on the selected-visit card stands out (Damian: too subtle) - solid house-blue label,
   white bold text, pushed to the right; still cut with … if very long, full text on hover */
.fd-vcard-st { flex: 0 1 auto; margin-left: auto; max-width: 75%; /* 11-02-26 17:35 Claude: was 60% - roles added */ text-align: left; background: #315678; color: #fff; font-weight: 700; font-size: .78rem; padding: 2px 10px; border-radius: 4px; }
@media (max-width: 600px) { .fd-vcard-st { margin-left: 0; max-width: 100%; white-space: nowrap; } }
/* 11-02-26 17:35 Claude: roles responsible on the card's status label, after a thin divider, white icons + names */
.fd-vcard-roles { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.55); font-weight: 600; }
.fd-vcard-role { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; vertical-align: middle; }
.fd-vcard-role:last-child { margin-right: 0; }
.fd-vcard-role svg { flex: 0 0 auto; width: 13px; height: 13px; }
/* 11-02-26 09:45 Claude: whose history this is (from the server) - and a warning if it isn't the selected visit */

/* dts - 11-4-26 07:30 - Claude: selected-visit card = fixed blocks in a fixed order (no reflow between visits) - built w the help of AI */
.fd-cardgrid { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: .75rem; color: #1f2a36; margin-top: 4px; }
.fd-blk { border: 1px solid #e0d3ad; border-radius: 6px; background: #fffdf6; padding: 3px 8px; }
.fd-blk-parts { background: #FCD08D; border-color: #d9a84a; }          /* shop accent gold - Parts always first and obvious (Damian 11-4) */
.fd-blk-parts .fd-fval { font-weight: 700; }
.fd-blk-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fd-blk-detail { font-weight: 500; }
.fd-blk-stock { white-space: pre-line; font-weight: 600; margin-top: 2px; padding-top: 2px; border-top: 1px dashed #c99a3e; }
.fd-blk-visit { display: grid; grid-template-columns: max-content 1fr; gap: 1px 8px; align-items: baseline; }
.fd-blk-row2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.fd-sep { color: #b9a77a; }
.fd-tel { color: #315678; text-decoration: none; }
.fd-tel:hover { text-decoration: underline; }
.fd-vinbtn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; color: inherit; }
.fd-vinbtn:disabled { cursor: default; color: #9aa3ad; }
.fd-waittag { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #d63b3b; color: #fff; font-weight: 700; }
.fd-blk .fd-late { color: #b01c1c; }

/* dts - 11-4-26 07:40 - Claude: right column - card over history with a drag bar (Damian 11-04) - built w the help of AI */
.fd-right { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 900px) {
    .fd-right { flex: 1 1 100%; gap: 8px; }
}

/* dts - 11-4-26 08:00 - Claude: 3-column grid - two-line Visit cell + sort chips above (Damian 11-04) - built w the help of AI */
.fd-gsort { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: #4a5260; padding: 0 0 3px 2px; }
.fd-gsort .fd-seg button { padding: 2px 8px; font-size: .78rem; }
.fd-v2 { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fd-v2-bot { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .78rem; }
.fd-v2-bot .fd-role { flex: 0 0 auto; color: #3a414c; white-space: nowrap; }
.fd-v2-veh { flex: 1 1 0; min-width: 0; color: #3a414c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dts - 11-4-26 08:40 - Claude: blue panel tabs across the top (Technician / Wizards / Parts) + Copy PO beside the key tag - built w the help of AI */
.fd-ttabs { display: flex; gap: 3px; border-bottom: 1px solid rgba(49, 86, 120, .30); margin: -2px -4px 2px; padding: 0 4px; }
.fd-ttab { border: 1px solid rgba(49, 86, 120, .30); border-bottom: 0; border-radius: 6px 6px 0 0; background: rgba(230, 236, 243, .75); color: #3a4a5c; font-size: .78rem; padding: 3px 12px; cursor: pointer; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fd-ttab:not(.on):hover { background: #d7e1ec; }
.fd-ttab.on { background: #fff; color: #13283d; font-weight: 700; }
.fd-ttab:focus { outline: none; }
.fd-ttab:focus-visible { box-shadow: 0 0 0 2px #9fc0e0; }
.fd-ttab-parts { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; background: #FCD08D; border-radius: 9px; padding: 0 7px; font-size: .74rem; }
.fd-pobtn { border: 1px solid #c3ccd8; background: #fff; border-radius: 5px; font-size: .72rem; padding: 0 5px; color: #315678; cursor: pointer; line-height: 1.5; }
.fd-pobtn:hover { background: #eef3f8; }
/* 11-5-26 Claude: Inspections tab header caption (model's x/y complete) */
.fd-ttab-insp { display: inline-flex; align-items: center; font-weight: 600; background: #dfe8f2; border-radius: 9px; padding: 0 7px; font-size: .74rem; }

/* 11-6-26 07:20 Claude: the card tabs ran off a phone (Damian 11-06) - short labels + tighter tabs on narrow screens; the row
   scrolls sideways as a last resort instead of pushing the page wider. Layout only. */
.fd-ts { display: none; }
@media (max-width: 700px) {
    .fd-ttabs { overflow-x: auto; scrollbar-width: none; }
    .fd-tl { display: none; }
    .fd-ts { display: inline; }
    .fd-ttab { padding: 3px 7px; gap: 4px; }
    .fd-ttab-parts, .fd-ttab-insp { padding: 0 5px; }
}

/* dts - 11-9-26 11:10 - Claude: the finder's inline history rules (fd-hist, .hp) removed - history is Shared/HistoryPopup now */
/* 11-7-26 Claude: vehicle basics link on the blue card */


/* dts - 11-8-26 - Claude: card + WinForms-style tool column (Damian 11-08: no tabs, be more like the WinForms RHS tools).
                   The card takes the room; the tools are one narrow column on the right, Wizards: then tools. At 900px and
                   down the column wraps under the card as a flowing row of buttons. Layout only. - built w the help of AI */
.fd-actrow { flex-direction: row; align-items: flex-start; gap: 6px; }
.fd-cardcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fd-tools { flex: 0 0 7.6rem; display: flex; flex-direction: column; gap: 3px; }   /* 11-8-26 11:30: narrower (Damian) - long captions wrap to 2 lines */
.fd-tools-h { color: #1f3a52; font-weight: 700; font-size: .72rem; margin-top: 2px; }
.fd-tools-h:first-child { margin-top: 0; }
.fd-tbtn { text-align: left; border: 1px solid rgba(49, 86, 120, .45); border-radius: 4px; background: #fff; color: #1f3a52; padding: 2px 6px; font-size: .74rem; line-height: 1.15; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.fd-tbtn:not(:disabled):hover { background: #eef4fa; }
.fd-tbtn.fd-twiz { border-color: #E0B060; }
.fd-tbtn.fd-twiz:not(:disabled) { background: #FFF6E0; }
.fd-tbtn:disabled { background: rgba(255, 255, 255, .40); color: #6f7f90; border-color: rgba(49, 86, 120, .25); cursor: not-allowed; }
@media (max-width: 900px) {
    .fd-actrow { flex-wrap: wrap; }
    .fd-cardcol { flex-basis: 100%; }
    .fd-tools { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .fd-tools-h { flex-basis: 100%; margin-top: 2px; }
    .fd-tbtn { flex: 0 0 auto; }
}

/* 11-8-26 12:05 Claude: the blue panel grows with its content (Damian 11:59: "the tools panel blue background stops before the
   tools do"). It was stretched to the scrolling area's visible height, so a tall tool column scrolled past its background.
   Now it starts at the top and is at least as tall as the area, taller when its content is. Layout only. */
.fd-actwrap { align-items: flex-start; }
.fd-actwrap .fd-actions { min-height: 100%; }

/* dts - 11-9-26 11:50 - Claude: History = the shared icon button (Shared/HistoryButton) - first of the tools */

/* dts - 11-9-26 12:00 - Claude: tool buttons with an icon (Shared/ICONS.md) - icon left of the words */
.fd-tbtn svg { margin-right: 5px; }

/* dts - 11-12-26 - Claude: finder shell (FinderPage.razor) - every tab stays mounted so its live view keeps its count; the
   hidden ones are display:none. - built w the help of AI */
.fd-tabbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.fd-tabbody.fd-hidden { display: none !important; }
.fd-tabinner { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.fd-rotate { font-size: .72rem; color: #5a6472; white-space: nowrap; }
.fd-tab .fd-badge.unknown { background: #8792a0; }

/* dts - 11-12-26 - Claude: Message Tracker tab (frmFinder xtraTabPage1) - list left, the picked message on the right with
   the WinForms buttons (Details / Reply, picture) and the ADMIN TOOLS box (Mark acknowledged, Delete). - built w the help of AI */
.mt-msg { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mt-msg-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-detail { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; background: #fbf7ea; border: 1px solid #e3dcc2; border-radius: 6px; padding: 8px; overflow: hidden; }
.mt-short { font-weight: 600; color: #1f3a52; }
.mt-context { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #4a5260; }
.mt-body { background: #fff; border: 1px solid #e3dcc2; border-radius: 4px; padding: 6px 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.mt-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-admin { border: 1px solid #c3ccd8; border-radius: 4px; padding: 6px 8px 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mt-admin-h { flex: 0 0 100%; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: #4a5260; }
.mt-result { font-size: .78rem; color: #8a1c1c; }
.mt-result.ok { color: #1f6b35; }

/* dts - 11-12-26 - Claude: in-app confirm for the finder's admin tools (same look as the queue's Acknowledge dialog) */
.fd-dlg-backdrop { position: fixed; inset: 0; height: 100dvh; z-index: 1000; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fd-dlg { background: #fff; border-radius: 8px; max-width: 420px; width: 100%; padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.fd-dlg-text { font-size: .9rem; line-height: 1.35; margin-bottom: 14px; }
.fd-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* dts - 11-12-26 - Claude: Recent Visits To do chips (the model's flags) */
.rv-todo { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.rv-chip { font-size: .66rem; font-weight: 700; padding: 0 6px; border-radius: 7px; border: 1px solid #c9b35a; background: #fff6cc; color: #5a4700; white-space: nowrap; }

/* dts - 11-12-26 - Claude: stacked finder rows (Appointments / Recent Visits) - small second lines that wrap, numbers right. - built w the help of AI */
.fd-v2-wrap { white-space: normal; font-size: .82rem; line-height: 1.2; }
.fd-num { align-items: flex-end; }
.rv-pp { color: #8a2d1c; }
.fd-v2-bot .rv-todo { flex: 0 0 auto; flex-wrap: nowrap; }
/* dts - 11-12-26 - Claude: finder detail = scrolling content + pinned button footer (Damian 09:00 "sticky at the bottom"). - built w the help of AI */
.mt-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.mt-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #e3dcc2; padding-top: 6px; }

/* dts - 11-13-26 07:55 - Claude: Schedule Planner key squares - shared by PlannerCounts (strip + counts) and PlannerLegend.
   Each kind must read on any tile colour (green / yellow / red / blue) and in black & white: solid, half, hatched, tick, empty. */
.pc-box, .pc-key { display: inline-block; position: relative; width: 12px; height: 12px; border: 1.5px solid #1f2a36; border-radius: 2px;
                   box-sizing: border-box; flex: 0 0 auto; background: #fff; }
.k-conf { background: #1f2a36; }                                                                    /* confirmed: solid */
.k-client { background: linear-gradient(90deg, #1f2a36 50%, #fff 50%); }                            /* client request: half */
.k-auto { background: #fff repeating-linear-gradient(45deg, #1f2a36 0 1.5px, transparent 1.5px 4px); } /* automatic reservation: hatched */
.k-done { background: #1f2a36; }                                                                    /* checked in: solid + white tick */
.k-done::after { content: ""; position: absolute; left: 33%; top: 8%; width: 25%; height: 55%; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); box-sizing: border-box; }   /* scales with the box */
.k-open { background: rgba(255,255,255,.6); border-style: dashed; }                                 /* open slot: empty, dashed */
.pc-overbox { outline: 2px solid #b00020; outline-offset: 0; }                                      /* past capacity */

/* 11-16-26 Claude: the finder Tabs menu (per-person tabs, saved on the staff member) */
.fd-tab.fd-tabsbtn { margin-left: auto; background: #f4f7fa; color: #315678; cursor: pointer; }
.fd-tab.fd-tabsbtn:hover { background: #d7e1ec; }
.fd-tabsmenu { position: absolute; right: 6px; top: 100%; z-index: 20; min-width: 300px; background: #fff; border: 1px solid #c3ccd8; border-radius: 8px; box-shadow: 0 6px 18px rgba(31,58,82,.18); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fd-tm-title { font-weight: 600; color: #1f3a52; font-size: .9rem; }
.fd-tm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; min-height: 32px; }
.fd-tm-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.fd-tm-row input { width: 18px; height: 18px; }
.fd-tm-start { color: #8792a0; cursor: pointer; white-space: nowrap; padding: 2px 6px; border-radius: 4px; }
.fd-tm-start:hover { background: #eef1f5; }
.fd-tm-start.on { color: #315678; font-weight: 600; }
.fd-tm-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
