/* The app's picker (static/js/ub-picker.js; OF-98, standard since 21 Oct 2026). The same look as the
   request page's .vt-picker-pop. Every value has its literal fallback: the printable pack pages load
   this file without style.css. */

/* .ub-pick.ub-pick: a page's own "button { … }" or ".toolbar button { … }" (the packs draw their buttons teal)
   must never turn the box into an action button — a choice looks like a box, an action like a button (25 Sep) */
.ub-pick.ub-pick {
  font-family: var(--font-b); font-size: var(--t-2, 13px); font-weight: 400; line-height: 1.3;
  padding: 7px 11px; border: 1px solid #DCE1E5; border-radius: 100px;
  background: #fff; color: #1c2430; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal;
  display: inline-flex; align-items: center; gap: 6px; max-width: 260px; min-height: 35px; height: auto;
}
.ub-pick.is-wide { display: flex; width: 100%; max-width: none; justify-content: space-between; }
.ub-pick:hover { border-color: #c5cdd3; }
.ub-pick:focus-visible { outline: 2px solid var(--primary-color, #04696F); outline-offset: 2px; }
.ub-pick[aria-expanded="true"] { border-color: var(--primary-color, #04696F); }
.ub-pick-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-pick svg { width: 14px; height: 14px; flex: 0 0 auto; color: #68727d; }
.ub-pick.is-loading { cursor: progress; opacity: .7; }

.ub-pop {
  position: fixed; z-index: 1000; background: #fff;
  border: 1px solid var(--border, #e5e7eb); border-radius: var(--r-3, 12px);
  box-shadow: var(--sh-3, 0 12px 32px rgba(16, 24, 32, .14)); padding: var(--s-3, 6px);
}
.ub-search {
  width: 100%; box-sizing: border-box; padding: 7px 10px; margin-bottom: var(--s-3, 6px);
  border: 1px solid var(--gray-light2, #ebebeb); border-radius: var(--r-2, 8px);
  font-family: var(--font-b); font-size: var(--t-2, 13px); outline: none;
}
.ub-search:focus { border-color: var(--primary-color, #04696F); box-shadow: 0 0 0 3px rgba(4, 105, 111, .15); }
.ub-list { max-height: 300px; overflow-y: auto; }
.ub-pop.is-tall .ub-list { max-height: min(460px, 60vh); }
.ub-list button {
  background: transparent; border: 0; width: 100%; padding: 7px 10px; text-align: start;
  font-family: var(--font-b); font-size: var(--t-2, 13px); color: var(--black, #1d1f23);
  cursor: pointer; border-radius: var(--r-1, 6px); display: flex; align-items: center; gap: 10px;
}
.ub-list button[hidden] { display: none; }
.ub-list button:hover, .ub-list button.is-active { background: var(--gray-light2, #ebebeb); }
.ub-list button:focus-visible { outline: 2px solid var(--primary-color, #04696F); outline-offset: -2px; }
.ub-list button.is-current {
  background: color-mix(in srgb, var(--primary-color, #04696F) 8%, #fff);
  color: var(--primary-color, #04696F); font-weight: 600;
}
.ub-list button:disabled { opacity: .5; cursor: not-allowed; }
.ub-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ub-who .n, .ub-who .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-who .s { font-size: var(--t-1, 12px); color: #68727d; font-weight: 400; }
.ub-av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.ub-av--all { display: inline-flex; align-items: center; justify-content: center; background: #E1EDEE; color: var(--primary-color, #04696F); }
.ub-av--all svg { width: 16px; height: 16px; }
.ub-tick {
  width: 16px; height: 16px; flex: 0 0 auto; border: 1.5px solid #c5cdd3; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.ub-tick svg { width: 12px; height: 12px; visibility: hidden; }
.ub-list button.is-current .ub-tick { background: var(--primary-color, #04696F); border-color: var(--primary-color, #04696F); }
.ub-list button.is-current .ub-tick svg { visibility: visible; }
/* a group's heading in a list (<optgroup>, D218: Rolling · Calendar · Hijri); an empty label is a rule */
.ub-grp {
  padding: 8px 10px 4px; font-family: var(--font-h); font-size: var(--t-1, 12px); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: #68727d;
}
.ub-grp:not(:first-child) { margin-top: 4px; border-top: 1px solid #EEF0F2; padding-top: 10px; }
.ub-empty { padding: 10px; font-family: var(--font-b); font-size: var(--t-2, 13px); color: #68727d; }
/* data-badge: a small tag after a choice's name (Reports' "Opens Reports", D221) */
.ub-badge { display: inline-block; margin-inline-start: 6px; padding: 0 6px; border-radius: 100px; background: #EEF6F6;
  color: var(--primary-color); font-family: var(--font-h); font-weight: 600; font-size: 11px; line-height: 18px;
  vertical-align: 1px; }
/* data-ub-wrap: names and second lines wrap rather than end in "…" */
.ub-pop.is-wrap .ub-who .n, .ub-pop.is-wrap .ub-who .s { white-space: normal; overflow-wrap: anywhere; }
/* data-ub-note: a line of help inside the list, never a choice */
.ub-note { padding: 8px 10px; font-family: var(--font-b); font-size: var(--t-1, 12px); color: #5F6B70; line-height: 1.45; }
@media print { .ub-pick, .ub-pop { display: none !important; } }
