/* Staff proposal acceptance workflow — 20260727qa708 */

.proposal-accept-without-signature {
  border-color: #ff8a1f !important;
  color: #ffd0a3 !important;
  background: #121b26 !important;
  white-space: nowrap;
}

.proposal-accept-without-signature:hover,
.proposal-accept-without-signature:focus-visible {
  border-color: #ff9a3d !important;
  color: #fff !important;
  background: #1c2734 !important;
  outline: 2px solid rgba(255, 138, 31, .32);
  outline-offset: 2px;
}

.proposal-workflow-actions,
.proposal-acceptance-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.proposal-workflow-actions {
  justify-content: flex-end;
}

/* Final actions follow the work. This keeps pricing and scope controls focused
   while staff approval, archive, and delete choices remain deliberate. */
.proposal-lifecycle-actions,
.hgc-proposal-lifecycle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #2b465a;
  border-radius: 12px;
  background: #081520;
}

.proposal-lifecycle-before-media,
.hgc-proposal-lifecycle {
  margin-bottom: 14px;
}

.proposal-lifecycle-actions > div,
.hgc-proposal-lifecycle > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.proposal-lifecycle-actions small,
.hgc-proposal-lifecycle small {
  color: #ff9a3d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.proposal-lifecycle-actions strong,
.hgc-proposal-lifecycle strong {
  color: #f5f6f7;
  font-size: 16px;
}

.proposal-lifecycle-actions p,
.hgc-proposal-lifecycle p {
  margin: 0;
  color: #9fb1c2;
  font-size: 12px;
  line-height: 1.4;
}

.proposal-lifecycle-actions .proposal-workflow-actions,
.hgc-proposal-lifecycle .hgc-proposal-workflow {
  justify-content: flex-end;
}

.customer-builder-action-host {
  max-width: 650px;
  flex-wrap: wrap;
}

.customer-builder-action-host .proposal-workflow-actions {
  flex: 1 0 100%;
  width: 100%;
}

.proposal-accept-with-signature {
  border-color: #00d7ff !important;
  color: #b9f5ff !important;
  background: rgba(0, 215, 255, .08) !important;
  white-space: nowrap;
}

.proposal-accept-with-signature:hover,
.proposal-accept-with-signature:focus-visible {
  border-color: #34e1ff !important;
  color: #fff !important;
  background: rgba(0, 215, 255, .16) !important;
  outline: 2px solid rgba(0, 215, 255, .28);
  outline-offset: 2px;
}

.proposal-change-order-action {
  border-color: #b85cff !important;
  color: #ebccff !important;
  background: rgba(184, 92, 255, .08) !important;
  white-space: nowrap;
}

.proposal-change-order-action:hover,
.proposal-change-order-action:focus-visible {
  border-color: #cc85ff !important;
  color: #fff !important;
  background: rgba(184, 92, 255, .16) !important;
}

.proposal-change-order-workspace {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.proposal-change-order-workspace > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.proposal-change-order-workspace > header h3,
.proposal-change-order-workspace > header p {
  margin: 0;
}

.proposal-change-order-workspace > header p {
  margin-top: 5px;
  color: #aebdcb;
}

.proposal-change-order-workspace > header > div:last-child {
  display: flex;
  gap: 9px;
}

.proposal-change-order-list {
  display: grid;
  gap: 10px;
}

.proposal-change-order-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #33495e;
  border-radius: 10px;
  background: #0a1723;
}

.proposal-change-order-number {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #b85cff;
  border-radius: 18px;
  color: #e3baff;
  font-size: 12px;
  font-weight: 900;
}

.proposal-change-order-list article div strong,
.proposal-change-order-list article div small {
  display: block;
}

.proposal-change-order-list article div small {
  margin-top: 4px;
  color: #9fb0c0;
}

.proposal-change-order-list article > b {
  color: #f7f9fc;
  font-size: 17px;
}

.proposal-change-order-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 25px;
  border: 1px dashed #41576b;
  border-radius: 11px;
  color: #aebdcb;
  text-align: center;
  background: rgba(8, 21, 33, .62);
}

.proposal-change-order-empty svg {
  width: 28px;
  height: 28px;
  color: #c576ff;
}

.proposal-change-order-empty strong {
  color: #f5f7fa;
  font-size: 17px;
}

.proposal-change-order-empty p {
  max-width: 540px;
  margin: 0;
  line-height: 1.5;
}

.premium-app .invoice-reference-columns,
.premium-app .invoice-reference-row {
  grid-template-columns: minmax(250px, 1.45fr) 94px 86px 86px 96px 132px minmax(166px, auto) !important;
}

.invoice-reference-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.invoice-change-order-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #b85cff;
  border-radius: 8px;
  color: #e7c4ff;
  background: rgba(184, 92, 255, .08);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.invoice-change-order-action:hover,
.invoice-change-order-action:focus-visible {
  border-color: #d08dff;
  color: #fff;
  background: rgba(184, 92, 255, .17);
}

.invoice-change-order-action svg {
  width: 16px;
  height: 16px;
}

.hgc-shared-trade-command > nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hgc-proposal-workflow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hgc-proposal-workflow > button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.hgc-proposal-workflow .hgc-change-order {
  border: 1px solid #b85cff;
  color: #e7c4ff;
  background: rgba(184, 92, 255, .08);
}

.hgc-proposal-workflow .hgc-signature-accept {
  border: 1px solid #00d7ff;
  color: #b9f5ff;
  background: rgba(0, 215, 255, .08);
}

.hgc-proposal-workflow .hgc-no-signature-accept {
  border: 1px solid #ff8a1f;
  color: #ffd0a3;
  background: rgba(255, 138, 31, .08);
}

.hgc-proposal-accepted {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #86efac;
  font-weight: 850;
}

.proposal-staff-accepted {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #86efac;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.proposal-staff-accepted svg {
  width: 18px;
  height: 18px;
}

.proposal-staff-accept-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 7, 13, .78);
  backdrop-filter: blur(4px);
}

.proposal-staff-accept-dialog {
  width: min(640px, 100%);
  overflow: hidden;
  border: 1px solid #405268;
  border-radius: 14px;
  background: #0a1522;
  color: #f4f7fb;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.proposal-staff-accept-dialog > header {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  gap: 14px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid #2c3e51;
}

.proposal-staff-accept-dialog > header > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #ff8a1f;
  border-radius: 50%;
  color: #ff9a3d;
  background: rgba(255, 138, 31, .08);
}

.proposal-staff-accept-dialog > header > span svg {
  width: 25px;
  height: 25px;
}

.proposal-staff-accept-dialog > header small {
  display: block;
  margin-bottom: 5px;
  color: #ff9a3d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.proposal-staff-accept-dialog > header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 23px;
  line-height: 1.2;
}

.proposal-staff-accept-dialog > header p {
  margin: 7px 0 0;
  color: #b7c4d2;
  font-size: 14px;
  line-height: 1.5;
}

.proposal-staff-accept-dialog > header > button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #405268;
  border-radius: 50%;
  color: #dbe5ef;
  background: #111e2c;
}

.proposal-staff-accept-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 20px 22px 0;
  overflow: hidden;
  border: 1px solid #2d4053;
  border-radius: 10px;
  background: #2d4053;
}

.proposal-staff-accept-summary > div {
  min-width: 0;
  padding: 15px;
  background: #0d1a28;
}

.proposal-staff-accept-summary span,
.proposal-staff-accept-summary strong {
  display: block;
}

.proposal-staff-accept-summary span {
  margin-bottom: 5px;
  color: #95a7b9;
  font-size: 12px;
  font-weight: 750;
}

.proposal-staff-accept-summary strong {
  overflow: hidden;
  color: #f5f8fb;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-staff-accept-warning {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin: 16px 22px;
  padding: 15px;
  border-left: 3px solid #ff8a1f;
  background: rgba(255, 138, 31, .08);
}

.proposal-staff-accept-warning > svg {
  width: 22px;
  height: 22px;
  color: #ff9a3d;
}

.proposal-staff-accept-warning p,
.proposal-staff-accept-warning strong,
.proposal-staff-accept-warning span {
  display: block;
  margin: 0;
}

.proposal-staff-accept-warning strong {
  margin-bottom: 4px;
  color: #fff3e6;
  font-size: 15px;
}

.proposal-staff-accept-warning span {
  color: #c4d0dc;
  font-size: 14px;
  line-height: 1.5;
}

.proposal-staff-accept-zero {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 22px 16px;
  color: #fda4af;
  font-size: 14px;
  font-weight: 800;
}

.proposal-staff-accept-zero svg {
  width: 18px;
  height: 18px;
}

.proposal-staff-accept-dialog > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 22px;
  border-top: 1px solid #2c3e51;
  background: #09121d;
}

.proposal-staff-accept-dialog > footer button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.premium-app .proposal-staff-accept-dialog > footer button.primary[data-confirm-unsigned-proposal-acceptance] {
  border-color: #b85cff !important;
  color: #ebccff !important;
  background: rgba(184, 92, 255, .10) !important;
}

.premium-app .proposal-staff-accept-dialog > footer button.primary[data-confirm-unsigned-proposal-acceptance]:hover,
.premium-app .proposal-staff-accept-dialog > footer button.primary[data-confirm-unsigned-proposal-acceptance]:focus-visible {
  border-color: #cc85ff !important;
  color: #fff !important;
  background: rgba(184, 92, 255, .18) !important;
  outline: 2px solid rgba(184, 92, 255, .28);
  outline-offset: 2px;
}

.premium-app .proposal-staff-accept-dialog > footer button.primary[data-confirm-unsigned-proposal-acceptance]:disabled {
  cursor: not-allowed;
  opacity: .48;
}

@media (max-width: 680px) {
  .proposal-lifecycle-actions,
  .hgc-proposal-lifecycle {
    display: grid;
    margin: 14px 0 calc(116px + env(safe-area-inset-bottom));
    padding: 16px;
  }

  .proposal-lifecycle-actions.proposal-lifecycle-before-media,
  .hgc-proposal-lifecycle {
    margin-bottom: 14px;
  }

  .proposal-workflow-actions,
  .proposal-acceptance-actions {
    width: 100%;
    justify-content: stretch;
  }

  .proposal-workflow-actions > *,
  .proposal-acceptance-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }

  .proposal-lifecycle-actions .proposal-workflow-actions,
  .hgc-proposal-lifecycle .hgc-proposal-workflow {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hgc-proposal-lifecycle .hgc-proposal-workflow > * {
    width: 100%;
    justify-content: center;
  }

  .proposal-change-order-workspace > header {
    display: grid;
  }

  .proposal-change-order-list article {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .proposal-change-order-list article > b,
  .proposal-change-order-list article > button {
    grid-column: 2;
    justify-self: start;
  }

  .premium-app .invoice-reference-row {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
  }

  .invoice-reference-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .proposal-staff-accept-summary {
    grid-template-columns: 1fr;
  }

  .proposal-staff-accept-dialog > header {
    grid-template-columns: 44px 1fr 36px;
    padding: 18px;
  }

  .proposal-staff-accept-dialog > header > span {
    width: 44px;
    height: 44px;
  }
}
