/* ==========================================================================
   Create Quotation: 98% Width x 98% Height Modal System
   Refined Flat-Row Table Architecture (No Card Design on Line Rows)
   Fixed-Length Part Number Column | Compact Left-Bottom Add Button
   Dedicated Full-Width Financial Summary Row
   ========================================================================== */

/* 1. Modal Overlay (Centered Backdrop Blur) */
.create-quote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease-smooth), visibility 200ms;
  overflow: hidden;
}

.create-quote-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 2. 90% Width x 90% Height Dialog Container */
.create-quote-dialog {
  width: 98vw;
  height: 98vh;
  max-width: 1280px;
  max-height: 98vh;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 240ms var(--ease-spring), opacity 200ms var(--ease-smooth);
  opacity: 0;
}

.create-quote-modal-overlay.active .create-quote-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 3. Compact Header Bar (44px) */
.create-quote-header {
  height: 44px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.create-quote-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-create-quote-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-create-quote-back:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-strong);
}

.btn-create-quote-back svg {
  width: 14px;
  height: 14px;
}

.create-quote-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-quote-title {
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.create-quote-id-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.create-quote-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-create-quote-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-create-quote-close:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-create-quote-close svg {
  width: 13px;
  height: 13px;
}

/* 4. Scrollable Viewport Body (Reduced Margins & Padding) */
.create-quote-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px 18px 16px;
  background-color: var(--bg-surface);
  -webkit-overflow-scrolling: touch;
}

.create-quote-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Section Containers */
.create-quote-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.create-quote-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-subtle);
}

.create-quote-card-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.create-quote-card-title {
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin: 0;
}

.create-quote-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* 5. Customer & Meta Grid */
.customer-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 680px) {
  .customer-meta-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.quote-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quote-field-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  user-select: none;
  white-space: nowrap;
}

.quote-field-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.quote-field-input,
.quote-field-select {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  box-sizing: border-box;
  width: 100%;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.quote-field-input:focus,
.quote-field-select:focus {
  border-color: var(--text-primary);
  background-color: var(--bg-surface);
}

.quote-field-input::placeholder {
  color: var(--text-muted);
  font-size: 11.5px;
}

/* Touch-friendly Search Input Wrapper for Customer Details */
.quote-input-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.quote-input-search-wrapper .quote-field-input {
  padding-right: 32px;
}

.quote-field-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.quote-field-search-btn:hover,
.quote-field-search-btn:active {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.quote-field-search-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   6. Line Items Table: Flat Table Rows (Zero Card Design on Rows)
   Strictly Fixed-Length Part Number Column (130px)
   Compact "+ Add" Button at Left Bottom
   ========================================================================== */
.line-items-cards-container {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

/* Table Column Headers Bar */
.line-items-table-header {
  display: grid;
  grid-template-columns: 24px 130px minmax(100px, 1fr) 56px 70px 50px 52px 48px 68px 28px 26px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  background-color: var(--bg-secondary);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.col-hdr {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-hdr.text-center { text-align: center; }
.col-hdr.text-right { text-align: right; }

.line-items-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Table Row: Flat Horizontal Line (Card Design Completely Removed) */
.line-item-card.line-item-single-row {
  display: grid;
  grid-template-columns: 24px 130px minmax(100px, 1fr) 56px 70px 50px 52px 48px 68px 28px 26px;
  gap: 6px;
  align-items: center;
  padding: 3px 6px;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  transition: background-color var(--transition-fast);
}

.line-item-card.line-item-single-row:hover {
  background-color: var(--bg-secondary);
}

.item-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.item-cell-idx { justify-content: center; }
.item-cell-partno { justify-content: flex-start; }
.item-cell-desc { justify-content: flex-start; }
.item-cell-hsn { justify-content: center; }
.item-cell-rate { justify-content: flex-end; }
.item-cell-gst { justify-content: center; }
.item-cell-qty { justify-content: center; }
.item-cell-disc { justify-content: flex-end; }
.item-cell-total {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}
.item-cell-paid { justify-content: center; }
.item-cell-action { justify-content: center; }

/* Rounded Input Boxes Inside Row Cells */
.line-item-card.line-item-single-row input,
.line-item-card.line-item-single-row select {
  height: 28px;
  padding: 0 6px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  box-sizing: border-box;
  width: 100%;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.line-item-card.line-item-single-row input:focus,
.line-item-card.line-item-single-row select:focus {
  border-color: var(--text-primary);
  background-color: var(--bg-surface);
}

/* 1. Row Index */
.line-item-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  user-select: none;
}

/* 2. Part Number Column: Strictly Fixed Width of 130px with Touch-friendly Search Button */
.item-partno-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 130px;
}

.item-partno-search-box .line-partno-input {
  width: 100%;
  height: 28px;
  padding-left: 8px !important;
  padding-right: 26px !important;
  font-family: var(--font-mono);
  font-weight: 600;
}

.item-partno-search-box .btn-partno-search {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.item-partno-search-box .btn-partno-search:hover,
.item-partno-search-box .btn-partno-search:active {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.item-partno-search-box .btn-partno-search .search-box-icon {
  width: 11px;
  height: 11px;
  pointer-events: none;
}

/* 3. Description */
.line-partname-input {
  font-size: 11.5px !important;
}

/* 4. HSN Code */
.line-hsn-input {
  font-family: var(--font-mono);
  text-align: center;
  padding: 0 2px !important;
}

/* 5. Rate */
.line-rate-input {
  font-family: var(--font-mono);
  text-align: right;
  font-weight: 600;
}

/* 6. GST Select */
.line-gst-select {
  text-align: center;
  padding: 0 2px !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* 7. Rounded Stepper */
.line-qty-stepper {
  display: flex;
  align-items: center;
  height: 28px;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  overflow: hidden;
  box-sizing: border-box;
}

.btn-qty-step {
  width: 13px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-qty-step:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.line-qty-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px !important;
  padding: 0 !important;
  -moz-appearance: textfield;
}

.line-qty-input::-webkit-outer-spin-button,
.line-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 8. Discount */
.line-discount-input {
  font-family: var(--font-mono);
  text-align: right;
  font-weight: 600;
}

/* 9. Total Field */
.line-total-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1.1;
}

.line-amount-gst-hint {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}

/* 10. Compact Rounded Mark as Paid Button */
.item-cell-paid .btn-line-paid-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.item-cell-paid .btn-line-paid-toggle:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-tertiary);
}

.item-cell-paid .paid-toggle-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.item-cell-paid .paid-check-icon {
  width: 11px;
  height: 11px;
  stroke: var(--text-muted);
  opacity: 0.4;
  transition: opacity var(--transition-fast), stroke var(--transition-fast);
}

.item-cell-paid .btn-line-paid-toggle.is-paid {
  background-color: #10b981;
  border-color: #10b981;
}

.item-cell-paid .btn-line-paid-toggle.is-paid .paid-check-icon {
  opacity: 1;
  stroke: #ffffff;
}

/* 11. Rounded Delete Button */
.btn-line-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.btn-line-delete:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-line-delete svg {
  width: 12px;
  height: 12px;
}

/* Single Add Button at Bottom Left of Table */
.line-items-table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
}

.btn-line-action.btn-add-item-bottom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-line-action.btn-add-item-bottom:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-strong);
}

.btn-line-action.btn-add-item-bottom svg {
  width: 12px;
  height: 12px;
}

/* Empty State */
.line-items-empty {
  padding: 20px 12px;
  text-align: center;
  color: var(--text-secondary);
}

.line-items-empty p {
  font-size: 11.5px;
  margin: 0 0 8px 0;
}

/* ==========================================================================
   7. Tax Template & Additional Charges
   ========================================================================== */
.tax-charges-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 10px;
  align-items: start;
}

@media (max-width: 680px) {
  .tax-charges-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.discount-input-wrapper {
  display: flex;
  align-items: center;
  height: 32px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.discount-input-wrapper:focus-within {
  border-color: var(--text-primary);
  background-color: var(--bg-surface);
}

.discount-input-wrapper .discount-val-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none !important;
  background: transparent !important;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.discount-type-select {
  height: 100%;
  border: none;
  border-left: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
}

.text-discount {
  color: #10b981 !important;
  font-weight: 700;
}

/* ==========================================================================
   8. Financial Summary & Taxes (Own Dedicated Full-Width Row)
   Each Metric Has Its Own Dedicated Clean Row Line
   ========================================================================== */
.quote-summary-card {
  width: 100%;
  box-sizing: border-box;
}

.quote-summary-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.quote-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-subtle);
}

.quote-summary-row:last-of-type {
  border-bottom: none;
}

.quote-summary-label {
  font-weight: 500;
}

.quote-summary-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
}

.quote-summary-divider {
  height: 1px;
  background-color: var(--border-strong);
  margin: 4px 0;
}

.quote-summary-row.grand-total {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-bottom: none;
  padding: 8px 12px;
  margin-top: 3px;
}

.quote-summary-row.grand-total .quote-summary-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-summary-row.grand-total .quote-summary-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.quote-summary-partial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.quote-partial-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-partial-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quote-partial-input {
  width: 75px;
  height: 26px;
  padding: 0 6px;
  font-size: 11.5px;
  text-align: right;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
}

.quote-partial-balance-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quote-balance-due-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: #ef4444;
}

/* ==========================================================================
   9. Bottom Footer Action Bar (44px)
   ========================================================================== */
.create-quote-footer {
  height: 48px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  box-sizing: border-box;
  gap: 12px;
}

.create-quote-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.create-quote-footer-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.create-quote-status-select {
  height: 32px;
  padding: 0 24px 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: border-color var(--transition-fast);
}

.create-quote-status-select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.create-quote-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-create-quote-cancel {
  display: none;
}

.btn-create-quote-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #059669;
  background-color: #059669;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-create-quote-share:hover {
  background-color: #047857;
  border-color: #047857;
}

.btn-create-quote-share svg {
  width: 13px;
  height: 13px;
}

.btn-create-quote-print {
  display: none;
}

.btn-create-quote-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.btn-create-quote-save:hover {
  opacity: 0.9;
}

.btn-create-quote-save svg {
  width: 13px;
  height: 13px;
}

/* 10. Responsive Behavior */
@media (max-width: 768px) {
  .create-quote-dialog {
    width: 98vw;
    height: 98vh;
    max-height: 98vh;
  }

  .create-quote-viewport {
    padding: 10px 12px 16px 12px;
  }
}

@media (max-width: 600px) {
  .create-quote-footer {
    height: auto;
    min-height: 52px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .create-quote-footer-left {
    gap: 0;
  }

  .create-quote-footer-label {
    display: none;
  }

  .create-quote-status-select {
    height: 36px;
    padding: 0 20px 0 8px;
    font-size: 11.5px;
    max-width: 92px;
  }

  .create-quote-footer-actions {
    flex: 1;
    justify-content: flex-end;
    gap: 6px;
  }

  .btn-create-quote-share,
  .btn-create-quote-save {
    height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
    white-space: nowrap;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .create-quote-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px;
  }

  .create-quote-footer-left {
    width: 100%;
  }

  .create-quote-status-select {
    width: 100%;
    max-width: none;
  }

  .create-quote-footer-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }

  .btn-create-quote-share,
  .btn-create-quote-save {
    flex: 1;
    width: 100%;
    justify-content: center;
  }
}
