/* ============================================
   PRIMOS Proposal Builder Styles
   Progress steps, customer forms, aircraft selection,
   mattress/bedding configuration, order summary
   ============================================ */

/* ----------------------------------------
   Desktop: Hide Mobile-Only Elements
   These elements are shown via @media (max-width: 768px)
   ---------------------------------------- */
@media (min-width: 769px) {
  .mobile-progress-header,
  .step-drawer-overlay,
  .step-drawer,
  .mobile-summary-trigger,
  .mobile-progress-dots {
    display: none !important;
    visibility: hidden !important;
  }
}

    /* Progress Steps */
    .proposal-progress {
      display: flex;
      padding: 20px 30px;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      gap: 0;
    }

    .proposal-step {
      flex: 1;
      text-align: center;
      position: relative;
      cursor: pointer;
      padding: 10px 5px;
      transition: all 0.2s;
    }

    .proposal-step::after {
      content: '';
      position: absolute;
      top: 26px; /* Center on the circle (10px padding + 16px half of 32px circle) */
      left: calc(50% + 20px);
      right: calc(-50% + 20px);
      width: auto;
      height: 3px;
      background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.15));
      z-index: 0;
      border-radius: 2px;
    }

    .proposal-step:last-child::after {
      display: none;
    }

    .proposal-step.completed::after {
      background: linear-gradient(90deg, #28a745, rgba(40,167,69,0.5));
    }

    .proposal-step-number {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      color: rgba(255,255,255,0.6);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 14px;
      position: relative;
      z-index: 1;
      transition: all 0.2s;
    }

    .proposal-step.active .proposal-step-number {
      background: #8B1538;
      color: white;
    }

    .proposal-step.completed .proposal-step-number {
      background: #28a745;
      color: white;
    }

    .proposal-step-label {
      display: block;
      color: rgba(255,255,255,0.5);
      font-size: 11px;
      margin-top: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .proposal-step.active .proposal-step-label,
    .proposal-step.completed .proposal-step-label {
      color: white;
    }

    /* Step Content */
    .proposal-step-content {
      display: none;
      padding: 30px;
      padding-bottom: 30px;
    }

    .proposal-step-content.active {
      display: block;
    }

    .proposal-step-content h2 {
      font-size: 22px;
      color: #1a1a2e;
      margin-bottom: 8px;
    }

    .proposal-step-content .step-desc {
      color: #666;
      font-size: 14px;
      margin-bottom: 25px;
    }

    /* Customer Information Form Styles */
    .proposal-form-section {
      background: #f8f9fa;
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 20px;
    }

    .proposal-section-title {
      font-size: 14px;
      font-weight: 600;
      color: #8B1538;
      text-transform: uppercase;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .optional-label {
      font-size: 11px;
      font-weight: 400;
      color: #888;
      text-transform: none;
    }

    .proposal-form-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    .proposal-form-group {
      display: flex;
      flex-direction: column;
    }

    .proposal-form-group.full-width {
      grid-column: 1 / -1;
    }

    .proposal-form-group label {
      font-size: 13px;
      font-weight: 500;
      color: #333;
      margin-bottom: 5px;
    }

    .proposal-form-group input,
    .proposal-form-group select,
    .proposal-form-group textarea {
      padding: 10px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 14px;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .proposal-form-group input:focus,
    .proposal-form-group select:focus,
    .proposal-form-group textarea:focus {
      outline: none;
      border-color: #8B1538;
      box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    }

    .proposal-form-group input::placeholder,
    .proposal-form-group textarea::placeholder {
      color: #aaa;
    }

    .checkbox-inline {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-size: 14px;
    }

    .checkbox-inline input[type="checkbox"] {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }

    .btn-add-contact {
      background: none;
      border: 2px dashed #ddd;
      color: #666;
      padding: 12px 20px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      width: 100%;
      transition: all 0.2s;
      margin-top: 10px;
    }

    .btn-add-contact:hover {
      border-color: #8B1538;
      color: #8B1538;
      background: rgba(139, 21, 56, 0.05);
    }

    .additional-contact-row {
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      padding: 15px;
      margin-bottom: 10px;
      position: relative;
    }

    .additional-contact-row .remove-contact {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      font-size: 18px;
      padding: 5px;
      line-height: 1;
    }

    .additional-contact-row .remove-contact:hover {
      color: #dc3545;
    }

    .proposal-nav-buttons {
      display: flex;
      justify-content: space-between;
      padding: 16px 30px;
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(10px);
      border-top: 1px solid #e0e0e0;
      box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
      position: sticky;
      bottom: 0;
      margin: 0 -30px -30px -30px; /* Extend to edges of step content */
    }

    .btn-proposal-next,
    .btn-proposal-nav {
      padding: 12px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-proposal-next,
    .btn-proposal-nav.next {
      background: #8B1538;
      color: white;
      border: none;
    }

    .btn-proposal-next:hover,
    .btn-proposal-nav.next:hover {
      background: #6d1029;
    }

    .btn-proposal-nav.prev {
      background: white;
      color: #666;
      border: 1px solid #ddd;
    }

    .btn-proposal-nav.prev:hover {
      background: #f5f5f5;
      color: #333;
    }

    .btn-proposal-nav:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* Aircraft Selection Grid */
    .proposal-manufacturer-section {
      margin-bottom: 25px;
    }

    .proposal-manufacturer-section h4 {
      font-size: 13px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid #eee;
    }

    .proposal-aircraft-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 10px;
    }

    .proposal-aircraft-card {
      padding: 12px 10px;
      background: #f8f9fa;
      border: 2px solid transparent;
      border-radius: 8px;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      color: #333;
      cursor: pointer;
      transition: all 0.2s;
    }

    .proposal-aircraft-card:hover {
      background: #e9ecef;
      border-color: #dee2e6;
    }

    .proposal-aircraft-card.selected {
      background: #8B1538;
      color: white;
      border-color: #8B1538;
    }

    /* Manufacturer Navigation Tabs */
    .manufacturer-tabs {
      display: flex;
      gap: 0;
      background: #f5f5f5;
      border-radius: 8px;
      padding: 4px;
      margin-bottom: 20px;
      overflow-x: auto;
    }

    .manufacturer-tab {
      flex: 1;
      min-width: 100px;
      padding: 12px 16px;
      background: transparent;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      color: #666;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .manufacturer-tab:hover {
      background: #e9ecef;
      color: #333;
    }

    .manufacturer-tab.active {
      background: #8B1538;
      color: white;
    }

    /* Manufacturer Models Container */
    .manufacturer-models-container {
      margin-bottom: 20px;
    }

    .manufacturer-models {
      display: none;
    }

    .manufacturer-models.active {
      display: block;
    }

    .manufacturer-models h4 {
      font-size: 14px;
      color: #666;
      margin-bottom: 15px;
      font-weight: 500;
    }

    /* Aircraft Details Section */
    .aircraft-details-section {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 25px;
      margin-top: 25px;
      border: 1px solid #e9ecef;
    }

    .aircraft-details-section h3 {
      font-size: 18px;
      color: #1a1a2e;
      margin-bottom: 5px;
    }

    .aircraft-details-section .section-subtitle {
      font-size: 13px;
      color: #666;
      margin-bottom: 20px;
    }

    .selected-aircraft-display {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 15px 20px;
      background: white;
      border-radius: 8px;
      margin-bottom: 20px;
      border: 2px solid #8B1538;
    }

    .selected-aircraft-display .selected-label {
      font-size: 13px;
      color: #666;
    }

    .selected-aircraft-display .selected-value {
      font-size: 16px;
      font-weight: 600;
      color: #8B1538;
      flex: 1;
    }

    .btn-change-aircraft {
      padding: 6px 12px;
      background: #f5f5f5;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 12px;
      color: #666;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-change-aircraft:hover {
      background: #e9ecef;
      color: #333;
    }

    .aircraft-details-form .form-section {
      background: white;
      border-radius: 8px;
      padding: 20px;
      margin-bottom: 15px;
    }

    .aircraft-details-form .form-section h4 {
      font-size: 14px;
      color: #333;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
    }

    .aircraft-details-form .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-bottom: 15px;
    }

    .aircraft-details-form .form-row:last-child {
      margin-bottom: 0;
    }

    .aircraft-details-form .form-group {
      display: flex;
      flex-direction: column;
    }

    .aircraft-details-form .form-group.full-width {
      grid-column: 1 / -1;
    }

    .aircraft-details-form label {
      font-size: 12px;
      font-weight: 500;
      color: #555;
      margin-bottom: 6px;
    }

    .aircraft-details-form input,
    .aircraft-details-form select,
    .aircraft-details-form textarea {
      padding: 10px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 14px;
      transition: border-color 0.2s;
    }

    .aircraft-details-form input:focus,
    .aircraft-details-form select:focus,
    .aircraft-details-form textarea:focus {
      outline: none;
      border-color: #8B1538;
    }

    .aircraft-details-form textarea {
      resize: vertical;
      min-height: 80px;
    }

    /* Mattress Cards */
    .proposal-mattress-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .proposal-mattress-card {
      background: #f8f9fa;
      border: 2px solid transparent;
      border-radius: 12px;
      overflow: hidden;
      transition: all 0.2s;
    }

    .proposal-mattress-card.selected {
      border-color: #8B1538;
      background: white;
    }

    .proposal-mattress-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      cursor: pointer;
    }

    .proposal-mattress-header:hover {
      background: rgba(139, 21, 56, 0.05);
    }

    .proposal-mattress-info h4 {
      font-size: 15px;
      color: #1a1a2e;
      margin-bottom: 4px;
    }

    .proposal-mattress-info .sku {
      font-size: 12px;
      color: #888;
      font-family: monospace;
    }

    .proposal-mattress-price {
      font-size: 18px;
      font-weight: 600;
      color: #1a1a2e;
    }

    .proposal-mattress-checkbox {
      width: 22px;
      height: 22px;
      border: 2px solid #ccc;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      transition: all 0.2s;
    }

    .proposal-mattress-card.selected .proposal-mattress-checkbox {
      background: #8B1538;
      border-color: #8B1538;
      color: white;
    }

    /* Mattress Config Panel */
    .proposal-mattress-config {
      display: none;
      padding: 20px;
      background: white;
      border-top: 1px solid #eee;
    }

    .proposal-mattress-card.selected .proposal-mattress-config {
      display: block;
    }

    .proposal-config-section {
      margin-bottom: 20px;
    }

    .proposal-config-section:last-child {
      margin-bottom: 0;
    }

    .proposal-config-section h5 {
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
    }

    .proposal-config-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
    }

    .proposal-config-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .proposal-config-field label {
      font-size: 11px;
      color: #888;
      text-transform: uppercase;
    }

    .proposal-config-field select,
    .proposal-config-field input {
      padding: 8px 10px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 13px;
      background: #f8f9fa;
    }

    .proposal-config-field select:focus,
    .proposal-config-field input:focus {
      outline: none;
      border-color: #8B1538;
      background: white;
    }

    /* Style Selection Cards */
    .proposal-style-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
    }

    .proposal-style-card {
      padding: 10px 8px;
      background: #f0f0f0;
      border: 2px solid transparent;
      border-radius: 6px;
      text-align: center;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .proposal-style-card:hover {
      background: #e0e0e0;
    }

    .proposal-style-card.selected {
      background: #8B1538;
      color: white;
      border-color: #8B1538;
    }

    /* Bedding Section in Mattress Config */
    .proposal-bedding-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px dashed #ddd;
    }

    .proposal-bedding-section h5 {
      font-size: 13px;
      color: #1a1a2e;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .proposal-bedding-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 15px;
    }

    .proposal-bedding-tab {
      padding: 8px 14px;
      background: #f0f0f0;
      border: none;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .proposal-bedding-tab:hover {
      background: #e0e0e0;
    }

    .proposal-bedding-tab.active {
      background: #1a1a2e;
      color: white;
    }

    .proposal-bedding-content {
      display: none;
    }

    .proposal-bedding-content.active {
      display: block;
    }

    /* Color Swatches */
    .proposal-color-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
      gap: 8px;
    }

    .proposal-color-swatch {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 8px;
      cursor: pointer;
      border: 3px solid transparent;
      transition: all 0.2s;
      position: relative;
    }

    .proposal-color-swatch:hover {
      transform: scale(1.05);
    }

    .proposal-color-swatch.selected {
      border-color: #1a1a2e;
    }

    .proposal-color-swatch::after {
      content: attr(data-name);
      position: absolute;
      bottom: -18px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 9px;
      color: #666;
      white-space: nowrap;
    }

    /* Order Summary Sidebar */
    .proposal-summary-header {
      padding: 20px;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      color: white;
    }

    .proposal-summary-header h3 {
      font-size: 16px;
      margin-bottom: 5px;
    }

    .proposal-summary-header .aircraft-summary {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .proposal-summary-header .aircraft-badge {
      display: inline-block;
      padding: 4px 10px;
      background: rgba(255,255,255,0.15);
      border-radius: 12px;
      font-size: 12px;
    }

    .aircraft-identifiers {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .aircraft-id {
      font-size: 11px;
      color: rgba(255,255,255,0.8);
      font-family: monospace;
    }

    .aircraft-id:empty {
      display: none;
    }

    .proposal-summary-items {
      padding: 15px 20px;
      max-height: 400px;
      overflow-y: auto;
    }

    .proposal-summary-item {
      padding: 12px 0;
      border-bottom: 1px solid #eee;
    }

    .proposal-summary-item:last-child {
      border-bottom: none;
    }

    .proposal-summary-item-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 6px;
    }

    .proposal-summary-item h5 {
      font-size: 13px;
      color: #1a1a2e;
      margin: 0;
    }

    .proposal-summary-item .price {
      font-weight: 600;
      color: #333;
    }

    .proposal-summary-item .details {
      font-size: 11px;
      color: #888;
      line-height: 1.4;
    }

    .proposal-summary-total {
      padding: 15px 20px;
      background: #f8f9fa;
      border-top: 2px solid #eee;
    }

    .proposal-summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 13px;
    }

    .proposal-summary-row.total {
      font-size: 18px;
      font-weight: 700;
      color: #1a1a2e;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #ddd;
    }

    /* Export Buttons */
    .proposal-export-buttons {
      padding: 15px 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .btn-proposal-export {
      padding: 12px 15px;
      border: none;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s;
    }

    .btn-proposal-export.primary {
      background: #198754;
      color: white;
    }

    .btn-proposal-export.primary:hover {
      background: #146c43;
    }

    .btn-proposal-export.secondary {
      background: #1a1a2e;
      color: white;
    }

    .btn-proposal-export.secondary:hover {
      background: #0d0d17;
    }

    .btn-proposal-export.outline {
      background: white;
      border: 1px solid #ddd;
      color: #333;
    }

    .btn-proposal-export.outline:hover {
      background: #f8f9fa;
      border-color: #aaa;
    }

    /* Navigation Buttons - styles defined earlier, keeping only additional styles here */

    /* Empty State */
    .proposal-empty-state {
      text-align: center;
      padding: 40px 20px;
      color: #888;
    }

    .proposal-empty-state h4 {
      font-size: 16px;
      color: #666;
      margin-bottom: 8px;
    }

    /* Quantity Selector */
    .proposal-qty-selector {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .proposal-qty-btn {
      width: 28px;
      height: 28px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: #f8f9fa;
      cursor: pointer;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .proposal-qty-btn:hover {
      background: #e9ecef;
    }

    .proposal-qty-value {
      font-weight: 600;
      min-width: 24px;
      text-align: center;
    }

    /* Thread Count Badge Filter */
    .proposal-thread-filter {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 15px;
    }

    .proposal-thread-badge {
      padding: 6px 12px;
      background: #f0f0f0;
      border: 2px solid transparent;
      border-radius: 20px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .proposal-thread-badge:hover {
      background: #e0e0e0;
    }

    .proposal-thread-badge.active {
      background: #1a1a2e;
      color: white;
      border-color: #1a1a2e;
    }

    /* Grade Selection Buttons */
    .proposal-grade-buttons {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .proposal-grade-btn {
      padding: 12px 20px;
      background: #f8f9fa;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 120px;
    }

    .proposal-grade-btn:hover {
      background: #e9ecef;
      border-color: #dee2e6;
    }

    .proposal-grade-btn.active {
      background: #8B1538;
      color: white;
      border-color: #8B1538;
    }

    .proposal-grade-btn .grade-name {
      font-weight: 600;
      margin-bottom: 2px;
    }

    .proposal-grade-btn .grade-desc {
      font-size: 10px;
      opacity: 0.8;
    }

    /* Bedding Item Card Styles */
    .bedding-item-card {
      transition: all 0.2s ease;
      user-select: none;
    }

    .bedding-item-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .bedding-item-card.selected {
      box-shadow: 0 2px 8px rgba(139, 21, 56, 0.15);
    }

    .bedding-item-card button:hover {
      background: #f0f0f0 !important;
      border-radius: 4px;
    }

    /* Bedding Step Styles */
    .proposal-bedding-step {
      padding: 20px 0;
    }

    .proposal-bedding-step h3 {
      font-size: 18px;
      color: #1a1a2e;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
    }

    .proposal-bedding-category {
      margin-bottom: 25px;
    }

    .proposal-bedding-category h4 {
      font-size: 14px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
    }

    .proposal-bedding-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 15px;
      background: #f8f9fa;
      border-radius: 8px;
      margin-bottom: 8px;
    }

    .proposal-bedding-item.selected {
      background: rgba(139, 21, 56, 0.08);
      border: 1px solid #8B1538;
    }

    .proposal-bedding-item-info {
      flex: 1;
    }

    .proposal-bedding-item-info .name {
      font-weight: 500;
      color: #1a1a2e;
      margin-bottom: 2px;
    }

    .proposal-bedding-item-info .sku {
      font-size: 11px;
      color: #888;
      font-family: monospace;
    }

    .proposal-bedding-item-price {
      font-weight: 600;
      color: #333;
      margin-right: 15px;
    }

    /* Pillow Section Styles */
    .proposal-pillow-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 15px;
    }

    .proposal-pillow-card {
      background: #f8f9fa;
      border-radius: 10px;
      padding: 15px;
      border: 2px solid transparent;
      transition: all 0.2s;
    }

    .proposal-pillow-card.has-selection {
      border-color: #8B1538;
      background: white;
    }

    .proposal-pillow-card h5 {
      font-size: 14px;
      color: #1a1a2e;
      margin-bottom: 10px;
    }

    .proposal-pillow-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #eee;
    }

    .proposal-pillow-row:last-child {
      border-bottom: none;
    }

    .proposal-pillow-row .fill-name {
      font-size: 13px;
      color: #333;
    }

    .proposal-pillow-row .price {
      font-size: 12px;
      color: #666;
      margin-right: 12px;
    }

    /* Blanket Section Styles */
    .proposal-blanket-section {
      margin-bottom: 30px;
    }

    .proposal-blanket-section h4 {
      font-size: 15px;
      color: #1a1a2e;
      margin-bottom: 15px;
      padding-bottom: 8px;
      border-bottom: 1px solid #eee;
    }

    .proposal-blanket-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 12px;
    }

    .proposal-blanket-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s;
    }

    .proposal-blanket-card:hover {
      background: #e9ecef;
    }

    .proposal-blanket-card.selected {
      background: rgba(139, 21, 56, 0.08);
      border-color: #8B1538;
    }

    .proposal-blanket-info .name {
      font-weight: 500;
      color: #1a1a2e;
      margin-bottom: 3px;
    }

    .proposal-blanket-info .sku {
      font-size: 11px;
      color: #888;
      font-family: monospace;
    }

    .proposal-blanket-info .material {
      font-size: 11px;
      color: #666;
      margin-top: 2px;
    }

    .proposal-blanket-price {
      font-weight: 600;
      color: #333;
    }

    /* Finishing Section Styles */
    .proposal-finishing-section {
      margin-bottom: 25px;
      padding: 20px;
      background: #f8f9fa;
      border-radius: 10px;
    }

    .proposal-finishing-section h4 {
      font-size: 14px;
      color: #1a1a2e;
      margin-bottom: 15px;
    }

    .proposal-finishing-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
      margin-bottom: 15px;
    }

    .proposal-finishing-field {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .proposal-finishing-field label {
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
    }

    .proposal-finishing-field select,
    .proposal-finishing-field input,
    .proposal-finishing-field textarea {
      padding: 10px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 14px;
      background: white;
    }

    .proposal-finishing-field textarea {
      min-height: 80px;
      resize: vertical;
    }

    .proposal-id-checkboxes {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 8px;
    }

    .proposal-id-checkbox {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: #e9ecef;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
    }

    .proposal-id-checkbox:hover {
      background: #dee2e6;
    }

    .proposal-id-checkbox.checked {
      background: #1a1a2e;
      color: white;
    }

    .proposal-id-checkbox input {
      display: none;
    }

    /* Review Page Styles */
    .proposal-review-section {
      margin-bottom: 30px;
    }

    .proposal-review-section h4 {
      font-size: 16px;
      color: #1a1a2e;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 2px solid #8B1538;
    }

    .proposal-review-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    .proposal-review-table th {
      text-align: left;
      padding: 10px 12px;
      background: #f8f9fa;
      color: #666;
      font-weight: 600;
      text-transform: uppercase;
      font-size: 11px;
      letter-spacing: 0.5px;
    }

    .proposal-review-table td {
      padding: 12px;
      border-bottom: 1px solid #eee;
    }

    .proposal-review-table tr:last-child td {
      border-bottom: none;
    }

    .proposal-review-table .sku-cell {
      font-family: monospace;
      color: #666;
      font-size: 11px;
    }

    .proposal-review-table .qty-cell {
      text-align: center;
    }

    .proposal-review-table .price-cell {
      text-align: right;
      font-weight: 500;
    }

    .proposal-review-table .subtotal-cell {
      text-align: right;
      font-weight: 600;
      color: #1a1a2e;
    }

    .proposal-review-totals {
      background: #f8f9fa;
      border-radius: 10px;
      padding: 20px;
      margin-top: 20px;
    }

    .proposal-review-totals-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      font-size: 14px;
    }

    .proposal-review-totals-row.grand-total {
      font-size: 20px;
      font-weight: 700;
      color: #1a1a2e;
      padding-top: 15px;
      margin-top: 10px;
      border-top: 2px solid #ddd;
    }

    /* Summary Section Headers */
    .proposal-summary-section {
      padding: 10px 20px;
      border-bottom: 1px solid #eee;
    }

    .proposal-summary-section h4 {
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }

    .proposal-summary-line {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      padding: 4px 0;
    }

    .proposal-summary-line .sku {
      color: #888;
      font-family: monospace;
      font-size: 10px;
    }

    /* Loading State */
    .proposal-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      color: #666;
    }

    .proposal-loading-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid #f0f0f0;
      border-top-color: #8B1538;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 15px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Per-Mattress Bedding Config */
    .proposal-mattress-bedding {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px dashed #ddd;
    }

    .proposal-mattress-bedding h5 {
      font-size: 13px;
      color: #1a1a2e;
      margin-bottom: 12px;
    }

    .proposal-bedding-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .proposal-bedding-option {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 12px;
      background: white;
      border: 1px solid #e9ecef;
      border-radius: 6px;
    }

    .proposal-bedding-option.selected {
      border-color: #8B1538;
      background: rgba(139, 21, 56, 0.05);
    }

    .proposal-bedding-option-info {
      display: flex;
      flex-direction: column;
    }

    .proposal-bedding-option-info .name {
      font-size: 13px;
      font-weight: 500;
    }

    .proposal-bedding-option-info .sku {
      font-size: 10px;
      color: #888;
      font-family: monospace;
    }

    .proposal-bedding-option-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .proposal-bedding-option-price {
      font-size: 13px;
      color: #666;
    }

    /* Customer Type Toggle */
    .proposal-customer-toggle {
      padding: 15px;
      background: #f8f9fa;
      border-radius: 10px;
      margin-bottom: 20px;
    }

    .proposal-customer-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 12px 24px;
      background: white;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      min-width: 140px;
    }

    .proposal-customer-btn:hover {
      border-color: #dee2e6;
      background: #f8f9fa;
    }

    .proposal-customer-btn.active {
      background: #8B1538;
      border-color: #8B1538;
      color: white;
    }

    /* Mattress Category Headings */
    .proposal-mattress-category {
      margin-bottom: 25px;
    }

    .proposal-category-heading {
      font-size: 16px;
      font-weight: 600;
      color: #1a1a2e;
      padding: 10px 0;
      margin-bottom: 12px;
      border-bottom: 2px solid #8B1538;
    }

    .proposal-mattress-list-inner {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* Login Screen */
    .login-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10000;
    }

    .login-overlay.hidden {
      display: none;
    }

    .login-card {
      background: white;
      border-radius: 20px;
      padding: 50px 60px;
      text-align: center;
      box-shadow: 0 25px 80px rgba(0,0,0,0.4);
      max-width: 420px;
      width: 90%;
    }

    .login-logo {
      height: 80px;
      margin-bottom: 20px;
    }

    .login-title {
      font-size: 28px;
      color: #1a1a2e;
      margin-bottom: 8px;
      font-weight: 700;
    }

    .login-subtitle {
      color: #666;
      font-size: 14px;
      margin-bottom: 30px;
    }

    .login-divider {
      border-top: 1px solid #eee;
      margin: 30px 0;
      position: relative;
    }

    .login-divider span {
      background: white;
      padding: 0 15px;
      color: #888;
      font-size: 12px;
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
    }

    .google-signin-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      padding: 14px 24px;
      border: 2px solid #ddd;
      border-radius: 10px;
      background: white;
      font-size: 16px;
      font-weight: 500;
      color: #333;
      cursor: pointer;
      transition: all 0.2s;
    }

    .google-signin-btn:hover {
      border-color: #4285f4;
      background: #f8faff;
    }

    .google-signin-btn img {
      width: 24px;
      height: 24px;
    }

    .login-footer {
      margin-top: 30px;
      font-size: 12px;
      color: #888;
    }

    .login-error {
      background: #fee;
      color: #c00;
      padding: 12px 16px;
      border-radius: 8px;
      margin-bottom: 20px;
      font-size: 14px;
      display: none;
    }

    .login-error.show {
      display: block;
    }

    /* User profile dropdown */

/* ============================================
   Proposals List Modal Styles
   ============================================ */

/* Customer Type Tabs */
.proposals-type-tab {
  padding: 12px 24px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-right: 4px;
  transition: all 0.2s;
}

.proposals-type-tab:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
}

.proposals-type-tab.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Table Row Styles */
.proposal-row {
  transition: background-color 0.15s;
}

.proposal-row:hover {
  background-color: #f8f9fa !important;
}

.proposal-row td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

/* Status Badges */
.proposals-table .status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.proposals-table .status-badge.draft {
  background: #fff3cd;
  color: #856404;
}

.proposals-table .status-badge.sent {
  background: #cce5ff;
  color: #004085;
}

.proposals-table .status-badge.accepted {
  background: #d4edda;
  color: #155724;
}

.proposals-table .status-badge.declined {
  background: #f8d7da;
  color: #721c24;
}

/* Action Buttons */
.proposal-action-btn {
  padding: 6px 10px;
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}

.proposal-action-btn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.proposal-action-btn.delete {
  background: #fff0f0;
  color: #dc3545;
}

.proposal-action-btn.delete:hover {
  background: #ffe0e0;
}

/* Pagination Buttons */
.proposals-pagination-btn:not(:disabled):hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.proposals-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Spinner */
.proposals-table-container .loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-top-color: #8B1538;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   Primary breakpoint: 768px (tablet/mobile)
   Secondary breakpoint: 480px (small mobile)
   ============================================ */

/* ----------------------------------------
   Mobile Progress Header (replaces horizontal steps)
   ---------------------------------------- */
.mobile-progress-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: 12px var(--mobile-padding);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mobile-back-btn {
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-back-btn:hover {
  background: rgba(255,255,255,0.2);
}

.mobile-progress-header .step-info {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding: 8px;
}

.mobile-progress-header .step-label {
  font-size: var(--mobile-font-label);
  font-weight: 600;
  display: block;
}

.mobile-progress-header .step-subtitle {
  font-size: var(--mobile-font-small);
  opacity: 0.7;
}

.mobile-progress-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mobile-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.2s;
  cursor: pointer;
}

.mobile-progress-dot.active {
  background: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}

.mobile-progress-dot.completed {
  background: var(--color-success);
}

/* ----------------------------------------
   Step Drawer (Bottom Sheet)
   ---------------------------------------- */
.step-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  transition: opacity 0.3s;
}

.step-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.step-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 16px 0 0;
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: var(--mobile-padding);
  z-index: var(--z-modal);
}

.step-drawer-overlay.active .step-drawer {
  transform: translateY(0);
}

.step-drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--color-gray-300);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.step-drawer h3 {
  margin-bottom: 16px;
  font-size: var(--mobile-font-h3);
  color: var(--color-header-bg);
}

.step-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--color-gray-50);
  transition: background 0.2s;
  cursor: pointer;
}

.step-drawer-item:active {
  transform: scale(0.98);
}

.step-drawer-item.active {
  background: rgba(139, 21, 56, 0.1);
  border: 2px solid var(--color-primary);
}

.step-drawer-item.completed {
  background: rgba(40, 167, 69, 0.1);
}

.step-drawer-item.locked {
  opacity: 0.5;
  pointer-events: none;
}

.step-drawer-item .step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--mobile-font-label);
  background: var(--color-gray-200);
  color: var(--color-gray-600);
  flex-shrink: 0;
}

.step-drawer-item.completed .step-icon {
  background: var(--color-success);
  color: white;
}

.step-drawer-item.active .step-icon {
  background: var(--color-primary);
  color: white;
}

.step-drawer-item .step-name {
  font-weight: 500;
  color: var(--color-gray-800);
}

.step-drawer-item .step-status {
  font-size: var(--mobile-font-small);
  color: var(--color-success);
}

/* ----------------------------------------
   Mobile Summary FAB
   ---------------------------------------- */
.mobile-summary-trigger {
  display: none;
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + 16px);
  right: var(--mobile-padding);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-header-bg);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
  z-index: var(--z-sticky);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-summary-trigger:active {
  transform: scale(0.95);
}

.mobile-summary-trigger .summary-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-primary);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------
   Validation Toast
   ---------------------------------------- */
.validation-toast {
  position: fixed;
  top: 80px;
  left: var(--mobile-padding);
  right: var(--mobile-padding);
  background: var(--color-danger);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: var(--mobile-font-label);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.validation-toast button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}

/* ----------------------------------------
   TABLET & MOBILE BREAKPOINT (768px)
   ---------------------------------------- */
@media (max-width: 768px) {
  /* Show mobile components */
  .mobile-progress-header {
    display: flex;
  }

  .mobile-summary-trigger {
    display: flex;
  }

  /* Hide desktop progress bar */
  .proposal-progress {
    display: none;
  }

  /* Hide desktop summary sidebar */
  .proposal-summary-sidebar {
    display: none !important;
  }

  /* Step Content - mobile adjustments */
  .proposal-step-content {
    padding: var(--mobile-padding);
    padding-bottom: calc(var(--mobile-nav-height) + 20px);
  }

  .proposal-step-content h2 {
    font-size: var(--mobile-font-h2);
  }

  .proposal-step-content .step-desc {
    font-size: var(--mobile-font-label);
  }

  /* Form grids - single column */
  .proposal-form-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .proposal-form-group.full-width {
    grid-column: auto;
  }

  /* Form inputs - touch-friendly sizing */
  .proposal-form-group input,
  .proposal-form-group select,
  .proposal-form-group textarea {
    min-height: var(--touch-target-comfortable);
    font-size: var(--mobile-font-body);
    padding: 12px var(--mobile-padding);
  }

  .proposal-form-group label {
    font-size: var(--mobile-font-label);
  }

  /* Form sections */
  .proposal-form-section {
    padding: var(--mobile-padding);
    margin-bottom: var(--mobile-padding);
  }

  /* Customer type cards - stack vertically */
  .customer-type-cards {
    flex-direction: column;
  }

  .customer-type-card {
    padding: var(--mobile-padding);
  }

  /* Gulfstream location cards - stack vertically */
  .gulfstream-location-cards {
    grid-template-columns: 1fr !important;
  }

  .gulfstream-location-card {
    padding: var(--mobile-padding);
  }

  .gulfstream-contact-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Navigation buttons - fixed bottom */
  .proposal-nav-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px var(--mobile-padding);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    background: white;
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: var(--z-sticky);
  }

  .btn-proposal-next,
  .btn-proposal-nav {
    min-height: var(--touch-target-comfortable);
    font-size: var(--mobile-font-body);
    padding: 12px 20px;
  }

  /* Manufacturer tabs - horizontal scroll */
  .manufacturer-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 4px;
  }

  .manufacturer-tab {
    flex: 0 0 auto;
    min-width: 100px;
    scroll-snap-align: start;
    font-size: var(--mobile-font-label);
  }

  /* Aircraft grid - 2 columns on mobile */
  .proposal-aircraft-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mobile-gap);
  }

  .proposal-aircraft-card {
    padding: 14px 12px;
    font-size: var(--mobile-font-label);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Aircraft details form */
  .aircraft-details-section {
    padding: var(--mobile-padding);
    margin-top: var(--mobile-padding);
  }

  .aircraft-details-form .form-row {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .aircraft-details-form input,
  .aircraft-details-form select,
  .aircraft-details-form textarea {
    min-height: var(--touch-target-comfortable);
    font-size: var(--mobile-font-body);
  }

  /* Mattress cards */
  .proposal-mattress-header {
    padding: var(--mobile-padding);
  }

  .proposal-mattress-checkbox {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
  }

  .proposal-mattress-config {
    padding: var(--mobile-padding);
  }

  /* Style selection grid - 2 columns instead of 5 */
  .proposal-style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mobile-gap);
  }

  .proposal-style-card {
    min-height: var(--touch-target-min);
    font-size: var(--mobile-font-small);
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Quantity selector - larger buttons */
  .proposal-qty-btn {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    font-size: 20px;
  }

  .proposal-qty-value {
    min-width: 48px;
    font-size: var(--mobile-font-body);
  }

  /* Color swatches - larger for touch */
  .proposal-color-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: var(--mobile-gap);
  }

  .proposal-color-swatch {
    min-width: 52px;
    min-height: 52px;
  }

  .proposal-color-swatch::after {
    font-size: 10px;
    bottom: -16px;
  }

  /* Bedding tabs */
  .proposal-bedding-tabs {
    flex-wrap: wrap;
  }

  .proposal-bedding-tab {
    min-height: var(--touch-target-min);
    font-size: var(--mobile-font-label);
    flex: 1 1 auto;
    text-align: center;
  }

  /* Config fields */
  .proposal-config-row {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .proposal-config-field select,
  .proposal-config-field input {
    min-height: var(--touch-target-min);
    font-size: var(--mobile-font-label);
    padding: 10px 12px;
  }

  .proposal-config-field label {
    font-size: var(--mobile-font-small);
  }

  /* Order type cards */
  .order-type-cards {
    flex-direction: column;
  }

  .order-type-card {
    padding: var(--mobile-padding);
  }

  /* Checkbox styling for touch */
  .checkbox-inline {
    min-height: var(--touch-target-min);
    padding: 8px 0;
  }

  .checkbox-inline input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }

  /* Additional contact row */
  .additional-contact-row {
    padding: var(--mobile-padding);
  }

  .additional-contact-row .remove-contact {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 8px;
    right: 8px;
  }

  /* Add contact button */
  .btn-add-contact {
    min-height: var(--touch-target-comfortable);
  }

  /* Proposals table - horizontal scroll */
  .proposals-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .proposals-table {
    min-width: 700px;
  }

  /* Review summary cards */
  .review-summary-section {
    padding: var(--mobile-padding);
  }
}

/* ----------------------------------------
   SMALL MOBILE BREAKPOINT (480px)
   ---------------------------------------- */
@media (max-width: 480px) {
  /* Aircraft grid - single column on very small screens */
  .proposal-aircraft-grid {
    grid-template-columns: 1fr;
  }

  /* Full-width nav buttons */
  .proposal-nav-buttons {
    flex-direction: column;
    gap: var(--mobile-gap);
  }

  .btn-proposal-next,
  .btn-proposal-nav {
    width: 100%;
  }

  .btn-proposal-nav.prev {
    order: 2;
  }

  .btn-proposal-nav.next,
  .btn-proposal-next {
    order: 1;
  }

  /* Manufacturer tabs - full scroll */
  .manufacturer-tab {
    min-width: 90px;
    padding: 10px 14px;
  }

  /* Color swatches - smaller grid */
  .proposal-color-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Mobile progress header adjustments */
  .mobile-progress-header .step-label {
    font-size: 13px;
  }

  .mobile-progress-dots {
    gap: 4px;
  }

  .mobile-progress-dot {
    width: 6px;
    height: 6px;
  }

  .mobile-progress-dot.active {
    width: 16px;
  }
}

/* ============================================
   MOBILE PROPOSAL BUILDER FIXES
   Hide order summary on steps 1-6, fix alignments
   ============================================ */

@media (max-width: 768px) {
  /* ----------------------------------------
     HIDE ORDER SUMMARY COMPLETELY ON MOBILE
     Users see order details on final review step only
     ---------------------------------------- */
  .mobile-summary-trigger,
  .mobile-summary-drawer,
  .proposal-config-sidebar,
  .proposal-summary-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }

  /* Add bottom padding to step 7 content so buttons aren't hidden behind nav */
  #proposal-step-7 {
    padding-bottom: 180px !important;
  }

  /* Ensure CTA buttons on step 7 have space above nav */
  .proposal-final-buttons {
    margin-bottom: 80px;
  }

  .proposal-cta-buttons {
    margin-bottom: 20px;
  }

  /* ----------------------------------------
     STEP 3: Mattress Engineering Requirements
     Fix alignment issues
     ---------------------------------------- */
  .proposal-mattress-config {
    padding: 16px;
  }

  .proposal-config-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .proposal-config-field {
    width: 100%;
  }

  .proposal-config-field select,
  .proposal-config-field input {
    width: 100%;
    box-sizing: border-box;
  }

  /* ----------------------------------------
     STEP 4: Bedding - Sheet/Pad/Topper Centering
     ---------------------------------------- */
  .bedding-config-form {
    padding: 16px !important;
  }

  /* Center bedding item cards */
  .proposal-bedding-option {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 16px;
  }

  .proposal-bedding-option-info {
    text-align: center;
    margin-bottom: 12px;
  }

  .proposal-bedding-option-controls {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Bedding category cards - centered layout */
  .bedding-item-card {
    text-align: center;
  }

  .bedding-item-card > div {
    justify-content: center !important;
  }

  /* Material grade buttons - full width on mobile */
  .proposal-grade-selector {
    flex-direction: column !important;
  }

  .proposal-grade-btn {
    width: 100% !important;
    min-width: unset !important;
    justify-content: center;
  }

  /* Color swatches - better centering */
  .color-swatches {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .color-option {
    text-align: center;
  }

  /* Design buttons - centered and full width */
  .design-btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 120px;
    text-align: center;
  }

  /* Seat config buttons - wrap and center */
  .seat-config-btn {
    flex: 1 1 calc(33% - 6px) !important;
    min-width: 90px;
    text-align: center;
  }

  /* ----------------------------------------
     STEP 5/6: Production Speed & Measurement Alignment
     ---------------------------------------- */
  /* Production timeline section - stack vertically */
  #proposal-delivery-content > div {
    padding: 16px !important;
  }

  /* Approval date + production speed - stack on mobile */
  #proposal-delivery-content > div > div[style*="display: flex; gap: 25px"] {
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Approval date field - full width */
  #proposal-delivery-content > div > div[style*="display: flex; gap: 25px"] > div[style*="flex: 0 0 200px"] {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  /* Production speed options - stack vertically */
  .production-speed-option {
    width: 100% !important;
  }

  #proposal-delivery-content div[style*="display: flex; gap: 15px"]:has(.production-speed-option) {
    flex-direction: column !important;
  }

  /* Payment method options - single column */
  #proposal-delivery-content div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Shipping options - single column */
  #proposal-delivery-content div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Shipping billing options - stack */
  #shipping-billing-section > div[style*="display: flex; gap: 15px"] {
    flex-direction: column !important;
  }

  /* Custom fee rows - better mobile layout */
  .custom-fee-row {
    flex-wrap: wrap !important;
  }

  .custom-fee-row input[placeholder="Description"] {
    flex: 1 1 100% !important;
    margin-bottom: 8px;
  }

  /* Wire info grid - single column */
  #wire-info-section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ----------------------------------------
     STEP 7: Review Page - Fix Total Position
     ---------------------------------------- */
  /* Header section - stack price under title */
  #proposal-review-content > div[style*="background: #8B1538"] > div {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px;
  }

  #proposal-review-content > div[style*="background: #8B1538"] > div > div {
    text-align: center !important;
  }

  /* Customer & Aircraft info - single column */
  #proposal-review-content > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Order summary at bottom - stack vertically */
  #proposal-review-content > div[style*="background: #f8f9fa"][style*="border: 2px solid #8B1538"] > div {
    flex-direction: column !important;
    gap: 20px;
  }

  /* Order summary breakdown - full width */
  #proposal-review-content > div[style*="background: #f8f9fa"][style*="border: 2px solid #8B1538"] > div > div:first-child {
    width: 100%;
  }

  /* Estimated total - move below, center */
  #proposal-review-content > div[style*="background: #f8f9fa"][style*="border: 2px solid #8B1538"] > div > div:last-child {
    text-align: center !important;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    width: 100%;
  }

  /* Final CTA buttons on step 7 */
  .proposal-final-buttons {
    flex-wrap: wrap;
    gap: 12px;
  }

  .proposal-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }

  .proposal-cta-buttons .btn-proposal-export {
    width: 100%;
  }

  /* ----------------------------------------
     STEP 4: Bedding Page - Vertical Stacking
     Stack bedding type options and pillow components
     ---------------------------------------- */

  /* Stack bedding type items (top sheet, fitted sheet, mattress pad, topper) */
  .bedding-type-row,
  .bedding-items-row,
  .bedding-options-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Bedding category items - full width and stacked */
  .proposal-bedding-category .bedding-item-card,
  .proposal-bedding-category .bedding-type-item {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* Force grid layouts in bedding to single column */
  .bedding-types-grid,
  .bedding-config-grid,
  .sheets-grid,
  .mattress-accessories-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Stack pillow insert and pillow case vertically within pillow cards */
  .proposal-pillow-card .pillow-components,
  .proposal-pillow-card .pillow-options-row,
  .pillow-insert-case-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Pillow row - stack insert and case vertically */
  .proposal-pillow-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px 0 !important;
  }

  .proposal-pillow-row .fill-name {
    text-align: center;
    margin-bottom: 8px;
  }

  .proposal-pillow-row .price {
    text-align: center;
    margin-right: 0 !important;
  }

  /* Pillow grid - single column */
  .proposal-pillow-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Standard Pillow and Euro Pillow sections - stack content */
  .pillow-section-content,
  .standard-pillow-options,
  .euro-pillow-options {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Pillow insert/case pair container - stack vertically */
  .pillow-pair-container,
  .pillow-insert-wrapper,
  .pillow-case-wrapper {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* Any inline flex containers in bedding step - force column */
  #proposal-step-4 div[style*="display: flex"][style*="gap"] {
    flex-direction: column !important;
  }

  /* Bedding qty controls - center on mobile */
  .proposal-bedding-option-controls {
    justify-content: center !important;
    width: 100%;
  }
}

/* ============================================
   PROPOSAL CTA BUTTONS - Desktop & Mobile
   ============================================ */

.proposal-cta-buttons {
  display: flex;
  gap: 10px;
}

.proposal-final-buttons .proposal-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proposal-final-buttons .proposal-cta-buttons .btn-proposal-export.primary {
  background: #198754;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.proposal-final-buttons .proposal-cta-buttons .btn-proposal-export.primary:hover {
  background: #146c43;
}

.proposal-final-buttons .proposal-cta-buttons .btn-proposal-export.secondary {
  background: #1a1a2e;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.proposal-final-buttons .proposal-cta-buttons .btn-proposal-export.secondary:hover {
  background: #0d0d17;
}

/* Toast Animation */
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
}
