/* React adapter: maps rebuilt application components to the approved V2 visual language. */
.button,.button:visited{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;font-family:inherit;transition:all .2s}
.button--primary,.button.button--primary{padding:10px 24px;background:#F39B22;border:0;border-radius:4px;font-size:13px;font-weight:700;letter-spacing:.04em;color:#1a1a18}
.button--primary:hover,.button.button--primary:hover{background:#F5B940;transform:translateY(-1px)}
.button--outline,.button.button--outline{padding:10px 22px;border:1.5px solid #0E5A2B;border-radius:4px;font-size:13px;font-weight:600;letter-spacing:.04em;color:#0E5A2B;background:transparent}
.button--outline:hover,.button.button--outline:hover{background:#0E5A2B;color:#fff}
.button.compact{padding:9px 14px}.button.full{width:100%}
.panel,.entity-card,.enquiry-card,.notification-item,.worker-card{background:#fff;border:1px solid #e8e8e2;border-radius:7px;padding:20px;box-shadow:none}
.toolbar{background:#fff;border:1px solid #e8e8e2;border-radius:7px;padding:12px;margin:16px 0}
.search-box{display:flex;align-items:center;gap:9px}.search-box input{border:0!important;padding:8px!important;min-width:0;width:100%}
.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.entity-card h3,.enquiry-card h3,.panel h2{font-family:'Fraunces',serif;color:#1a1a18}
.entity-card p,.entity-card small,.enquiry-card p,.panel p{color:#5a5a52}
.table-wrap,.worker-table-wrap{overflow:auto;background:#fff;border:1px solid #e8e8e2;border-radius:7px}.table-wrap table{width:100%;border-collapse:collapse;min-width:760px}.table-wrap th{background:#f2f3ef;padding:12px;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#666;text-align:left}.table-wrap td{padding:13px 12px;border-top:1px solid #eee;font-size:12px;color:#444}
.form-grid label{display:flex;flex-direction:column;gap:6px;color:#555;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:11px 12px;border:1px solid #dcded8;border-radius:4px;background:#fff;font:inherit;font-size:13px}.form-grid textarea{min-height:90px}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span-2{grid-column:1/-1}
.feedback{margin:14px 0;padding:12px 14px;border-radius:5px;font-size:12px}.feedback--error{background:#fff0ee;border:1px solid #eac7c2;color:#963b32}.feedback--success{background:#edf6ef;border:1px solid #cfe0d2;color:#31563b}.feedback--info{background:#fff8e8;border:1px solid #f1dfb2;color:#806c42}
.status-badge,.tag{display:inline-flex;padding:4px 8px;border-radius:2px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;background:rgba(14,90,43,.08);color:#0E5A2B}
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-list{display:grid;gap:10px;margin:14px 0}.detail-list>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #eee}.detail-list span{font-size:11px;color:#777}.detail-list b{font-size:12px;color:#1a1a18}
@media(max-width:800px){.card-grid,.account-grid,.form-grid.two{grid-template-columns:1fr}.app-main{padding:24px 16px 60px!important}.app-topbar{align-items:flex-start!important}.app-topbar .btn-outline{display:none!important}}

/* Pointer-safe digital signature on iOS, Android and desktop */
.signature-pad{touch-action:none;-webkit-user-select:none;user-select:none;overscroll-behavior:contain;max-width:100%}
@media(max-width:700px){.form-grid input,.form-grid select,.form-grid textarea{font-size:16px}.signature-pad{height:170px}}
.notification-channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.notification-channel{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:7px;background:#fff}
.notification-channel>span{display:grid;gap:2px;flex:1}.notification-channel b{font-size:11px;color:var(--text)}.notification-channel small{font-size:9px;color:var(--text-muted)}.notification-channel em{font-style:normal}
@media(max-width:720px){.notification-channel-grid{grid-template-columns:1fr}}


/* Final client patch: narrow-screen React form containment. */
.form-grid,.form-grid>*{min-width:0;max-width:100%;box-sizing:border-box}
.form-grid textarea{caret-color:#1a1a18;cursor:text;-webkit-user-select:text;user-select:text;pointer-events:auto}
@media(max-width:700px){
  .form-grid input,.form-grid select,.form-grid textarea,.form-grid input[type="date"]{width:100%!important;min-width:0!important;max-width:100%!important;inline-size:100%!important;min-inline-size:0!important;max-inline-size:100%!important;box-sizing:border-box!important}
  .form-grid input[type="date"]{-webkit-min-logical-width:0}
  .form-grid input[type="date"]::-webkit-date-and-time-value{min-width:0;text-align:left}
}
@supports (-webkit-touch-callout:none){
  @media(max-width:700px){.form-grid input[type="date"]{width:-webkit-fill-available!important;max-width:-webkit-fill-available!important}}
}

/* V20 — Step 04 Master Worker Record: professional read-only dossier, not a disabled form. */
.professional-worker-details-panel{padding-top:2px}
.professional-registration-record{overflow:hidden;border:1px solid #dfe4dc;border-radius:10px;background:#fff}
.record-identity-header{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:20px;align-items:center;padding:22px;background:#f8f9f6;border-bottom:1px solid #e5e8e2}
.record-photo-card{width:118px;height:142px;border:1px solid #d7ddd5;border-radius:8px;background:#eef2ec;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#0E5A2B;font-family:'Fraunces',serif;font-size:30px;font-weight:700}
.record-photo-card img{display:block;width:100%;height:100%;object-fit:cover}
.record-photo-placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(145deg,#edf3ed,#f8faf7)}
.record-identity-copy{min-width:0}.record-eyebrow{display:block;margin-bottom:5px;color:#0E5A2B;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.record-identity-copy h3{font-family:'Fraunces',serif;font-size:27px;line-height:1.12;color:#1a1a18;margin:0 0 5px}.record-identity-copy p{font-size:11px;color:#6b716b;margin:0}
.record-identity-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.record-identity-chips span{display:inline-flex;padding:5px 8px;border:1px solid #dce3db;border-radius:99px;background:#fff;color:#4f5c52;font-size:9px;font-weight:700}
.record-completeness{align-self:start;display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:6px;background:#edf6ef;border:1px solid #d6e6d8}.record-completeness strong{color:#0E5A2B;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.record-completeness span{color:#637068;font-size:9px}
.record-details-sections{display:grid;gap:0}.record-details-section{padding:20px 22px;border-bottom:1px solid #eceee9}.record-details-section:last-child{border-bottom:0}.record-details-section-head{display:flex;align-items:center;gap:9px;margin-bottom:13px}.record-details-section-head>span{display:inline-flex;width:28px;height:28px;flex:0 0 28px;align-items:center;justify-content:center;border-radius:50%;background:#edf6ef;color:#0E5A2B;font-family:'Fraunces',serif;font-size:10px;font-weight:800}.record-details-section-head h4{margin:0;color:#1a1a18;font-size:14px}
.record-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.record-detail-item{min-width:0;padding:11px 12px;border:1px solid #eceee9;border-radius:6px;background:#fafbf8}.record-detail-item.wide{grid-column:span 2}.record-detail-item small{display:block;margin-bottom:4px;color:#7a8079;font-size:8px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.record-detail-item strong{display:block;color:#30352f;font-size:11px;line-height:1.45;overflow-wrap:anywhere;white-space:pre-wrap}.record-detail-item.missing strong{color:#989d97;font-weight:500}
.declaration-section{background:#fbfcfa}.record-declaration-copy{margin-top:12px;padding:13px 14px;border-left:3px solid #0E5A2B;background:#f4f8f4;color:#536057;font-size:10px;line-height:1.6}.record-signature-card{margin-top:14px;max-width:520px;border:1px solid #d9ded7;border-radius:7px;background:#fff;padding:12px}.record-signature-card img{display:block;width:100%;height:150px;object-fit:contain;background:#fff}.record-signature-card>span{display:block;padding-top:7px;border-top:1px solid #eee;color:#737a73;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.record-signature-stored,.record-signature-empty{height:110px;display:flex;align-items:center;justify-content:center;color:#6d756e;font-size:11px;background:#fafbf8}.record-signature-stored{color:#0E5A2B}
/* Signature pad: CSS box and internal bitmap remain 1:1 on narrow phones. */
.kp-signature-canvas,.signature-pad{display:block;width:100%!important;max-width:100%!important;min-width:0!important;height:170px;box-sizing:border-box;touch-action:none!important;-ms-touch-action:none!important;overscroll-behavior:contain;-webkit-user-select:none;user-select:none}
@media(max-width:900px){.record-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.record-detail-item.wide{grid-column:1/-1}}
@media(max-width:620px){.record-identity-header{grid-template-columns:86px minmax(0,1fr);gap:13px;padding:15px}.record-photo-card{width:86px;height:108px}.record-completeness{grid-column:1/-1;justify-self:start}.record-identity-copy h3{font-size:22px}.record-details-section{padding:16px 14px}.record-details-grid{grid-template-columns:1fr}.record-detail-item.wide{grid-column:auto}.record-signature-card{max-width:none}.record-signature-card img{height:120px}.kp-signature-canvas,.signature-pad{height:190px!important}}
@media print{.professional-registration-record{border:0}.record-identity-header{break-inside:avoid}.record-details-section{break-inside:avoid}.record-completeness{display:none}}

/* V22 — one worker photo presentation across Applications, Worker Records and Employer Workspace. */
.application-card-person{display:flex;align-items:center;gap:12px;min-width:0}
.application-card-person-copy{min-width:0}
.application-worker-photo,.worker-list-photo,.employer-worker-thumb,.selected-worker-thumb{flex:0 0 auto;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #d6ddd5;background:linear-gradient(145deg,#edf3ed,#f8faf7);color:#0E5A2B;font-family:'Fraunces',serif;font-weight:700}
.application-worker-photo{width:54px;height:66px;border-radius:6px;font-size:16px}
.worker-list-photo{width:72px;height:86px;border-radius:7px;font-size:20px}
.employer-worker-thumb,.selected-worker-thumb{width:46px;height:54px;border-radius:6px;font-size:13px}
.application-worker-photo img,.worker-list-photo img,.employer-worker-thumb img,.selected-worker-thumb img,.employer-profile-photo img{display:block;width:100%;height:100%;object-fit:cover}
.staff-worker-card-head{display:grid;grid-template-columns:72px minmax(0,1fr);gap:13px;align-items:start;margin-bottom:10px}
.staff-worker-card-copy{min-width:0}.staff-worker-card-copy h4{margin:7px 0 5px}.staff-worker-card-copy p{margin:0}
.employer-worker-cell,.selected-worker-main{display:flex;align-items:center;gap:10px;min-width:0}.employer-worker-cell>div:last-child,.selected-worker-main>div:last-child{min-width:0}
.employer-profile-photo{overflow:hidden}
@media(max-width:620px){
  .application-card-top{align-items:flex-start}
  .application-worker-photo{width:48px;height:59px}
  .staff-worker-card-head{grid-template-columns:64px minmax(0,1fr)}
  .worker-list-photo{width:64px;height:78px}
  .employer-worker-thumb,.selected-worker-thumb{width:42px;height:50px}
}


/* V23 — canonical image rendering in Step 04 Worker Records */
.worker-record-header-identity{display:flex;align-items:center;gap:14px;min-width:0}
.worker-record-header-photo{width:76px;height:92px;flex:0 0 76px;border:1px solid #d6ddd5;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#edf3ed,#f8faf7);color:#0E5A2B;font-family:'Fraunces',serif;font-size:21px;font-weight:700}
.worker-record-header-photo img{display:block;width:100%;height:100%;object-fit:cover}
.worker-doc-row.has-image-preview{grid-template-columns:72px minmax(160px,1fr) 120px 150px auto;align-items:center}
.worker-document-image-thumb{width:62px;height:72px;border:1px solid #d6ddd5;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f1f4ef;color:#0E5A2B;font-family:'Fraunces',serif;font-weight:700}
.worker-document-image-thumb img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:800px){.worker-record-header{align-items:flex-start}.worker-record-header-identity{width:100%}.worker-record-header-photo{width:68px;height:82px;flex-basis:68px}.worker-doc-row.has-image-preview{grid-template-columns:62px minmax(0,1fr);gap:8px 10px}.worker-doc-row.has-image-preview .worker-doc-status,.worker-doc-row.has-image-preview .worker-doc-date{grid-column:2}.worker-doc-row.has-image-preview .worker-doc-actions{grid-column:1/-1}.worker-document-image-thumb{grid-row:1/span 3;width:56px;height:68px}}

/* V24 — Step 02/04 use the same protected photo presentation as Step 03. */
.physical-worker-photo-summary{display:flex;align-items:center;gap:14px;margin-top:14px;padding:13px 14px;border:1px solid #dce3dc;border-radius:7px;background:#f8faf7;min-width:0}
.physical-worker-photo{width:64px;height:78px;flex:0 0 64px;border:1px solid #d6ddd5;border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#edf3ed,#fff);color:#0E5A2B;font-family:'Fraunces',serif;font-size:18px;font-weight:700}
.physical-worker-photo img,.archive-document-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.physical-worker-photo-summary>div:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.physical-worker-photo-summary strong{font-size:13px;color:var(--text);overflow-wrap:anywhere}
.physical-worker-photo-summary span{font-size:11px;color:var(--text-muted)}
.physical-worker-photo-summary small{font-size:9px;color:#7d877f;line-height:1.4}
.attachment-row.has-archive-image{grid-template-columns:58px 110px minmax(0,1fr) 120px}
.archive-document-thumb{width:52px;height:62px;border:1px solid #d6ddd5;border-radius:5px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f4f7f3;color:#0E5A2B;font:700 13px 'Fraunces',serif}
@media(max-width:800px){.physical-worker-photo-summary{align-items:flex-start}.physical-worker-photo{width:58px;height:70px;flex-basis:58px}.attachment-row.has-archive-image{grid-template-columns:54px minmax(0,1fr)}.attachment-row.has-archive-image>strong,.attachment-row.has-archive-image>span{grid-column:2}.archive-document-thumb{grid-row:1/span 3;width:48px;height:58px}}
