/* client-slots.css v2.4 (2026-11-02: Client ID / Person # under the name 13px) client-slots.css v2.2 (2026-11-01: status under type / gender in the tab) v2.1 (2026-11-01: flags right after RISK under an "Alerts" label) v2.0 (2026-11-01: line after RISK, flags in two rows of four) v1.9 (2026-11-01: type and gender under the client ID in the tab) v1.8 (2026-11-01: labels line up when a value is empty) v1.7 (2026-11-01: 76px bar, 52x64 photo) v1.6 (one line between the tabs and TYPE) v1.5 (2026-11-01: no line after the client tabs at all) v1.4 (2026-11-01: tabs start at the screen edge; no double line after the last tab) v1.3 (2026-11-01, Joseph: bar a bit taller, 62px) v1.2 (2026-11-01, Joseph: each label sits above its value) v1.1 (2026-11-01, Joseph: taller Client Info Bar, alert flags at its right end, photo card + Manage Alerts and the Standard/Wizards tabs gone from the Left Navigation) v1.0 (2026-11-01, Joseph): open-client tabs on the Client Info Bar (photo + name + client ID), "+ Add client".
   Modeled on the Orbit concept page: flat full-height tabs, the active one underlined, the other dimmed and grey. */
#clientStrip .client-slots{display:flex;align-items:stretch;align-self:stretch;flex-shrink:0;margin-right:8px;border-right:1px solid var(--t-border)}
#clientStrip .client-slot{display:flex;align-items:center;gap:2px;padding:0 6px 0 12px;border-right:1px solid var(--t-border);opacity:.5;transition:opacity .15s ease}
#clientStrip .client-slot.active{opacity:1;background:var(--t-selected,transparent);box-shadow:inset 0 -2px 0 var(--t-accent)}
#clientStrip .client-slot:not(.active):hover,#clientStrip .client-slot:not(.active):focus-within{opacity:.85}
#clientStrip .client-slot button{border:0;border-radius:0;background:none;box-shadow:none;color:inherit;padding:0;min-height:0}
#clientStrip .slot-open{display:flex;align-items:center;gap:9px;height:100%;text-align:left}
#clientStrip .client-slot.active .slot-open{cursor:default}
#clientStrip .slot-photo{flex:none;display:grid;place-items:center;width:40px;height:48px;border-radius:4px;border:1px solid var(--t-border);background:var(--t-inset,transparent);overflow:hidden;font:600 10px 'Segoe UI',Arial,sans-serif;color:var(--t-muted)}
#clientStrip .slot-photo img{width:100%;height:100%;object-fit:cover;display:block}
#clientStrip .client-slot:not(.active) .slot-photo{filter:grayscale(1)}
#clientStrip .slot-name{display:flex;flex-direction:column;line-height:1.15;white-space:nowrap}
#clientStrip .slot-name strong{font-size:12px;font-weight:500;color:var(--t-strong)}
#clientStrip .client-slot.active .slot-name strong{font-size:13px;font-weight:600}
#clientStrip .slot-name small{font:13px Consolas,monospace;color:var(--t-accent);margin-top:2px}   /* v2.4: Client ID / Person # bigger (Joseph) */
#clientStrip .client-slot .slot-close{padding:2px 5px;margin-left:4px;font-size:14px;line-height:1;color:var(--t-muted);opacity:.55}
#clientStrip .client-slot .slot-close:hover{opacity:1;color:var(--t-strong)}
#clientStrip .client-slot:not(.active) .slot-close{visibility:hidden}
#clientStrip .client-slot:not(.active):hover .slot-close,#clientStrip .client-slot:not(.active):focus-within .slot-close{visibility:visible}
#clientStrip .client-slot-add{align-self:stretch;border:0;border-radius:0;background:none;box-shadow:none;padding:0 14px;font-size:12px;color:var(--t-accent);white-space:nowrap}
#clientStrip .client-slot-add:hover{background:var(--t-selected,transparent)}
#clientStrip .client-slot-add.adding{box-shadow:inset 0 -2px 0 var(--t-accent)}

/* v1.1: a taller bar (52px, was 42px); the work area below gives up the same 10px */
@media(min-width:761px){
#clientStrip{height:62px}
.app,.app.cardhidden{height:calc(100dvh - 196px)}
#clientStrip .strip-label,#clientStrip .strip-item>span:first-child{font-size:10px}
#clientStrip .strip-item strong{font-size:13px}
#clientStrip .strip-item .badge{font-size:9px}
#clientStrip .strip-item{height:auto;align-self:stretch;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:0 14px}
#clientStrip .strip-item>*{line-height:1.1}
/* the photo card (with Manage Alerts) is no longer in the Left Navigation: the bar shows the photo and the flags */
#nav aside#card{display:none!important}
}
/* Standard / Wizards tabs removed: the navigation tree is always shown */
#nav .navigation-tabs,#nav #wizardNav{display:none!important}
#nav #standardNav{display:block!important}
/* alert flags at the right end of the bar (alert-flags.js v1.2) */
#clientStrip .strip-flags{display:flex;align-items:center;gap:6px;margin-left:auto;padding-left:16px;flex-shrink:0}
#clientStrip .strip-alerts{border:1px solid var(--t-border);border-radius:4px;background:var(--t-raised,transparent);color:var(--t-accent);padding:4px 8px;min-height:0;font-size:11px;white-space:nowrap}
#clientStrip .strip-alerts .active-alert-count{font-weight:700;margin-left:3px}
#clientStrip .flag-chip{display:grid;place-items:center;width:32px;height:30px;padding:0;margin:0;min-height:0;border:1px solid var(--t-border);border-radius:5px;background:var(--t-selected);color:var(--t-accent)}
#clientStrip .flag-chip svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#clientStrip .flag-chip.red{background:var(--t-bad-bg);color:var(--t-bad);border-color:var(--t-bad-border)}
#clientStrip .flag-chip.amber{background:var(--t-warm-bg);color:var(--t-warm);border-color:var(--t-warm-border)}
#clientStrip .flag-symbol-tooltip{display:none!important} /* the bar clips pop-ups; the button title shows the name */
#clientStrip .no-client-flags{font-size:11px;color:var(--t-muted);white-space:nowrap}

/* v1.4 (Joseph 2026-11-01): the first tab touches the left edge of the screen; the last tab has no line of its own (the group's line is enough) */
html:not([data-theme="lcars"]) #clientStrip:has(.client-slots){padding-left:0}
#clientStrip .client-slots>.client-slot:last-of-type{border-right:0}
#clientStrip .client-slots{border-right:0;margin-right:0}   /* v1.5: the first bar item's own divider is the only line */
#clientStrip .client-slots+.strip-item{border-left:1px solid var(--t-border)}   /* v1.6: exactly one line between the tabs and TYPE */
/* v1.7 (Joseph): bar taller again (76px) for a bigger client photo (52x64) */
#clientStrip{height:76px}
#clientStrip .slot-photo{width:52px;height:64px}
.app,.app.cardhidden{height:calc(100dvh - 210px)}
/* v1.8 (Joseph): labels line up whether or not there is a value: the value row is always 20px tall, even when empty */
#clientStrip .strip-item>:nth-child(2){min-height:20px;display:flex;align-items:center}
#clientStrip .strip-item:has(>.strip-label:only-child)::after{content:'';display:block;height:20px}

/* v1.9 (Joseph 2026-11-01): the client's type and gender sit under the client ID in the tab (no TYPE / GENDER items on the bar) */
#clientStrip .slot-name .slot-meta{margin-top:3px;font-size:12px;font-weight:400;color:var(--t-muted)}
/* v2.0 (Joseph 2026-11-01): a vertical line after the last bar item (RISK); the alert flags sit in two rows of four (more than 8 stay on the Alerts screen) */
#clientStrip .strip-item:not(:has(~ .strip-item)){border-right:1px solid var(--t-border)}
#clientStrip .strip-flags{gap:10px}
#clientStrip .strip-flag-grid{display:grid;grid-template-columns:repeat(4,28px);grid-auto-rows:26px;gap:4px;max-height:56px;overflow:hidden}
#clientStrip .strip-flag-grid .flag-chip{width:28px;height:26px}
#clientStrip .strip-flag-grid .flag-chip svg{width:16px;height:16px}
/* v2.1 (Joseph 2026-11-01): the flags sit right after RISK's line, with "Alerts" (no number, still opens the Alerts screen) above them like a bar label */
#clientStrip .strip-flags{margin-left:0;padding:0 14px;flex-direction:column;align-items:flex-start;justify-content:center;align-self:stretch;gap:3px}
#clientStrip .strip-flags .strip-alerts{border:0;border-radius:0;background:none;box-shadow:none;padding:0;min-height:0;line-height:1.1;color:var(--t-muted)!important;cursor:pointer}
#clientStrip .strip-flags .strip-alerts:hover{color:var(--t-accent);text-decoration:underline}
#clientStrip .strip-flag-grid{grid-template-columns:repeat(4,26px);grid-auto-rows:22px;gap:3px;max-height:47px}
#clientStrip .strip-flag-grid .flag-chip{width:26px;height:22px}
#clientStrip .strip-flag-grid .flag-chip svg{width:14px;height:14px}
/* v2.2 (Joseph 2026-11-01): the client's status is the tab's fourth line (no STATUS item on the bar) */
#clientStrip .slot-name .slot-status{margin-top:2px;font-size:12px;font-weight:600;color:var(--t-text)}
/* alert-flags.js v1.5 (Joseph): no ALERTS label over the flags; the add flag (+) is dashed and quiet until hovered */
#clientStrip .strip-flag-grid .flag-add{display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px dashed var(--t-border);border-radius:4px;background:transparent;color:var(--t-muted);cursor:pointer;box-shadow:none}
#clientStrip .strip-flag-grid .flag-add:hover,#clientStrip .strip-flag-grid .flag-add:focus-visible{border-color:var(--t-accent);color:var(--t-accent)}
#clientStrip .strip-flag-grid .flag-add svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
