@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  --wt-primary: #0e2a66;
  --wt-primary-dark: #081738;
  --wt-accent: #00a3d7;
  --wt-accent-soft: #e6f7fd;
  --wt-ink: #0f172a;
  --wt-muted: #5f6b83;
  --wt-bg: #edf6ff;
  --wt-card: rgba(255, 255, 255, 0.9);
}

html,
body {
  font-size: 17px;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 163, 215, 0.18), rgba(0, 163, 215, 0) 35%),
    radial-gradient(circle at 90% 100%, rgba(14, 42, 102, 0.18), rgba(14, 42, 102, 0) 36%),
    linear-gradient(180deg, #f9fcff 0%, var(--wt-bg) 100%);
  color: var(--wt-ink);
  min-height: 100vh;
}

.navbar {
  background: linear-gradient(110deg, #0a2458, #0f3c8f 55%, #00a3d7);
  box-shadow: 0 12px 36px rgba(8, 24, 57, 0.28);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.navbar .nav-link {
  border-radius: 999px;
  margin-right: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

h1,
h2,
h3,
h4,
h5 {
  color: #0a2458;
  font-weight: 700;
}

.btn {
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.96rem;
  font-weight: 600;
}

.btn-sm {
  padding: 0.48rem 0.8rem;
  font-size: 0.87rem;
}

.btn-primary {
  background: linear-gradient(120deg, var(--wt-primary), #1753b5 70%, #00a3d7);
  border: none;
  box-shadow: 0 8px 20px rgba(14, 42, 102, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-outline-primary {
  border-color: #2c62c9;
  color: #17408f;
}

.btn-outline-primary:hover {
  background: #edf4ff;
  color: #0f2f71;
}

.card {
  border: 1px solid #d2e2f8;
  background: var(--wt-card);
  backdrop-filter: blur(2px);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(7, 28, 63, 0.1);
}

.section-title {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--wt-primary);
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 11px;
  border: 1px solid #c7d8f2;
  font-size: 0.96rem;
  padding: 0.66rem 0.78rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f336e;
}

.table td,
.table th {
  vertical-align: middle;
  font-size: 0.92rem;
}

.table thead th {
  background: linear-gradient(180deg, #f5f9ff, #edf4ff);
  color: #0f397f;
  border-bottom: 1px solid #d2e2f8;
}

.settings-link {
  display: block;
  padding: 12px 14px;
  margin: 5px 0;
  border-radius: 13px;
  color: #12387d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}

.settings-link:hover {
  background: #ebf4ff;
}

.settings-link.active {
  background: linear-gradient(120deg, var(--wt-primary), #215ec5 68%, #00a3d7);
  color: #fff;
}

.modern-switch .form-check-input {
  width: 3.2rem;
  height: 1.7rem;
  cursor: pointer;
}

.modern-switch .form-check-label {
  font-weight: 600;
  color: var(--wt-primary);
}

.status-pill {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill.on {
  background: #e9f9ef;
  color: #1c7a3e;
}

.status-pill.off {
  background: #fce9e9;
  color: #9d2c2c;
}

.status-card.status-draft {
  background: #fff6cc;
  border-color: #f2d978;
}

.status-card.status-declined {
  background: #fde8e8;
  border-color: #ef9a9a;
}

.status-card.status-sent {
  background: #e9f9ef;
  border-color: #9fd8b0;
}

.status-card.status-signed {
  background: #fff3c4;
  border-color: #e1be4f;
}

.status-card.status-cancel {
  background: var(--wt-card);
}

.status-chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  background: #f1f5f9;
  color: #334155;
}

.status-chip.status-draft {
  background: #fff6cc;
  color: #6b5a00;
}

.status-chip.status-declined {
  background: #fde8e8;
  color: #9b1c1c;
}

.status-chip.status-sent {
  background: #e9f9ef;
  color: #1c7a3e;
}

.status-chip.status-signed {
  background: #fff3c4;
  color: #7a5a00;
}

.status-chip.status-cancel {
  background: #f1f5f9;
  color: #334155;
}

.quote-row-signed td {
  background: #fff9e5;
}

.alert {
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--wt-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 163, 215, 0.2);
}

/* Quote page spacing and control sizing pass */
.quote-workspace {
  max-width: 1320px;
  margin: 0 auto;
}

.quote-workspace .card {
  border-radius: 20px;
}

.quote-workspace .section-title {
  font-size: 1.18rem;
  margin-bottom: 0.95rem;
}

.quote-workspace .row.g-3 {
  --bs-gutter-y: 1.15rem;
}

.quote-workspace .table {
  min-width: 920px;
}

.quote-workspace .table thead th {
  font-size: 0.9rem;
  padding: 0.74rem 0.6rem;
}

.quote-workspace .table td {
  padding: 0.72rem 0.6rem;
}

.quote-workspace .form-control,
.quote-workspace .form-select {
  min-height: 44px;
  font-size: 0.95rem;
}

.quote-workspace .form-control.form-control-sm,
.quote-workspace .form-select.form-select-sm {
  min-height: 40px;
  font-size: 0.9rem;
}

.quote-workspace .qty-input {
  width: 78px;
  min-width: 78px;
}

.quote-workspace .qty-input-sm {
  width: 64px;
  min-width: 64px;
}

.quote-workspace textarea.form-control {
  min-height: 92px;
}

.quote-workspace .btn {
  min-height: 44px;
}

.quote-workspace .btn.btn-sm {
  min-height: 38px;
}

@media (max-width: 992px) {
  .quote-workspace .table {
    min-width: 760px;
  }
}
