/* Dosa Tycoon 5.0 — MGR50 on screen (js/mgr50-ui.js): the Manager & Pay window, the consultant's window, and the one-line bars
 * that lead to them from Staff and Your Outlets. Built from the windows' own pieces (.dtw-card, .dtw-seg, .dtw-switch, .dt-btn);
 * every size the windows draw at (desktop 1600 × 900 stage; the compact sheet on phones and tablets). 14 px is the floor here. */

.dtw-window--manager { width: 900px; }
.dtw-window--consultant { width: 1150px; }

/* ---------- the bars in Staff and Your Outlets ---------- */
.dtw-mgbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 4px 6px 4px 10px; font-size: max(15px, var(--fl, 0px)); font-weight: 700;
  background: #FFF1CF; border: 2.5px solid #C27F00; border-radius: 14px; color: #5A3A10; }
.dtw-mgbar__ico { flex: none; width: 26px; height: 26px; }
.dtw-mgbar__text { flex: 1 1 260px; min-width: 0; line-height: 1.25; }
.dtw-window .dt-btn--small.dtw-mgbar__btn { flex: none; min-height: 36px; font-size: max(16px, var(--fl, 0px)); padding: 0 12px 4px; border-radius: 12px; }

/* ---------- shared ---------- */
.dtw-mg { gap: 14px; }
.dtw-mg__sec { display: flex; flex-direction: column; gap: 8px; }
.dtw-mg__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-family: var(--font-display); font-weight: 800; font-synthesis: none; font-size: 23px; line-height: 1.1; letter-spacing: .3px; }
.dtw-mg__tag { font-family: var(--font-ui); font-size: max(15px, var(--fl, 0px)); font-weight: 700; color: var(--muted); letter-spacing: 0; }
.dtw-mg__note { margin: 0; font-size: max(16px, var(--fl, 0px)); font-weight: 600; line-height: 1.3; color: #5E4433; }
.dtw-mg__when { margin: 0; font-size: max(16px, var(--fl, 0px)); font-weight: 800; color: var(--fair); }

/* ---------- the manager ---------- */
.dtw-mg__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dtw-mg__who { font-size: 21px; font-weight: 800; }
.dtw-mg__stars { font-size: 22px; letter-spacing: 2px; color: #C27F00; }
.dtw-mg__duties { margin: 0; padding: 0 0 0 22px; list-style: disc; display: flex; flex-direction: column; gap: 3px; font-size: max(16px, var(--fl, 0px)); font-weight: 700; line-height: 1.25; }
.dtw-mg__next { margin: 0; font-size: max(15px, var(--fl, 0px)); font-weight: 700; color: var(--fair); line-height: 1.25; }
.dtw-mg__set { display: flex; flex-direction: column; gap: 10px; }
.dtw-mg__rows { display: flex; flex-direction: column; gap: 6px; }
.dtw-mg__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 6px 0; border-top: 2px dashed var(--line); }
.dtw-mg__row:first-child { border-top: 0; }
.dtw-mg__rk { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: max(18px, var(--fl-deep, 0px)); }
.dtw-mg__row:not(.dtw-mg__row--limit) { flex-wrap: nowrap; }
.dtw-mg__row:not(.dtw-mg__row--limit) .dtw-mg__rk { flex: 1 1 auto; }
.dtw-mg__rsub { font-size: max(15px, var(--fl, 0px)); font-weight: 600; color: var(--muted); line-height: 1.25; }
.dtw-mg__limit { flex: 1 1 380px; max-width: 520px; }
.dtw-mg__limit .dtw-seg__btn { min-height: 38px; padding: 6px 4px 7px; }
.dtw-mg__limit .dtw-seg__title { font-size: max(17px, var(--fl-deep, 0px)); }
.dtw-window .dt-btn--small.dtw-mg__all { align-self: flex-start; min-height: 38px; font-size: max(16px, var(--fl, 0px)); }
.dtw-mg__none { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dtw-mg__none .dtw-mg__note { flex: 1 1 300px; }
.dtw-window .dt-btn--small.dtw-mg__hire { flex: none; }
.dtw-mg__pay .dtw-seg__title { font-size: max(19px, var(--fl-deep, 0px)); }
.dtw-mg__pay .dtw-seg__title, .dtw-mg__pay .dtw-seg__sub { white-space: normal; text-align: center; }
.dtw-mg__log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: max(16px, var(--fl, 0px)); font-weight: 600; line-height: 1.3; }
.dtw-mg__log li { display: flex; gap: 10px; }
.dtw-mg__day { flex: none; min-width: 68px; font-weight: 800; color: var(--muted); }

/* ---------- the consultant ---------- */
.dtw-cs__intro { display: flex; align-items: center; gap: 14px; }
.dtw-cs__face { flex: none; width: 64px; height: 64px; padding: 6px; background: #FFE9B0; border: 3px solid var(--ink); border-radius: 50%; }
.dtw-cs__introtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dtw-cs__offers { display: flex; flex-wrap: wrap; gap: 14px; }
.dtw-cs__offer { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dtw-cs__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; }
.dtw-window .dt-btn--small.dtw-cs__go { flex: none; }
.dtw-cs__next { font-size: max(15px, var(--fl, 0px)); font-weight: 700; color: var(--muted); }
.dtw-cs__rep { display: flex; flex-direction: column; gap: 10px; background: #FFFBEA; }
.dtw-cs__say { margin: 0; font-size: max(19px, var(--fl-deep, 0px)); font-weight: 700; font-style: italic; color: #5A3A10; line-height: 1.3; }
.dtw-cs__cols { display: flex; flex-wrap: wrap; gap: 14px; }
.dtw-cs__col { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.dtw-cs__ch { margin: 0; font-size: max(19px, var(--fl-deep, 0px)); font-weight: 800; color: var(--muted); text-transform: none; }
.dtw-cs__item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--card); }
.dtw-cs__item.is-good { border-color: #9CCB86; background: #F3FBEC; }
.dtw-cs__item.is-fix { border-color: #E2B25A; }
.dtw-cs__title { font-size: max(19px, var(--fl-deep, 0px)); font-weight: 800; line-height: 1.2; }
.dtw-cs__why { font-size: max(16px, var(--fl, 0px)); font-weight: 600; line-height: 1.3; color: #5E4433; }
.dtw-cs__nums { font-size: max(16px, var(--fl, 0px)); font-weight: 800; color: var(--fair); line-height: 1.25; }
.dtw-window .dt-btn--small.dtw-cs__there { align-self: flex-start; min-height: 36px; margin-top: 4px; font-size: max(16px, var(--fl, 0px)); padding: 0 12px 4px; border-radius: 12px; }
.dtw-cs__risk { display: flex; flex-direction: column; gap: 8px; }

/* ---------- the compact sheet (phones, tablets) ---------- */
.is-compact .dtw-mgbar { padding: 8px 10px; }
.is-compact .dtw-mgbar__text { flex-basis: 100%; }
.is-compact .dtw-window .dt-btn--small.dtw-mgbar__btn { min-height: 44px; }
.is-compact .dtw-mg__h { font-size: 21px; }
.is-compact .dtw-mg__limit { flex-basis: 100%; max-width: none; }
.is-compact .dtw-mg__pay { flex-direction: column; }
.is-compact .dtw-mg__pay .dtw-seg__btn { flex: 0 0 auto; border-left: 0; border-top: 3px solid var(--ink); padding: 8px 10px; }          /* (TRI50: stacked, each as tall as its two lines; a .dtw-seg__btn's flex basis of 0 held it to its 48 px min-height, the second line on the lip) */
.is-compact .dtw-mg__pay .dtw-seg__btn:first-child { border-top: 0; }
.is-compact .dtw-window .dt-btn--small.dtw-cs__there, .is-compact .dtw-window .dt-btn--small.dtw-mg__all { min-height: 44px; }
.is-compact .dtw-cs__offer, .is-compact .dtw-cs__col { flex-basis: 100%; }
.is-compact .dtw-cs__face { width: 52px; height: 52px; }
.is-narrow .dtw-mg__limit .dtw-seg__title { font-size: max(15px, var(--fl-deep, 0px)); }
.is-compact.is-two .dtw-cs__offer, .is-compact.is-two .dtw-cs__col { flex-basis: 300px; }          /* (a phone on its side, a tablet: two columns) */
.is-compact .dtw-mg__limit .dtw-seg__btn { min-height: 44px; }          /* (a finger's worth on a phone or tablet) */
