/* Proposals Page */
.proposals-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.proposals-header { margin-bottom: 2.5rem; }
.proposals-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8956b;
  margin-bottom: 0.5rem;
}
.proposals-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}
.proposals-sub {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}
.proposals-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.proposals-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-end;
}

.proposals-list { display: flex; flex-direction: column; gap: 1rem; }

.proposal-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.proposal-card:hover {
  border-color: #c8c0b0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.proposal-card-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.proposal-number {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.proposal-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.proposal-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Proposal Status Badges */
.proposal-draft { background: #f0ede6; color: #8a7854; }
.proposal-sent { background: #dbeafe; color: #1e40af; }
.proposal-accepted { background: #d1fae5; color: #065f46; }
.proposal-rejected { background: #f3f4f6; color: #6b7280; }
.proposal-expired { background: #fef3c7; color: #92400e; }
.proposal-archived { background: #f3f4f6; color: #6b7280; }

.proposals-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}
.empty-icon { margin-bottom: 1rem; color: #ccc; }
.proposals-empty a { color: #a8956b; text-decoration: none; }
.proposals-empty a:hover { text-decoration: underline; }

.proposals-pagination { margin-top: 2rem; text-align: center; }

/* Proposal Document */
.proposal-document {
  max-width: 800px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  padding: 3.5rem 4rem;
}

.doc-header-proposal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #1a1a1a;
}
.doc-brand-large {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-logo-large {
  width: 56px;
  height: 56px;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 6px;
}
.brand-info .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}
.brand-info .brand-tagline {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

/* Pricing Table in Document */
.pricing-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.pricing-summary-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e8e4dc;
}
.pricing-summary-table td.label {
  color: #888;
  font-weight: 500;
  font-size: 0.85rem;
}
.pricing-summary-table td.num {
  text-align: right;
  font-weight: 500;
}
.pricing-summary-table tr.total-row {
  background: #f9f8f5;
  border-radius: 4px;
}
.pricing-summary-table tr.total-row td {
  padding: 1rem 0.5rem;
  border-bottom: none;
  font-size: 1.1rem;
}
.pricing-summary-table tr.total-row td.num {
  font-weight: 700;
  color: #1a1a1a;
}

/* Proposal Version Badge */
.version-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #f0ede6;
  color: #8a7854;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Proposal Action Buttons on View Page */
.proposal-status-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-status-action {
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  border: none;
}
.btn-send-proposal {
  background: #1e40af;
  color: #fff;
}
.btn-send-proposal:hover { background: #1e3a8a; }
.btn-accept-proposal {
  background: #065f46;
  color: #fff;
}
.btn-accept-proposal:hover { background: #064e3b; }
.btn-reject-proposal {
  background: #6b7280;
  color: #fff;
}
.btn-reject-proposal:hover { background: #4b5563; }

/* Share Link Button */
.btn-share-link {
  padding: 0.6rem 1.25rem;
  background: #a8956b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-share-link:hover { background: #8a7854; }
.btn-share-link.copied {
  background: #065f46;
}

@media (max-width: 640px) {
  .proposals-page, .contract-form-page { padding: 2rem 1rem; }
  .proposal-document { padding: 2rem 1.5rem; }
  .proposals-filters { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .proposal-card { grid-template-columns: 1fr; }
  @media print {
    .document-toolbar { display: none; }
    .proposal-document { box-shadow: none; margin: 0; }
  }
}