/* Client account and reorder panel. Shared shell styles live in quote-status.css. */

.account-main { padding-top: 52px; }
.account-container { max-width: 760px; }
.account-hero { margin-bottom: 28px; }
.account-access-form { max-width: 640px; }
.account-help { max-width: 640px; }

.account-dashboard { width: 100%; }
.account-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px 24px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--qs-border);
  border-left: 4px solid var(--qs-lime);
  border-radius: var(--qs-radius);
  background: #faf9f7;
}
.account-profile-heading { min-width: 0; }
.account-profile-heading .qs-eyebrow { margin-bottom: 5px; }
.account-profile-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.account-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.account-profile-field { min-width: 0; }
.account-profile-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--qs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.account-profile-field strong {
  display: block;
  color: var(--qs-dark);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.account-privacy { grid-column: 1 / -1; width: 100%; color: var(--qs-muted); font-size: 12px; }

.account-card {
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: var(--qs-radius);
  padding: 28px;
  margin-bottom: 20px;
}
.account-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.account-card-heading .qs-eyebrow { margin-bottom: 5px; }
.account-card h2 { font-size: 23px; line-height: 1.2; }
.account-count { color: var(--qs-muted); font-size: 13px; white-space: nowrap; }
.account-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.account-status-approved { background: #eaf5c7; color: #526b08; }
.account-status-pending { background: #fff4d6; color: #8a5a00; }
.account-status-not_eligible { background: #f3e8e6; color: #7f3028; }
.account-card-intro { color: var(--qs-muted); font-size: 14px; line-height: 1.65; margin: -8px 0 24px; }
.account-label {
  display: block;
  color: var(--qs-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.account-label span[aria-hidden="true"] { color: var(--qs-error); }
.account-optional { color: var(--qs-muted); font-weight: 400; letter-spacing: 0; }
.account-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 2px solid var(--qs-border);
  border-radius: 6px;
  background: #faf9f7;
  color: var(--qs-dark);
  font: 15px 'Muli', system-ui, sans-serif;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.account-control:focus { border-color: var(--qs-lime); background: #fff; box-shadow: 0 0 0 3px rgba(169, 208, 30, .16); }
.account-control:invalid:not(:placeholder-shown) { border-color: #d93025; }
.account-textarea { min-height: 122px; resize: vertical; line-height: 1.5; }
.account-file { padding: 9px 11px; }
.account-hint { display: block; color: var(--qs-muted); font-size: 12px; line-height: 1.5; margin-top: 6px; }
.account-field { margin-bottom: 20px; }

.account-order-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  margin-top: 18px;
  border-radius: 6px;
  background: var(--qs-dark);
  color: #fff;
}
.account-order-summary div { min-width: 0; }
.account-order-summary span { display: block; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.account-order-summary strong { display: block; color: var(--qs-lime); font-size: 14px; overflow-wrap: anywhere; }
.account-form-status { min-height: 22px; color: #7f1d1d; font-size: 13px; line-height: 1.5; margin: 0 0 8px; }
.account-form-status:empty { margin-bottom: 0; }
.account-contact-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
  border: 1px solid var(--qs-border);
  border-radius: 6px;
  background: #faf9f7;
  color: var(--qs-muted);
  font-size: 13px;
  line-height: 1.45;
}
.account-contact-fallback strong { color: var(--qs-dark); }
.account-contact-fallback a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: var(--qs-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.account-contact-fallback a:hover { color: #6a850f; }
.account-submit:disabled { cursor: wait; opacity: .65; }
.account-footer-links { display: flex; justify-content: space-between; gap: 20px; padding: 4px 2px; font-size: 14px; }
.account-footer-links a { color: var(--qs-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--qs-lime); text-underline-offset: 3px; }
.account-footer-links a:hover { color: #6a850f; }

@media (max-width: 560px) {
  .account-contact-fallback { align-items: stretch; flex-direction: column; }
  .account-contact-fallback a { justify-content: center; border: 1px solid var(--qs-border); text-decoration: none; }
}

.team-order-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-order-date-hint { margin-top: -12px; margin-bottom: 20px; }
.team-order-review { padding: 18px; border: 1px solid var(--qs-border); border-radius: 6px; background: #faf9f7; }
.team-order-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-order-summary span, .team-order-roster > span { display: block; color: var(--qs-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.team-order-summary strong { display: block; color: var(--qs-dark); font-size: 14px; overflow-wrap: anywhere; }
.team-order-roster { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--qs-border); }
.team-order-roster p { margin: 0; color: var(--qs-dark); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.account-text-button { margin-top: 16px; padding: 0; border: 0; border-bottom: 1px solid var(--qs-lime); background: transparent; color: var(--qs-dark); cursor: pointer; font: 700 13px 'Muli', system-ui, sans-serif; }
.account-text-button:hover { color: #6a850f; }
.team-order-confirmation { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--qs-lime); background: #f3f8df; color: var(--qs-dark); font-size: 13px; line-height: 1.5; }
.team-order-confirmation strong { font-size: 14px; }

.asset-upload-area { padding: 18px; border: 1px dashed var(--qs-border); border-radius: 6px; background: #faf9f7; }
.asset-upload-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.asset-upload-button { width: auto; min-width: 190px; padding: 11px 16px; font-size: 13px; }
.asset-upload-button:disabled { cursor: wait; opacity: .6; }
.asset-status { color: var(--qs-muted); font-size: 13px; line-height: 1.4; }
.asset-state { margin-top: 18px; color: var(--qs-muted); font-size: 14px; line-height: 1.5; }
.asset-error { padding: 12px 14px; border-left: 3px solid var(--qs-error); background: #fff4f2; color: #7f1d1d; }
.asset-retry { margin-left: 12px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.asset-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; padding: 12px; border: 1px solid var(--qs-border); border-radius: 6px; background: #fff; }
.asset-preview { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 4px; background: var(--qs-dark); color: var(--qs-lime); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.asset-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asset-details { min-width: 0; }
.asset-name { display: block; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.asset-meta { display: block; margin-top: 5px; color: var(--qs-muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.asset-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 13px; border-top: 1px solid var(--qs-border); padding-top: 9px; }
.asset-open, .asset-remove { color: var(--qs-dark); font: 700 12px 'Muli', system-ui, sans-serif; text-decoration: underline; text-decoration-color: var(--qs-lime); text-underline-offset: 3px; }
.asset-remove { border: 0; background: transparent; cursor: pointer; padding: 0; }
.asset-remove:hover, .asset-open:hover { color: #6a850f; }
.asset-remove:disabled { cursor: wait; opacity: .5; }

.order-state { margin-top: 18px; color: var(--qs-muted); font-size: 14px; line-height: 1.5; }
.orders-error { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-left: 3px solid var(--qs-error); background: #fff4f2; color: #7f1d1d; }
.order-retry { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 700; padding: 0; white-space: nowrap; }
.orders-table-wrap { margin-top: 18px; overflow: hidden; border: 1px solid var(--qs-border); border-radius: 6px; }
.orders-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.orders-table th, .orders-table td { padding: 13px 14px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.orders-table th { background: #faf9f7; color: var(--qs-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.orders-table td { border-top: 1px solid var(--qs-border); color: var(--qs-dark); font-size: 13px; }
.orders-table th:nth-child(1), .orders-table td:nth-child(1) { width: 27%; }
.orders-table th:nth-child(2), .orders-table td:nth-child(2) { width: 23%; }
.orders-table th:nth-child(3), .orders-table td:nth-child(3) { width: 27%; }
.orders-table th:nth-child(4), .orders-table td:nth-child(4) { width: 23%; }
.orders-table td:nth-child(2) { color: #526b08; font-weight: 700; }
.orders-table td:nth-child(4) { color: var(--qs-dark); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
  .account-main { padding-top: 36px; }
  .account-card { padding: 22px 20px; }
  .account-profile-header { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .account-profile-fields { grid-template-columns: 1fr; gap: 12px; }
  .account-order-summary { grid-template-columns: repeat(2, 1fr); }
  .team-order-summary { grid-template-columns: 1fr; gap: 12px; }
  .asset-list { grid-template-columns: 1fr; }
  .orders-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; }
  .orders-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .orders-table tr { padding: 12px 14px; border: 1px solid var(--qs-border); border-radius: 6px; }
  .orders-table tr + tr { margin-top: 10px; }
  .orders-table td, .orders-table th { width: auto !important; padding: 6px 0; border: 0; }
  .orders-table td { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .orders-table td::before { content: attr(data-label); color: var(--qs-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
}
@media (max-width: 600px) {
  .account-body .qs-nav { gap: 10px; }
  .account-body .qs-nav-link:not(.qs-nav-cta) { display: none; }
  .account-footer-links { flex-direction: column; gap: 12px; }
  .team-order-dates { grid-template-columns: 1fr; gap: 0; }
  .team-order-date-hint { margin-top: -4px; }
  .asset-upload-area { padding: 14px; }
  .asset-upload-button { width: 100%; }
  .asset-status { width: 100%; }
  .orders-error { align-items: flex-start; flex-direction: column; gap: 8px; }
}
