/* cportal.css — the customer portals' own pages (1.79.0). --cp is the portal's colour (or, on a shared 3D page, the
   customer's own), set on each page. */
:root { --cp: #012242; --ink: #1A2430; --muted: #5B6B7B; --line: #DDE3E9; --bg: #F5F6F8; --ok: #0F7B5F; --bad: #B42318; }
* { box-sizing: border-box; }
body.cp { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.cp a { color: var(--cp); }
.cp h1 { font-size: 24px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.cp h2 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.cp-top { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 12px 24px; background: #fff; border-bottom: 3px solid var(--cp); }
.cp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.cp-brand img { height: 38px; width: auto; display: block; }
.cp-word { font-size: 22px; font-weight: 700; color: var(--cp); letter-spacing: .02em; }
.cp-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.cp-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cp-nav a, .cp-nav button { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.cp-nav a:hover, .cp-nav button:hover { background: var(--bg); }
.cp-nav a.on { background: var(--bg); color: var(--cp); font-weight: 600; }
.cp-nav form { margin: 0; }
.cp-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; }
.cp-narrow .cp-main { max-width: 560px; }
.cp-foot { padding: 14px 24px 20px; color: var(--muted); font-size: 12.5px; text-align: center; }
.cp-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.cp-narrowcard { max-width: 560px; margin: 0 auto; }
.cp-lead { color: var(--muted); margin: 0 0 16px; }
.cp-muted { color: var(--muted); }
.cp-small { font-size: 13px; }
.cp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cp-head p { margin: 0; }
.cp-back { margin: 0 0 12px; font-size: 14px; }
.cp-back a { text-decoration: none; }
.cp-flash { padding: 11px 14px; border-radius: 8px; margin: 0 0 16px; font-size: 14px; border: 1px solid; }
.cp-flash.ok { background: #ECFDF3; border-color: #ABEFC6; color: #085D3A; }
.cp-flash.err { background: #FEF3F2; border-color: #FECDCA; color: #912018; }
.cp-flash.info { background: #F0F6FF; border-color: #C8DAF5; color: #1D3A63; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px;
  border-radius: 7px; border: 1px solid #C9D2DA; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.cp-btn:hover { border-color: var(--cp); }
.cp-btn.primary { background: var(--cp); border-color: var(--cp); color: #fff; }
.cp-btn.primary:hover { filter: brightness(1.12); }
.cp-btn.danger { color: var(--bad); border-color: #F4B9B3; }
.cp-link { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; text-decoration: underline; }
.cp-link.danger { color: var(--bad); }
.cp-form label { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; }
.cp-form input[type=text], .cp-form input[type=email], .cp-form input[type=password], .cp-form input[type=tel], .cp-form textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #C9D2DA; border-radius: 7px; background: #fff; color: var(--ink); }
.cp-form input:focus, .cp-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--cp) 35%, transparent); border-color: var(--cp); }
.cp-form input[type=color] { display: block; margin-top: 5px; width: 64px; height: 38px; padding: 2px; border: 1px solid #C9D2DA; border-radius: 7px; background: #fff; }
.cp-form .cp-btn { margin-top: 4px; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cp-details { max-width: 720px; margin-bottom: 18px; }
.cp-details h2:first-of-type { margin-top: 0; }
.cp-logo { display: flex; gap: 16px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.cp-logo-box { width: 200px; height: 80px; border: 1px dashed #C9D2DA; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.cp-logo-box img { max-width: 184px; max-height: 64px; display: block; }
.cp-logo-box span { color: var(--muted); font-size: 13px; }
.cp-form .cp-logo label.cp-btn { display: inline-flex; width: auto; margin: 0 12px 0 0; font-weight: 500; }
.cp-form [hidden], .cp [hidden] { display: none !important; }
.cp-empty { text-align: center; padding: 40px 24px; }
.cp-empty p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.cp-find { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.cp-find input[type=search] { flex: 1 1 280px; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid #C9D2DA; border-radius: 7px; background: #fff; color: var(--ink); }
.cp-find input[type=search]:focus { outline: 2px solid color-mix(in srgb, var(--cp) 35%, transparent); border-color: var(--cp); }
.cp-none { margin: -6px 0 18px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.cp-lay { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cp-thumb { display: flex; align-items: center; justify-content: center; height: 180px; background: #fff; border-bottom: 1px solid var(--line); }
.cp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cp-thumb span { color: var(--muted); font-size: 13px; }
.cp-lay-bd { padding: 14px 16px 12px; }
.cp-lay h2 { margin: 0 0 2px; font-size: 16px; }
.cp-lay h2 a { color: var(--ink); text-decoration: none; }
.cp-lay p { margin: 0; font-size: 13px; }
.cp-tags { margin: 6px 0 0 !important; min-height: 4px; }
.cp-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin: 0 4px 4px 0; }
.cp-tag.share { background: #F0F6FF; color: #1D3A63; }
.cp-tag.sent { background: #ECFDF3; color: #085D3A; }
.cp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cp-acts form { margin: 0; }
.cp-acts .cp-btn { padding: 6px 10px; font-size: 13px; }
.cp-acts-more { gap: 14px; margin-top: 6px; }
.cp-copy span { display: flex; gap: 8px; margin-top: 5px; }
.cp-copy input { margin-top: 0 !important; font-size: 13px !important; }

/* The designer and the 3D view, in a portal */
.cp-design-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.cp-design-brand img { height: 26px; width: auto; display: block; background: #fff; border-radius: 4px; padding: 2px 4px; }
.cp-design-brand .cp-word { font-size: 17px; color: inherit; }
.cp-design-brand > span:last-child { font-size: 12px; opacity: .8; }
.cp-designer .cp-for { min-width: 200px; }

/* A shared 3D page: laid out as the customer's own 3D page of a quotation (app/controllers/q.php ctrl_q_three_d) */
.q3d-top{display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;padding:10px 16px;background:#fff;border-bottom:2px solid #012242}
.q3d-top img{height:34px;width:auto;display:block}
.q3d-what{flex:1;min-width:180px}
.q3d-what .eyebrow{font-size:10px;letter-spacing:.19em;text-transform:uppercase;color:#00ADA3;font-weight:600;margin:0}
.q3d-what h1{margin:1px 0 0;font-size:17px;font-weight:500;color:#012242;line-height:1.25}
.q3d-what .sub{font-size:12.5px;color:#5B6B7B}
.q3d-acts{display:flex;gap:8px;flex-wrap:wrap}
.q3d-acts a,.q3d-acts button{font:inherit;font-size:13px;padding:8px 13px;border-radius:6px;border:1px solid #C9D2DA;background:#fff;color:#012242;text-decoration:none;cursor:pointer}
.q3d-acts .primary{background:#00ADA3;border-color:#00ADA3;color:#fff}
.q3d-bar{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:8px 16px;background:#F4F3F2;border-bottom:1px solid #DFE4E9}
.q3d-bar .v3d-rooms{margin:0}
.q3d-bar .lbl{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5B6B7B}
.q3d-bar [data-views]{display:contents}
.q3d-bar [data-views][hidden]{display:none}
.q3d .v3d-main{flex:1;min-height:0}
.q3d .v3d-stage{flex:1;height:auto;min-height:0}
@media (max-width:640px){.q3d-top img{height:28px}.q3d-what h1{font-size:15px}.q3d-acts{width:100%}.q3d-acts a,.q3d-acts button{flex:1 1 auto;text-align:center}}

/* A shared 3D page: the customer's own letterhead */
.cp-shared-top img { height: 40px; width: auto; display: block; }
.cp-shared-name { font-size: 18px; color: var(--cp); }
.cp-shared-top { border-bottom-color: var(--cp) !important; }
.cp-shared .q3d-acts .primary { background: var(--cp) !important; border-color: var(--cp) !important; }
.cp-shared .q3d-what .eyebrow { color: var(--cp) !important; }
.cp-shared .q3d-what h1, .cp-shared .q3d-acts a, .cp-shared .q3d-acts button { color: #1A2430; }
.cp-shared .q3d-acts a.primary { color: #fff; }
.cp-shared-foot { display: flex; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding: 8px 16px; font-size: 12.5px; color: #5B6B7B; background: #fff; border-top: 1px solid #DFE4E9; }
.cp-shared-by { opacity: .8; }

@media (max-width: 640px) {
  .cp-top { padding: 10px 16px; }
  .cp-main { padding: 20px 16px 32px; }
  .cp-card { padding: 18px 16px; }
  .cp-row { grid-template-columns: 1fr; }
  .cp-grid { grid-template-columns: 1fr; }
  .cp-sub { display: none; }
}
