/* KONUM: CodeAndSystems.GateCore.Portal\wwwroot\css\portal.css
   GateCore CRM customer portal. Light page, purple accents: the look of the customer
   pages of the previous CRM. The document card itself is styled by crm-doc.js. */
:root { --p: #6d28d9; --pd: #3c1e7a; --ps: #f4f1fc; --ink: #1a1330; --body: #4a4854; --muted: #888780; --line: #e6e4dd; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #f6f7fb; color: var(--body); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.6; }
.pt-main { max-width: 1180px; margin: 0 auto; padding: 0 16px 28px; }
.pt-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 30px; }

.pt-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 34px 0 20px; }
.pt-bar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-bar-left img { max-height: 46px; max-width: 200px; }
.pt-number { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.pt-status { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 11px; border-radius: 20px; margin-top: 5px; border: 1px solid currentColor; background: #fff; text-transform: uppercase; letter-spacing: .5px; }
.pt-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-btn { display: inline-block; font: inherit; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.pt-btn:hover { transform: translateY(-1px); }
.pt-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pt-purple { background: var(--p); border-color: var(--p); color: #fff; }
.pt-green { background: #16a34a; border-color: #16a34a; color: #fff; }
.pt-red { background: #dc2626; border-color: #dc2626; color: #fff; }
.pt-purple:hover, .pt-green:hover, .pt-red:hover { filter: brightness(1.1); }

.pt-notice { background: var(--ps); border: 1px solid #ded5f5; color: #2b2350; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 13.5px; }
.pt-notice b { color: var(--pd); }
.pt-notice.pt-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 40px 28px; margin-top: 60px; }
.pt-center { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.pt-card h1 { font-size: 21px; color: var(--ink); margin: 6px 0 10px; }
.pt-card p { margin: 0 0 8px; }
.pt-icon { font-size: 34px; }
.pt-muted { color: var(--muted); font-size: 13px; }

/* accept / decline window: centred, closes with X, Cancel or Esc */
.pt-ov { position: fixed; inset: 0; background: rgba(26,19,48,.55); display: flex; padding: 16px; overflow-y: auto; z-index: 50; }
.pt-modal { background: #fff; border-radius: 14px; width: 500px; max-width: 100%; margin: auto; box-shadow: 0 24px 60px rgba(26,19,48,.3); overflow: hidden; }
.pt-mhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pt-mhead h2 { margin: 0; font-size: 16px; color: var(--ink); }
.pt-x { border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.pt-mbody { padding: 18px 22px; }
.pt-mbody p { margin: 0 0 14px; font-size: 13.5px; }
.pt-mbody label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.pt-mbody input[type=text], .pt-mbody input[type=email] { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; }
.pt-mbody input:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(109,40,217,.12); }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-mbody label.pt-check { display: flex; align-items: center; gap: 9px; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 0; }
.pt-err { color: #dc2626; font-size: 13px; min-height: 20px; margin-top: 8px; }
.pt-mfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafaf8; }

@media (max-width: 640px) {
    .pt-bar { padding: 20px 0 14px; }
    .pt-actions { width: 100%; }
    .pt-actions .pt-btn { flex: 1; text-align: center; }
    .pt-grid { grid-template-columns: 1fr; }
    .pt-card { margin-top: 30px; padding: 30px 20px; }
}
