html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: #5547e8;
  box-shadow: 0 0 0 0.18rem rgba(85, 71, 232, 0.18);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
  color: #1f2937;
}

.content > .container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.quotation-menu-card {
  position: relative;
}

.quotation-menu-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #5547e8, #20756b);
}

.navbar {
  backdrop-filter: blur(16px);
}

.navbar-brand {
  letter-spacing: 0.02em;
}

.quotation-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
}

.quotation-page-header {
  padding: 0.25rem 0 0.35rem;
}

.quotation-heading h1 {
  letter-spacing: 0;
}

.quotation-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  box-shadow: none;
}

.quotation-actions .btn-primary {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  box-shadow: 0 12px 24px rgba(85, 71, 232, 0.2);
}

.quotation-layout-row {
  --bs-gutter-x: 1.25rem;
}

.quotation-card {
  border: 1px solid rgba(209, 213, 219, 0.9);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
  overflow: hidden;
}

.quotation-card .card-body {
  padding: 1.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(135deg, #5547e8, #20756b);
  font-size: 0.8rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.form-control,
.form-select {
  border-radius: 4px;
  border-color: #d9dee8;
  min-height: 2.5rem;
  background-color: #fff;
}

.btn {
  border-radius: 4px;
  font-weight: 600;
  min-height: 2.35rem;
}

.btn-primary {
  background: #5547e8;
  border-color: #5547e8;
  box-shadow: 0 10px 18px rgba(85, 71, 232, 0.18);
}

.btn-outline-primary {
  color: #5547e8;
  border-color: #5547e8;
  background: #fff;
}

.quotation-table {
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.quotation-table th {
  font-size: 0.8rem;
  color: #4b5563;
  background: transparent;
  border: 0;
  padding-bottom: 0.2rem;
}

.quotation-table td {
  vertical-align: middle;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.55rem;
}

.quotation-table td:first-child {
  border-left: 1px solid #e5e7eb;
  border-radius: 8px 0 0 8px;
  width: 5.5rem;
}

.quotation-table td:last-child {
  border-right: 1px solid #e5e7eb;
  border-radius: 0 8px 8px 0;
  width: 7rem;
}

.item-card {
  border-color: rgba(85, 71, 232, 0.22);
}

.plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  line-height: 1;
}

.add-item-strip {
  border-style: dashed;
  background: #fbfbff;
}

.row-delete-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.quote-summary {
  top: 5.25rem;
  border-color: rgba(32, 117, 107, 0.24);
}

.quote-summary .card-body {
  padding: 1.1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef0f4;
  color: #6b7280;
}

.grand-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  color: #0f172a;
  background: linear-gradient(135deg, #f1efff, #e7f7f4);
  border: 1px solid rgba(85, 71, 232, 0.12);
}

.grand-total strong {
  font-size: 1.35rem;
}

.add-item-btn,
.add-item-strip {
  min-height: 2.4rem;
}

.row-delete-btn {
  min-height: 2.3rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.topbar .btn {
  min-height: 2.2rem;
}

.sidebar .nav-link {
  gap: 0.75rem;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
}

@media (min-width: 1400px) {
  .quotation-card .card-body {
    padding: 1.35rem;
  }
}

@media (max-width: 1199.98px) {
  .quote-summary {
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  .content > .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .quotation-actions {
    width: 100%;
  }

  .quotation-actions .btn {
    flex: 1 1 auto;
  }
}

@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    margin: 0;
  }

  .container-fluid {
    width: 100%;
  }

  .quotation-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
