.sync-stamp{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.85rem;margin:0 0 18px;color:#526478}
.attention-links{display:flex;flex-wrap:wrap;gap:12px}.attention-links a{padding:12px 16px;border-radius:10px;background:#f0f5ff;color:#143f78;text-decoration:none;font-weight:600}
.portal-shell .small-button,.portal-shell .quote-summary-actions button{min-height:44px}.file-actions{flex-wrap:wrap}.portal-shell .job-open{font-weight:700;font-size:inherit;padding:4px 0;text-align:left}.pay-invoice{background:#086a55;color:#fff}
.quote-summary-actions{flex-wrap:wrap}.record,.row,.quote-summary{min-width:0}.certificate-summary strong,.record p{overflow-wrap:anywhere}
@media(max-width:700px){
 .portal-shell{min-width:0}.portal-main{min-width:0}.invoice-table-wrap{overflow:visible}.portal-invoice-table{min-width:0;width:100%}
 .portal-invoice-table thead{display:none}.portal-invoice-table tbody,.portal-invoice-table tr{display:block}.portal-invoice-table tr{border-bottom:1px solid #ccd7e2;padding:12px 0}
 .portal-invoice-table td{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;padding:6px 0;text-align:right;white-space:normal}
 .portal-invoice-table td::before{content:attr(data-label);font-weight:600;text-align:left}.portal-invoice-table .file-actions{justify-content:flex-start}.portal-invoice-table .file-actions::before{width:100%}
 .quote-summary,.record-head,.row{flex-wrap:wrap;gap:12px}.quote-summary-actions{width:100%}.attention-links{display:grid}.attention-links a{display:block}.document-frame{height:65vh;min-height:320px}.panel{padding:16px}
}

.portal-intro{margin:0 0 20px}.summary-grid a small{display:block;font-size:.85rem;line-height:1.4;margin-top:8px}
.summary-grid a.summary-attention{border:2px solid #c58000;background:#fff8e0;color:#654100;animation:portal-box-attention 2.5s ease-in-out infinite}
.summary-grid a.summary-attention.red{border-color:#d92028;background:#fff1f1;color:#9a1017}
@keyframes portal-box-attention{0%,100%{box-shadow:0 0 0 0 transparent}50%{box-shadow:0 0 0 4px currentColor}}
@media(prefers-reduced-motion:reduce){.summary-grid a.summary-attention{animation:none}}

/* Invoice checkout and document actions */
.portal-shell .portal-invoice-table .pay-invoice{background:#00843d;border-color:#00843d;color:#fff}
.portal-shell .portal-invoice-table .pay-invoice:hover{background:#006b31;border-color:#006b31}
.portal-shell .portal-invoice-table .pay-invoice:focus-visible{outline:3px solid #163f25;outline-offset:3px}
.portal-invoice-table .invoice-payment,.portal-invoice-table .invoice-payment-heading{width:1%;white-space:nowrap;text-align:right}
.portal-invoice-table th.invoice-document-heading{width:1%;white-space:nowrap;text-align:center}
.portal-invoice-table td.invoice-documents{display:table-cell;width:1%;white-space:nowrap;text-align:right}
.invoice-document-buttons{display:inline-flex;justify-content:flex-end;gap:8px;flex-wrap:nowrap}
@media(max-width:700px){.portal-invoice-table td.invoice-payment,.portal-invoice-table td.invoice-documents{display:flex;width:auto;white-space:normal;justify-content:space-between}.portal-invoice-table td.invoice-documents::before{width:auto}.invoice-document-buttons{flex-wrap:wrap;justify-content:flex-end}}
