/* Customer portal — intentionally scoped so the back-office UI is unchanged. */
.portal-shell { --portal-ink:#172033; --portal-muted:#667085; --portal-line:#e7eaf0; --portal-blue:#2563eb; --portal-blue-dark:#1d4ed8; --portal-bg:#f6f8fc; min-height:100vh; background:var(--portal-bg); color:var(--portal-ink); }
.portal-header { background:#fff; border-bottom:1px solid var(--portal-line); position:sticky; top:0; z-index:100; }
.portal-header-inner { max-width:1200px; min-height:72px; margin:auto; padding:0 24px; display:flex; align-items:center; gap:28px; }
.portal-brand { display:flex; align-items:center; min-width:0; margin-right:auto; }
.portal-brand img { display:block; max-width:170px; max-height:42px; object-fit:contain; object-position:left center; }
.portal-nav { display:flex; align-items:center; gap:4px; }
.portal-nav a { color:#475467; text-decoration:none; font-size:14px; font-weight:650; padding:10px 13px; border-radius:8px; }
.portal-nav a:hover, .portal-nav a.active { color:var(--portal-blue); background:#eff6ff; }
.portal-account { display:flex; align-items:center; gap:9px; color:#344054; font-size:13px; font-weight:600; white-space:nowrap; }
.portal-account i { color:var(--portal-blue); font-size:18px; }
.portal-signout { color:#667085 !important; }
.portal-content { max-width:1200px; margin:0 auto; padding:38px 24px 48px; }
.portal-page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:24px; }
.portal-page-heading h1 { margin:0; font-size:26px; line-height:1.25; letter-spacing:-.45px; font-weight:750; }
.portal-page-heading p { color:var(--portal-muted); margin:6px 0 0; font-size:14px; }
.portal-card { background:#fff; border:1px solid var(--portal-line); border-radius:14px; box-shadow:0 1px 2px rgba(16,24,40,.025); overflow:hidden; }
.portal-card-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--portal-line); }
.portal-card-title { margin:0; font-size:16px; font-weight:700; }
.portal-search { width:260px; position:relative; }
.portal-search i { position:absolute; top:50%; left:13px; transform:translateY(-50%); color:#98a2b3; }
.portal-search input { width:100%; border:1px solid var(--portal-line); border-radius:8px; padding:9px 12px 9px 36px; color:var(--portal-ink); font-size:13px; outline:0; }
.portal-search input:focus { border-color:#93b4fb; box-shadow:0 0 0 3px #eff6ff; }
.portal-table-wrap { overflow-x:auto; }
.portal-table { width:100%; margin:0; border-collapse:collapse; }
.portal-table th { background:#fafbfc; color:#667085; font-size:11px; letter-spacing:.055em; text-transform:uppercase; font-weight:700; padding:12px 24px; white-space:nowrap; }
.portal-table td { padding:17px 24px; border-top:1px solid var(--portal-line); color:#344054; font-size:14px; vertical-align:middle; }
.portal-table tbody tr:hover { background:#fcfdff; }
.portal-invoice-number { color:var(--portal-blue); font-weight:700; text-decoration:none; }
.portal-amount { color:#101828; font-weight:700; }
.portal-status { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:99px; font-size:12px; font-weight:700; }
.portal-status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.portal-status.paid { background:#ecfdf3; color:#027a48; }.portal-status.due { background:#fff7ed; color:#c2410c; }
.portal-actions { display:flex; justify-content:flex-end; gap:8px; white-space:nowrap; }
.portal-btn { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--portal-line); border-radius:8px; padding:8px 11px; background:#fff; color:#344054; font-size:13px; font-weight:650; text-decoration:none; cursor:pointer; }
.portal-btn:hover { border-color:#b2ccff; color:var(--portal-blue); }.portal-btn-primary { background:var(--portal-blue); border-color:var(--portal-blue); color:#fff; }.portal-btn-primary:hover { background:var(--portal-blue-dark); color:#fff; }
.portal-empty { padding:56px 24px; text-align:center; color:var(--portal-muted); }.portal-empty i { display:block; color:#98a2b3; font-size:30px; margin-bottom:12px; }.portal-empty strong { color:#344054; display:block; margin-bottom:5px; }
.portal-notice { margin:0 24px 20px; border:1px solid #fedf89; border-radius:10px; background:#fffaeb; color:#93370d; padding:14px 16px; font-size:14px; }
.portal-login { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 20% 0, #dceafe 0, transparent 34%), #f6f8fc; }
.portal-login-card { width:min(100%, 480px); background:#fff; border:1px solid var(--portal-line); border-radius:18px; padding:40px; box-shadow:0 18px 50px rgba(16,24,40,.09); }.portal-login-logo { max-width:180px; max-height:52px; object-fit:contain; object-position:left center; margin-bottom:30px; }.portal-login-card h1 { font-size:25px; margin:0 0 8px; letter-spacing:-.4px; }.portal-login-card .intro { color:var(--portal-muted); font-size:14px; margin-bottom:28px; }.portal-login-card label { display:block; color:#344054; font-size:13px; font-weight:650; margin:0 0 7px; }.portal-login-card .form-control { border:1px solid #d0d5dd; border-radius:8px; min-height:46px; }.portal-login-card .btn { min-height:46px; border-radius:8px; font-weight:700; }.portal-login-error { border-radius:8px; background:#fef3f2; color:#b42318; font-size:13px; padding:11px 13px; }
.portal-document-name { color:#101828; font-weight:650; }.portal-document-icon { color:var(--portal-blue); margin-right:10px; }
.portal-invoice-hero { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:24px; margin-bottom:20px; background:linear-gradient(135deg,#fff 0%,#f4f8ff 100%); }.portal-invoice-hero h1 { font-size:24px; margin:0 0 5px; }.portal-invoice-hero p { margin:0; color:var(--portal-muted); font-size:14px; }.portal-progress { display:flex; gap:0; margin:0 0 20px; background:#fff; border:1px solid var(--portal-line); border-radius:12px; padding:14px 20px; }.portal-progress span { flex:1; position:relative; color:#98a2b3; font-size:13px; font-weight:650; }.portal-progress span:not(:last-child)::after { content:""; display:inline-block; vertical-align:middle; height:1px; width:42%; background:#d0d5dd; margin-left:9px; }.portal-progress .done { color:#027a48; }.portal-progress .done i { margin-right:5px; }
@media (max-width: 760px) { .portal-header-inner { min-height:62px; padding:10px 16px; gap:10px; flex-wrap:wrap; }.portal-brand img { max-width:120px; max-height:34px; }.portal-nav { order:3; width:100%; justify-content:space-between; }.portal-nav a { padding:8px; font-size:12px; }.portal-account { display:none; }.portal-signout { font-size:12px; }.portal-content { padding:24px 16px 36px; }.portal-page-heading h1 { font-size:22px; }.portal-card-head { padding:16px; align-items:stretch; flex-direction:column; }.portal-search { width:100%; }.portal-table th,.portal-table td { padding-left:16px; padding-right:16px; }.portal-table th:nth-child(3),.portal-table td:nth-child(3),.portal-table th:nth-child(4),.portal-table td:nth-child(4) { display:none; }.portal-actions { justify-content:flex-start; }.portal-login { padding:16px; }.portal-login-card { padding:28px 22px; }.portal-invoice-hero { padding:20px; align-items:flex-start; flex-direction:column; }.portal-progress { padding:12px; }.portal-progress span { font-size:11px; }.portal-progress span:not(:last-child)::after { width:20%; } }
