﻿:root {
  --crm-sidebar-accent: #162de4;
  --crm-surface: #f8fafc;
  --quote-brand-blue: #162de4;
  --quote-brand-navy: #030a39;
  --quote-brand-gray: #52525c;
}

.sidebar-menu-group-title {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 800;
  color: #667085;
  margin-top: 18px;
  margin-bottom: 6px;
}

.sidebar-menu li > a,
.sidebar-submenu li > a {
  font-weight: 500;
}

.sidebar-menu > li > a {
  border-radius: 14px;
}

.sidebar-menu li.active-page > a,
.sidebar-menu li.current > a,
.sidebar-submenu li a.current {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.14), rgba(59, 130, 246, 0.08));
  color: var(--crm-sidebar-accent) !important;
}

.sidebar-menu > li.active-page > a,
.sidebar-menu > li.current > a {
  background: linear-gradient(135deg, #4f7cff, #5c85ff);
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(79, 124, 255, 0.22);
}

.sidebar-menu > li.active-page > a .menu-icon,
.sidebar-menu > li.current > a .menu-icon {
  color: #fff !important;
}

.sidebar-menu li.dropdown > a::after {
  color: #344054;
}

.sidebar-submenu {
  margin-top: 6px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(71, 84, 103, 0.12);
}

.sidebar-submenu li a {
  border-radius: 10px;
  padding-left: 14px !important;
}

.navbar-header .dropdown.d-none.d-sm-inline-block {
  display: none !important;
}

.navbar-search {
  min-width: min(420px, calc(100vw - 180px));
}

.crm-topbar-icon {
  border: 0;
}

.crm-user-menu {
  min-width: 260px;
}

.crm-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-user-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.crm-history-item {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.crm-history-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.quote-document {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quote-preview-stage {
  overflow: auto;
  padding-bottom: 16px;
}

.quote-preview-stage .quote-document {
  min-width: max-content;
}

.quote-page {
  width: 297mm;
  min-height: 210mm;
  margin: 0 auto;
  background: #fff;
  display: grid;
  grid-template-columns: 84mm 1fr;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.quote-page--cover {
  grid-template-columns: 84mm 1fr;
}

.quote-cover-aside,
.quote-page-sidebar {
  background: linear-gradient(180deg, var(--quote-brand-blue) 0%, var(--quote-brand-navy) 100%);
  color: #fff;
  padding: 18mm 14mm 16mm;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.quote-cover-mark,
.quote-mini-brand {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-weight: 800;
  opacity: .9;
  margin-bottom: 16px;
}

.quote-cover-topics {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quote-cover-topics span {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quote-cover-footer {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}

.quote-cover-footer-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
  line-height: 1.2;
}

.quote-sidebar-stack {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 0;
  padding-bottom: 0;
}

.quote-cover-aside .quote-sidebar-stack {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.quote-page-sidebar .quote-sidebar-stack {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.quote-cover-aside .quote-cover-footer {
  width: 100%;
  text-align: center;
}

.quote-page-sidebar .quote-cover-footer {
  width: 100%;
  text-align: center;
}

.quote-sidebar-logo {
  width: 142px;
  max-width: 78%;
  object-fit: contain;
  margin-left: 0;
}

.quote-letter-logo {
  width: 128px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.quote-cover-visual {
  position: relative;
  padding: 18mm 18mm;
  background:
    radial-gradient(circle at top right, rgba(22,45,228,.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.quote-cover-card {
  position: relative;
  z-index: 2;
  max-width: 460px;
  background: #fff;
  border: 1px solid #dbe7ff;
  border-radius: 28px;
  padding: 26px 28px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  margin-left: 0;
  align-self: center;
}

.quote-cover-label {
  display: block;
  font-size: 12px;
  color: var(--quote-brand-blue);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.quote-cover-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  min-height: 100%;
  width: 100%;
}

.quote-cover-logo {
  width: 360px;
  max-width: 46%;
  opacity: 1;
}

.quote-page-main {
  padding: 16mm 16mm 14mm;
}

.quote-letter-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.quote-date-label {
  font-size: 14px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quote-client-box {
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
}

.quote-client-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid #eaecf0;
}

.quote-client-line:last-child {
  border-bottom: 0;
}

.quote-client-line span {
  color: #667085;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.quote-client-line strong {
  color: #101828;
}

.quote-rich-text p,
.quote-rich-paragraphs p {
  color: #344054;
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 16px;
}

.quote-rich-text p:first-child,
.quote-rich-paragraphs p:first-child {
  margin-bottom: 4px;
}

.quote-rich-paragraphs {
  max-width: 880px;
}

.quote-proposal-target {
  margin-bottom: 18px;
}

.quote-proposal-target span {
  display: block;
  font-size: 13px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.quote-proposal-target strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
  color: #101828;
  font-weight: 800;
}

.quote-note-box {
  margin-top: 18px;
  max-width: 720px;
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  padding: 16px 18px;
  background: #f8fafc;
}

.quote-note-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #101828;
}

.quote-mini-bullets {
  margin: 0;
  padding-left: 18px;
  color: #344054;
}

.quote-mini-bullets li + li {
  margin-top: 8px;
}

.quote-section-title {
  background: #000d44;
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 16px;
}

.quote-section-title--benefits {
  font-size: 22px;
  font-weight: 800;
  padding: 16px 20px;
}

.quote-section-title--features {
  font-size: 20px;
  font-weight: 800;
  padding: 15px 20px;
}

.quote-section-title--considerations,
.quote-section-title--investment {
  font-size: 20px;
  font-weight: 800;
  padding: 15px 20px;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9e0ea;
}

.quote-table th,
.quote-table td {
  border: 1px solid #d9e0ea;
  padding: 16px 18px;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.65;
}

.quote-table th {
  width: 30%;
  background: #f8fafc;
  color: #101828;
  font-weight: 800;
}

.quote-table td {
  color: #344054;
}

.quote-table--compact th,
.quote-table--compact td {
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.65;
}

.quote-table--compact th {
  width: 30%;
}

.quote-table--compact .quote-bullets {
  padding-left: 0;
}

.quote-table--compact .quote-bullets li + li {
  margin-top: 12px;
}

.quote-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.quote-panel {
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  padding: 16px;
  background: #f8fafc;
}

.quote-panel--accent {
  background-color: var(--quote-brand-blue);
  background-image: linear-gradient(135deg, var(--quote-brand-blue), var(--quote-brand-navy));
  border-color: var(--quote-brand-blue);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.quote-panel-label {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #667085;
  margin-bottom: 10px;
}

.quote-panel--accent .quote-panel-label {
  color: rgba(255,255,255,.78);
}

.quote-panel strong {
  font-size: 24px;
  line-height: 1.1;
  color: #101828;
}

.quote-panel--accent strong {
  color: #fff;
}

.quote-panel--accent,
.quote-panel--accent * {
  color: #fff;
}

.quote-panel--price {
  min-height: 170px;
  justify-content: center;
}

.quote-panel-meta {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.quote-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.quote-box {
  border: 1px solid #d9e0ea;
  border-radius: 18px;
  padding: 20px 22px;
}

.quote-box h3,
.quote-closing-box h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #101828;
}

.quote-bullets {
  margin: 0;
  padding-left: 0;
  color: #344054;
}

.quote-bullets li + li {
  margin-top: 12px;
}

.quote-bullets--numbered {
  list-style: none;
  padding-left: 0;
  margin-left: 10px;
  counter-reset: quote-step;
}

.quote-bullets--numbered li {
  position: relative;
  padding-left: 44px;
  font-size: 18px;
  line-height: 1.6;
  counter-increment: quote-step;
}

.quote-bullets--numbered li + li {
  margin-top: 14px;
}

.quote-bullets--numbered li::before {
  content: counter(quote-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--quote-brand-blue);
  border: 1px solid var(--quote-brand-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-bullets--checks {
  list-style: none;
  padding-left: 0;
}

.quote-bullets--checks li {
  position: relative;
  padding-left: 40px;
  font-size: 18px;
  line-height: 1.6;
}

.quote-bullets--checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(22, 45, 228, 0.12);
  color: var(--quote-brand-blue);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-page-main--benefits {
  padding-top: 10mm;
}

.quote-page-main--features {
  padding-top: 10mm;
}

.quote-page-main--considerations,
.quote-page-main--investment {
  padding-top: 7mm;
}

.quote-benefit-card {
  border: 1px solid #d9e0ea;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  padding: 22px 24px 18px;
  background: #ffffff;
  max-width: 930px;
}

.quote-seo-story {
  border: 1px solid #d9e0ea;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  padding: 24px 26px 20px;
  background: #ffffff;
  max-width: 930px;
}

.quote-flow-intro {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: #344054;
}

.quote-benefit-label {
  font-size: 14px;
  font-weight: 800;
  color: #344054;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.quote-bullets--benefits {
  padding-left: 0;
  margin: 0;
}

.quote-bullets--benefits li {
  font-size: 19px;
  line-height: 1.55;
  padding-left: 42px;
}

.quote-bullets--benefits li + li {
  margin-top: 14px;
}

.quote-bullets--benefits li::before {
  width: 28px;
  height: 28px;
  font-size: 15px;
  top: 1px;
}

.quote-benefit-highlight {
  margin: 18px 0 0;
  max-width: 980px;
  font-size: 20px;
  line-height: 1.45;
  color: #101828;
}

.quote-table--features th,
.quote-table--features td {
  font-size: 18px;
  line-height: 1.65;
  padding: 18px 20px;
}

.quote-table--features th {
  width: 27%;
}

.quote-table--scope th,
.quote-table--scope td {
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 16px;
  vertical-align: top;
}

.quote-table--scope th {
  width: 26%;
}

.quote-table--considerations th,
.quote-table--considerations td {
  font-size: 18px;
  line-height: 1.68;
  padding: 18px 20px;
}

.quote-table--considerations th {
  width: 27%;
}

.quote-payment-grid--investment {
  gap: 14px;
  margin: 14px 0 12px;
}

.quote-panel--investment-main {
  min-height: 160px;
  padding: 20px 20px;
}

.quote-panel--investment-main strong {
  font-size: 30px;
}

.quote-box--investment {
  padding: 18px 20px 16px;
}

.quote-box--investment h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.quote-box--investment .quote-bullets li {
  font-size: 16px;
  line-height: 1.5;
}

.quote-box--investment .quote-bullets {
  padding-left: 28px;
}

.quote-payment-callout {
  max-width: 100%;
  border: 1px solid rgba(22, 45, 228, 0.18);
  border-radius: 22px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(22, 45, 228, 0.08), rgba(3, 10, 57, 0.03));
}

.quote-payment-callout__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quote-brand-blue);
  margin-bottom: 10px;
}

.quote-payment-callout__list {
  margin: 0;
}

.quote-payment-callout__list li {
  font-size: 16px;
  line-height: 1.5;
}

.quote-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quote-card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 78px;
  padding: 4px 12px;
  border: 1px solid rgba(16, 24, 40, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.quote-card-brand img {
  max-width: 56px;
  max-height: 18px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.45);
  opacity: 0.9;
}

.quote-box--investment-wide {
  max-width: 100%;
}

.quote-investment-note {
  margin: 8px 0 0;
  max-width: 980px;
  font-size: 18px;
  line-height: 1.65;
  color: #101828;
}

.quote-investment-timeline {
  margin: 2px 0 0;
  max-width: 980px;
  font-size: 16px;
  line-height: 1.45;
  color: #101828;
}

.quote-investment-timeline strong {
  color: #101828;
  font-weight: 800;
}

.quote-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.quote-plan-card {
  border-radius: 24px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, rgba(0, 13, 68, 0.90), rgba(22, 45, 228, 0.92));
  color: #fff;
  min-height: 100%;
}

.quote-plan-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
  color: #ffbd59;
  font-weight: 800;
  text-align: center;
}

.quote-bullets--plan {
  padding-left: 20px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.96);
}

.quote-bullets--plan li {
  font-size: 15px;
  line-height: 1.5;
}

.quote-bullets--plan li + li {
  margin-top: 8px;
}

.quote-plan-price {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #ffbd59;
  margin-top: auto;
  text-align: center;
}

.quote-plan-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
  text-align: center;
}

.quote-bullets--checks-green li::before {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.quote-bullets--checks-purple li::before {
  background: rgba(22, 45, 228, 0.12);
  color: var(--quote-brand-blue);
}

.quote-closing-box {
  margin-top: 14px;
  border: 1px solid #d9e0ea;
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
}

.quote-closing-box p {
  margin: 0;
  color: #344054;
  line-height: 1.8;
}

.quote-signature-page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-signature-intro {
  max-width: 620px;
}

.quote-signature-intro h2 {
  font-size: 32px;
  line-height: 1.1;
  color: var(--quote-brand-navy);
  margin-bottom: 18px;
}

.quote-signature-intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #344054;
  margin: 0 0 14px;
}

.quote-signature-intro .quote-bullets {
  margin-top: 0 !important;
}

.quote-signature-block {
  border-top: 2px solid rgba(3, 10, 57, 0.12);
  padding-top: 24px;
  max-width: 460px;
}

.quote-signature-logo {
  width: 150px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
}

.quote-signature-block h3 {
  font-size: 24px;
  color: var(--quote-brand-navy);
  margin-bottom: 8px;
}

@media screen {
  .quote-document {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .quote-preview-stage {
    max-width: 100%;
  }
}

.quote-signature-block p {
  color: var(--quote-brand-gray);
  margin-bottom: 6px;
  font-size: 15px;
}

.quote-signature-block a {
  color: var(--quote-brand-gray);
  text-decoration: none;
}

.quote-signature-block a:hover {
  text-decoration: underline;
}

.quote-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quote-social-links a {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(3, 10, 57, 0.08);
  color: var(--quote-brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.quote-social-links a:hover {
  background: rgba(22, 45, 228, 0.12);
  color: var(--quote-brand-blue);
}

.quote-social-links svg {
  width: 15px;
  height: 15px;
  display: block;
}

.dashboard-main .card,
.dashboard-main-body .card {
  border-radius: 16px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table.bordered-table th {
  white-space: nowrap;
}

.dataTables_wrapper {
  width: 100%;
}

.dataTables_wrapper .dataTables_paginate {
  white-space: normal !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 36px;
  text-align: center;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
}

.auth-left {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.35), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16,185,129,.28), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #1e293b 100%);
}

.auth-right {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 991.98px) {
  .dashboard-main-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .table {
    min-width: 720px;
  }

  .navbar-search {
    min-width: 100%;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: left !important;
    margin-bottom: 10px;
  }
}


@media (max-width: 575.98px) {
  .dashboard-main-body {
    padding-left: 6px;
    padding-right: 6px;
  }

  .navbar-search {
    display: none !important;
  }

  .auth-right {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media print {
  html,
  body,
  .quote-page,
  .quote-cover-aside,
  .quote-page-sidebar,
  .quote-panel--accent {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .quote-cover-aside,
  .quote-page-sidebar {
    background: #000d44 !important;
  }

  .quote-panel--accent {
    background: #000d44 !important;
    color: #fff !important;
    border-color: #000d44 !important;
  }

  .quote-panel--accent strong,
  .quote-panel--accent .quote-panel-meta,
  .quote-panel--accent .quote-panel-label,
  .quote-panel--accent span {
    color: #fff !important;
  }

  .sidebar,
  .navbar-header,
  .d-footer,
  .no-print,
  .sidebar-toggle,
  .sidebar-mobile-toggle {
    display: none !important;
  }

  body,
  .dashboard-main,
  .dashboard-main-body {
    padding: 0 !important;
    margin: 0 !important;
    background: #eef2f7 !important;
  }

  .quote-document {
    gap: 0;
  }

  .quote-page {
    margin: 0 auto;
    box-shadow: none;
    page-break-after: always;
  }
}

