.staff-content { padding-top: 26px; }
.staff-payment-link-form { display: grid; gap: 8px; max-width: 620px; }
.staff-payment-link-form label { margin-top: 8px; color: #454657; font-size: 12px; font-weight: 600; }
.staff-payment-link-form input, .staff-payment-link-form select { min-height: 40px; padding: 8px 10px; border: 1px solid #e7e8ef; border-radius: 6px; color: #454657; background: #fff; font-size: 12px; }
.staff-payment-link-form button { justify-self: start; margin-top: 8px; }
.staff-stat-grid { grid-template-columns: minmax(170px, 260px); margin-bottom: 16px; }
.staff-view { padding: 17px; }
.staff-view .portal-section-heading { margin-bottom: 12px; }
.staff-assigned-list { display: grid; gap: 11px; }
.staff-assignment { padding: 14px; border: 1px solid #ededef; border-radius: 8px; background: #fff; }
.staff-assignment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.staff-assignment-client strong, .staff-assignment-client small { display: block; }
.staff-assignment-client strong { color: #454657; font-size: 12px; }
.staff-assignment-client small { margin-top: 4px; color: #9294a2; font-size: 10px; }
.staff-assignment-service { margin-top: 12px; padding-top: 11px; border-top: 1px solid #f0f0f4; }
.staff-assignment-service h3 { margin: 0; color: #444657; font: 700 14px "Manrope", sans-serif; }
.staff-assignment-service p { margin: 5px 0 8px; color: #898b99; font-size: 11px; }
.staff-assignment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.staff-assignment-actions select { min-height: 32px; padding: 0 9px; border: 1px solid #e7e8ef; border-radius: 5px; color: #565869; background: #fff; font-size: 11px; }
.staff-form-button { min-height: 32px; padding: 0 10px; border: 1px solid #e8e6f5; border-radius: 5px; color: #6e62ca; background: #fbfaff; font-size: 11px; font-weight: 600; cursor: pointer; }
.staff-form-button:hover { border-color: #d6d1f2; background: #f6f4ff; }
.staff-form-button:disabled, .staff-assignment-actions select:disabled { opacity: .65; cursor: wait; }
.staff-assignment-answers { display: grid; gap: 6px; margin: 10px 0 0; padding: 10px; border: 1px solid #eeedf7; border-radius: 6px; background: #fbfaff; }
.staff-assignment-answers > strong { color: #656179; font-size: 10px; }
.staff-assignment-answers > div { display: grid; grid-template-columns: minmax(100px, .6fr) 1fr; gap: 10px; color: #77798a; font-size: 10px; }
.staff-assignment-answers > div span:last-child { overflow-wrap: anywhere; white-space: pre-wrap; }
.staff-form-dialog { max-width: 570px; }
.staff-form-dialog .portal-dialog-form { max-height: 86vh; overflow-y: auto; }
@media (max-width: 760px) {
  .staff-content { padding: 16px 14px; }
  .staff-view { padding: 12px; }
  .staff-assignment-heading { flex-direction: column; }
  .staff-assignment-actions select { max-width: 100%; }
}

.staff-whatsapp-view { display: grid; gap: 14px; }
.staff-whatsapp-view > .portal-section-heading { align-items: flex-start; }
.staff-whatsapp-inbox { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); min-height: 450px; overflow: hidden; border: 1px solid #e8e8ee; border-radius: 9px; background: #fff; }
.staff-whatsapp-list { min-width: 0; padding: 13px; border-right: 1px solid #ececf1; }
.staff-whatsapp-search { display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e7e8ef; border-radius: 6px; color: #9294a2; }
.staff-whatsapp-search input { width: 100%; min-width: 0; height: 35px; border: 0; outline: 0; background: transparent; font-size: 12px; }
.staff-whatsapp-conversation { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; margin-top: 5px; padding: 9px 6px; border: 0; border-radius: 6px; text-align: left; background: transparent; cursor: pointer; }
.staff-whatsapp-conversation:hover, .staff-whatsapp-conversation.is-active { background: #f1f8f5; }
.staff-whatsapp-contact-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #248254; background: #e7f4eb; font-size: 13px; font-weight: 700; }
.staff-whatsapp-conversation-copy { min-width: 0; }
.staff-whatsapp-conversation-copy strong, .staff-whatsapp-conversation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-whatsapp-conversation-copy strong { color: #424557; font-size: 12px; }
.staff-whatsapp-conversation-copy small, .staff-whatsapp-conversation-meta small { margin-top: 4px; color: #8b8d9a; font-size: 10px; }
.staff-whatsapp-conversation-meta { display: grid; justify-items: end; gap: 4px; }
.staff-whatsapp-conversation-meta i, .staff-whatsapp-unread { display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border-radius: 10px; color: #fff; background: #23a263; font-size: 10px; font-style: normal; }
.staff-whatsapp-unread { display: inline-grid; margin-left: auto; }
.staff-whatsapp-thread { display: flex; min-width: 0; min-height: 450px; flex-direction: column; }
.staff-whatsapp-thread-empty { display: grid; flex: 1; align-content: center; justify-items: center; color: #707383; text-align: center; }
.staff-whatsapp-thread-empty strong { color: #46495a; }
.staff-whatsapp-thread-empty p { font-size: 12px; }
.staff-whatsapp-thread-view { display: flex; min-height: 450px; flex: 1; flex-direction: column; }
.staff-whatsapp-thread-header { display: grid; gap: 3px; min-height: 56px; align-content: center; padding: 9px 13px; border-bottom: 1px solid #ececf1; }
.staff-whatsapp-thread-header strong { color: #444657; font-size: 13px; }
.staff-whatsapp-thread-header small { color: #8b8d9a; font-size: 11px; }
.staff-whatsapp-messages { display: flex; min-height: 250px; flex: 1; flex-direction: column; align-items: flex-start; gap: 9px; overflow-y: auto; padding: 14px; background: #f7f9f8; }
.staff-whatsapp-message { max-width: min(78%, 500px); padding: 8px 10px; border: 1px solid #e4e8e5; border-radius: 8px 8px 8px 2px; background: #fff; }
.staff-whatsapp-message.is-outbound { align-self: flex-end; border-color: #d0ebd9; border-radius: 8px 8px 2px 8px; background: #eaf7ed; }
.staff-whatsapp-message p { margin: 0; color: #343746; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-whatsapp-message small { display: block; margin-top: 5px; color: #8b9096; font-size: 9px; text-align: right; }
.staff-whatsapp-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; }
.staff-whatsapp-compose textarea { min-width: 0; flex: 1; resize: vertical; padding: 8px 9px; border: 1px solid #e2e4ea; border-radius: 6px; font-size: 12px; }
.staff-whatsapp-compose button { flex: 0 0 auto; }
.staff-whatsapp-view .whatsapp-window-note { color: #858896; }

@media (max-width: 760px) {
  .staff-whatsapp-inbox { grid-template-columns: minmax(0, 1fr); }
  .staff-whatsapp-list { border-right: 0; border-bottom: 1px solid #ececf1; }
  .staff-whatsapp-thread, .staff-whatsapp-thread-view { min-height: 380px; }
}

.staff-services-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.staff-table-wrap { overflow-x: auto; border: 1px solid #e9eaf0; border-radius: 9px; background: #fff; }
.staff-services-table th { padding: 12px 14px; color: #777a89; background: #f8f9fb; font-size: 12px; font-weight: 700; }
.staff-services-table td { padding: 13px 14px; border-top: 1px solid #eff0f4; color: #535667; font-size: 13px; }
.staff-services-table td strong, .staff-services-table td small { display: block; }
.staff-services-table td small { margin-top: 4px; color: #858896; font-size: 11px; }
.staff-services-table .staff-service-row { cursor: pointer; }
.staff-services-table .staff-service-row:hover, .staff-services-table .staff-service-row:focus-visible { background: #f8f7ff; outline: 2px solid #cfcaf0; outline-offset: -2px; }
.staff-services-table tr.is-selected { background: #f5f4ff; }
.staff-services-table tr.is-selected > td { border-bottom-color: #dddafa; }
.staff-status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #5e6270; background: #f0f1f4; font-size: 11px; white-space: nowrap; }
.staff-status-badge.status-completed { color: #147744; background: #e6f5eb; }
.staff-status-badge.status-in-progress { color: #4054af; background: #edf0ff; }
.staff-status-badge.status-awaiting-documents { color: #875900; background: #fff4dc; }
.staff-client-detail { display: grid; gap: 14px; }
.staff-service-back { justify-self: start; min-height: 36px; padding: 0 12px; border: 1px solid #e2e2ed; border-radius: 6px; color: #5147a0; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.staff-service-back:hover { border-color: #cfcaf0; background: #f8f7ff; }
.staff-client-summary, .staff-service-detail, .staff-panel { min-width: 0; padding: 20px; border: 1px solid #e8e9ef; border-radius: 10px; background: #fff; }
.staff-client-summary h2, .staff-service-detail h2, .staff-panel h2 { margin: 4px 0; color: #393d50; font: 750 20px "Manrope", sans-serif; }
.staff-client-summary p, .staff-service-detail-heading p, .staff-panel-heading p, .staff-panel-copy { margin: 4px 0 0; color: #797d8c; font-size: 13px; }
.staff-service-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.staff-service-detail-heading .staff-assignment-actions { justify-content: flex-end; }
.staff-milestones-card { margin-top: 18px; padding: 14px; border: 1px solid #eaebf1; border-radius: 9px; background: #fbfbfd; }
.staff-optional-documents { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid #eaebf1; border-radius: 9px; background: #fbfbfd; }
.staff-optional-documents .staff-panel-heading { margin-bottom: 0; }
.staff-optional-document-upload { display: grid; gap: 7px; color: #565a68; font-size: 12px; font-weight: 700; }
.staff-optional-document-upload input { max-width: 100%; color: #565a68; font: 12px "DM Sans", sans-serif; }
.staff-optional-document-upload.is-uploading { opacity: .65; }
.staff-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.staff-panel-heading h2 { font-size: 18px; }
.staff-milestone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.staff-milestone-tile { display: grid; min-height: 76px; align-content: start; gap: 8px; padding: 10px; border: 1px solid transparent; border-radius: 7px; background: #858a92; }
.staff-milestone-tile.is-complete { border-color: #23984f; color: #fff; background: #27a95b; }
.staff-milestone-tile.is-active { border-color: #e5b329; color: #51400c; background: #f8c63d; }
.staff-milestone-tile.is-next { border-color: #3471b5; color: #fff; background: #397fc4; }
.staff-milestone-tile.is-locked { border-color: #858a92; color: #fff; background: #858a92; }
.staff-milestone-label { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.staff-milestone-mark { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; color: #fff; background: rgb(28 38 50 / 28%); font: 800 10px "Manrope", sans-serif; }
.staff-milestone-tile.is-active .staff-milestone-mark { border-color: rgb(81 64 12 / 20%); color: #51400c; background: rgb(255 255 255 / 46%); }
.staff-milestone-label > div { display: grid; gap: 4px; min-width: 0; }
.staff-milestone-title { color: inherit; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.staff-milestone-state { color: inherit; font-size: 10px; opacity: .9; }
.staff-milestone-tile.is-complete .staff-milestone-state { color: #fff; }
.staff-milestone-document { color: inherit; font-size: 10px; overflow-wrap: anywhere; }
.staff-milestone-upload { display: grid; gap: 6px; color: inherit; font-size: 10px; font-weight: 700; }
.staff-milestone-upload input { max-width: 100%; color: inherit; font: 10px "DM Sans", sans-serif; }
.staff-milestone-upload.is-uploading { opacity: .65; }
.staff-milestone-email { color: inherit; font-size: 10px; opacity: .9; }
.staff-milestone-email.is-sent { color: inherit; }
.staff-milestone-email.is-failed { color: #7d1c16; }
.staff-milestone-retry { padding: 3px 7px; border: 0; color: #5d52b6; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.staff-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.staff-comments-list, .staff-documents-list, .credential-list { display: grid; gap: 9px; max-height: 320px; overflow: auto; }
.staff-comment { padding: 10px 12px; border: 1px solid #ececf2; border-radius: 7px; background: #fafaff; }
.staff-comment p, .staff-comment small { display: block; margin: 0; color: #565a69; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-comment small { margin-top: 7px; color: #8a8d99; font-size: 11px; }
.staff-comment-form, .staff-email-compose, .staff-credential-form { display: grid; gap: 8px; margin-top: 12px; }
.staff-comment-form label, .staff-email-compose label, .staff-credential-form label { color: #565a68; font-size: 12px; font-weight: 700; }
.staff-comment-form textarea, .staff-email-compose textarea, .staff-credential-form textarea, .staff-email-compose input, .staff-credential-form input { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid #e1e3eb; border-radius: 6px; color: #35394a; background: #fff; font: 13px "DM Sans", sans-serif; }
.staff-comment-form textarea, .staff-email-compose textarea, .staff-credential-form textarea { resize: vertical; }
.staff-document { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #ececf1; border-radius: 7px; }
.staff-document-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 7px; color: #554bb0; background: #f0efff; font-size: 10px; font-weight: 800; }
.staff-document > div { min-width: 0; }
.staff-document strong, .staff-document small { display: block; overflow-wrap: anywhere; }
.staff-document strong { color: #44485a; font-size: 12px; }
.staff-document small { margin-top: 4px; color: #858896; font-size: 11px; }
.staff-empty-copy { margin: 0; color: #838694; font-size: 13px; }
.staff-credentials-panel { display: grid; gap: 14px; }
.staff-credential-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-credential-form label, .staff-credential-form textarea, .staff-credential-form p, .staff-credential-form button { grid-column: 1 / -1; }
.staff-credential-form input { grid-column: 1 / -1; }
.staff-credential-form input:nth-of-type(1), .staff-credential-form input:nth-of-type(2), .staff-credential-form input:nth-of-type(3), .staff-credential-form input:nth-of-type(4) { min-width: 0; }
.credential-list-card { display: grid; gap: 6px; padding: 12px; border: 1px solid #e8e9ef; border-radius: 8px; background: #fbfbfd; }
.credential-list-card > strong { color: #414557; font-size: 14px; }
.credential-list-card > small, .credential-list-secret, .credential-list-notes { margin: 0; color: #666a78; font-size: 12px; overflow-wrap: anywhere; }
.credential-list-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.credential-login-link { color: #5e53b7; font-size: 12px; font-weight: 700; text-decoration: none; }
.credential-list-notes { white-space: pre-wrap; }
.staff-communication-view { display: grid; gap: 14px; }
.staff-email-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.staff-email-history { display: grid; gap: 10px; max-height: 620px; overflow-y: auto; }
.staff-email-history-item { padding: 12px; border: 1px solid #e9eaf0; border-radius: 8px; }
.staff-email-history-item strong, .staff-email-history-item small { display: block; }
.staff-email-history-item strong { color: #45495a; font-size: 13px; }
.staff-email-history-item small { margin-top: 4px; color: #858896; font-size: 11px; }
.staff-email-history-item p { margin: 9px 0 0; color: #5a5e6d; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-service-templates { display: grid; gap: 8px; }
.staff-service-template-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, .9fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e7e8ee; border-radius: 7px; background: #fff; }
.staff-service-signup-price { display: grid; gap: 4px; }
.staff-service-signup-price strong { color: #45495a; font-size: 12px; }
.staff-service-signup-price small { color: #858896; font-size: 10px; }
.staff-service-template-name { color: #45495a; font-size: 13px; }
.staff-service-template-row select { min-width: 0; min-height: 35px; padding: 0 8px; border: 1px solid #e1e3eb; border-radius: 5px; color: #55596a; background: #fff; font-size: 12px; }
.client-credential-card { display: grid; gap: 10px; padding: 17px; border: 1px solid #e6e8ef; border-radius: 9px; background: #fff; }
.client-credential-card h3 { margin: 0; color: #393d50; font: 750 18px "Manrope", sans-serif; }
.client-credential-value { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: #515565; font-size: 14px; overflow-wrap: anywhere; }
.client-credential-value strong { min-width: 90px; color: #777b8a; font-size: 12px; }
.client-credential-reveal { padding: 4px 8px; border: 1px solid #e4e5ed; border-radius: 5px; color: #564bb0; background: #f9f8ff; font-size: 12px; cursor: pointer; }
.client-credential-notes { margin: 0; color: #737786; font-size: 13px; white-space: pre-wrap; }
.credential-dialog-list { padding: 0 24px 22px; }
.credential-dialog-list h3 { color: #414557; font: 700 16px "Manrope", sans-serif; }
.credential-dialog-list .credential-list { max-height: 280px; }
.credential-list-heading { display: grid; gap: 4px; }
.credential-list-heading strong { color: #414557; font-size: 14px; }
.credential-list-heading small { color: #777b89; font-size: 12px; }
.credential-list-actions { display: flex; flex-wrap: wrap; gap: 7px; }

@media (max-width: 760px) {
  .staff-detail-columns, .staff-email-layout { grid-template-columns: minmax(0, 1fr); }
  .staff-service-detail-heading { flex-direction: column; }
  .staff-service-detail-heading .staff-assignment-actions { justify-content: flex-start; }
  .staff-client-summary, .staff-service-detail, .staff-panel { padding: 14px; }
  .staff-milestone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-credential-form { grid-template-columns: minmax(0, 1fr); }
  .staff-service-template-row { grid-template-columns: minmax(0, 1fr); }
}
