/* TravNex Quote Builder — Tripzens-inspired package creation */

:root {
  --qb-navy: #163a5f;
  --qb-blue: #2d6cdf;
  --qb-blue-dark: #1f4fbf;
  --qb-teal: #0d9488;
  --qb-green: #15803d;
  --qb-red: #b91c1c;
  --qb-orange: #c2410c;
  --qb-bg: #f4f6f9;
  --qb-card: #ffffff;
  --qb-border: #e2e8f0;
  --qb-muted: #64748b;
  --qb-text: #0f172a;
  --qb-radius: 10px;
}

.qb-page {
  background: var(--qb-bg);
  min-height: calc(100vh - 4rem);
  padding: 0 0 2rem;
  color: var(--qb-text);
}

.qb-page * { box-sizing: border-box; }

/* —— Generate Quote form —— */
.qb-generate-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
}

.qb-card {
  background: var(--qb-card);
  border: 1px solid var(--qb-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.qb-card-header {
  background: var(--qb-navy);
  color: #fff;
  padding: 1rem 1.25rem;
}

.qb-card-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.qb-card-body { padding: 1.25rem; background: var(--qb-bg); }

.qb-section {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.qb-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--qb-text);
  margin: 0 0 1rem;
}

.qb-section-title::before {
  content: "";
  width: 4px;
  height: 1.1rem;
  border-radius: 2px;
  background: var(--qb-blue);
  flex-shrink: 0;
}

.qb-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--qb-muted);
  margin-bottom: 0.35rem;
}

.qb-input,
.qb-select {
  width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  background: #fff;
  color: var(--qb-text);
}

.qb-input:focus,
.qb-select:focus {
  outline: none;
  border-color: var(--qb-blue);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.12);
}

.qb-city-row {
  display: grid;
  grid-template-columns: 1fr 140px 44px;
  gap: 0.65rem;
  align-items: end;
  background: #f8fafc;
  border: 1px dashed #dcdfe6;
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}

.qb-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #ffd6d2;
  background: #fff1f0;
  color: var(--qb-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qb-btn-icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qb-btn-add-city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--qb-green);
  color: var(--qb-green);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.qb-btn-add-city:hover { background: #f0faf6; }

.qb-pax-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  background: #e8f1ff;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
}

.qb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--qb-navy);
}

.qb-room-card {
  border: 1px solid var(--qb-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.qb-room-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.qb-pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.qb-pax-row:last-child { border-bottom: none; }

.qb-pax-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.qb-pax-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.qb-pax-icon.adult { background: #e8f1ff; color: var(--qb-blue); }
.qb-pax-icon.child { background: #fff3e6; color: var(--qb-orange); }
.qb-pax-icon.infant { background: #fce7f3; color: #db2777; }

.qb-pax-label { font-size: 0.875rem; font-weight: 600; }
.qb-pax-sub { font-size: 0.72rem; color: var(--qb-muted); }

.qb-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.qb-counter button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--qb-blue);
  background: #fff;
  color: var(--qb-blue);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qb-counter button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qb-counter span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.qb-child-ages {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.65rem;
}

.qb-btn-add-room {
  width: 100%;
  border: 1.5px dashed var(--qb-blue);
  color: var(--qb-blue);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.qb-btn-add-room:hover { background: #f0f5ff; }

.qb-btn-generate {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  border-radius: 10px;
  background: var(--qb-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem 1rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(45, 108, 223, 0.28);
}

.qb-btn-generate:hover { background: var(--qb-blue-dark); }
.qb-btn-generate:disabled { opacity: 0.65; cursor: wait; }

.qb-lead-bar {
  background: #f8fafc;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* —— Builder layout —— */
.qb-builder {
  padding: 1rem 0.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.qb-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qb-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.qb-block__title {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.qb-block__title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.qb-block__title p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.qb-block__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qb-block__icon--flight {
  background: #ecfeff;
  color: #0e7490;
}

.qb-block__icon--day {
  background: #f0fdf4;
  color: #15803d;
}

.qb-empty-block {
  text-align: center;
  padding: 1.75rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
}

.qb-empty-block i {
  font-size: 1.75rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}

.qb-empty-block p {
  margin: 0 0 0.85rem;
}

.qb-empty-day {
  text-align: center;
  padding: 1rem;
  color: #94a3b8;
  font-size: 0.875rem;
  background: #f8fafc;
  border-radius: 8px;
}

.qb-flight-box {
  margin-top: 0.25rem;
}

.qb-flight-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  border: 1.5px dashed #93c5fd;
  border-radius: 12px;
  background: #f8fbff;
  color: #334155;
  cursor: pointer;
  text-align: center;
  position: relative;
}

.qb-flight-upload i {
  font-size: 1.75rem;
  color: #2563eb;
}

.qb-flight-upload strong {
  font-size: 0.95rem;
}

.qb-flight-upload span {
  font-size: 0.78rem;
  color: #64748b;
}

.qb-flight-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.qb-flight-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.qb-flight-preview img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #f8fafc;
}

.qb-flight-cost {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 280px;
}

.qb-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.qb-policies .qb-block__title p strong {
  color: var(--qb-navy);
  font-weight: 700;
}

.qb-block__icon--policy {
  background: #eef2ff;
  color: #3730a3;
}

.qb-policy-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qb-policy-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
}

.qb-policy-card__head--inc { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.qb-policy-card__head--exc { background: linear-gradient(180deg, #fff7ed 0%, #fff 100%); }
.qb-policy-card__head--terms { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }

.qb-policy-card__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.qb-policy-card__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.qb-policy-count {
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.qb-policy-card__tools {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0;
}

.qb-policy-tool {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e40af;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.qb-policy-tool:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.qb-policy-tool:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qb-policy-list {
  margin: 0.65rem 0.75rem 0;
  padding: 0.35rem;
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.qb-policy-list--tall { max-height: 280px; }

.qb-policy-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: #64748b;
}

.qb-policy-empty i {
  font-size: 1.35rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.4rem;
}

.qb-policy-empty p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.qb-policy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qb-policy-check:hover {
  border-color: #cbd5e1;
}

.qb-policy-check.is-on {
  background: #eff6ff;
  border-color: #93c5fd;
}

.qb-policy-check input {
  margin-top: 0.15rem;
  accent-color: #1d4ed8;
  flex-shrink: 0;
}

.qb-policy-check span {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 500;
}

.qb-policy-custom {
  margin-top: auto;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid #eef2f7;
}

.qb-policy-custom label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.qb-policy-custom small {
  font-size: 0.72rem;
  color: #94a3b8;
}

.qb-textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--qb-text);
  resize: vertical;
  background: #fff;
  line-height: 1.45;
}

.qb-textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

@media (max-width: 1100px) {
  .qb-policy-grid { grid-template-columns: 1fr; }
}

.qb-builder-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.qb-builder-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.qb-builder-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.qb-builder-hero__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.qb-builder-hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.qb-builder-hero__sub {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 500;
}

.qb-builder-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.qb-builder-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
}

.qb-builder-hero__meta i {
  color: #2563eb;
  font-size: 0.85rem;
}

.qb-trip-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #2979ff;
  background: #eef4ff;
  color: #1c64e0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.qb-trip-edit-btn:hover {
  background: #2979ff;
  color: #fff;
}

.qb-trip-edit-btn:hover i {
  color: #fff;
}

.qb-trip-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  background: #f8fbff;
}

.qb-trip-editor__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.qb-trip-editor__field small {
  color: #64748b;
  font-size: 0.74rem;
}

.qb-trip-editor__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.qb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.75rem;
}

.qb-back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.qb-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.25rem;
  align-items: start;
}

.qb-day {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.qb-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
}

.qb-day-head:hover { background: #fafbfc; }

.qb-day-badge {
  display: inline-flex;
  align-items: center;
  background: #2c2c4c;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.qb-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #475569;
  flex: 1;
}

.qb-day-meta i { color: var(--qb-green); margin-left: 0.15rem; }

.qb-day-body {
  padding: 0 1.1rem 1.1rem;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}

.qb-svc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.65rem;
  color: var(--qb-text);
}

.qb-svc-card {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.qb-svc-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.qb-svc-top h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--qb-teal);
}

.qb-svc-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--qb-blue);
  white-space: nowrap;
}

.qb-svc-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
}

.qb-svc-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.qb-svc-img-placeholder {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2rem;
}

.qb-svc-img-upload {
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  border: 1px dashed #cbd5e1;
}

.qb-svc-img-upload i {
  font-size: 1.5rem;
}

.qb-upload-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #0f766e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}

.qb-upload-link input[type="file"],
.qb-upload-link .qb-upload-input,
.qb-upload-input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
}

.qb-upload-link--below {
  margin-top: 0.45rem;
  width: 100%;
  background: #fff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.qb-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--qb-muted);
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.qb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.qb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.qb-pill.in {
  background: #e8f7ff;
  color: #0e7490;
  border: 1px solid #bae6fd;
}

.qb-pill.out {
  background: #fff4e8;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.qb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.qb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.qb-btn-danger {
  background: #fff1f0;
  border-color: #ffd6d2;
  color: var(--qb-red);
}

.qb-btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

.qb-btn-primary {
  background: #163a5f !important;
  color: #fff !important;
  border-color: #163a5f !important;
}

.qb-btn-success {
  background: #15803d !important;
  color: #fff !important;
  border: none;
  border-radius: 24px;
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.qb-day-toolbar {
  display: none;
}

.qb-svc-title {
  letter-spacing: 0.01em;
}

.qb-svc-top h3 {
  color: #0f766e !important;
  font-size: 1rem !important;
  line-height: 1.35;
}

.qb-svc-price {
  font-size: 1rem !important;
  color: #0f172a !important;
  font-weight: 700;
}

.qb-price-table .total { font-weight: 700; color: #0f172a; font-size: 0.9rem; }

.qb-end-day p {
  font-size: 0.875rem;
  color: #64748b;
}

.qb-end-day p strong {
  color: #0f172a;
}

.qb-end-day {
  text-align: center;
  padding: 1rem 0 0.25rem;
}

.qb-end-day p { margin: 0 0 0.75rem; color: #475569; }

.qb-room-meal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.65rem 0;
}

.qb-room-meal-box {
  background: #e8f1ff;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
}

.qb-room-meal-box strong { display: block; color: var(--qb-navy); }
.qb-room-meal-box button {
  border: none;
  background: none;
  color: var(--qb-blue);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0;
  cursor: pointer;
}

.qb-price-table {
  width: 100%;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.qb-price-table td { padding: 0.25rem 0; }
.qb-price-table .total { font-weight: 700; color: #0f172a; font-size: 0.95rem; }

/* —— Sticky sidebar —— */
.qb-sidebar {
  position: sticky;
  top: 1rem;
}

.qb-side-card {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.qb-side-head {
  background: #e8f1ff;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--qb-navy);
}

.qb-side-body { padding: 1rem; }

.qb-side-section {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.qb-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.qb-side-section h4 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qb-muted);
}

.qb-side-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.qb-side-row.em { font-weight: 700; color: var(--qb-navy); }
.qb-side-row .money { font-weight: 700; color: #0f172a; }

/* ── Taxes (TCS / GST) panel ── */
.qb-tax-box {
  margin: 0.5rem 0 0.6rem;
  padding: 0.55rem 0.65rem 0.35rem;
  background: #f8fafc;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
}

.qb-tax-box__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qb-muted);
}

.qb-tax-box__hint {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
}

.qb-tax-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  padding: 0.3rem 0;
}

.qb-tax-line + .qb-tax-line { border-top: 1px dashed var(--qb-border); }

.qb-tax-line__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.qb-tax-line__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--qb-text);
}

.qb-tax-pill {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.qb-tax-pill.is-manual { background: #fef3c7; color: #b45309; }

.qb-tax-line__value {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.qb-amount-field {
  display: flex;
  align-items: center;
  width: 5.75rem;
  height: 1.9rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qb-amount-field:focus-within {
  border-color: var(--qb-blue);
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15);
}

.qb-amount-field__prefix {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.4rem;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  color: var(--qb-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.qb-amount-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0.45rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--qb-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  -moz-appearance: textfield;
}

.qb-amount-field input::-webkit-outer-spin-button,
.qb-amount-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qb-tax-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--qb-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.qb-tax-reset:hover { background: #e2e8f0; color: var(--qb-navy); }
.qb-tax-reset.is-hidden { visibility: hidden; pointer-events: none; }

.qb-tax-off {
  flex: 0 0 auto;
  padding-right: 1.65rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-style: italic;
}

.qb-tax-line.is-off .qb-tax-line__name { color: #94a3b8; }
.qb-tax-line.is-off .qb-tax-pill { background: #f1f5f9; color: #94a3b8; }

/* Toggle switch */
.qb-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 1.2rem;
  margin: 0;
  cursor: pointer;
}

.qb-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.qb-switch__track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.18s ease;
}

.qb-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.2rem - 4px);
  height: calc(1.2rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}

.qb-switch input:checked + .qb-switch__track { background: var(--qb-teal); }
.qb-switch input:checked + .qb-switch__track::after { transform: translateX(0.9rem); }
.qb-switch input:focus-visible + .qb-switch__track { box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25); }

.qb-final-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.35rem 0;
  background: transparent;
  border: none;
}

.qb-final-price__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.qb-final-price__value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #00bfff;
  line-height: 1.15;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.qb-final-price__note {
  display: none;
}

.qb-markup-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
}

.qb-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.qb-quick-btns button {
  border: 1px solid #d6d3d1;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.qb-side-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.qb-side-actions .qb-btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.qb-btn-book { background: var(--qb-navy); color: #fff; }
.qb-btn-pdf {
  background: #fff;
  color: var(--qb-blue);
  border: 1.5px solid var(--qb-blue) !important;
}

.qb-btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #163a5f;
  color: #fff;
  border: 1.5px solid #163a5f !important;
}

.qb-btn-email:hover:not(:disabled) {
  background: #0f2a47;
}

.qb-btn-email:disabled {
  opacity: 0.65;
  cursor: wait;
}

.qb-guest-fields {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.qb-guest-fields .qb-input { padding: 0.5rem 0.65rem; font-size: 0.82rem; }

/* —— Offcanvas drawers —— */
.qb-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1040;
}

.qb-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(560px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  z-index: 1050;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.qb-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--qb-border);
  background: var(--qb-navy);
  color: #fff;
  flex-shrink: 0;
}

.qb-drawer-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.qb-drawer-header button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.qb-drawer-tools {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

.qb-drawer-tools--hotel {
  padding: 0.6rem 1rem;
  gap: 0.4rem;
}

.qb-drawer-tools__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.2fr;
  gap: 0.5rem;
  align-items: end;
}

.qb-drawer-tools--hotel .qb-label {
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.qb-drawer-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.qb-star-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.qb-star-filters button {
  min-width: 44px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.qb-star-filters button.active {
  background: var(--qb-blue);
  border-color: var(--qb-blue);
  color: #fff;
}

.qb-star-clear {
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 0.75rem;
  padding: 0 0.15rem;
  cursor: pointer;
}

.qb-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 1rem;
}

.qb-pick-card {
  border: 1px solid var(--qb-border);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.qb-pick-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.qb-pick-card.selected { background: #fcf7de7d; }

.qb-pick-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
}

.qb-pick-img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.qb-pick-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.qb-pick-sub {
  font-size: 0.78rem;
  color: var(--qb-muted);
  margin-bottom: 0.35rem;
}

.qb-transfer-opts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.45rem 0;
  font-size: 0.8rem;
}

.qb-transfer-opts label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.qb-transfer-opts label.active {
  border-color: var(--qb-teal);
  background: #f0fdfa;
}

.qb-transfer-edit {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.qb-transfer-edit .qb-input {
  font-size: 0.82rem;
}

.qb-pick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.qb-pick-footer .price {
  font-weight: 800;
  color: var(--qb-green);
  font-size: 1rem;
}

.qb-drawer-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--qb-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #f8fafc;
  flex-shrink: 0;
}

.qb-drawer-footer--hotel {
  padding: 0.6rem 1rem 0.75rem;
  gap: 0.45rem;
}

.qb-drawer-meta {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.45rem;
  align-items: end;
}

.qb-drawer-meta .qb-label {
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}

.qb-drawer-footer select,
.qb-drawer-meta select {
  width: 100%;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #dcdfe6;
  background: #fff;
  font-size: 0.8rem;
}

.qb-drawer-meta .qb-input {
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
}

.qb-drawer-footer__actions {
  display: flex;
  gap: 0.5rem;
}

.qb-drawer-footer__actions .qb-btn {
  flex: 1;
  justify-content: center;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

.qb-btn-confirm {
  background: #163a5f !important;
  color: #ffffff !important;
  border: 1px solid #163a5f !important;
  font-weight: 700 !important;
}

.qb-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--qb-muted);
}

.qb-alert {
  background: #fff1f0;
  border: 1px solid #ffd6d2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .qb-builder-grid { grid-template-columns: 1fr; }
  .qb-sidebar { position: static; }
  .qb-svc-grid { grid-template-columns: 1fr; }
  .qb-city-row { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 576px) {
  .qb-city-row { grid-template-columns: 1fr; }
  .qb-pick-row { grid-template-columns: 1fr; }
  .qb-pick-img { width: 100%; height: 140px; }
  .qb-drawer { width: 100vw; }
  .qb-drawer-tools__row,
  .qb-drawer-meta { grid-template-columns: 1fr 1fr; }
  .qb-drawer-meta > :first-child { grid-column: 1 / -1; }
}

/* —— Profit panel (sidebar) —— */
.qb-profit-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--qb-radius);
  padding: 0.65rem 0.75rem 0.5rem;
}

.qb-profit-box.is-loss {
  background: #fef2f2;
  border-color: #fecaca;
}

.qb-profit-box .qb-side-row { margin-bottom: 0.3rem; }
.qb-profit-box .qb-side-row.em { border-top: 1px dashed #cbd5e1; padding-top: 0.35rem; margin-top: 0.15rem; }
.qb-profit-pos { color: var(--qb-green) !important; }
.qb-profit-neg { color: var(--qb-red) !important; }

.qb-cost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--qb-blue);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.qb-cost-link:hover { text-decoration: underline; }

.qb-discount-hint {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--qb-muted);
}

.qb-discount-hint.is-capped { color: var(--qb-orange); font-weight: 600; }

/* —— Detailed cost breakdown dialog —— */
.qb-cost-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  z-index: 1050;
  overflow: hidden;
  color: var(--qb-text);
}

.qb-cost-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--qb-border);
  flex-shrink: 0;
}

.qb-cost-modal__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--qb-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qb-cost-modal__header button {
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--qb-muted);
  cursor: pointer;
}

.qb-cost-modal__body {
  padding: 1rem 1.15rem 1.15rem;
  overflow-y: auto;
  background: var(--qb-bg);
}

.qb-cost-currency {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.qb-cost-currency__hint { color: var(--qb-muted); font-weight: 500; }

.qb-cost-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.qb-cost-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 0.7rem 0.85rem;
}

.qb-cost-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qb-muted);
}

.qb-cost-card__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--qb-navy);
  letter-spacing: -0.02em;
}

.qb-cost-card__hint { font-size: 0.72rem; color: #94a3b8; }
.qb-cost-card.is-profit .qb-cost-card__value { color: var(--qb-green); }
.qb-cost-card.is-loss .qb-cost-card__value { color: var(--qb-red); }
.qb-cost-card.is-final { border-color: #bfdbfe; background: #eff6ff; }
.qb-cost-card.is-final .qb-cost-card__value { color: var(--qb-blue-dark); }

.qb-cost-table-wrap {
  background: #fff;
  border: 1px solid var(--qb-border);
  border-radius: 12px;
  overflow-x: auto;
}

.qb-cost-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.qb-cost-table thead th {
  background: var(--qb-navy);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.qb-cost-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.qb-cost-table tbody tr:nth-child(even) { background: #f8fafc; }
.qb-cost-table .num { text-align: right; white-space: nowrap; }
.qb-cost-table .muted { color: var(--qb-muted); }
.qb-cost-table .strong { font-weight: 700; }
.qb-cost-table .pos { color: var(--qb-green); font-weight: 700; }
.qb-cost-table .neg { color: var(--qb-red); font-weight: 700; }
.qb-cost-table tr.qb-cost-adjust td { background: #fffbeb; }

.qb-cost-table tfoot td {
  background: #e2e8f0;
  font-weight: 800;
  padding: 0.75rem 0.85rem;
  border-bottom: none;
}

.qb-cost-empty { text-align: center; color: var(--qb-muted); padding: 1.5rem !important; }

.qb-cost-item { display: flex; align-items: center; gap: 0.6rem; }

.qb-cost-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e8f1ff;
  color: var(--qb-blue);
}

.qb-cost-item__icon--hotel { background: #e0f2fe; color: #0369a1; }
.qb-cost-item__icon--activity { background: #fff7ed; color: var(--qb-orange); }
.qb-cost-item__icon--transfer { background: #f0fdfa; color: var(--qb-teal); }
.qb-cost-item__icon--meal { background: #fdf2f8; color: #be185d; }
.qb-cost-item__icon--flight { background: #eef2ff; color: #4338ca; }
.qb-cost-item__icon--markup { background: #dcfce7; color: var(--qb-green); }
.qb-cost-item__icon--discount { background: #fee2e2; color: var(--qb-red); }
.qb-cost-item__icon--tax { background: #f1f5f9; color: #475569; }

.qb-cost-item__title { font-weight: 700; color: var(--qb-text); }
.qb-cost-item__sub { font-size: 0.74rem; color: var(--qb-muted); }

@media (max-width: 768px) {
  .qb-cost-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.qb-svc-cost {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--qb-muted);
  white-space: nowrap;
}

.qb-find-img {
  gap: 0.35rem;
  font-family: inherit;
  line-height: 1.4;
}

.qb-find-img:disabled {
  opacity: 0.65;
  cursor: progress;
}

.qb-quick-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qb-quick-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.qb-quick-row > strong {
  align-self: center;
  font-size: 0.85rem;
  color: var(--qb-text);
}

.qb-quick-row > strong i {
  margin-right: 0.35rem;
  color: #0f766e;
}

.qb-quick-note {
  font-size: 0.75rem;
  align-self: center;
}

@media (max-width: 768px) {
  .qb-quick-row { grid-template-columns: 1fr; }
}

.qb-day-plan {
  margin: 0.9rem 0;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f766e;
  border-radius: 10px;
}

.qb-day-plan textarea {
  resize: vertical;
}

.qb-day-title {
  font-size: 0.85rem;
  color: var(--qb-text);
}
