/* User Management: compact company directory, aligned forms, and readable access. */
#users{min-width:0;max-width:100%;color:#173b5d}
#users [hidden]{display:none!important}
#users .bcp-company-search .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.app-ready #users .bc-table-shell{box-sizing:border-box;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.app-ready #users .bc-table-shell>table.users-table,body.app-ready #users .bc-table-shell>table.bcp-company-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
#users .bcp-user-page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
#users .bcp-user-page-head h2{margin:0!important;font-size:1.5rem!important;font-weight:750;letter-spacing:-.025em;line-height:1.3}
#users .bcp-owner-access{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 12px;border:1px solid #c4dae9;border-radius:8px;background:#edf6fc;color:#173b5d;font-size:.875rem;font-weight:700;line-height:1.4}
#users .bcp-owner-access span{color:#48687e;font-weight:500}
#users .card{box-sizing:border-box!important;min-width:0!important;border:1px solid #d8e3eb!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(22,50,72,.04)!important}
#users .bcp-user-create-card{padding:20px 22px!important;margin-bottom:18px}
#users .bcp-user-card-head{display:flex;align-items:center;gap:10px;margin:0 0 16px}
#users .bcp-user-card-head h3{margin:0!important;font-size:1.0625rem!important;font-weight:750;color:#173b5d!important}
#users .bcp-user-form{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}
#users .bcp-user-field,#users #bcpUserCompanyScope{min-width:0!important;margin:0!important}
#users .bcp-user-field>span,#users #bcpUserCompanyScope>label,#users #bcpUserCompanyScope>span{display:block;font-size:.875rem!important;font-weight:650!important;color:#35566e!important;line-height:1.4;margin:0 0 7px!important}
#users .bcp-user-form input,#users .bcp-user-form select{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;margin:0!important;border:1px solid #bdcfdd!important;border-radius:8px!important;background:#fff!important;color:#1c3b51!important;padding:10px 12px!important;font:400 .9375rem/1.4 Inter,'Segoe UI',Arial,sans-serif!important;box-shadow:0 1px 2px rgba(15,47,73,.02)!important}
#users .bcp-user-form input::placeholder{color:#728796}
#users .bcp-user-form select{padding-right:30px!important}
#users input:focus-visible,#users select:focus-visible,#users button:focus-visible{outline:3px solid #409cd0!important;outline-offset:3px!important}
#users #bcpUserCompanyScope{padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;color:#35566e!important;font-size:.875rem!important}
#users #bcpUserCompanyScope small{display:block;font-size:.8125rem;line-height:1.5;color:#657c8d;margin-top:7px}
#users #bcpUserCompanyScope.bcp-company-fixed-scope strong{display:block;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid #d7e3eb;border-radius:8px;background:#f5f9fc;font-size:.9375rem;line-height:1.4;overflow-wrap:anywhere}
#users #bcSitePMProjectField{grid-column:span 2}
#users .bcp-user-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:12px;border-top:1px solid #e4ecf1}
#users .bcp-user-form-actions button{flex:none!important;width:auto!important;min-width:128px;min-height:42px!important;padding:10px 20px!important;background:#173b5d!important;border:1px solid #173b5d!important;border-radius:8px!important;color:#fff!important;font-size:.875rem!important;font-weight:650!important;line-height:1.4;box-shadow:none!important}
#users .note{margin:12px 0 0!important;font-size:.8125rem!important;line-height:1.55!important;color:#647d8e!important}
#users #bcpPlatformCompanyCard{padding:0!important;margin-bottom:18px!important;overflow:hidden!important}
#users #bcpPlatformCompanyCard .bcp-company-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 22px!important;background:#f5f9fc!important;color:#173b5d!important;border-bottom:1px solid #dfe9f0}
#users #bcpPlatformCompanyCard .bcp-company-heading{flex:1 1 145px;min-width:0}
#users #bcpPlatformCompanyCard .bcp-company-eyebrow{font-size:.75rem;letter-spacing:.075em;font-weight:700;color:#657f93}
#users #bcpPlatformCompanyCard .bcp-company-head h3{font-size:1.1875rem!important;line-height:1.3;color:#173b5d!important;margin:3px 0 0!important;font-weight:750}
#users #bcpPlatformCompanyCard .bcp-company-directory-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
#users #bcpPlatformCompanyCard .bcp-company-search{flex:1 1 180px;min-width:0;max-width:280px}
#users #bcpPlatformCompanyCard .bcp-company-search input{box-sizing:border-box;min-width:0!important;width:100%;height:42px;margin:0!important;padding:10px 12px!important;border:1px solid #bdcfdd!important;border-radius:8px;font:400 .875rem/1.4 Inter,'Segoe UI',Arial,sans-serif!important;background:#fff;color:#173b5d}
#users #bcpPlatformCompanyCard button{min-height:42px;box-sizing:border-box;white-space:nowrap;border:1px solid #bfd0dc!important;border-radius:8px;padding:9px 12px;font:650 .875rem/1.4 Inter,'Segoe UI',Arial,sans-serif!important;background:#fff!important;color:#254e6b!important;box-shadow:none!important;cursor:pointer}
#users #bcpPlatformCompanyCard button.primary{background:#173b5d!important;border-color:#173b5d!important;color:#fff!important}
#users button:hover{filter:brightness(.97)}
#users button:disabled{opacity:.55;cursor:not-allowed!important;filter:none}
#users #bcpPlatformCompanyCard .bcp-company-directory{padding:0!important}
#users #bcpPlatformCompanyCard .bcp-company-table-wrap{border:0!important;border-radius:0!important;overflow:auto}
#users #bcpPlatformCompanyCard .bcp-company-table{width:100%!important;min-width:0!important;table-layout:fixed;border:0!important;margin:0!important;border-radius:0}
#users #bcpPlatformCompanyCard .bcp-company-table th{box-sizing:border-box!important;background:#fff!important;color:#617a8e!important;padding:12px 16px;font-size:.8125rem!important;font-weight:650!important;letter-spacing:0;line-height:1.4;height:auto;white-space:normal!important}
#users #bcpPlatformCompanyCard .bcp-company-table td{padding:14px 16px;font-size:.875rem!important;line-height:1.5!important;color:#29485f;overflow-wrap:anywhere;vertical-align:middle;border-top:1px solid #e8eef3;border-bottom:0}
#users #bcpPlatformCompanyCard .bcp-company-table th:nth-child(1){width:28%}
#users #bcpPlatformCompanyCard .bcp-company-table th:nth-child(2){width:11%}
#users #bcpPlatformCompanyCard .bcp-company-table th:nth-child(3){width:27%}
#users #bcpPlatformCompanyCard .bcp-company-table th:nth-child(4){width:14%}
#users #bcpPlatformCompanyCard .bcp-company-table th:nth-child(5){width:20%}
#users #bcpPlatformCompanyCard .bcp-company-table tr:hover td{background:#f8fbfd}
#users #bcpPlatformCompanyCard .bcp-company-table strong{font-weight:650;color:#173b5d}
#users #bcpPlatformCompanyCard .bcp-current-company{display:block;font-size:.8125rem;color:#678296;margin:3px 0 0}
#users .bcp-company-code{display:inline-block;padding:3px 7px;border:1px solid #d7e4ec;background:#f4f8fb;border-radius:5px;font:650 .8125rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
#users #bcpPlatformCompanyCard .bcp-company-status,#users .bcp-user-status{display:inline-block;font-size:.875rem!important;line-height:1.4;font-weight:650;padding:4px 9px;border-radius:6px;background:#eaf5ee;color:#226142;white-space:nowrap}
#users #bcpPlatformCompanyCard .bcp-company-status.inactive,#users .bcp-user-status.is-disabled{background:#f2f4f6;color:#647585}
#users #bcpPlatformCompanyCard .bcp-company-invite{min-width:0!important;max-width:100%!important;min-height:36px!important;padding:7px 10px!important;white-space:normal!important}
#users #bcpPlatformCompanyCard .bcp-company-feedback{margin:16px 22px!important;font-size:.875rem!important;line-height:1.5}
#users #bcpPlatformCompanyCard .bcp-company-form{margin:18px 22px!important;padding:18px!important;border-radius:9px;background:#f7fafc!important}
#users #bcpPlatformCompanyCard .bcp-company-form-head h4{font-size:1rem;margin:0 0 5px;font-weight:700}
#users #bcpPlatformCompanyCard .bcp-company-form-head p{font-size:.875rem;line-height:1.5}
#users #bcpPlatformCompanyCard .bcp-company-fields{gap:14px;margin:16px 0}
#users #bcpPlatformCompanyCard .bcp-company-fields label{font-size:.875rem;line-height:1.4;font-weight:650}
#users #bcpPlatformCompanyCard .bcp-company-fields input{min-height:44px;font-size:.9375rem;padding:10px 12px}
#users #bcpPlatformCompanyCard .bcp-company-actions{justify-content:flex-end}
#users #bcpPlatformCompanyCard .bcp-company-empty{margin:16px 22px;padding:16px;font-size:.875rem;line-height:1.5}
#users .bcp-user-list-card{padding:0!important;overflow:auto!important}
#users .bcp-user-list-card .bcp-user-card-head{padding:18px 22px;margin:0;border-bottom:1px solid #e2ebf1}
#users .users-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border:0!important}
#users .users-table th{height:auto!important;padding:12px 14px!important;font-size:.8125rem!important;font-weight:650!important;line-height:1.4!important;letter-spacing:0!important;background:#f5f9fc!important;color:#617a8e!important;white-space:normal!important}
#users .users-table td{padding:15px 14px!important;font-size:.875rem!important;font-weight:500!important;line-height:1.5!important;color:#29485f!important;overflow-wrap:anywhere!important;border-bottom:1px solid #e8eef3!important}
#users .users-table th:nth-child(1),#users .users-table td:nth-child(1){width:25%!important}
#users .users-table th:nth-child(2),#users .users-table td:nth-child(2){width:18%!important}
#users .users-table th:nth-child(3),#users .users-table td:nth-child(3){width:18%!important}
#users .users-table th:nth-child(4),#users .users-table td:nth-child(4){width:13%!important}
#users .users-table th:nth-child(5),#users .users-table td:nth-child(5){width:10%!important;white-space:normal!important}
#users .users-table th:last-child,#users .users-table td:last-child{width:16%!important}
#users .users-table td:first-child{font-weight:650!important;color:#173b5d!important}
#users .users-table td:last-child>div{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}
#users .users-table td:last-child button{min-width:0!important;min-height:36px!important;height:auto!important;padding:7px 10px!important;border:1px solid #bfd0dc!important;border-radius:7px!important;background:#fff!important;color:#35566e!important;font-size:.875rem!important;font-weight:600!important;line-height:1.4!important;transform:none!important;box-shadow:none!important}
#users .users-table td:last-child button:last-child{color:#a83b32!important;border-color:#ebcec9!important;background:#fffafa!important}
#users .users-table select{min-height:40px!important;height:auto!important;line-height:1.4!important;font-size:.875rem!important;font-weight:500!important;padding:9px 26px 9px 9px!important;border-radius:7px!important}
#users .bcp-platform-owner{display:inline-block;padding:5px 9px;border:1px solid #b9d5e8;border-radius:6px;background:#edf6fc;color:#1a5a86;font-size:.875rem;font-weight:650;line-height:1.4}
@media(max-width:1100px){
  #users .bcp-user-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #users #bcpUserCompanyScope{grid-column:1/-1}
  #users #bcpUserCompanyScope small{margin-top:6px}
  #users .bcp-user-form-actions{padding-top:10px}
  #users #bcpPlatformCompanyCard .bcp-company-directory-tools{flex:1 1 380px}
}
@media(max-width:900px){
  #users .users-table,#users .users-table tbody{display:block!important}
  #users .users-table thead{display:none!important}
  #users .users-table tbody{padding:6px 18px 18px}
  #users .users-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;padding:18px 0;border-bottom:1px solid #dfe8ef}
  #users .users-table tbody tr:last-child{border-bottom:0}
  #users .users-table tbody tr td:nth-child(n){display:block;width:auto!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important}
  #users .users-table td::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:.8125rem;font-weight:600;color:#6a8396;line-height:1.4}
  #users .users-table td:first-child{grid-column:1/-1;font-size:1rem!important}
  #users .users-table td:last-child{grid-column:1/-1}
  #users .users-table td[data-bc-password-cell]{grid-column:1/-1}
  body.bcp-cloud-mode #users .users-table td[data-bc-password-cell]{display:none!important}
  #users .users-table td:last-child>div{gap:8px!important}
  #users .users-table td:last-child button{min-height:40px!important;min-width:85px!important}
}
@media(max-width:650px){
  #users .bcp-user-page-head{margin-bottom:14px;gap:10px}
  #users .bcp-user-page-head h2{font-size:1.375rem!important}
  #users .bcp-owner-access{font-size:.8125rem;gap:8px}
  #users .bcp-user-create-card{padding:18px!important}
  #users .bcp-user-form{grid-template-columns:1fr!important;gap:14px!important}
  #users #bcSitePMProjectField{grid-column:1}
  #users #bcpPlatformCompanyCard .bcp-company-head{flex-direction:column;align-items:stretch!important;padding:16px 18px!important;gap:14px}
  #users #bcpPlatformCompanyCard .bcp-company-heading{flex:none}
  #users #bcpPlatformCompanyCard .bcp-company-directory-tools{flex:none;display:grid;grid-template-columns:1fr auto}
  #users #bcpPlatformCompanyCard .bcp-company-search{grid-column:1/-1;max-width:none}
  #users #bcpPlatformCompanyCard #bcpRefreshCompanies{justify-self:start}
  #users #bcpPlatformCompanyCard .bcp-company-form{margin:16px 18px!important;padding:16px!important}
  #users #bcpPlatformCompanyCard .bcp-company-fields{grid-template-columns:1fr}
  #users #bcpPlatformCompanyCard .bcp-company-actions{align-items:stretch;flex-direction:column-reverse}
  #users #bcpPlatformCompanyCard .bcp-company-actions button{white-space:normal}
  #users #bcpPlatformCompanyCard .bcp-company-feedback{margin:16px 18px!important}
  #users #bcpPlatformCompanyCard .bcp-company-table,#users #bcpPlatformCompanyCard .bcp-company-table tbody{display:block}
  #users #bcpPlatformCompanyCard .bcp-company-table thead{display:none}
  #users #bcpPlatformCompanyCard .bcp-company-table tbody{padding:0 18px}
  #users #bcpPlatformCompanyCard .bcp-company-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px 0;border-bottom:1px solid #e2ebf1}
  #users #bcpPlatformCompanyCard .bcp-company-table tr:last-child{border-bottom:0}
  #users #bcpPlatformCompanyCard .bcp-company-table td{display:block;min-width:0;padding:0;border:0}
  #users #bcpPlatformCompanyCard .bcp-company-table td::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:.8125rem;color:#6a8396;font-weight:600;line-height:1.4}
  #users #bcpPlatformCompanyCard .bcp-company-table td:first-child,#users #bcpPlatformCompanyCard .bcp-company-table td:nth-child(3),#users #bcpPlatformCompanyCard .bcp-company-table td:last-child{grid-column:1/-1}
  #users #bcpPlatformCompanyCard .bcp-company-table td:first-child strong{font-size:1rem}
  #users #bcpPlatformCompanyCard .bcp-company-invite{min-height:40px!important}
  #users .bcp-user-list-card .bcp-user-card-head{padding:16px 18px}
}
