/* Partner portal (assets/partner-deal.js). It borrows the client portal's
   design system whole — client-deal.css and the cx- classes — so these are
   only the parts a partner has and a client does not: the list of deals
   they are on, the "send Eshu a task" form, and their name in the bar. */

.px-who { font-size: 13px; color: var(--cx-muted); white-space: nowrap; }
@media (max-width: 900px) { .px-who { display: none; } }

/* the deal switch is links here, not buttons, so it needs the button look;
   with more than two deals it scrolls sideways on a phone rather than
   pushing the page wider */
.px-theme .cx-toprow { display: flex; overflow-x: auto; scrollbar-width: none; }
.px-theme .cx-toprow::-webkit-scrollbar { display: none; }
.px-theme .cx-switch { max-width: 100%; }
.px-theme .cx-switch a { font-size: 12.5px; font-weight: 500; color: var(--cx-muted); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.px-theme .cx-switch a.on { background: var(--cx-navy); color: #fff; }

/* ---- every deal they are on ---- */
.px-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.px-deal { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: 16px; color: var(--cx-ink); box-shadow: 0 1px 2px rgba(29, 39, 51, .05); transition: border-color .12s, box-shadow .12s; }
.px-deal:hover { border-color: var(--cx-navy); box-shadow: 0 6px 18px rgba(29, 39, 51, .08); }
.px-deal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.px-deal-addr { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.px-deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--cx-line-soft); }

/* ---- send the agent a task ---- */
.px-form { display: flex; flex-direction: column; gap: 6px; }
.px-form label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-faint); }
.px-form input, .px-form select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--cx-line); border-radius: 10px; background: var(--cx-surface); color: var(--cx-ink); width: 100%; }
.px-form input:focus, .px-form select:focus { outline: none; border-color: var(--cx-navy); box-shadow: 0 0 0 3px rgba(29, 39, 51, .12); }
.px-form-row { display: flex; gap: 10px; }
.px-form-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.px-form .cx-btn { align-self: flex-start; margin-top: 10px; }
@media (max-width: 560px) { .px-form-row { flex-direction: column; } }

/* The shared to-do rows from app.js, on the client portal's ground. */
.px-theme .todo-group-title { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-faint); margin: 18px 0 8px; }
.px-theme .todo-group-title:first-child { margin-top: 0; }
.px-theme .empty-note { font-size: 13.5px; color: var(--cx-muted); padding: 6px 0; }
