.recruitment-page { padding: 18px 20px; min-width: 0; }
.recruitment-page-toolbar, .recruitment-page-toolbar-right, .recruitment-selection-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.recruitment-page-toolbar { justify-content: space-between; margin-bottom: 16px; }
.recruitment-selection-toolbar { margin-bottom: 12px; }
.recruitment-selection-toolbar[hidden], [data-recruitment-drawer][hidden] { display: none; }
.recruitment-table-wrap { overflow: auto; margin-top: 12px; }
.recruitment-table { min-width: 100%; border-collapse: collapse; }
.recruitment-table th, .recruitment-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #ddd; overflow: hidden; text-overflow: ellipsis; }
.recruitment-table th { position: relative; background: #f5f5f5; font-weight: 500; }
.recruitment-table tbody tr:hover { background: #f1f7fa; }
.recruitment-page [data-error]:not(:empty) { padding: 8px 0; }
.recruitment-drawer form { display: grid; gap: 14px; }
.recruitment-drawer form label { display: grid; gap: 6px; }
.recruitment-drawer input:not([type=checkbox]), .recruitment-drawer textarea, .recruitment-drawer select { width: 100%; padding: 8px; box-sizing: border-box; font: inherit; }
.recruitment-drawer textarea { min-height: 110px; }
.recruitment-drawer button:not(.drawer-close):not(.drawer-fullscreen-toggle) { padding: 8px 14px; min-height: 36px; cursor: pointer; }
.recruitment-drawer footer { display: flex; gap: 10px; flex-wrap: wrap; }
.recruitment-drawer [data-history] { border-block: 1px solid #ddd; padding: 12px 0; margin: 16px 0; }
.recruitment-settings { border-top: 1px solid #ddd; padding-top: 18px; margin-block: 18px; }
.recruitment-settings fieldset { display: grid; gap: 14px; border: 0; padding: 0; min-width: 0; }
.recruitment-settings .check-row { display: flex; align-items: center; gap: 8px; }
@media(max-width:760px) { .recruitment-drawer { width: 100vw; } .recruitment-page { padding: 12px; } }

/* Android chat pattern and layout, in the Back Office light blue / white palette. */
.recruitment-chat-drawer { background:#f4faff; color:#233b50; }
.recruitment-chat-drawer .drawer-body { padding:0; overflow:hidden; min-height:0; display:flex; }
.recruitment-chat { display:flex; flex:1; flex-direction:column; min-width:0; min-height:0; font-size:14px; }
.recruitment-chat-heading { display:flex; align-items:center; gap:24px; padding:12px 16px 8px; }
.recruitment-chat-heading select { flex:0 0 125px; width:125px; min-height:44px; border:1px solid #cfe3f2; border-radius:12px; background:#fff; color:#233b50; }
.recruitment-chat-applicant { min-width:0; line-height:1.6; overflow-wrap:anywhere; }
.recruitment-chat-applicant strong { font-size:16px; }
.recruitment-chat-applicant span { color:#6d879c; }
.recruitment-chat-toolbar { display:flex; align-items:center; gap:8px; padding:4px 16px 12px; flex-wrap:wrap; }
.recruitment-chat-status { display:grid; gap:3px; color:#6d879c; font-size:12px; margin-left:8px; flex:1; min-width:160px; }
.recruitment-chat-status .revoked { color:#2b84bd; }
.recruitment-chat button.button { background:#e4f1fb; color:#233b50; border:0; border-radius:18px; font-family:inherit; font-size:14px; font-weight:600; box-shadow:none; min-height:44px; }
.recruitment-chat button.button:hover:not(:disabled) { background:#d4e9f8; }
.recruitment-chat button.button:disabled { opacity:.45; cursor:default; }
.recruitment-chat .recruitment-chat-icon.button { flex:0 0 44px; width:44px; height:44px; padding:10px; display:inline-flex; align-items:center; justify-content:center; }
.recruitment-chat button:focus-visible, .recruitment-chat textarea:focus-visible, .recruitment-chat select:focus-visible { outline:2px solid #2b84bd; outline-offset:2px; }
.recruitment-chat [data-history] { flex:1; min-height:80px; overflow:auto; overscroll-behavior:contain; padding:8px 12px 12px; margin:0; border:0; position:relative; height:100%; box-sizing:border-box; background:transparent; }
.recruitment-chat .recruitment-chat-older { display:block; margin:4px auto 12px; }
.recruitment-chat-day { text-align:center; padding:12px 0; font-size:12px; color:#6d879c; }
.recruitment-chat-day span { background:#f4faffe6; padding:4px 10px; border-radius:12px; }
.recruitment-chat-message { width:fit-content; min-width:140px; max-width:min(340px,85%); box-sizing:border-box; padding:10px 12px 8px; border-radius:18px; background:#fff; margin:8px 0; overflow-wrap:anywhere; box-shadow:0 1px 2px #233b500a; }
.recruitment-chat-message.outgoing { margin-left:auto; background:#dceffc; }
.recruitment-chat-message p { font-size:16px; line-height:1.4; white-space:pre-wrap; margin:0 0 4px; }
.recruitment-chat-meta { display:flex; justify-content:flex-end; align-items:center; gap:4px; color:#6d879c; font-size:11px; }
.recruitment-chat-receipt { font-size:13px; }.recruitment-chat-receipt.read { color:#238546; }
.recruitment-chat form.recruitment-chat-compose { display:flex; align-items:flex-end; gap:6px; padding:8px 10px 10px; margin:0; background:#fff; }
.recruitment-chat-compose textarea { flex:1; min-height:44px; height:44px; max-height:120px; resize:vertical; padding:12px 14px; border:0; border-radius:20px; background:#eef7fd; color:#233b50; font-size:16px; }
.recruitment-chat .recruitment-chat-send.button, .recruitment-chat [data-revoke-confirm].button { background:#2b84bd; color:#fff; }
.recruitment-chat .recruitment-chat-send.button:hover:not(:disabled), .recruitment-chat [data-revoke-confirm].button:hover:not(:disabled) { background:#206b9b; }
.recruitment-chat-confirm { padding:10px 16px; background:#e4f1fb; border-block:1px solid #cfe3f2; }
.recruitment-chat-confirm p { margin:0 0 10px; }.recruitment-chat-confirm>div { display:flex; gap:8px; justify-content:flex-end; }
.recruitment-chat-empty { text-align:center; color:#6d879c; padding:20px; }
.recruitment-chat-drawer .recruitment-drawer-status:not(:empty) { padding:8px 16px; }
@media(max-width:600px) { .recruitment-chat-heading { align-items:flex-start; gap:14px; }.recruitment-chat-heading select { flex-basis:105px; width:105px; }.recruitment-chat-applicant strong { font-size:14px; } }

.recruitment-chat-history-surface { flex:1; min-height:80px; position:relative; overflow:hidden; background:#f8fcff; }
.recruitment-chat-history-surface::before { content:''; position:absolute; inset:0; pointer-events:none; background:#dceefb; mask:url('../assets/recruitment-chat-background.png') repeat; mask-size:300px 600px; }
.recruitment-chat-status .revoked { color:#526f85; }
.recruitment-message-menu { position:fixed; z-index:120; display:grid; min-width:180px; padding:6px; border:1px solid #cfe3f2; border-radius:16px; background:#fff; box-shadow:0 6px 24px #233b5029; }
.recruitment-message-menu button { padding:12px 16px; border:0; border-radius:10px; text-align:left; font:inherit; color:#233b50; background:#fff; cursor:pointer; }.recruitment-message-menu button:hover,.recruitment-message-menu button:focus-visible { background:#e4f1fb; }
.recruitment-message-selection,.recruitment-reply-context { display:flex; align-items:center; gap:8px; padding:8px 16px; background:#fff; border-top:1px solid #dceefb; }
.recruitment-message-selection[hidden],.recruitment-reply-context[hidden] { display:none; }
.recruitment-message-selection>span { flex:1; color:#526f85; }
.recruitment-message-selection .recruitment-chat-icon,.recruitment-reply-context .recruitment-chat-icon { border:0; background:#e4f1fb; color:#2b84bd; border-radius:18px; padding:10px; width:44px; height:44px; flex:none; font-size:24px; }
.recruitment-message-selection svg { width:22px; height:22px; }
.recruitment-chat-message.selected { outline:2px solid #2b84bd; }.recruitment-message-check { display:inline-grid; place-items:center; border:1px solid #75aad0; border-radius:50%; width:18px; height:18px; color:#2b84bd; margin-bottom:4px; }
.recruitment-reply-context>div { border-left:3px solid #75aad0; padding-left:10px; flex:1; min-width:0; color:#526f85; }.recruitment-reply-context p { margin:4px 0 0; white-space:pre-wrap; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.recruitment-chat .recruitment-chat-quote.button { display:grid; gap:4px; border-left:3px solid #75aad0; border-radius:6px; background:#eef7fd; text-align:left; padding:8px 10px; margin-bottom:6px; width:100%; color:#526f85; font-size:13px; min-height:0; }.recruitment-chat-quote span { font-weight:400; white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

.recruitment-translation-language { display:flex; align-items:center; gap:6px; margin-left:auto; color:#2b84bd; }.recruitment-translation-language select { width:auto; border:1px solid #cfe3f2; border-radius:10px; background:#fff; color:#233b50; }
.recruitment-chat .recruitment-translate-icon { background:#e4f1fb; color:#2b84bd; border:0; border-radius:16px; cursor:pointer; padding:10px; width:44px; height:44px; flex:none; display:inline-flex; align-items:center; justify-content:center; }
.recruitment-chat .recruitment-chat-meta button.recruitment-translate-icon { margin-right:auto; background:transparent; height:32px; width:32px; min-height:32px; padding:5px; }
.recruitment-chat-compose [data-translate-draft] { order:1; }.recruitment-chat-compose .recruitment-chat-send { order:2; }
.recruitment-translated-message { margin-top:8px; padding-top:8px; border-top:1px solid #cfe3f2; color:#233b50; }.recruitment-translated-message small { color:#6d879c; font-size:11px; }.recruitment-translated-message p { margin:5px 0 0; font-size:15px; }
.recruitment-translation-panel,.recruitment-translation-status { padding:10px 16px; background:#eef7fd; color:#526f85; border-top:1px solid #cfe3f2; max-height:45vh; overflow:auto; }.recruitment-translation-status { font-size:13px; max-height:15vh; }
.recruitment-translation-panel[hidden],.recruitment-translation-status[hidden] { display:none; }.recruitment-translation-panel>label { display:inline-flex; align-items:center; gap:10px; }.recruitment-translation-panel select { width:auto; }
.recruitment-translation-panel button { background:#dceffc; border:0; border-radius:12px; color:#233b50; margin-left:8px; }.recruitment-translation-preview p { white-space:pre-wrap; margin:4px 0 12px; }.recruitment-translation-preview>div { display:flex; justify-content:flex-end; margin-top:10px; }

.recruitment-chat .recruitment-translate-icon svg { flex:none; width:22px; height:22px; }
