/* Modal & Admission Styles for Basa Laboratory */

.basa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.basa-modal-container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  font-family: inherit;
}

@keyframes slideUpModal {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.basa-modal-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  gap: 10px;
}

.modal-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.modal-header-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-header-titles {
  min-width: 0;
}

.modal-header-title {
  font-size: 1.2rem;
  margin: 0;
  color: #1e293b;
  font-weight: 800;
  line-height: 1.3;
}

.modal-header-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.basa-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.basa-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.admission-steps-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 16px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.admission-steps-bar::-webkit-scrollbar {
  display: none;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.step-btn .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-btn.active {
  background: #fff;
  color: #f97316;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.step-btn.active .step-num {
  background: #f97316;
  color: #fff;
}

.badge-count {
  background: #10b981;
  color: #fff;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: bold;
}

.basa-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.step-content {
  display: none;
}

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

/* AI Triage Banner */
.ai-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.ai-banner-title {
  font-size: 1.05rem;
  color: #1e293b;
  margin: 10px 0 6px;
  line-height: 1.45;
}

.ai-banner-desc {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
}

.ai-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ea580c;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
  animation: dotPulse 1.2s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.chip-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-container.dragging {
  cursor: grabbing;
}

.chip-container::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.prompt-chip:hover {
  background: #fff7ed;
  border-color: #f97316;
  color: #ea580c;
}

.triage-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.94rem;
  line-height: 1.65;
  resize: vertical;
  font-family: inherit;
}

.triage-textarea:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.triage-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.triage-back-btn {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.triage-submit-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Spinner */
.ai-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid #ffedd5;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* Triage result card */
.triage-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
}

.triage-card-header {
  background: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.triage-patient-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.triage-card-body {
  padding: 20px;
}

.triage-impressions-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.triage-reasoning-box {
  font-size: 0.91rem;
  color: #334155;
  line-height: 1.75;
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-top: 6px;
}

.triage-confirm-row {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.triage-confirm-btn {
  background: #16a34a;
  font-weight: bold;
  padding: 11px 24px;
}

.urgency-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

.urgency-badge.urgent {
  background: #fee2e2;
  color: #dc2626;
}

.urgency-badge.high {
  background: #ffedd5;
  color: #ea580c;
}

.urgency-badge.medium {
  background: #fef3c7;
  color: #d97706;
}

.suggested-tests-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.suggested-test-item {
  background: #fffaf5;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.suggested-test-price-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Catalog Filter Pills */
.catalog-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-search-wrap {
  position: relative;
  width: 280px;
}

.catalog-search-input {
  width: 100%;
  padding: 9px 34px 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.86rem;
  font-family: inherit;
}

.category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}

.cat-pill.active, .cat-pill:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}

.species-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 14px;
  font-size: 0.84rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.species-filter-bar::-webkit-scrollbar {
  display: none;
}

.species-filter-label {
  color: #64748b;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.spec-btn {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.spec-btn.active {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

/* Test Card Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  padding: 4px;
}

.catalog-bottom-bar {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff7ed;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #ffedd5;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-checkout-btn {
  background: #f97316;
  font-weight: bold;
  padding: 9px 20px;
}

.test-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.test-card:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.08);
}

.test-card.selected {
  border-color: #f97316;
  background: #fffaf5;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.test-badge-cat {
  font-size: 0.7rem;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.price-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-row-label {
  font-size: 0.78rem;
  color: #64748b;
}

.basa-price {
  font-size: 1rem;
  font-weight: 800;
  color: #ea580c;
}

/* Two-Card Admission Method Selector */
.choice-selector-box {
  padding: 6px 0 14px;
  text-align: center;
}

.choice-main-heading {
  font-size: 1.25rem;
  color: #1e293b;
  font-weight: 800;
  margin-bottom: 8px;
}

.choice-main-sub {
  font-size: 0.88rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

.choice-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.choice-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.choice-card:hover {
  border-color: #f97316;
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.15);
  transform: translateY(-4px);
}

.choice-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.choice-card.ai .choice-card-icon {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #ea580c;
}

.choice-card.manual .choice-card-icon {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #16a34a;
}

.choice-card-title {
  font-size: 1.12rem;
  color: #1e293b;
  font-weight: 800;
  margin-bottom: 8px;
}

.choice-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 18px;
}

.choice-card-btn {
  width: 100%;
  padding: 11px;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 10px;
}

.choice-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.choice-badge.ai {
  background: #ea580c;
  color: #fff;
}

.choice-badge.manual {
  background: #f1f5f9;
  color: #475569;
}

/* Invoice Section */
.invoice-customer-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.invoice-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.basa-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: 0.2s;
  background: #ffffff;
}

.basa-input:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.81rem;
  font-weight: 700;
  color: #334155;
}

.invoice-box-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.invoice-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.inv-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.inv-preview-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.inv-preview-table th {
  background: #f1f5f9;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #475569;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.inv-preview-table td {
  padding: 10px 12px;
  font-size: 0.84rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.invoice-summary-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.shaparak-trust-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

.invoice-totals-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 260px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: #475569;
}

.total-line.grand-total {
  border-top: 1.5px solid #e2e8f0;
  padding-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f97316;
}

.invoice-actions-row {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.invoice-back-btn {
  padding: 11px 22px;
}

.invoice-pay-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

/* User Dropdown */
.user-dropdown-btn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  max-width: 190px;
}

.user-dropdown-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-admin-tag {
  background: #ea580c;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}

.inv-mobile-code-badge {
  display: none;
}

.inv-item-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.45;
}

/* ===== MOBILE RESPONSIVE MODAL & ADMISSION RULES ===== */
@media (max-width: 768px) {
  .basa-modal-overlay {
    padding: 6px;
  }

  .basa-modal-container {
    border-radius: 16px;
    max-height: 95vh;
    max-height: 95dvh;
  }

  .basa-modal-header {
    padding: 11px 14px;
  }

  .modal-header-logo {
    height: 34px;
  }

  .modal-header-title {
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .modal-header-subtitle {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .basa-modal-body {
    padding: 12px;
  }

  .admission-steps-bar {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .step-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    padding: 7px 6px;
    font-size: 0.72rem;
    gap: 5px;
    justify-content: center;
    border-radius: 9px;
    box-sizing: border-box;
  }

  .step-num {
    width: 18px;
    height: 18px;
    font-size: 0.68rem;
  }

  .choice-main-heading {
    font-size: 1.02rem;
  }

  .choice-main-sub {
    font-size: 0.78rem;
  }

  .choice-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .choice-card {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .choice-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .choice-card-title {
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .choice-card-desc {
    font-size: 0.79rem;
    line-height: 1.65;
    margin-bottom: 12px;
  }

  .ai-banner {
    padding: 12px 14px;
  }

  .ai-banner-title {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .ai-banner-desc {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .triage-actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }

  .triage-back-btn,
  .triage-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }

  .triage-card-header {
    padding: 12px 14px;
  }

  .triage-card-body {
    padding: 12px;
  }

  .triage-impressions-list span {
    white-space: normal !important;
    line-height: 1.45;
    font-size: 0.76rem !important;
  }

  .suggested-test-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 11px 12px;
  }

  .suggested-test-price-col {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #fed7aa;
  }

  .triage-confirm-row {
    justify-content: stretch;
  }

  .triage-confirm-btn {
    width: 100%;
    justify-content: center;
  }

  .catalog-top-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .catalog-search-wrap {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    max-height: 350px;
  }

  .catalog-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 11px 12px;
    gap: 8px;
  }

  .catalog-checkout-btn {
    width: 100%;
    justify-content: center;
  }

  .invoice-customer-card {
    padding: 12px;
  }

  .invoice-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .invoice-box-preview {
    padding: 10px;
  }

  .invoice-preview-header {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .invoice-preview-header h4 {
    font-size: 0.84rem !important;
    white-space: nowrap;
  }

  .invoice-preview-header span {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
  }

  .inv-col-hide-mobile {
    display: none !important;
  }

  .inv-mobile-code-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    direction: ltr;
  }

  .inv-preview-table th,
  .inv-preview-table td {
    padding: 8px 6px;
    font-size: 0.78rem;
    vertical-align: middle;
  }

  .inv-preview-table td strong {
    font-size: 0.78rem;
    line-height: 1.45;
    display: block;
    color: #0f172a;
  }

  .invoice-summary-grid {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .shaparak-trust-box,
  .invoice-totals-card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .invoice-actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }

  .invoice-back-btn,
  .invoice-pay-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 12px 14px;
  }

  .user-dropdown-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
    max-width: 132px;
    min-height: 36px;
  }
}
