/* Proposals: CRM screens (.prop-*) and the client page. The product's own sheet styles live in
   /proposal-types/<key>.css and are scoped under .prop-sheet. */
.prop-status { text-transform: capitalize; }
.prop-editor { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.prop-ctl { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.prop-ctl h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 18px 0 8px; }
.prop-ctl h3:first-child { margin-top: 0; }
.prop-ctl .prop-l, .prop-l { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
.prop-ctl input, .prop-ctl select, .prop-ctl textarea { width: 100%; }
.prop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prop-saved { font-size: 12px; color: var(--muted); }
.prop-paper { background: #fff; color: #14151a; border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--glass-shadow); min-height: 300px; }
.prop-pick { position: relative; }
.prop-pick-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 8px; max-height: 240px; overflow: auto; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.prop-pick-list button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; cursor: pointer; font: inherit; }
.prop-pick-list button:hover { background: rgba(255,255,255,.08); }
.prop-chosen { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.prop-chosen button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.prop-note { padding: 8px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 6px; background: rgba(89,118,240,.12); }
.prop-note.warn { background: rgba(255,179,0,.16); }
.prop-note.bad { background: rgba(255,92,86,.16); }
.prop-note.ok { background: rgba(52,211,153,.14); }
.prop-products { display: grid; gap: 8px; }
#modal label.prop-product { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; margin: 0; font-weight: 400; }
#modal label.prop-product b { color: var(--ink); }
#modal label.prop-product.sel { border-color: var(--mint); background: rgba(229,9,20,.08); }
[data-theme="light"] .prop-pick-list button:hover { background: rgba(10,10,20,.06); }

/* client page */
body.prop-public { margin: 0; background: #eef0f4; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.prop-public-bar { max-width: 1100px; margin: 0 auto; padding: 14px 16px 0; text-align: right; }
.prop-public-bar button { background: #14151a; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
body.prop-public main { max-width: 1100px; margin: 12px auto 40px; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.12); overflow-x: auto; }
.prop-public-msg { padding: 40px; text-align: center; color: #555; }

@media print {
  #sidebar, #notif-wrap, #pm-drawer, .prop-ctl, .prop-head, .noprint { display: none !important; }
  #main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body, body.prop-public { background: #fff !important; }
  .prop-editor { display: block; }
  .prop-paper, body.prop-public main { border: 0; box-shadow: none; overflow: visible; margin: 0; max-width: none; }
}
@media (max-width: 1000px) { .prop-editor { grid-template-columns: 1fr; } .prop-ctl { position: static; max-height: none; } }
