:root {
  --quote-navy: #334050;
  --quote-gold: #3f4b5d;
  --tblr-primary: #4299e1;
  --tblr-primary-rgb: 66, 153, 225;
  --tblr-link-color: #293240;
  --tblr-link-hover-color: #202734;
  --tblr-secondary: #4f5b6e;
  --tblr-secondary-rgb: 79, 91, 110;
}

.page-custom {
  background: #f5f7fb;
}
html {
  scroll-behavior: smooth;
}

.app-shell {
  max-width: 1320px;
  margin: 0 auto;
}
.top-mainbar {
  border-bottom: 1px solid #dfe3ea;
  background: #fff;
}
.top-subnav {
  border-bottom: 1px solid #dfe3ea;
  background: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}
.brand-link:hover {
  text-decoration: none;
  color: inherit;
}
.navbar-brand {
  font-size: 21px;
  padding-left: 10px;
}
.user-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 0;
}
.user-initials-badge {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  background: #4299e1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.client-user-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d8deea;
  background: #eef2f7;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.client-user-logo .icon {
  width: 18px;
  height: 18px;
}
.top-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.top-profile-link:hover {
  background: #f4f6fa;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-header-menu {
  display: none;
}
.mobile-header-menu .dropdown-menu {
  width: min(320px, calc(100vw - 24px));
  border-radius: 12px;
  border: 1px solid #dbe1ea;
  box-shadow: 0 10px 26px rgba(29, 39, 56, 0.14);
  text-align: left;
}
.mobile-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px 10px;
}
.mobile-header-profile .user-logo,
.mobile-header-profile .user-initials-badge,
.mobile-header-profile .client-user-logo {
  width: 34px;
  height: 34px;
}
.mobile-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #e5eaf2;
}
.mobile-header-actions .btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}
.mobile-nav-links .btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}
.top-notifications .btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.top-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc3545;
  box-shadow: 0 0 0 2px #fff;
}
.top-bell-dot.top-bell-dot-client {
  right: 18px;
  background: #4299e1;
}
.notification-menu {
  width: min(460px, 90vw);
}
.notification-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #dc3545;
  margin-top: 6px;
}
.notification-dot.is-read {
  background: #9ca3af;
}
.notification-dot.is-client {
  background: #4299e1;
}
.notification-time {
  font-size: 11px;
  margin-top: 2px;
}
.notification-title-link {
  color: inherit;
  text-decoration: none;
}
.notification-title-link:hover,
.notification-title-link:focus {
  color: #2f5f9f;
  text-decoration: underline;
}
.notification-read-btn {
  width: 28px;
  height: 28px;
  border-color: #d4dfe9 !important;
}
.notification-read-btn.is-read {
  opacity: 0.7;
  background: #f8fafc;
}
.top-link {
  color: #4f5b6e;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
}
.top-link.active {
  color: var(--quote-navy);
  border-bottom-color: var(--quote-navy);
}
.top-menu {
  gap: 6px;
  padding: 2px 0;
}
.top-menu .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
  line-height: 1.1;
}
.top-menu .nav-link .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}
.top-menu .nav-link:hover {
  color: #293240;
  background: #f6f8fb;
}
.top-menu .nav-link.active {
  color: #293240;
  border-bottom-color: #293240;
  background: #fff;
}
.top-menu .dropdown-menu {
  margin-top: 0;
  border-radius: 10px;
  border: 1px solid #dbe1ea;
  box-shadow: 0 8px 24px rgba(29, 39, 56, 0.1);
}
.top-menu .dropdown-item {
  padding: 8px 12px;
}
@media (min-width: 992px) {
  .top-menu .dropdown:hover > .dropdown-menu {
    display: block;
  }
}
@media (max-width: 991.98px) {
  .top-mainbar .container-xl.app-shell {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px;
  }
  .brand-link {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
  }
  .brand-logo {
    width: 140px;
    height: auto;
  }
  .top-subnav {
    display: none !important;
  }
  .navbar-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }
  .top-actions > :not(.mobile-header-menu) {
    display: none !important;
  }
  .mobile-header-menu {
    display: block;
  }
}
.card-title {
  font-size: 21px;
  font-weight: 600;
  color: #4299e1;
}
#quoteForm .quote-section-title {
  padding-top: 40px;
  padding-bottom: 10px;
}
.text-secondary.mb-3 {
  color: #111827 !important;
}
.text-secondary.text-uppercase.small {
  color: #111827 !important;
  font-weight: 600 !important;
}
.card-table thead th {
  color: var(--tblr-gray-400) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}
.table-date,
.table-status-date {
  color: var(--tblr-gray-400) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.table-meta {
  color: var(--tblr-gray-400) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.table-amount {
  color: #4299e1 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.card-table .quote-status {
  font-size: 12px;
}
.status-history-table tbody td {
  font-size: 12px;
  padding: 10px 12px !important;
}
.status-history-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}
.status-history-table thead th {
  border-bottom: 0 !important;
}
.status-history-table tbody tr {
  background: #fff;
}
.status-history-table tbody td {
  border-top: 1px solid #e5eaf2 !important;
  border-bottom: 1px solid #e5eaf2 !important;
}
.status-history-table tbody td:first-child {
  border-left: 1px solid #e5eaf2 !important;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.status-history-table tbody td:last-child {
  border-right: 1px solid #e5eaf2 !important;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.status-history-change {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-history-change .quote-status {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status-history-arrow {
  color: var(--tblr-gray-400);
  flex: 0 0 16px;
}
.card-table td {
  vertical-align: middle;
}
.card-table td form {
  margin: 0;
}
.welcome-title {
  padding-bottom: 30px;
}
.dashboard-stat-card .dashboard-stat-body {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  padding: 12px 14px;
}
.dashboard-stat-card-main .dashboard-stat-body {
  min-height: 168px;
}
.dashboard-spark {
  margin-top: auto;
  padding-top: 8px;
}
.dashboard-spark-main {
  padding-top: 10px;
}
.brief-title-wrap {
  margin-bottom: 35px !important;
}
.action-neutral {
  color: #4b5563 !important;
  border-color: #cfd5df !important;
  background: #fff !important;
}
.action-neutral:hover,
.action-neutral:focus {
  color: #111827 !important;
  border-color: #aeb8c8 !important;
  background: #f9fafb !important;
}
.btn.js-toggle-btn.is-open,
.btn.js-collapse-toggle.is-open {
  background: #eef2f7 !important;
  border-color: #aeb8c8 !important;
  color: #293240 !important;
}
.form-control[readonly],
textarea.form-control[readonly] {
  background: #f6f7f9 !important;
  color: #6b7280 !important;
  cursor: not-allowed;
}
.form-control.readonly-soft {
  background: #f6f7f9 !important;
  color: #6b7280 !important;
  cursor: not-allowed;
}
.pin-copy-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 145px;
  max-width: 150px;
  margin: 0;
}
.pin-copy-input {
  width: 78px;
  text-align: center;
  font-weight: 600;
}
.pin-copy-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.contacts-table .pin-cell {
  vertical-align: middle;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.contact-tools-row td {
  background: #f8fafc;
  border-top: 0;
}
.contact-tools-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-tools-pin {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-tools-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.contact-tools-actions .btn {
  width: 48px;
}
.account-pane {
  border: 1px solid var(--tblr-border-color);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.account-pane-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}
.client-quotes-title {
  font-size: 21px !important;
}
.client-quotes-card {
  margin-bottom: 40px !important;
}
.client-details-card {
  margin-top: 0 !important;
  scroll-margin-top: 35px;
}
.client-summary-panel {
  background: #f6f7f9 !important;
  color: #6b7280 !important;
  border: var(--tblr-border-width) solid var(--tblr-border-color);
  border-radius: 12px;
  padding: 14px;
  margin-top: 30px !important;
  margin-bottom: 60px !important;
}
.client-summary-panel .h2,
.client-summary-panel .h3 {
  color: #6b7280 !important;
  font-weight: 700 !important;
}
.client-summary-panel .text-pink-omd,
.client-summary-panel .h3.text-pink-omd {
  color: #d6336c !important;
}
.client-summary-panel .text-uppercase.small.text-pink-omd {
  font-weight: 700 !important;
}
.client-details-card .client-meta-label {
  color: var(--tblr-gray-500) !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  text-transform: none;
  line-height: 1.2;
  margin-bottom: 17px;
}
.client-details-card .client-meta-detail {
  color: var(--tblr-gray-500) !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  line-height: 1.35;
}
.client-summary-panel .client-summary-label {
  color: var(--tblr-gray-500) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  text-transform: none;
  padding-bottom: 0px;
}
.client-summary-panel .text-total-green {
  color: #65a30d !important;
}
.client-quote-preview-box {
  border: 1px solid #d8deea;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.client-quote-preview-frame {
  width: 100%;
  min-height: 860px;
  border: 1px solid #d8deea;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 991.98px) {
  .client-quote-preview-wrap {
    display: none !important;
  }
  .client-quotes-card .card-table {
    min-width: 200%;
  }
}
.text-pink-omd {
  color: #d6336c !important;
}
@media (min-width: 992px) {
  .client-summary-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
  }
}

.quote-status {
  border: 1px solid currentColor;
  background: transparent !important;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}
.quote-status.quote-status-lime {
  color: #65a30d;
}
.quote-status.quote-status-secondary {
  color: #6b7280;
}
.quote-status.quote-status-cyan {
  color: #17a2b8;
}
.quote-status.quote-status-warning {
  color: #f59f00;
}
.quote-status.quote-status-danger {
  color: #d63939;
}
.quote-status .status-dot {
  background: currentColor;
}

.logo-preview {
  max-height: 72px;
  border: 1px solid #d8deea;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-card .card-body {
  background: transparent;
}
.contact-card .card-header {
  background: #f6f7f9;
}
.contact-select.placeholder-like {
  color: #9aa4b2;
}
.contact-select option {
  color: #253146;
}

.compact-table thead th {
  background: var(--quote-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.compact-table tbody td {
  background: #f6f7f9;
  font-size: 12px;
  padding: 0.45rem;
  overflow: visible;
}

.compact-table input,
.compact-table select,
.compact-table textarea {
  font-size: 12px;
  min-height: 34px;
}

.compact-table .form-control,
.compact-table .form-select {
  border-radius: 10px;
}

.drag-handle {
  text-align: center;
  cursor: move;
  user-select: none;
  font-weight: 700;
  color: #516078;
  width: 28px;
  vertical-align: middle;
}

tr.dragging {
  opacity: 0.45;
}

.summary-box {
  max-width: 420px;
  margin-left: auto;
}
.summary-clean {
  max-width: 420px;
  margin-left: auto;
  background: #f6f7f9;
  border-radius: 10px;
  overflow: hidden;
}
.summary-clean .row {
  margin: 0;
  border-top: 1px solid #e0e5ee;
}
.summary-clean .row:first-child {
  border-top: none;
}
.summary-clean .label-col,
.summary-clean .value-col {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  min-height: 56px;
}
.summary-clean .value-col {
  justify-content: flex-start;
  font-weight: 600;
}
.summary-clean .form-control {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  min-height: 0;
  height: auto;
  font-size: 14px;
  font-weight: 600;
  color: #253146;
}
.summary-clean .total-row .label-col,
.summary-clean .total-row .value-col {
  font-weight: 600;
}
.summary-clean .total-row .form-control {
  font-weight: 600;
}
.agency-discount-bar {
  width: 100%;
  background: #f6f7f9;
  border-radius: 10px;
  padding: 12px 14px;
}
.btn-outline-soft {
  background: #e6f0fa;
  border-color: #d4dfe9;
  color: #364351;
}
.btn-outline-soft:hover,
.btn-outline-soft:focus {
  background: #4299e1;
  border-color: #4299e1;
  color: #364351;
}

.top-mainbar .btn-outline-soft,
.top-mainbar .top-notifications .btn-icon {
  background: #fff;
}

.top-mainbar .btn-outline-soft:hover,
.top-mainbar .btn-outline-soft:focus,
.top-mainbar .top-notifications .btn-icon:hover,
.top-mainbar .top-notifications .btn-icon:focus {
  background: #f8fafc;
}
.btn-primary,
.btn-outline-primary {
  background: #e6f0fa;
  border-color: #d4dfe9;
  color: #364351;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #4299e1;
  border-color: #4299e1;
  color: #364351;
}
.omy-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 247, 251, 0.96);
  transition: opacity 0.35s ease;
}
.omy-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.omy-loader__inner {
  text-align: center;
}
.omy-loader__logo {
  width: min(260px, 70vw);
  height: 64px;
  border-radius: 0;
  object-fit: contain;
  animation: omyPulse 1s ease-in-out infinite;
}
.omy-loader__text {
  margin-top: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
}
@keyframes omyPulse {
  0% { transform: scale(0.96); opacity: .8; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.96); opacity: .8; }
}
.ajax-suggest {
  position: fixed;
  z-index: 10000;
  background: #fff;
  border: 1px solid #c9d3e3;
  border-radius: 10px;
  box-shadow: 0 20px 36px rgba(29, 39, 56, 0.18);
  max-height: 260px;
  overflow-y: auto;
}
.ajax-suggest-head {
  position: sticky;
  top: 0;
  background: #f6f7f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border-bottom: 1px solid #e3e8f1;
}
.ajax-suggest-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  font-size: 12px;
  color: #253146;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ajax-suggest-item:hover,
.ajax-suggest-item.is-active {
  background: #eaf0f9;
}
.suggest-main {
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
}
.suggest-meta {
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
}
.ajax-suggest-empty {
  padding: 10px;
  font-size: 12px;
  color: #6b7280;
}
.table-responsive.suggest-table {
  overflow-x: auto;
  overflow-y: visible;
}

@media (max-width: 992px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .settings-top-row > .col-lg-7,
  .settings-top-row > .col-lg-5 {
    display: flex;
  }
  .settings-top-row > .col-lg-7 > .card,
  .settings-top-row > .col-lg-5 > .card {
    width: 100%;
  }
  .settings-menu-card {
    position: sticky;
    top: 88px;
  }
}
.settings-side-nav .nav-link {
  border-radius: 10px;
  color: #334155;
  font-weight: 600;
  padding: 14px 20px;
}
.settings-side-nav .nav-link.active,
.settings-side-nav .nav-link:hover {
  background: #eef2f8;
  color: #1f2d42;
}
.app-footer {
  border-top: 1px solid #dfe3ea;
  margin-top: 18px;
  padding: 14px 0;
  color: #6b7280;
  font-size: 13px;
}

.app-toast-container {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2100;
  width: min(420px, calc(100vw - 20px));
}
.app-toast {
  border: 1px solid #dbe3ef;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.14);
  border-radius: 12px;
}
.app-toast .toast-header {
  border-bottom-color: #e5eaf2;
}
.app-toast.is-danger {
  border-color: #f1d2d2;
}

.confirm-danger-modal .modal-dialog {
  max-width: 350px;
}
.confirm-danger-modal .modal-content {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5eaf2;
}
.confirm-danger-modal .modal-status {
  height: 4px;
  background: #d63939;
}
.confirm-danger-modal .modal-body {
  padding: 22px 24px 18px;
  text-align: center;
}
.confirm-danger-modal .modal-danger-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  color: #d63939;
}
.confirm-danger-modal .modal-danger-icon .icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.8;
}
.confirm-danger-modal .modal-title {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}
.confirm-danger-modal .modal-message {
  margin: 0 auto;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.4;
  color: #6b7280;
}
.confirm-danger-modal .modal-footer {
  border-top: 1px solid #e5eaf2;
  padding: 12px 16px 14px;
}
.confirm-danger-modal .modal-footer .btn {
  min-height: 42px;
  font-size: 16px;
}
.confirm-danger-modal .btn-close-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.auth-page .container-tight {
  max-width: 980px;
}
.auth-card {
  overflow: hidden;
}
.auth-form-pane {
  padding: 2rem;
}
.auth-logo {
  width: min(280px, 72vw);
  height: 60px;
  border-radius: 0;
  object-fit: contain;
}
.auth-illustration-pane {
  background: #f6f7f9;
  min-height: 460px;
  padding: 2rem;
}
.auth-illustration {
  width: 100%;
  max-width: 320px;
  height: auto;
}
