/* ORJOB responsive layout guardrails. Covers contractor, professional and admin.
   Keeps identity photographs unchanged; only crop/fit on display. */
.workspace-screen,
.profile-workspace,
.profile-hub,
.profile-subpage,
.profile-detail-grid,
.profile-real-form,
.profile-photo-editor,
.profile-photo-content,
.profile-photo-copy,
.profile-photo-actions,
.verification-layout,
.document-list,
.verification-notice,
.review-queue,
.transactions,
.finance-stats,
.admin-command-center,
.admin-command-center .admin-content {min-width:0; max-width:100%; box-sizing:border-box}

.workspace-screen :is(.profile-hub-card,.profile-summary-card,.profile-preference-card,.document-list,.verification-notice,.review-decision-card,.transactions,.finance-stats article) {min-width:0; max-width:100%; box-sizing:border-box}
.workspace-screen :is(.screen-head,.section-head,.profile-photo-copy,.profile-summary-card,.profile-preference-card) {min-width:0}
.workspace-screen :is(h1,h2,h3,b,strong,p,small,em,dd,dt) {overflow-wrap:anywhere}
.profile-hub-card {grid-template-columns:auto minmax(0,1fr) auto}
.profile-hub-card > div {min-width:0}
.profile-hub-card :is(b,small) {white-space:normal; text-overflow:clip; overflow-wrap:anywhere}
.profile-photo-editor {display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:16px;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.profile-photo-preview {width:80px;height:80px;min-width:0;flex:0 0 80px;aspect-ratio:1;border-radius:20px;overflow:hidden;position:relative;display:grid;place-items:center}
.profile-photo-preview img {width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center;display:block}
.profile-photo-content,.profile-photo-copy {min-width:0}
.profile-photo-actions {display:flex;align-items:stretch;justify-content:flex-start;flex-wrap:wrap;gap:9px;min-width:0}
.profile-photo-actions .profile-photo-action {box-sizing:border-box;min-width:0;max-width:100%;height:auto;min-height:42px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.profile-photo-actions .profile-photo-action span,.profile-photo-selected {white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.profile-real-form .form-two-col {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.profile-real-form label,.profile-address-field,.profile-category-editor,.radius-control {min-width:0;max-width:100%;box-sizing:border-box}
.profile-real-form :is(input,select,textarea) {max-width:100%;min-width:0;box-sizing:border-box}
.profile-summary-card dd {white-space:normal;overflow-wrap:anywhere}
.document-list .profile-hub-grid {min-width:0}
.document-list .profile-hub-card {min-width:0;grid-template-columns:auto minmax(0,1fr) auto}
.document-list .profile-hub-card div {min-width:0}
.verification-notice {overflow-wrap:anywhere}
.review-queue>article {min-width:0;max-width:100%;box-sizing:border-box}
.review-queue>article>div {min-width:0}
.review-queue .review-documents {min-width:0;display:flex;flex-wrap:wrap;gap:8px}
.review-queue .review-documents button {width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.review-queue .review-decision-card {min-width:0;max-width:100%;overflow-wrap:anywhere}
.review-queue .review-decision-card textarea {max-width:100%;width:100%;box-sizing:border-box}
.finance-stats {grid-template-columns:repeat(3,minmax(0,1fr))}
.finance-stats article {min-width:0}
.finance-stats strong {overflow-wrap:anywhere;white-space:normal}
.transactions {min-width:0;max-width:100%}
.transactions img {display:block;max-width:100%;height:auto;object-fit:contain}
.transactions textarea {display:block;box-sizing:border-box;max-width:100%;width:100%;min-width:0;overflow-wrap:anywhere;resize:vertical}
.transactions .transaction-row {min-width:0;max-width:100%;gap:10px}
.transactions .transaction-row>div {min-width:0;flex:1 1 auto}
.transactions .transaction-row strong {overflow-wrap:anywhere;text-align:right}
.transactions .finance-actions {display:flex;flex-wrap:wrap;gap:9px}
.transactions .finance-actions button {min-width:0;max-width:100%;white-space:normal}

/* Administration: readable identification, no collision in long names, phones, emails. */
.admin-command-center .admin-table-scroll {max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.admin-command-center .admin-table {min-width:780px}
.admin-command-center .person-cell {grid-template-columns:40px minmax(0,1fr);min-width:230px}
.admin-command-center .person-cell>div {min-width:0}
.admin-command-center .person-cell>span {width:40px;height:40px;font-size:12px}
.admin-command-center .person-cell :is(b,small,em) {display:block;max-width:100%;white-space:normal;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word}
.admin-command-center .person-cell b {font-size:13px;line-height:1.45}
.admin-command-center .person-cell small {font-size:11px;line-height:1.45}
.admin-command-center .person-cell em {font-size:10px;line-height:1.45}
.admin-command-center .admin-table :is(td,th) {vertical-align:middle}
.admin-command-center .admin-toolbar {display:flex;gap:10px;flex-wrap:wrap;min-width:0}
.admin-command-center .admin-search {min-width:0;max-width:100%}
.admin-command-center .admin-table .row-action {min-width:38px;min-height:38px}
.admin-command-center .review-queue>article {overflow-wrap:anywhere}
.admin-command-center .admin-topbar>div {min-width:0}
.admin-command-center .admin-topbar-actions {min-width:0}
.admin-command-center .admin-modal-layer .admin-modal {max-width:min(100%,540px);max-height:calc(100dvh - 28px - env(safe-area-inset-bottom,0px));overflow:auto;box-sizing:border-box}

@media(max-width:820px){
 .finance-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-detail-grid,.verification-layout {grid-template-columns:minmax(0,1fr)}
 .admin-command-center .admin-table {min-width:760px}
}
@media(max-width:560px){
 .profile-photo-editor {grid-template-columns:62px minmax(0,1fr);gap:12px}
 .profile-photo-preview {width:62px;height:62px;flex-basis:62px;border-radius:16px}
 .profile-photo-actions {display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
 .profile-photo-actions .profile-photo-action {width:100%;justify-content:flex-start}
 .profile-real-form .form-two-col {grid-template-columns:minmax(0,1fr)}
 .document-list .profile-hub-grid {grid-template-columns:minmax(0,1fr)}
 .review-queue .review-decision-card {grid-template-columns:minmax(0,1fr)}
 .review-queue .review-decision-card .verification-status-badge {justify-self:start}
 .finance-stats {grid-template-columns:minmax(0,1fr)}
 .transactions .finance-actions {display:grid;grid-template-columns:minmax(0,1fr)}
 .transactions .finance-actions button {width:100%}
 .admin-command-center .admin-table {min-width:720px}
 .admin-command-center .admin-toolbar>* {max-width:100%}
}
@media(max-width:360px){
 .profile-photo-editor {grid-template-columns:minmax(0,1fr);justify-items:start}
 .workspace-screen :is(.profile-hub-card,.document-upload-card) {padding:12px;gap:10px}
 .admin-command-center .admin-modal-layer {padding:8px}
}
@media(prefers-reduced-motion:reduce){
 .profile-hub-card,.profile-photo-actions .profile-photo-action {transition:none}
 .profile-hub-card:hover {transform:none}
}
