/* ==========================================================================
   Event detail screens (Penpot file "Orwatha", page Telas > Assessoria):
   "Eventos > Home [NomeEvento]" and "... > Convidados".
   Loaded after app.css. Measurements come from the Penpot plugin API
   (scripts/penpot/dump_board.js); strokes there are 15% ink unless noted.

   Strokes: Penpot draws every stroke on all four sides, but these boards come from
   per-side Figma strokes (text sits flush against the "border" in table rows, tab
   underlines are white on the inactive tabs). Cards/inputs keep the full outline;
   tabs, table rows and card separators use the side they were designed for.
   ========================================================================== */

/* ---- Shell: global bar · section tabs · (guest sub-tabs) ------------------ */
.ed { flex: 1 1 0; min-width: 960px; overflow-y: auto; display: flex; flex-direction: column; background: var(--color-surface); box-sizing: border-box; }
.ed__bar { height: 72px; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--ink-15); }
.ed__crumbs { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 20px; }
.ed__crumbs a { color: var(--ink-60); text-decoration: none; }
.ed__crumbs strong { font-weight: 700; color: var(--color-ink); }
.ed__crumbs .sep { font-family: Inter, var(--font-sans); line-height: 15px; color: var(--ink-60); }
.ed__tabs { height: 64px; flex: none; box-sizing: border-box; display: flex; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--ink-15); }
.ed__tab { width: 149px; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-bottom: 3px solid transparent; background: none; padding: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-60); text-decoration: none; cursor: pointer; }
.ed__tab .material-icons { font-size: 18px; color: #111827; }
.ed__tab--on { width: 165px; padding: 0 8px; font-weight: 700; color: var(--color-primary); border-bottom-color: var(--color-primary); }
.ed__tab:disabled { cursor: not-allowed; }
.ed__subtabs { height: 52px; flex: none; box-sizing: border-box; display: flex; padding: 0 16px; }
.ed__subtab { width: 340px; flex: none; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 0; border-bottom: 2px solid transparent; background: none; padding: 0; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-60); text-decoration: none; cursor: pointer; }
.ed__subtab--on { font-weight: 700; color: var(--color-primary); border-bottom-color: var(--color-primary); }
.ed__subtab:disabled { cursor: not-allowed; }
.ed__empty { margin: 48px auto; color: var(--ink-60); font-size: 16px; }

/* ---- Shared bits ---------------------------------------------------------- */
.ec { background: var(--color-surface); border: 1px solid var(--ink-15); border-radius: 12px; box-sizing: border-box; }
.ec__link { font-size: 12px; font-weight: 700; line-height: 20px; color: var(--color-primary); text-decoration: none; white-space: nowrap; }
.ec__title { display: flex; align-items: center; justify-content: space-between; height: 24px; flex: none; }
.ec__title h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-ink); }
.ec__title .material-icons { font-size: 16px; color: #111827; }
.t60 { color: var(--ink-60); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 11px; height: 40px; padding: 8px 20px; box-sizing: border-box; border-radius: 99px; border: 1px solid var(--ink-15); background: transparent; font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-60); white-space: nowrap; cursor: pointer; text-decoration: none; }
.pill--primary { background: var(--color-primary); border-color: var(--color-primary); color: #f9fafb; }
.pill--outline { border-color: var(--color-primary); color: var(--color-primary); }
.pill:disabled { cursor: not-allowed; }

/* ---- Home ----------------------------------------------------------------- */
.evh { display: flex; flex-direction: column; gap: 20px; padding: 20px 20px 24px; box-sizing: border-box; }
.evh__hero { height: 192px; flex: none; display: flex; align-items: center; gap: 24px; padding: 19px; }
.evh__photo { width: 208px; height: 148px; flex: none; border-radius: 8px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: var(--ink-30); }
.evh__photo .material-icons { font-size: 48px; }
.evh__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.evh__name { margin: 0; font-size: 32px; font-weight: 700; line-height: 48px; color: var(--color-ink); overflow-wrap: anywhere; }
.evh__where { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 24px; color: var(--ink-60); }
.evh__count { width: 236px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border-radius: 8px; background: var(--color-primary-soft); color: #5b2cc9; }
.evh__count-label { font-size: 12px; line-height: 20px; }
.evh__units { display: flex; gap: 16px; }
.evh__unit { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.evh__unit b { font-size: 24px; font-weight: 700; line-height: 28px; font-variant-numeric: tabular-nums; }
.evh__unit span { font-size: 12px; line-height: 20px; order: 2; }
.evh__row { display: flex; align-items: flex-start; gap: 20px; }
.evh__side { width: 454px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.evh__side .ec { padding: 19px; }
.evh__kpi { height: 208px; display: flex; flex-direction: column; justify-content: space-between; }
.evh__pair { display: flex; gap: 16px; }
.evh__pair .evh__kpi { flex: 1 1 0; min-width: 0; }

.fin { display: flex; flex-direction: column; gap: 8px; }
.fin__item { display: flex; flex-direction: column; gap: 5px; }
.fin__head { display: flex; justify-content: space-between; font-size: 12px; line-height: 20px; }
.fin__head b { font-weight: 700; }
.fin__head span { color: var(--ink-60); }
.bar { height: 4px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 2px; }
.bar--5 { height: 5px; border-radius: 3px; }

.pay { display: flex; flex-direction: column; gap: 16px; }
.pay__item { display: flex; gap: 8px; align-items: flex-start; }
.pay__item .material-icons { font-size: 24px; color: #111827; }
.pay__item div { display: flex; flex-direction: column; }
.pay__item b { font-size: 16px; font-weight: 700; line-height: 24px; }
.pay__item span { font-size: 12px; line-height: 20px; color: var(--ink-60); order: 2; }

.task-kpi { display: flex; flex-direction: column; gap: 8px; }
.task-kpi__done { display: flex; align-items: flex-end; gap: 8px; height: 32px; }
.task-kpi__done b { font-size: 28px; font-weight: 700; line-height: 32px; }
.task-kpi__done span, .task-kpi > span { font-size: 12px; line-height: 20px; color: var(--ink-60); }
.rsvp-kpi { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 20px; color: var(--ink-60); }
.rsvp-kpi b { font-weight: 700; color: var(--color-primary); margin-right: 8px; }

.watch { display: flex; flex-direction: column; gap: 16px; }
.watch__head { display: flex; flex-direction: column; gap: 4px; }
.watch__head h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; }
.watch__head p { margin: 0; font-size: 12px; line-height: 20px; color: var(--ink-60); }
.seg { display: flex; height: 36px; border-radius: 8px; background: var(--color-surface); }
.seg button { flex: 1 1 0; box-sizing: border-box; border: 0; border-bottom: 2px solid transparent; background: none; font-family: var(--font-sans); font-size: 12px; font-weight: 700; line-height: 20px; color: var(--ink-60); cursor: pointer; }
.seg button.on { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.watch__empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 8px; text-align: center; }
.watch__empty .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary-soft); display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.watch__empty p { margin: 0; font-size: 12px; line-height: 20px; color: var(--ink-60); }
.watch__empty p b { display: block; margin-bottom: 4px; font-weight: 700; color: var(--color-ink); }
.watch__empty--flush { padding: 0; }
.watch__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.watch__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ink-15); font-size: 12px; line-height: 20px; }
.watch__list li span { color: var(--ink-60); white-space: nowrap; }

/* Assessoria e serviços */
.evh__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 23px; }
.evh__head { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.evh__head h2, .evh__section h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--color-ink); }
.evh__tools { display: flex; align-items: center; gap: 8px; }
.evh__tools .pill { height: 36px; padding: 8px 20px; }
.sel-box { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 149px; height: 42px; padding: 8px 16px; box-sizing: border-box; border: 1px solid var(--ink-15); border-radius: 12px; background: transparent; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--color-ink); cursor: pointer; }
.sel-box .material-icons { font-size: 24px; color: #111827; }
.agency { display: flex; align-items: center; gap: 20px; min-height: 106px; padding: 20px; box-sizing: border-box; border-radius: 8px; background: var(--color-primary-soft); }
.agency__id { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; }
.agency__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--color-surface); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; line-height: 28px; color: var(--color-primary); }
.agency__id > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.agency__id b { font-size: 16px; font-weight: 700; line-height: 24px; overflow-wrap: anywhere; }
.chip-out { display: inline-flex; align-items: center; height: 34px; padding: 8px 12px; box-sizing: border-box; border: 1px solid var(--color-primary); border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--color-primary); }
.agency__tasks { width: 118px; flex: none; display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 20px; color: var(--ink-60); }
.agency__tasks .bar { width: 100px; height: 3px; background: #dcd5ff; }
.agency__money { width: 140px; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.agency__money b { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--color-primary); }
.agency__money span { font-size: 12px; line-height: 20px; color: var(--ink-60); }
.evh__section { display: flex; flex-direction: column; gap: 24px; }
.sbox { display: flex; align-items: center; gap: 7px; height: 34px; padding: 8px; box-sizing: border-box; border: 1px solid var(--ink-15); border-radius: 4px; background: var(--color-surface); }
.sbox .material-icons { font-size: 16px; color: #111827; }
.sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-sans); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--color-ink); }
.sbox input::placeholder { color: var(--ink-30); }

.svc-head, .svc { display: grid; grid-template-columns: 170px minmax(0, 1fr) 153px 134px 47px; column-gap: 12px; align-items: center; }
.svc-head { height: 44px; border-bottom: 1px solid var(--ink-30); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-60); }
.svc { min-height: 92px; border-bottom: 1px solid var(--ink-15); padding: 12px 0; box-sizing: border-box; }
.svc--sup { min-height: 126px; }
.svc__name { padding-right: 16px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.svc__sup { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.svc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.schip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 6px 9px; box-sizing: border-box; border: 0.75px solid var(--ink-30); border-radius: 99px; background: transparent; font-family: var(--font-sans); font-size: 9px; font-weight: 600; line-height: 12px; color: var(--color-ink); white-space: nowrap; }
.schip--lg { font-size: 12px; line-height: 16px; }
.schip .material-icons { font-size: 12px; }
button.schip { cursor: not-allowed; }
.schip--ok { background: #f0fdf4; border-color: #15803d; color: #15803d; }
.schip--quote { background: #eff6ff; border-color: #bedbff; color: #155dfc; }
.schip--plan { background: #fff7ed; border-color: #ffd6a7; color: #ff6900; }
.dist { display: flex; height: 14px; border-radius: 3px; overflow: hidden; }
.dist > span { display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 12px; color: var(--color-surface); }
.dist .ok { background: #22c55e; }
.dist .quote { background: #155dfc; }
.dist .plan { background: #ff6900; }
.svc__tasks { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink-60); }
.svc__tasks .bar { width: 100px; height: 3px; border-radius: 0; }
.svc__vals { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; line-height: 16px; }
.svc__vals .conf { font-weight: 600; color: var(--color-primary); }
.svc__vals .share { color: var(--ink-60); }
.svc__edit { width: 32px; height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; justify-self: end; padding: 0; border: 1.33px solid var(--ink-15); border-radius: 2.67px; background: transparent; color: var(--color-ink); cursor: not-allowed; }
.svc__edit .material-icons { font-size: 16px; }
.svc-none { padding: 24px 0; font-size: 12px; line-height: 20px; color: var(--ink-60); }

/* ---- Convidados ----------------------------------------------------------- */
.evg { display: flex; flex-direction: column; gap: 18px; padding: 52px 28px 24px; box-sizing: border-box; }
.evg__tools { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.evg__tools > div { display: flex; align-items: center; gap: 12px; }
.evg__view { width: 263px; height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: space-between; padding: 8px 20px; border: 2px solid var(--ink-15); border-radius: 12px; background: transparent; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink-30); cursor: default; }
.evg__view .material-icons { font-size: 24px; color: #111827; }
.evg__search { width: 360px; height: 44px; box-sizing: border-box; padding: 1px; border: 1px solid var(--ink-15); border-radius: 4px; }
.evg__search label { display: flex; align-items: center; gap: 8px; height: 100%; box-sizing: border-box; padding: 8px; border-radius: 4px; background: var(--color-surface); }
.evg__search .material-icons { order: -1; font-size: 16px; color: #111827; }
.evg__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: Inter, var(--font-sans); font-size: 14px; line-height: 16px; color: var(--color-ink); }
.evg__search input::placeholder { color: var(--ink-30); }
.evg__tools > div:last-child .pill:nth-child(1) { width: 176px; }
.evg__tools > div:last-child .pill:nth-child(2) { width: 102px; }
.evg__tools > div:last-child .pill:nth-child(3) { width: 100px; }
.evg__round { width: 52px; height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 12px; border: 2px solid var(--ink-15); border-radius: 64px; background: transparent; color: var(--color-ink); cursor: not-allowed; }
.evg__round--bare { border-color: transparent; }
.evg__body { display: flex; align-items: flex-start; gap: 20px; }
.evg__list { flex: 1 1 0; min-width: 0; box-sizing: border-box; padding: 19px; border: 1px solid var(--ink-15); border-radius: 8px; }
.inv-head, .inv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px; column-gap: 24px; align-items: center; padding: 0 12px; box-sizing: border-box; }
.inv-head { height: 48px; border-bottom: 1px solid var(--ink-15); font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink-60); }
.inv { min-height: 64px; border-bottom: 1px solid var(--ink-15); }
.inv__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.inv__id b { font-size: 16px; font-weight: 400; line-height: 24px; color: var(--color-ink); overflow-wrap: anywhere; }
.inv__id span { font-size: 12px; line-height: 20px; color: var(--ink-60); }
.inv__group { font-size: 16px; line-height: 24px; color: var(--ink-60); overflow-wrap: anywhere; }
.inv__answers { display: flex; align-items: center; gap: 16px; }
.ans { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 20px; color: var(--ink-60); }
.ans--zero { opacity: 0.6; }
.ans .material-icons { font-size: 20px; }
.ans--pending .material-icons { color: #ff6900; }
.ans--yes .material-icons { color: #15803d; }
.ans--no .material-icons { color: #fb2c36; }
.inv__menu { width: 32px; height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 8px; border: 0; border-radius: 64px; background: var(--color-surface); color: var(--color-ink); cursor: not-allowed; }
.inv__menu .material-icons { font-size: 16px; }
.evg__side { width: 436px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.sum { display: flex; flex-direction: column; gap: 20px; padding: 19px; box-sizing: border-box; border: 1px solid var(--ink-15); border-radius: 8px; }
.sum--main { align-items: center; justify-content: center; }
.sum--main > * { align-self: stretch; }
.sum--main .pill { align-self: center; width: 289px; }
.sum__title { display: flex; align-items: center; gap: 6px; height: 24px; font-size: 16px; line-height: 24px; color: var(--color-ink); }
.sum__title b { font-weight: 700; }
.sum__title .material-icons { font-size: 20px; }
.sum__title .pending { color: #ff6900; }
.sum__title .yes { color: #15803d; }
.sum__title .no { color: #fb2c36; }
.sum__block { display: flex; flex-direction: column; gap: 12px; }
.sum__tickets { display: flex; align-items: center; gap: 14px; height: 40px; }
.sum__ages { display: flex; flex-direction: column; gap: 8px; padding-top: 15px; border-top: 1px solid var(--ink-15); }
.sum__ages > div { display: flex; gap: 12px; font-size: 12px; line-height: 20px; }
.sum__ages > div + div { gap: 16px; }
.sum__gender { display: flex; gap: 24px; padding-top: 13px; border-top: 1px solid var(--ink-15); }
.lab { font-size: 12px; line-height: 20px; color: var(--ink-60); white-space: nowrap; }
.lab b { font-weight: 600; color: var(--color-ink); }
.sym { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; line-height: 20px; }
.sym span:first-child { color: #8b909b; }
.sym span:last-child { color: var(--ink-60); }
.sym--col { gap: 0; }
a.ev__name { color: inherit; text-decoration: none; }
.inv--click { cursor: pointer; }
.inv--click:hover { background: var(--color-primary-soft); }
