/* ext-adwindows (4 Nov, from ext-adbrief.css, after ext-adbench.css): the windows on the real
   data (2 Nov): Slots, Closeouts, the updates, and the day list's status line. app.css tokens. */
/* The windows (2 Nov, the owner, on the real data: 22 sessions, "Skin Design Tattoo Spring Mountain").
   One frame for Slots, Closeouts and the updates: a head, a band of filters, a body that alone scrolls,
   so nothing passes under anything. No client's or artist's words are cut. A label sits inside its field. */
dialog.win[open] { display: flex; flex-direction: column; width: min(1180px, 94vw); height: min(860px, 90vh); max-height: 90vh; padding: 0; overflow: hidden; border: 1px solid var(--rule2); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-3); }
dialog.win.adc-dialog[open], dialog#booked-dialog.win[open] { width: min(1040px, 94vw); }
dialog#booked-dialog.win[open] { padding: 0; }
.win .win-head { position: static; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: none; margin: 0; padding: 22px 28px 16px; border: 0; background: transparent; }
.win .win-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; }
.win .win-title h3 { margin: 0; font: 600 30px/1.1 var(--display); letter-spacing: -.005em; color: var(--ink); }
.win .win-count { margin: 0; font-size: 13px; color: var(--soft); }
.win .adc-close { flex: none; width: 36px; height: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
.win .adc-close:hover { background: var(--paper2); transform: none; }
.win-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; flex: none; margin: 0; padding: 10px 28px; background: var(--paper2); border-top: 1px solid var(--rule); }
.win-tools + .adc-body > .win-tools, .win-tools.adc-filters { border-top: 0; padding-top: 0; }
.win-tools:last-of-type, .win-body:first-child { border-bottom: 0; }
.win-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 28px 24px; border-top: 1px solid var(--rule2); }
.win .win-field { position: relative; display: grid; align-content: center; gap: 0; flex: 1 1 150px; min-width: 0; max-width: 260px; height: 46px; margin: 0; padding: 0 10px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--paper); font: 500 11px/1.3 var(--text); color: var(--soft); cursor: pointer; }
.win .win-field:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 2px var(--accent2); }
.win .win-field.win-grow { flex: 2 1 220px; max-width: none; }
.win .win-field > :is(select, input) { box-sizing: border-box; width: 100%; height: 20px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: var(--ink); font: 500 13.5px/20px var(--text); }
.win .win-field > select { appearance: none; -webkit-appearance: none; padding-right: 18px; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 7px) 8px, calc(100% - 3px) 8px; background-size: 4px 4px; background-repeat: no-repeat; cursor: pointer; }
.win .win-field > select option { background: var(--paper); color: var(--ink); }
.win-push { flex: 1 1 0; }
.win .adc-choice { display: inline-flex; flex: none; align-items: stretch; gap: 0; height: 46px; padding: 3px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--paper); }
.win .adc-choice .adb-btn { height: auto; min-height: 0; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--soft); font: 500 13px/1 var(--text); box-shadow: none; transform: none; }
.win .adc-choice .adb-btn:hover { color: var(--ink); background: var(--paper2); transform: none; }
.win .adc-choice .adb-btn[aria-pressed=true] { background: var(--accent2); color: var(--ink); }

/* one way to say a status everywhere: a dot and its word, never a box */
.ad-workspace .ad-row-status, .win .ad-row-status, .ad-row-status { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--soft); font: 500 12px/1.35 var(--text); white-space: normal; overflow: visible; }
:is(.ad-workspace, .win) .ad-row-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
:is(.ad-workspace, .win) .ad-row-status.is-attention, :is(.ad-workspace, .win) .ad-row-status.is-link, :is(.ad-workspace, .win) .ad-row-status.is-person, :is(.ad-workspace, .win) .ad-row-status.is-follow { color: var(--warn); background: none; box-shadow: none; }
:is(.ad-workspace, .win) .ad-row-status.is-ready, :is(.ad-workspace, .win) .ad-row-status.is-saved { color: var(--ok); background: none; }

/* Slots: an appointment book. Each hour once, the name first, its design beneath it */
.win .ads-table { width: 100%; table-layout: fixed; border: 0; border-collapse: separate; border-spacing: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; font-size: 13.5px; }
.win .ads-table th { position: sticky; top: 0; z-index: 1; padding: 12px 12px 8px; background: var(--paper); border-bottom: 1px solid var(--rule2); font: 500 12px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--soft); text-align: left; white-space: nowrap; }
.win .ads-table td { height: auto; min-height: 52px; padding: 11px 12px; border-top: 0; border-bottom: 1px solid var(--rule); color: var(--ink2); vertical-align: top; overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.win .ads-table tr.ads-row > td:first-child { box-shadow: none; }
.win .ads-row { border: 0; cursor: pointer; }
.win .ads-row:hover td { background: var(--accent2); }
.win .ads-table :is(th, td):nth-child(1) { width: 34px; padding-left: 4px; padding-right: 4px; }
.win .ads-table :is(th, td):nth-child(2) { width: 104px; }
.win .ads-table :is(th, td):nth-child(4) { width: 15%; }
.win .ads-table :is(th, td):nth-child(5) { width: 22%; }
.win .ads-table :is(th, td):nth-child(6) { width: 134px; }
.win .ads-table td.ads-at { color: var(--muted); font-size: 12px; line-height: 20px; }
.win .ads-table td.ads-when { font: 600 17px/20px var(--display); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); white-space: normal; }
.win .ads-when.is-same span { visibility: hidden; }
.win .ads-client button { display: block; width: auto; max-width: 100%; min-height: 0; padding: 0; border: 0; background: none; color: var(--ink); font: 600 14px/20px var(--text); text-align: left; white-space: normal; overflow: visible; transform: none; }
.win .ads-client button:hover { background: none; text-decoration: underline; transform: none; }
.win .ads-more { display: none; }
.win .ads-design { display: block; max-width: none; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--soft); overflow-wrap: anywhere; }
.win .ads-artist { display: inline; color: var(--ink); font-weight: 500; text-decoration: none; }
.win .ads-artist:hover { text-decoration: underline; text-underline-offset: 2px; }
.win .ads-artist .icon { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; color: var(--muted); }
@media (max-width: 860px) {
  .win .ads-table :is(th, td):is(:nth-child(1), :nth-child(4), :nth-child(5), :nth-child(6)) { display: none; }
  .win .ads-more { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; font-size: 12.5px; color: var(--ink2); }
  .win .ads-table :is(th, td):nth-child(2) { width: 72px; font-size: 14px; }
  .win .ads-table td.ads-when { font-size: 15px; }
  .win .ads-table :is(th, td) { padding-left: 6px; padding-right: 6px; }
}

/* Closeouts: how much first */
.win .adc-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font: 400 13px/1.3 var(--text); color: var(--soft); }
.win .adc-summary strong { font: 600 22px/1.2 var(--text); font-variant-numeric: tabular-nums; color: var(--gold); }
.win .adc-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; margin: 0; padding: 0; }
.win .adc-body > .side-note { padding: 0 28px; }
.win .adc-note { margin: 10px 0 0; font-size: 12px; }
.win .adc-note:empty { display: none; }
.win .adc-cols, .win .adc-row { grid-template-columns: minmax(0, 1.5fr) 11rem minmax(0, 1fr) 6rem minmax(0, 11rem) 14px; gap: 14px; }
.win .adc-cols { position: sticky; top: 0; z-index: 2; padding: 12px 12px 8px; background: var(--paper); font: 500 12px/1.3 var(--text); color: var(--soft); }
.win .adc-groups { gap: 18px; }
.win .adc-group-h { position: sticky; top: 36px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 12px; border: 0; border-bottom: 1px solid var(--rule2); border-radius: 0; background: var(--paper); font: 600 16px/1.3 var(--display); color: var(--ink); }
.win .adc-group-h .side-note { font: 500 12.5px/1.3 var(--text); font-variant-numeric: tabular-nums; color: var(--ink2); }
.win .adc-row { min-height: 44px; padding: 8px 12px; border-radius: 0; line-height: 1.35; }
.win :is(.adc-client, .adc-when, .adc-who) { overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
.win .adc-client { font-weight: 600; }
.win .adc-status, .win .adc-status.is-started { display: inline-flex; align-items: center; gap: 6px; padding: 0; border-radius: 0; background: none; color: var(--warn); font: 500 12px/1.35 var(--text); white-space: normal; }
.win .adc-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (max-width: 760px) {
  .win .adc-cols { display: none; }
  .win .adc-group-h { top: 0; }
  .win .adc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .win .adc-row > .icon { display: none; }
}

/* the updates */
.win .booked-tabs { display: flex; flex: none; gap: 2px; margin: 0; padding: 0 22px; overflow-x: auto; border: 0; background: var(--paper2); border-top: 1px solid var(--rule); scrollbar-width: none; }
.win .booked-tabs button { display: inline-flex; align-items: center; flex: none; gap: 7px; min-height: 44px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--soft); font: 500 13.5px/1 var(--text); box-shadow: none; white-space: nowrap; transform: none; }
.win .booked-tabs button:hover { background: none; color: var(--ink); transform: none; }
.win .booked-tabs button[aria-pressed=true] { background: none; border-bottom-color: var(--gold); color: var(--ink); box-shadow: none; }
.booked-tab-count { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--paper); color: var(--ink2); font: 600 11px/1.3 var(--text); font-variant-numeric: tabular-nums; text-align: center; }
.win .booked-filters { align-items: center; margin: 0; padding-top: 10px; font-size: 13px; color: var(--ink2); }
.win .booked-soon { display: inline-flex; align-items: center; flex: none; gap: 8px; height: 46px; margin: 0; padding: 0 12px; border: 1px solid var(--rule2); border-radius: var(--r); background: var(--paper); font: 500 13px/1 var(--text); cursor: pointer; }
.win .booked-soon input { width: 15px; height: 15px; margin: 0; }
.win .booked-search { height: 20px; }
.win .booked-row, #booked-dialog .adt-item { display: grid; grid-template-columns: 104px minmax(0, 1fr) 160px; align-items: start; gap: 4px 18px; margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; }
.booked-row-when { display: grid; gap: 1px; font-size: 12px; line-height: 1.35; color: var(--soft); }
.booked-row-when em { font: 600 12px/1.35 var(--text); font-style: normal; color: var(--warn); }
.booked-row-when strong { font: 600 16px/1.25 var(--display); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.booked-row.is-soon .booked-row-when strong { color: var(--ink); }
.booked-row-main { min-width: 0; }
.booked-row-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.booked-row-top strong { font: 600 15px/1.35 var(--text); color: var(--ink); }
.booked-kind { font-size: 12px; color: var(--soft); }
.booked-kind.is-unread { color: var(--ink); font-weight: 600; }
.booked-answered { font-size: 12px; color: var(--ok); }
.booked-row-who { margin: 1px 0 6px; font-size: 12.5px; color: var(--soft); }
.booked-row-what { margin: 0; max-width: 68ch; font-size: 13.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.booked-row .booked-evidence { margin-top: 6px; font-size: 12.5px; }
.booked-row .booked-evidence summary { cursor: pointer; color: var(--soft); }
#booked-dialog .booked-row .note-quote { max-width: 68ch; margin: 8px 0 0; padding: 6px 10px; border: 0; border-left: 2px solid var(--rule2); border-radius: 0; background: none; color: var(--ink2); font-size: 12.5px; line-height: 1.45; }
#booked-dialog .adt-session { margin: 2px 0 6px; font-size: 12.5px; color: var(--ink2); }
#booked-dialog .adt-pick { display: grid; gap: 4px; margin: 6px 0; justify-items: start; }
.booked-row-actions { display: grid; gap: 4px; }
.win .booked-row-actions button { width: 100%; min-height: 34px; padding: 4px 10px; border: 1px solid var(--rule2); border-radius: var(--r); background: transparent; box-shadow: none; color: var(--ink); font: 500 12.5px/1.2 var(--text); white-space: normal; transform: none; }
.win .booked-row-actions button:hover { background: var(--paper2); transform: none; }
.win .booked-row-actions button.primary { border-color: var(--gold-line); }
.win .booked-row-actions button.primary:hover { background: var(--accent2); }
.win .booked-row-actions button:not(.primary) { border-color: transparent; color: var(--soft); }
.win .booked-row-actions button:not(.primary):hover { color: var(--ink); }
#booked-dialog .booked-alert-settings { margin-top: 14px; padding-top: 10px; }
@media (max-width: 760px) {
  dialog.win[open], dialog.win.adc-dialog[open], dialog#booked-dialog.win[open] { width: 96vw; height: 92vh; max-height: 92vh; }
  .win .win-head { padding: 16px 16px 12px; }
  .win .win-title h3 { font-size: 25px; }
  .win-tools { padding: 8px 16px; }
  .win-body { padding: 0 16px 16px; }
  .win .booked-tabs { padding: 0 8px; }
  .win .win-field { flex: 1 1 40%; max-width: none; }
  .win .win-field.win-grow { flex-basis: 100%; }
  .win .adc-choice { flex: 1 1 100%; }
  .win .adc-choice .adb-btn { flex: 1 1 0; padding: 0 4px; }
  .win-push { display: none; }
  .win .adc-body > .side-note { padding: 0 16px; }
  .win .booked-row, #booked-dialog .adt-item { grid-template-columns: minmax(0, 1fr); }
  .booked-row-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .booked-row-actions { grid-template-columns: 1fr 1fr; }
}

/* the day list: the whole name, the status on its own line */
.ad-workspace #side-threads .side-thread-body > .ad-row-status::before { content: ""; display: block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.ad-workspace #side-threads .side-thread-body > .ad-row-status { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; position: static; grid-column: 2 / -1; grid-row: auto; order: 9; width: auto; height: auto; max-width: none; overflow: visible; clip-path: none; margin-top: 1px; padding: 0; font-size: 11.5px; line-height: 1.35; }
.ad-workspace #side-threads .side-thread-body > .ad-row-status.is-usual { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.ad-workspace #side-threads .side-thread-body strong { grid-column: 2 / -1; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
.ad-workspace #side-threads .side-thread-body > :is(.side-note, .side-thread-preview, .ad-row-reason) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
