/*
 * SkyHub Portal CSS Split: portal-customer.css
 * Source: assets/css/aop-app.css lines 1119-1438
 * Purpose: Customer record detail drawers, customer-safe timeline/document actions, profile enrichment, entitlements and profile/account polish.
 * Phase: v0.12.2.9 Architecture Stabilisation Phase 2 — CSS split only.
 */

/* v0.2.12 Customer portal native record detail drawers */
.aop-portal-detail-view { display: grid; gap: 16px; }
.aop-portal-detail-view .aop-detail-grid { grid-template-columns: 150px 1fr; gap: 9px 14px; }
.aop-portal-detail-view .aop-detail-grid dd { word-break: break-word; }
.aop-detail-section { display: grid; gap: 10px; }
.aop-detail-section h3 { margin: 0; color: var(--aop-navy); font-size: 15px; letter-spacing: -.02em; }
.aop-detail-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; background: #eef7fb; border: 1px solid rgba(60,182,211,.22); }
.aop-detail-total span { color: var(--aop-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 950; }
.aop-detail-total strong { color: var(--aop-navy); font-size: 16px; }
.aop-related-groups { display: grid; gap: 10px; }
.aop-related-group { padding: 12px; border: 1px solid var(--aop-line); border-radius: 15px; background: #fff; display: grid; gap: 8px; }
.aop-related-group > strong { color: var(--aop-navy); font-size: 13px; }
.aop-related-group small { color: var(--aop-muted); }
.aop-related-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.aop-related-group li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 12px; background: #f7f9fb; font-size: 12px; }
.aop-related-group li span { color: var(--aop-ink); font-weight: 850; }
.aop-related-group li em { color: var(--aop-muted); font-style: normal; }
.aop-detail-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aop-detail-activity li { padding: 10px 12px; border-left: 3px solid var(--aop-cyan); border-radius: 12px; background: #f7f9fb; display: grid; gap: 3px; }
.aop-detail-activity strong { color: var(--aop-navy); font-size: 12px; }
.aop-detail-activity span { color: var(--aop-ink); font-size: 12px; }
.aop-detail-activity small, .aop-detail-empty { color: var(--aop-muted); font-size: 12px; }
@media (max-width: 720px) {
  .aop-portal-detail-view .aop-detail-grid { grid-template-columns: 1fr; }
  .aop-related-group li { display: grid; }
}


/* v0.2.13 customer-safe portal detail timeline */
.aop-customer-status-timeline { border-top: 1px solid rgba(148, 163, 184, .22); padding-top: 12px; }
.aop-customer-status-note { margin: 0; color: var(--aop-muted); font-size: 12px; line-height: 1.5; }
.aop-detail-activity.is-customer-safe li { border-left-color: #38bdf8; background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%); }
.aop-detail-activity.is-customer-safe strong { font-size: 13px; }

/* v0.2.14 customer portal document actions */
.aop-table-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aop-document-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aop-document-actions.is-compact { display: inline-flex; }
.aop-document-action-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, .25);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.aop-document-availability-card {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: grid;
  gap: 12px;
}
.aop-document-availability-card.tone-available { border-color: rgba(34,197,94,.28); background: linear-gradient(180deg, #ffffff 0%, #f2fbf5 100%); }
.aop-document-availability-card.tone-review { border-color: rgba(245,158,11,.28); background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%); }
.aop-document-availability-card.tone-pending { border-color: rgba(148,163,184,.28); background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.aop-document-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 89, 155, .09);
  color: #0f4f85;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.aop-document-availability-card h3 { margin: 6px 0 2px; color: var(--aop-navy); font-size: 16px; }
.aop-document-availability-card p { margin: 0; color: var(--aop-muted); font-size: 12px; line-height: 1.45; }
.aop-document-availability-card dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.74); border: 1px solid rgba(148,163,184,.16); }
.aop-document-availability-card dt { color: var(--aop-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.aop-document-availability-card dd { margin: 0; color: var(--aop-ink); font-size: 12px; font-weight: 800; }
.aop-drawer-actions .aop-document-actions { display: inline-flex; }
@media (max-width: 720px) {
  .aop-table-actions { display: grid; justify-items: start; }
  .aop-document-availability-card dl { grid-template-columns: 1fr; }
}

/* v0.4.5 Customer portal detail tabs */
.aop-detail-view-tabs .aop-drawer-record-description { margin-bottom: 14px; }
.aop-detail-tabs { display: grid; gap: 14px; }
.aop-detail-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--aop-line);
  background: #f8fafc;
  border-radius: 18px;
}
.aop-detail-tab-button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--aop-muted);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
  padding: 9px 13px;
}
.aop-detail-tab-button:hover { color: var(--aop-navy); background: rgba(15, 23, 42, .05); }
.aop-detail-tab-button.is-active {
  background: var(--aop-navy);
  border-color: var(--aop-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 22, 47, .16);
}
.aop-detail-tab-panel { display: none; animation: aopTabFade .16s ease-out; }
.aop-detail-tab-panel.is-active { display: grid; gap: 14px; }
.aop-detail-tab-panel[hidden] { display: none !important; }
@keyframes aopTabFade { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
  .aop-detail-tab-nav { overflow-x: auto; flex-wrap: nowrap; }
  .aop-detail-tab-button { flex: 0 0 auto; }
}

/* v0.4.7 Customer / Airline profile enrichment */
.aop-airline-profile-grid { align-items: stretch; }
.aop-airline-profile-hero {
  display: flex;
  gap: 18px;
  align-items: center;
}
.aop-customer-logo {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  border: 1px solid var(--aop-line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.aop-customer-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.aop-customer-logo.is-placeholder { background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(15,23,42,.08)); color: var(--aop-navy); font-weight: 950; letter-spacing: .08em; }
.aop-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.aop-mini-metrics span {
  min-width: 95px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(148,163,184,.2);
}
.aop-mini-metrics strong { display: block; color: var(--aop-navy); font-size: 15px; }
.aop-mini-metrics small { display: block; color: var(--aop-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.aop-mini-metrics.is-stacked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .aop-airline-profile-hero { align-items: flex-start; flex-direction: column; }
  .aop-mini-metrics.is-stacked { grid-template-columns: 1fr; }
}

/* v0.4.8 — Portal entitlement restricted state */
.aop-restricted-card {
  max-width: 760px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(200, 77, 93, .18);
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 77, 93, .10), transparent 30%),
    var(--aop-card);
}
.aop-restricted-card h2 { margin: 0; font-size: 24px; }
.aop-restricted-card .aop-btn { justify-self: start; }

/* v0.4.9 — Customer portal profile/account UX polish */
.aop-contact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.aop-contact-photo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(15,23,42,.10));
  border: 1px solid rgba(148,163,184,.30);
  color: var(--aop-navy);
  font-weight: 950;
  flex: 0 0 auto;
}
.aop-contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aop-contact-photo span { font-size: 20px; }
.aop-profile-photo-row.is-compact { align-items: center; }
.aop-module-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.aop-module-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(14,165,233,.09);
  border: 1px solid rgba(14,165,233,.20);
  color: var(--aop-navy);
  font-size: 12px;
  font-weight: 850;
}
.aop-module-chip-list span.is-muted {
  background: rgba(100,116,139,.08);
  border-color: rgba(100,116,139,.16);
  color: var(--aop-muted);
}
.aop-profile-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.aop-profile-link-grid a {
  text-decoration: none;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(248,250,252,.86);
  color: var(--aop-ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.aop-profile-link-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(14,165,233,.38);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
}
.aop-profile-link-grid strong,
.aop-profile-link-grid small {
  display: block;
}
.aop-profile-link-grid strong {
  color: var(--aop-navy);
  font-size: 14px;
  margin-bottom: 3px;
}
.aop-profile-link-grid small {
  color: var(--aop-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.aop-readiness-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0 14px;
}
.aop-readiness-meter > div {
  height: 12px;
  border-radius: 999px;
  background: rgba(148,163,184,.18);
  overflow: hidden;
}
.aop-readiness-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aop-cyan), var(--aop-navy));
}
.aop-readiness-meter strong {
  color: var(--aop-navy);
  font-weight: 950;
}
.aop-readiness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.aop-readiness-list span {
  border-radius: 14px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(248,250,252,.90);
  color: var(--aop-muted);
}
.aop-readiness-list span.is-done {
  color: var(--aop-green);
  background: rgba(30,127,88,.08);
  border-color: rgba(30,127,88,.16);
}
.aop-readiness-list span.is-pending {
  color: var(--aop-muted);
}
@media (max-width: 980px) {
  .aop-profile-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aop-readiness-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .aop-contact-card { grid-template-columns: 1fr; }
  .aop-profile-link-grid { grid-template-columns: 1fr; }
}


/* v0.20.2 — Client Dashboard Go-Live Clarity Polish
   Customer-dashboard-only polish. Keeps the capture-tool bottom whitespace out of scope. */
.aop-module-dashboard .aop-command-tile{
  position:relative;
  overflow:hidden;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.aop-module-dashboard .aop-command-tile:not(.is-primary){
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;
  border-color:rgba(148,163,184,.22)!important;
}
.aop-module-dashboard .aop-command-tile:not(.is-primary):hover{
  transform:translateY(-1px);
  border-color:rgba(31,169,208,.38)!important;
  box-shadow:0 18px 34px rgba(15,23,42,.08)!important;
}
.aop-module-dashboard .aop-command-tile:not(.is-primary)::after{
  content:'→';
  position:absolute;
  right:16px;
  top:14px;
  color:#0e91ad;
  font-weight:950;
  opacity:.56;
}
.aop-module-dashboard .aop-dashboard-recent-orders .aop-row-actions{
  align-items:center;
  gap:7px;
}
.aop-module-dashboard .aop-dashboard-recent-orders .aop-row-actions .aop-btn{
  min-height:30px;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.aop-module-dashboard .aop-dashboard-recent-orders .aop-row-actions .aop-btn-ghost{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  color:#0f172a;
}
.aop-module-dashboard .aop-dashboard-recent-orders .aop-row-actions .aop-btn-secondary{
  background:#e9f7fb;
  border:1px solid rgba(31,169,208,.24);
  color:#087d98;
}
.aop-module-dashboard .aop-dashboard-recent-orders .aop-next-step-copy{
  max-width:180px!important;
  color:#52667c;
  font-weight:750;
  letter-spacing:0;
}
.aop-module-dashboard .aop-action-board-panel .aop-panel-head span{
  color:#718198;
  font-weight:800;
}
.aop-module-dashboard .aop-customer-action-groups{
  gap:14px!important;
}
.aop-module-dashboard .aop-action-section{
  display:grid;
  gap:8px;
}
.aop-module-dashboard .aop-action-section h3,
.aop-module-dashboard .aop-customer-recent-updates h3{
  margin:0 0 2px;
  color:#0b1535!important;
  font-size:11px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.aop-module-dashboard .aop-action-section.is-required{
  padding-bottom:12px;
  border-bottom:1px solid rgba(148,163,184,.18);
}
.aop-module-dashboard .aop-action-section a{
  position:relative;
  padding:12px 42px 12px 13px!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;
}
.aop-module-dashboard .aop-action-section a strong{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
}
.aop-module-dashboard .aop-action-arrow{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#0e91ad;
  font-size:17px;
}
.aop-module-dashboard .aop-customer-action-empty{
  margin:0;
  padding:12px 13px;
  border-radius:15px;
  border:1px solid rgba(34,197,94,.20);
  background:#f2fbf5;
  color:#166534;
  font-size:12px;
  font-weight:850;
}
.aop-module-dashboard .aop-customer-recent-updates{
  margin-top:16px!important;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.18);
}
.aop-module-dashboard .aop-customer-recent-updates button{
  min-height:38px!important;
  align-items:center;
  border:1px solid rgba(148,163,184,.14)!important;
  background:rgba(248,250,252,.92)!important;
}
.aop-module-dashboard .aop-customer-recent-updates button span{
  color:#263650;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.aop-module-dashboard .aop-customer-recent-updates button small{
  flex:0 0 auto;
  text-transform:lowercase;
}
.aop-module-dashboard .aop-performance-note{
  opacity:.72;
  font-size:11px;
}
@media (max-width:1180px){
  .aop-module-dashboard .aop-dashboard-recent-orders .aop-next-step-copy{
    max-width:260px!important;
  }
}
@media (max-width:720px){
  .aop-module-dashboard .aop-action-section a{
    padding-right:38px!important;
  }
  .aop-module-dashboard .aop-customer-recent-updates button{
    display:grid!important;
    justify-content:stretch!important;
  }
}

/* v0.20.2.1 — Client Dashboard Action Panel Polish
   Stronger customer action affordance plus softer admin-only diagnostic strip. */
.aop-module-dashboard .aop-action-board-panel{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  border:1px solid rgba(148,163,184,.18)!important;
}
.aop-module-dashboard .aop-action-board-panel .aop-panel-head{
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.12);
}
.aop-module-dashboard .aop-action-board-panel .aop-panel-head h2{
  color:#07152f;
  font-weight:950;
}
.aop-module-dashboard .aop-action-board-panel .aop-panel-head span{
  color:#41546f!important;
  font-weight:900;
}
.aop-module-dashboard .aop-action-section.is-required{
  padding:13px;
  border:1px solid rgba(239,68,68,.18);
  border-radius:18px;
  background:linear-gradient(135deg,#fff5f5 0%,#fffafa 58%,#fff 100%);
  box-shadow:inset 4px 0 0 rgba(239,68,68,.42);
}
.aop-module-dashboard .aop-action-section.is-required h3{
  color:#991b1b!important;
}
.aop-module-dashboard .aop-action-section.is-required a{
  background:linear-gradient(135deg,#fff1f2 0%,#ffffff 100%)!important;
  border:1px solid rgba(239,68,68,.20)!important;
  box-shadow:0 10px 22px rgba(127,29,29,.055)!important;
}
.aop-module-dashboard .aop-action-section.is-required a:hover{
  border-color:rgba(220,38,38,.34)!important;
  box-shadow:0 16px 30px rgba(127,29,29,.09)!important;
  transform:translateY(-1px);
}
.aop-module-dashboard .aop-action-section.is-required a strong{
  color:#7f1d1d!important;
}
.aop-module-dashboard .aop-action-section.is-required a small{
  color:#7f4b4b!important;
}
.aop-module-dashboard .aop-action-section.is-required .aop-action-arrow{
  color:#dc2626;
  background:#ffffff;
  box-shadow:0 8px 18px rgba(220,38,38,.13);
}
.aop-module-dashboard .aop-action-section:not(.is-required){
  padding:13px;
  border:1px solid rgba(14,145,173,.16);
  border-radius:18px;
  background:linear-gradient(135deg,#f0fbff 0%,#ffffff 66%);
}
.aop-module-dashboard .aop-action-section:not(.is-required) h3{
  color:#075985!important;
}
.aop-module-dashboard .aop-action-section:not(.is-required) a{
  background:linear-gradient(135deg,#effaff 0%,#ffffff 100%)!important;
  border:1px solid rgba(14,145,173,.18)!important;
  box-shadow:0 10px 22px rgba(14,116,144,.045)!important;
}
.aop-module-dashboard .aop-action-section:not(.is-required) a:hover{
  border-color:rgba(14,145,173,.36)!important;
  box-shadow:0 16px 30px rgba(14,116,144,.08)!important;
  transform:translateY(-1px);
}
.aop-module-dashboard .aop-action-section:not(.is-required) a strong{
  color:#082f49!important;
}
.aop-module-dashboard .aop-action-section:not(.is-required) a small{
  color:#46657a!important;
}
.aop-module-dashboard .aop-action-section .aop-action-arrow{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#ffffff;
  color:#07809b;
  box-shadow:0 8px 18px rgba(8,126,152,.12);
  font-size:18px;
  line-height:1;
}
.aop-module-dashboard .aop-customer-recent-updates{
  border-top:1px solid rgba(148,163,184,.16);
}
.aop-module-dashboard .aop-customer-recent-updates button{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
  border-color:rgba(148,163,184,.20)!important;
}
.aop-module-dashboard .aop-customer-recent-updates button:hover{
  border-color:rgba(14,145,173,.28)!important;
  box-shadow:0 10px 22px rgba(15,23,42,.055)!important;
}
.aop-module-dashboard .aop-performance-note{
  margin-top:12px!important;
  padding:8px 11px!important;
  border:1px solid rgba(14,165,233,.18)!important;
  border-style:solid!important;
  border-radius:12px!important;
  background:rgba(240,249,255,.72)!important;
  color:#30566d!important;
  box-shadow:none!important;
  opacity:.68!important;
}
.aop-module-dashboard .aop-performance-note strong,
.aop-module-dashboard .aop-performance-note span{
  color:#30566d!important;
  font-size:10.5px!important;
  font-weight:650!important;
}
@media (max-width:720px){
  .aop-module-dashboard .aop-action-section.is-required,
  .aop-module-dashboard .aop-action-section:not(.is-required){
    padding:11px;
  }
  .aop-module-dashboard .aop-action-section .aop-action-arrow{
    width:25px;
    height:25px;
  }
}

/* v0.20.3 — New Order workflow step compact polish
 * Scope: customer New Order workflow orientation strip only.
 * Guardrail: CSS-only density/viewport fix; no order, draft, submit, customer ownership, ROE, pricing or workflow logic changes.
 */
.aop-order-form .aop-order-journey-strip{
  gap:8px;
  margin:0 0 12px;
  align-items:stretch;
}
.aop-order-form .aop-order-journey-strip > div{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  grid-template-areas:"badge title" "badge copy";
  column-gap:8px;
  row-gap:1px;
  align-content:start;
  min-height:0;
  padding:9px 10px;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(15,23,42,.045);
}
.aop-order-form .aop-order-journey-strip > div span{
  grid-area:badge;
  width:22px;
  height:22px;
  margin:0;
  border-radius:8px;
  font-size:11px;
  line-height:1;
}
.aop-order-form .aop-order-journey-strip > div strong{
  grid-area:title;
  min-width:0;
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  color:#10203d;
  overflow-wrap:anywhere;
}
.aop-order-form .aop-order-journey-strip > div small{
  grid-area:copy;
  min-width:0;
  margin:1px 0 0;
  font-size:10.5px;
  line-height:1.25;
  color:#64748b;
  overflow-wrap:anywhere;
}
@media (max-width:720px){
  .aop-order-form .aop-order-journey-strip{
    gap:7px;
    margin-bottom:10px;
  }
  .aop-order-form .aop-order-journey-strip > div{
    grid-template-columns:22px minmax(0,1fr);
    padding:8px 10px;
  }
  .aop-order-form .aop-order-journey-strip > div small{
    display:none;
  }
}

/* v0.20.4 — Customer Orders tracking clarity polish
 * Scope: customer Orders page only.
 * Guardrail: copy/presentation polish only; no status storage, order scoping, drawer, support, workflow or data-model changes.
 */
.aop-module-orders .aop-order-tracker-help{
  display:grid;
  grid-template-columns:minmax(155px,210px) minmax(0,1fr);
  align-items:center;
  gap:8px 18px;
  margin-bottom:12px;
  padding:13px 16px;
  border:1px solid rgba(14,145,173,.12);
  background:linear-gradient(135deg,#f8fcff 0%,#ffffff 72%);
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.aop-module-orders .aop-order-tracker-help > strong{
  color:#082f49;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.aop-module-orders .aop-order-tracker-help > span{
  color:#4f647c;
  font-size:12.5px;
  line-height:1.45;
}
.aop-module-orders .aop-order-tracker-help b{
  color:#0f172a;
  font-weight:850;
}
.aop-module-orders .aop-next-step-copy{
  max-width:250px;
  line-height:1.32;
}
.aop-module-orders .aop-row-actions .aop-btn{
  white-space:nowrap;
}
.aop-module-orders .aop-order-tracker-stats .aop-stat.tone-blue{
  background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(255,255,255,.94));
}
@media (max-width:760px){
  .aop-module-orders .aop-order-tracker-help{
    grid-template-columns:1fr;
    align-items:flex-start;
    padding:12px 14px;
  }
  .aop-module-orders .aop-order-tracker-help > span{
    font-size:12px;
  }
}


/* v0.20.4.1 — Customer Orders micro copy hotfix
 * Scope: customer Orders guide emphasis and order drawer action copy only.
 * Guardrail: no route, workflow, support/query, drawer behaviour, status or data-model changes.
 */
.aop-module-orders .aop-order-tracker-help .aop-guide-action{
  color:#0f172a;
  font-size:inherit;
  line-height:inherit;
  font-weight:760;
  letter-spacing:0;
  white-space:nowrap;
}
.aop-module-orders .aop-order-tracker-help b{
  font-size:inherit;
  line-height:inherit;
  font-weight:760;
}

/* v0.20.5 — Float Account ledger clarity polish
 * Scope: customer Float Account presentation only.
 * Guardrail: no balance calculation, reconciliation storage, routes, Finance Core, workflow or data-model changes.
 */
.aop-module-float-account .aop-float-live-note{
  align-items:center;
  gap:16px;
  background:linear-gradient(135deg,#f8fcff 0%,#ffffff 78%);
  border-color:rgba(14,145,173,.12);
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.aop-module-float-account .aop-float-live-note strong{
  color:#0f172a;
  font-size:12.5px;
  line-height:1.45;
}
.aop-module-float-account .aop-float-live-note p{
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}
.aop-module-float-account .aop-float-table td:nth-child(3){
  min-width:210px;
}
.aop-module-float-account .aop-float-table td:nth-child(9) .aop-btn{
  white-space:nowrap;
}
.aop-module-float-account .aop-float-table .aop-chip.pending{
  background:#fff7ed;
  color:#b45309;
}
@media (max-width:760px){
  .aop-module-float-account .aop-float-live-note{
    align-items:flex-start;
  }
  .aop-module-float-account .aop-float-table td:nth-child(3){
    min-width:180px;
  }
}

/* v0.20.9 — Notification Archive + Recall Foundation */
.aop-module-notifications .aop-notification-toolbar .aop-filter-tabs a {
  border: 1px solid var(--aop-line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--aop-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.aop-module-notifications .aop-notification-toolbar .aop-filter-tabs a.is-active {
  background: var(--aop-navy);
  border-color: var(--aop-navy);
  color: #fff;
}

.aop-module-notifications .aop-note {
  align-items: center;
  transition: opacity .14s ease, transform .14s ease;
}

.aop-module-notifications .aop-note.is-read {
  opacity: .86;
}

.aop-module-notifications .aop-note.is-archived {
  border-style: dashed;
  background: rgba(255,255,255,.78);
}

.aop-module-notifications .aop-note.is-removing {
  opacity: 0;
  transform: translateY(-4px);
}

.aop-module-notifications .aop-note-body {
  flex: 1 1 auto;
  min-width: 0;
}

.aop-module-notifications .aop-note-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.aop-module-notifications .aop-notification-empty {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--aop-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--aop-shadow-soft);
}

@media (max-width: 760px) {
  .aop-module-notifications .aop-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .aop-module-notifications .aop-note-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 48px;
  }
}

/* v0.22.2.7 — Client Order Validation + Purchasing Release Foundation */
.aop-module-order-validation .aop-validation-notice,
.aop-module-order-validation .aop-validation-governance-note,
.aop-module-order-validation .aop-validation-empty {
  border: 1px solid rgba(12, 45, 85, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(12, 45, 85, 0.08);
  padding: 18px;
}

.aop-module-order-validation .aop-validation-notice {
  border-left: 5px solid var(--aop-sky, #1d75bc);
}

.aop-module-order-validation .aop-validation-governance-note {
  margin-top: 16px;
}

.aop-module-order-validation .aop-validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.aop-module-order-validation .aop-validation-card {
  border: 1px solid rgba(12, 45, 85, 0.12);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(12, 45, 85, 0.09);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aop-module-order-validation .aop-validation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(12, 45, 85, 0.08);
  padding-bottom: 12px;
}

.aop-module-order-validation .aop-validation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.aop-module-order-validation .aop-validation-facts > div {
  background: rgba(248, 251, 255, .96);
  border: 1px solid rgba(12, 45, 85, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.aop-module-order-validation .aop-validation-facts span,
.aop-module-order-validation .aop-validation-decision-form label span {
  display: block;
  color: var(--aop-muted, #64748b);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.aop-module-order-validation .aop-validation-actions,
.aop-module-order-validation .aop-validation-decision-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.aop-module-order-validation .aop-validation-inline-form,
.aop-module-order-validation .aop-validation-decision-form {
  border: 1px solid rgba(12, 45, 85, 0.1);
  background: rgba(248, 251, 255, .9);
  border-radius: 18px;
  padding: 14px;
}

.aop-module-order-validation .aop-validation-decision-form textarea {
  width: 100%;
  min-height: 94px;
  border: 1px solid rgba(12, 45, 85, 0.16);
  border-radius: 14px;
  padding: 11px 12px;
  resize: vertical;
  background: #fff;
}

.aop-module-order-validation .aop-validation-outcome {
  border-radius: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(12, 45, 85, 0.12);
  background: rgba(248, 251, 255, .92);
}

.aop-module-order-validation .aop-validation-outcome.is-approved {
  border-color: rgba(22, 163, 74, .28);
  background: rgba(240, 253, 244, .9);
}

.aop-module-order-validation .aop-validation-outcome.is-rejected {
  border-color: rgba(220, 38, 38, .22);
  background: rgba(254, 242, 242, .92);
}

.aop-staff-btn.is-disabled,
.aop-btn.is-disabled {
  opacity: .56;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(.1);
}

@media (max-width: 760px) {
  .aop-module-order-validation .aop-validation-card-head,
  .aop-module-order-validation .aop-validation-actions,
  .aop-module-order-validation .aop-validation-decision-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .aop-module-order-validation .aop-validation-facts {
    grid-template-columns: 1fr;
  }

  .aop-module-order-validation .aop-validation-actions .aop-btn,
  .aop-module-order-validation .aop-validation-decision-actions .aop-btn {
    width: 100%;
    justify-content: center;
  }
}


/* v0.22.2.7.2 — Portal Access client filter polish */
.aop-access-client-filter-panel .aop-form-grid {
  align-items: end;
}
.aop-access-client-filter-panel select {
  width: 100%;
}
.aop-access-client-filter-panel .aop-muted-card {
  min-height: 58px;
}

/* v0.22.2.7.3 — Portal Access filter SkyHub treatment + section rhythm */
.aop-module-staff-access > section + section {
  margin-top: 22px;
}
.aop-module-staff-access .aop-access-client-filter-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 197, .18);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(235, 250, 255, .94));
  box-shadow: 0 20px 50px rgba(12, 23, 54, .08);
}
.aop-module-staff-access .aop-access-client-filter-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #14b8d7, #0e7490);
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-panel-head {
  gap: 18px;
  margin-bottom: 18px;
  padding-left: 4px;
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-form-grid {
  align-items: stretch;
  gap: 18px;
}
.aop-module-staff-access .aop-access-client-filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #101a3a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-access-filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(14, 165, 197, .26);
  border-radius: 16px;
  background-color: #fff;
  color: #101a3a;
  box-shadow: 0 10px 28px rgba(12, 23, 54, .07);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 44px 0 15px;
  outline: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0e7490 50%),
    linear-gradient(135deg, #0e7490 50%, transparent 50%),
    linear-gradient(to right, rgba(14, 165, 197, .16), rgba(14, 165, 197, .16));
  background-position:
    calc(100% - 22px) 21px,
    calc(100% - 16px) 21px,
    calc(100% - 42px) 12px;
  background-size: 6px 6px, 6px 6px, 1px 24px;
  background-repeat: no-repeat;
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-access-filter-select:focus {
  border-color: rgba(14, 165, 197, .62);
  box-shadow: 0 0 0 4px rgba(20, 184, 215, .12), 0 14px 30px rgba(12, 23, 54, .08);
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-muted-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  border: 1px solid rgba(14, 165, 197, .15);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  padding: 14px 16px;
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-muted-card strong {
  color: #101a3a;
  font-size: 15px;
  font-weight: 900;
}
.aop-module-staff-access .aop-access-client-filter-panel .aop-muted-card span {
  color: #6b7891;
  font-size: 13px;
  margin-top: 3px;
}
@media (max-width: 760px) {
  .aop-module-staff-access .aop-access-client-filter-panel .aop-panel-head,
  .aop-module-staff-access .aop-access-client-filter-panel .aop-form-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.22.2.7.7 — Order Validation Flow UI Polish */
.aop-module-order-validation .aop-validation-notice {
  margin: 16px 0 18px;
}
.aop-module-order-validation .aop-validation-card {
  gap: 16px;
}
.aop-module-order-validation .aop-validation-outcome {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.45;
}
.aop-module-order-validation .aop-validation-outcome strong {
  display: block;
  color: #101a3a;
  font-weight: 900;
}
.aop-module-order-validation .aop-validation-outcome span {
  display: block;
  color: #34425f;
}
.aop-module-order-validation .aop-validation-outcome.is-approved strong {
  color: #166534;
}
.aop-module-order-validation .aop-validation-outcome.is-rejected strong {
  color: #991b1b;
}

/* v0.22.2.7.8 — Order Validation Archive + Filters */
.aop-module-order-validation .aop-validation-filter-panel,
.aop-module-order-validation .aop-validation-archive-note {
  margin-top: 16px;
  border: 1px solid rgba(12, 45, 85, 0.12);
  background: linear-gradient(135deg, rgba(239, 250, 255, .94), rgba(255,255,255,.98));
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(12, 45, 85, 0.08);
  padding: 18px;
}
.aop-module-order-validation .aop-validation-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.aop-module-order-validation .aop-validation-filter-head h3 {
  margin: 3px 0 4px;
  color: #101a3a;
  font-size: 20px;
  line-height: 1.15;
}
.aop-module-order-validation .aop-validation-filter-head p,
.aop-module-order-validation .aop-validation-archive-note span {
  margin: 0;
  color: #718099;
}
.aop-module-order-validation .aop-validation-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.aop-module-order-validation .aop-validation-filter-form label span {
  display: block;
  margin-bottom: 7px;
  color: #101a3a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.aop-module-order-validation .aop-validation-filter-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(24, 166, 201, .28);
  border-radius: 16px;
  background: #fff;
  color: #101a3a;
  font-weight: 800;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.aop-module-order-validation .aop-validation-archive-form {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(12, 45, 85, 0.08);
  padding-top: 12px;
}
.aop-module-order-validation .aop-validation-archive-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aop-module-order-validation .aop-validation-archive-note strong {
  color: #101a3a;
}

@media (max-width: 900px) {
  .aop-module-order-validation .aop-validation-filter-form {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .aop-module-order-validation .aop-validation-filter-head {
    flex-direction: column;
  }
  .aop-module-order-validation .aop-validation-filter-form {
    grid-template-columns: 1fr;
  }
  .aop-module-order-validation .aop-validation-archive-form {
    justify-content: stretch;
  }
  .aop-module-order-validation .aop-validation-archive-form .aop-btn {
    width: 100%;
    justify-content: center;
  }
}

/* v0.22.2.7.9 — Quote Required Upload + Validator Approval Flow */
.aop-module-order-validation .aop-validation-outcome.is-pending {
  border-color: rgba(245, 158, 11, .30);
  background: rgba(255, 251, 235, .94);
}
.aop-module-order-validation .aop-validation-outcome.is-pending strong {
  color: #92400e;
}
.aop-module-order-validation .aop-quote-approval-form {
  border-color: rgba(29, 117, 188, .20);
  background: linear-gradient(180deg, rgba(239, 250, 255, .92), rgba(255, 255, 255, .98));
}
.aop-module-order-validation .aop-validation-card.is-quote_submitted {
  border-color: rgba(29, 117, 188, .20);
}
.aop-module-order-validation .aop-validation-card.is-quote_rejected {
  border-color: rgba(220, 38, 38, .22);
}
