/* Shared navigation: admin-navigation.css v17. */
:root{
  --bp-navy:#071a3a;
  --bp-blue:#1463ff;
  --bp-sky:#0aaee8;
  --bp-line:#d9e4f2;
  --bp-soft:#f5f9ff;
  --bp-text:#0b1d38;
  --bp-muted:#607493;
}

.business-profile-admin-workspace{
  min-height:calc(100vh - var(--aig-header-offset,0px) - var(--admin-control-offset,0px));
  padding:0 0 32px;
  background:#fff;
  color:var(--bp-text);
}
.business-profile-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;width:100%}
.business-profile-generated{font-size:11px;color:var(--bp-muted);white-space:nowrap}
.business-profile-control-group{width:100%;justify-content:flex-end}

.business-profile-titlebar{
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  padding:22px 26px 20px;border-bottom:1px solid var(--bp-line);background:#fff;
}
.business-profile-titlebar h1{margin:3px 0 6px;font-size:25px;line-height:1.1;color:var(--bp-navy)}
.business-profile-titlebar p{margin:0;max-width:900px;color:var(--bp-muted);font-size:13px;line-height:1.5}

.business-profile-metrics{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  border-bottom:1px solid var(--bp-line);background:#fff;
}
.business-profile-metrics article{
  min-width:0;padding:17px 18px;border-right:1px solid var(--bp-line);border-bottom:1px solid var(--bp-line);
  box-shadow:inset 0 3px 0 var(--bp-blue);
}
.business-profile-metrics article:nth-child(3n+2){box-shadow:inset 0 3px 0 var(--bp-sky)}
.business-profile-metrics article:nth-child(3n){box-shadow:inset 0 3px 0 #5847e8}
.business-profile-metrics article span,.business-profile-facts article span{
  display:block;color:#597091;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;
}
.business-profile-metrics article strong{display:block;margin:7px 0 4px;font-size:27px;line-height:1;color:var(--bp-navy);font-weight:650}
.business-profile-metrics article small,.business-profile-facts article small{display:block;color:#7b8ca5;font-size:10px;line-height:1.35}

.business-profile-panel{margin:18px 22px 0;border:1px solid var(--bp-line);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 7px 22px rgba(18,49,91,.05)}
.business-profile-panel-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;padding:16px 18px;border-bottom:1px solid var(--bp-line)}
.business-profile-panel-head h2{margin:2px 0 3px;font-size:18px;color:var(--bp-navy)}
.business-profile-panel-head p{margin:0;color:var(--bp-muted);font-size:11px}
.business-profile-filter-head{align-items:center}
.business-profile-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.business-profile-filters input,.business-profile-filters select{height:36px;border:1px solid #cbd9eb;border-radius:8px;background:#fff;color:var(--bp-text);padding:0 11px;font:inherit;font-size:11px}
.business-profile-filters input{width:min(310px,32vw)}

.business-profile-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff}
.business-profile-facts article{padding:16px 18px;border-right:1px solid var(--bp-line);border-bottom:1px solid var(--bp-line)}
.business-profile-facts article strong{display:block;margin:7px 0 4px;font-size:18px;color:var(--bp-navy)}

.business-profile-table-wrap{max-height:62vh;overflow:auto;scrollbar-gutter:stable;background:#fff}
.business-profile-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:11px}
.business-profile-table thead{position:sticky;top:0;z-index:2;background:#eef5ff}
.business-profile-table th{padding:11px 12px;border-bottom:1px solid #bcd1ec;color:#536b8d;text-align:left;font-size:9px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.business-profile-table td{padding:12px;border-bottom:1px solid #e1e9f3;vertical-align:top;color:#253b5c}
.business-profile-table td>strong,.business-profile-table td>small{display:block}
.business-profile-table td>strong{color:var(--bp-text);margin-bottom:4px;white-space:nowrap}
.business-profile-table td>small{color:#71839c;font-size:9px;line-height:1.4;max-width:260px}
.business-profile-table tbody tr:hover{background:#f7faff}
.bp-status,.bp-link-state{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase;white-space:nowrap}
.bp-status.ok,.bp-link-state.active{background:#e8fbf5;color:#08775b;border:1px solid #a9e4d2}
.bp-status.warn{background:#fff5df;color:#a45b00;border:1px solid #f2cf8e}
.bp-status.bad{background:#fff0ef;color:#b72318;border:1px solid #f1bbb5}
.bp-status.neutral,.bp-link-state.missing{background:#f2f5f9;color:#687990;border:1px solid #d8e0eb}
.bp-link-stack{display:flex;gap:4px;flex-wrap:wrap;max-width:180px}
.bp-readiness{width:105px;height:6px;background:#e6edf7;border-radius:999px;overflow:hidden;margin:5px 0}
.bp-readiness span{display:block;height:100%;background:linear-gradient(90deg,var(--bp-sky),var(--bp-blue));border-radius:inherit}
.bp-open-link{display:inline-flex;padding:7px 9px;border-radius:7px;background:var(--bp-blue);color:#fff!important;font-weight:800;text-decoration:none;white-space:nowrap}

.business-profile-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:18px 22px 0}
.business-profile-lower-grid>.business-profile-panel{margin:0;min-width:0}
.business-profile-events{max-height:360px;overflow:auto;scrollbar-gutter:stable}
.business-profile-events article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;border-bottom:1px solid #e2eaf4}
.business-profile-events strong,.business-profile-events small{display:block}.business-profile-events strong{color:var(--bp-text);font-size:11px}.business-profile-events small,.business-profile-events time{color:#71839c;font-size:9px}
.business-profile-lower-grid .raw-box{margin:0;border:0;border-radius:0;min-height:320px;max-height:360px;overflow:auto;background:#071a3a;color:#d9edff}
.business-profile-empty{padding:28px;text-align:center;color:#71839c;font-size:12px;background:#fff}

/* Directory tab 06: Business Profiles, kept separate from Owner Access. */
#asgDirectoryWorkspace .asg-directory-business-profiles-section{gap:14px;background:#fff}
#asgDirectoryWorkspace .asg-directory-business-profiles-section>.asg-directory-detail-header{border-radius:0;border-left:0;border-right:0;background:#fff;box-shadow:none}
#asgDirectoryWorkspace .asg-owner-profile-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid var(--bp-line);border-bottom:1px solid var(--bp-line);background:#fff}
#asgDirectoryWorkspace .asg-owner-profile-metrics>article{min-width:0;padding:15px 16px;border-right:1px solid var(--bp-line);box-shadow:inset 0 3px 0 var(--bp-blue)}
#asgDirectoryWorkspace .asg-owner-profile-metrics>article:nth-child(2n){box-shadow:inset 0 3px 0 var(--bp-sky)}
#asgDirectoryWorkspace .asg-owner-profile-metrics small{display:block;color:#607493;font-size:9px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
#asgDirectoryWorkspace .asg-owner-profile-metrics strong{display:block;margin-top:7px;color:var(--bp-navy);font-size:24px;font-weight:650}
#asgDirectoryWorkspace .asg-owner-business-profiles-panel{margin:0;border-left:0;border-right:0;border-radius:0;box-shadow:none}
#asgDirectoryWorkspace .asg-owner-profile-scroll{max-height:68vh;overflow:auto;scrollbar-gutter:stable;background:#fff}
#asgDirectoryWorkspace .asg-owner-profile-scroll .asg-directory-table{border:0}
#asgDirectoryWorkspace .asg-owner-profile-scroll thead{position:sticky;top:0;z-index:2;background:#eef5ff}
#asgDirectoryWorkspace .asg-owner-profile-readiness{width:110px;height:6px;margin:4px 0;border-radius:999px;overflow:hidden;background:#e3ebf6}
#asgDirectoryWorkspace .asg-owner-profile-readiness span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--bp-sky),var(--bp-blue))}
#asgDirectoryWorkspace .asg-directory-profile-filters{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#asgDirectoryWorkspace .asg-directory-profile-filters input,#asgDirectoryWorkspace .asg-directory-profile-filters select{height:34px;padding:0 10px;border:1px solid #cbd9eb;border-radius:8px;background:#fff;color:var(--bp-text);font:inherit;font-size:10px}
#asgDirectoryWorkspace .asg-directory-profile-filters input{width:min(300px,28vw)}
#asgDirectoryWorkspace .asg-directory-profile-lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#asgDirectoryWorkspace .asg-directory-profile-lower-grid>.panel{min-width:0;margin:0}
#asgDirectoryWorkspace .asg-directory-profile-lower-grid .asg-worker-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
#asgDirectoryWorkspace .asg-directory-profile-lower-grid .asg-owner-feed-scroll{min-height:270px;max-height:410px}
#asgDirectoryWorkspace .asg-directory-profile-raw-panel{margin:0;border-left:0;border-right:0;border-radius:0;box-shadow:none}

@media (max-width:1450px){.business-profile-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.business-profile-facts{grid-template-columns:repeat(3,minmax(0,1fr))}#asgDirectoryWorkspace .asg-owner-profile-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:980px){.business-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.business-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.business-profile-lower-grid{grid-template-columns:1fr}.business-profile-filter-head{align-items:flex-start;flex-direction:column}.business-profile-filters input{width:100%}#asgDirectoryWorkspace .asg-directory-profile-lower-grid{grid-template-columns:1fr}#asgDirectoryWorkspace .asg-directory-profile-filters{justify-content:flex-start}#asgDirectoryWorkspace .asg-directory-profile-filters input{width:100%}}
@media (max-width:640px){.business-profile-titlebar{padding:18px 14px}.business-profile-panel,.business-profile-lower-grid{margin-left:10px;margin-right:10px}.business-profile-metrics{grid-template-columns:1fr}.business-profile-facts{grid-template-columns:1fr}}

/* Pending intake is a saved submission, not a published profile. */
#asgDirOwnerProfileRows .bp-submitted-row{background:#fff9ec}
#asgDirOwnerProfileRows .bp-submitted-row td:first-child{border-left:3px solid #d18c13}
#asgDirOwnerProfileRows td{overflow-wrap:anywhere}

#bpIntakeInspector{width:min(900px,94vw);max-height:85vh;box-sizing:border-box;border:1px solid #cbd9eb;border-radius:12px;padding:20px;color:#0b1d38}
#bpIntakeInspector::backdrop{background:rgba(7,26,58,.55)}
#bpIntakeInspector form{display:flex;justify-content:flex-end}
#bpIntakeInspector pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f9ff;padding:15px;max-height:60vh;overflow:auto}

#asgDirOwnerProfileRows td:last-child .btn{margin:3px;min-height:34px}
