:root {
  --clara-brand: #4f46e5;
  --clara-dark: #0b1630;
  --clara-sidebar-text: #d7e6ff;
  --clara-sidebar-text-strong: #ffffff;
  --clara-sidebar-hover: rgba(215, 230, 255, 0.12);
  --clara-sidebar-active: linear-gradient(90deg, rgba(79, 70, 229, 0.95), rgba(13, 110, 253, 0.68));
}

.app-wrapper {
  min-height: 110vh;
}

.app-sidebar.clara-sidebar {
  background-color: var(--clara-dark) !important;
  min-height: 100vh;
}

.clara-tools-brand {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(215, 230, 255, 0.2);
}

.clara-tools-brand .brand-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clara-tools-brand-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.clara-sidebar .nav-header {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.clara-sidebar .nav-link {
  color: var(--clara-sidebar-text);
  border-radius: 0.5rem;
}

.clara-sidebar .nav-link .nav-icon,
.clara-sidebar .nav-link p {
  color: inherit;
}

.clara-sidebar .nav-link:hover {
  color: var(--clara-sidebar-text-strong);
  background-color: var(--clara-sidebar-hover);
}

.clara-sidebar .nav-link.active {
  color: var(--clara-sidebar-text-strong);
  background: var(--clara-sidebar-active);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(0, 0, 0, 0.18);
  font-weight: 600;
}

.app-header .navbar-nav .nav-link {
  cursor: pointer;
}

#tool-content .card {
  border-radius: 0.75rem;
}

.clara-reading-content p:not(.lead),
.clara-reading-content .accordion-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.info-box .info-box-number {
  font-size: 0.9rem;
}


.clara-nav-disabled {
  opacity: 0.75;
  pointer-events: none;
}

.clara-nav-disabled .badge {
  font-size: 0.65rem;
  vertical-align: middle;
}


.clara-tool-module .clara-soft-card {
  border: 1px solid rgba(79, 70, 229, 0.12);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(13, 110, 253, 0.04));
}

.clara-product-catalog-pricing .metric-box {
  border: 1px solid #cfd5e2;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f3f5fb;
}

.clara-product-catalog-pricing .metric-box h4 {
  margin: 0 0 0.35rem;
  color: #198754;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
}


.clara-product-catalog-pricing .product-pricing-step-card {
  background: linear-gradient(180deg, #ffffff, #f8fafe);
}

.clara-product-catalog-pricing .product-pricing-step-card .card-body {
  padding: 1rem;
}

.clara-product-catalog-pricing .product-pricing-step-card h3 {
  margin-bottom: 0.5rem;
}

.clara-product-catalog-pricing .product-pricing-step-card p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.clara-product-catalog-pricing .product-pricing-step-card .bi {
  font-size: 1.2rem;
}


.clara-product-catalog-pricing .suggested-price-card .card-body,
.clara-business-profit .suggested-price-card .card-body {
  background: linear-gradient(180deg, #ffffff, rgba(25, 135, 84, 0.06));
}

.clara-product-catalog-pricing .suggested-price-value,
.clara-business-profit .suggested-price-value {
  color: #198754;
  font-weight: 800;
  font-size: clamp(2.15rem, 4vw, 3rem);
  line-height: 1.05;
}

.clara-product-catalog-pricing .inputs-table input,
.clara-product-catalog-pricing .inputs-table select {
  min-width: 90px;
}

.clara-product-catalog-pricing .inputs-table td,
.clara-product-catalog-pricing .inputs-table th,
.clara-product-catalog-pricing #productsSummaryTable td,
.clara-product-catalog-pricing #productsSummaryTable th {
  vertical-align: middle;
}

.clara-product-catalog-pricing .inputs-table > :not(caption) > * > * {
  border-bottom: 0 !important;
}

.clara-product-catalog-pricing .input-remove-btn {
  color: #dc3545;
}

.clara-product-catalog-pricing .clara-help-btn {
  border: 0;
  background: transparent;
  color: #6c757d;
  padding: 0;
  margin-left: 0.25rem;
  line-height: 1;
}

.clara-product-catalog-pricing .clara-help-btn:hover {
  color: #0d6efd;
}

.clara-product-catalog-pricing #productTabs .nav-link.active {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: inset 0 -2px 0 var(--bs-primary);
  font-weight: 600;
}

.clara-product-catalog-pricing #productTabs .nav-link {
  color: #495057;
  white-space: nowrap;
}

.clara-product-catalog-pricing #productTabs .nav-link:not(.active) {
  background-color: #f8f9fa;
  border-color: #e9ecef #e9ecef transparent;
}

.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_filter {
  text-align: end;
  margin-bottom: 0.5rem;
}

.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_length,
.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_info {
  padding-top: 0.5rem;
}

.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_paginate {
  padding-top: 0.25rem;
  text-align: end;
}

.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_filter input,
.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_length select {
  min-height: calc(1.5em + 0.5rem + 2px);
}

.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_length label,
.clara-product-catalog-pricing #productsSummaryTable_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .clara-product-catalog-pricing .product-actions,
  .clara-product-catalog-pricing .history-export-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.clara-suggested-price-discount #resultOriginal {
  line-height: 1;
}

.clara-suggested-price-discount .clara-discount-offer-card {
  border-top-width: 0.25rem;
}

.clara-suggested-price-discount .clara-discount-offer-preview {
  min-height: 18rem;
  padding: 4rem 1.25rem;
}

.clara-suggested-price-discount .clara-discount-promo-line {
  color: var(--bs-emphasis-color);
}

@media (max-width: 575.98px) {
  .clara-suggested-price-discount .clara-discount-offer-preview {
    min-height: 14rem;
    padding: 2.5rem 1rem;
  }
}

.clara-suggested-price-discount #historyDataTable td,
.clara-suggested-price-discount #historyDataTable th {
  vertical-align: middle;
}

.clara-suggested-price-discount .delete-history-row {
  color: #dc3545;
}

@media (max-width: 575.98px) {
  .clara-suggested-price-discount .history-export-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0 !important;
  }
}

.clara-business-profit .metric-box {
  border: 1px solid #cfd5e2;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f3f5fb;
}

.clara-business-profit .metric-box h4 {
  margin: 0 0 0.35rem;
  color: #198754;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.clara-business-profit #kpiCards .info-box {
  min-height: 92px;
}

.clara-business-profit #kpiCards .info-box-number {
  font-size: 1.15rem;
}

.clara-business-profit .inputs-table input,
.clara-business-profit .inputs-table select {
  min-width: 90px;
}

.clara-business-profit #fixedCostsTable input {
  min-width: 120px;
}

.clara-business-profit .inputs-table td,
.clara-business-profit .inputs-table th,
.clara-business-profit #productsSummaryTable td,
.clara-business-profit #productsSummaryTable th {
  vertical-align: middle;
}

.clara-business-profit .inputs-table > :not(caption) > * > * {
  border-bottom: 0 !important;
}

.clara-business-profit .input-remove-btn {
  color: #dc3545;
}

.clara-business-profit .clara-help-btn {
  border: 0;
  background: transparent;
  color: #6c757d;
  padding: 0;
  margin-left: 0.25rem;
  line-height: 1;
}

.clara-business-profit .clara-help-btn:hover {
  color: #0d6efd;
}

.clara-business-profit #productTabs .nav-link.active {
  color: #fff;
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  box-shadow: inset 0 -2px 0 var(--bs-primary);
  font-weight: 600;
}

.clara-business-profit #productTabs .nav-link {
  color: #495057;
  white-space: nowrap;
}

.clara-business-profit #productTabs .nav-link:not(.active) {
  background-color: #f8f9fa;
  border-color: #e9ecef #e9ecef transparent;
}

.clara-business-profit #productsSummaryTable_wrapper .dataTables_filter {
  text-align: end;
  margin-bottom: 0.5rem;
}

.clara-business-profit #productsSummaryTable_wrapper .dataTables_length,
.clara-business-profit #productsSummaryTable_wrapper .dataTables_info {
  padding-top: 0.5rem;
}

.clara-business-profit #productsSummaryTable_wrapper .dataTables_paginate {
  padding-top: 0.25rem;
  text-align: end;
}

.clara-business-profit #productsSummaryTable_wrapper .dataTables_filter input,
.clara-business-profit #productsSummaryTable_wrapper .dataTables_length select {
  min-height: calc(1.5em + 0.5rem + 2px);
}

.clara-business-profit #productsSummaryTable_wrapper .dataTables_length label,
.clara-business-profit #productsSummaryTable_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .clara-business-profit .product-actions,
  .clara-business-profit .history-export-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

html {
  scroll-behavior: smooth;
}

.clara-sidebar [data-business-profit-menu] .nav-treeview .nav-link {
  font-size: 0.93rem;
  padding-left: 1rem;
}

.clara-sidebar [data-business-profit-menu] .nav-treeview .nav-icon {
  font-size: 0.55rem;
}

.clara-business-profit .business-section {
  scroll-margin-top: 1.25rem;
}

.clara-business-profit .business-step-card {
  background: linear-gradient(180deg, #ffffff, #f8fafe);
}

.clara-business-profit .business-step-icon {
  align-items: center;
  border-radius: 0.9rem;
  display: inline-flex;
  font-size: 1.35rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.clara-business-profit .business-chart-wrap {
  min-height: 300px;
  position: relative;
}

.clara-business-profit .business-chart-wrap canvas {
  max-height: 320px;
}

.clara-tools-dashboard .card {
  border-radius: 0.75rem;
}

.clara-dashboard-welcome-icon,
.clara-dashboard-tool-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  flex: 0 0 auto;
}

.clara-dashboard-welcome-icon {
  border-radius: 0.75rem;
  font-size: 1.35rem;
  height: 3rem;
  width: 3rem;
}


.clara-dashboard-category + .clara-dashboard-category {
  padding-top: 0.25rem;
}

.clara-dashboard-tool-card {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.85rem;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.clara-dashboard-tool-card::before {
  background-color: var(--clara-tool-accent, var(--bs-primary));
  content: "";
  height: 0.25rem;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.clara-dashboard-tool-card .card-body {
  padding: 1rem;
  padding-top: 1.15rem;
}

.clara-dashboard-tool-card p {
  line-height: 1.35;
}

.clara-dashboard-tool-card .btn-link {
  font-weight: 700;
  text-decoration: none;
}

.clara-dashboard-category a:hover .clara-dashboard-tool-card,
.clara-dashboard-category a:focus .clara-dashboard-tool-card {
  border-color: var(--clara-tool-accent, var(--bs-primary));
  box-shadow: 0 0.5rem 1.25rem rgba(11, 22, 48, 0.08) !important;
  transform: translateY(-2px);
}

.clara-dashboard-category a:hover .clara-dashboard-tool-card .btn-link,
.clara-dashboard-category a:focus .clara-dashboard-tool-card .btn-link {
  text-decoration: underline;
}

.clara-accent-primary {
  --clara-tool-accent: var(--bs-primary);
}

.clara-accent-success {
  --clara-tool-accent: var(--bs-success);
}

.clara-accent-warning {
  --clara-tool-accent: var(--bs-warning);
}

.clara-accent-info {
  --clara-tool-accent: var(--bs-info);
}

.clara-accent-danger {
  --clara-tool-accent: var(--bs-danger);
}

.clara-dashboard-section-card .card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.clara-dashboard-tool-list {
  display: grid;
  gap: 0.85rem;
}

.clara-dashboard-tool-row {
  align-items: center;
  background: var(--bs-body-bg);
  border: 1px solid rgba(108, 117, 125, 0.18);
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clara-dashboard-tool-row:hover {
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 0.5rem 1.25rem rgba(11, 22, 48, 0.06);
}

.clara-dashboard-tool-icon {
  border-radius: 0.65rem;
  font-size: 1.15rem;
  height: 2.5rem;
  width: 2.5rem;
}

.clara-dashboard-open-btn {
  white-space: nowrap;
}

.clara-dashboard-sublinks .btn {
  border-radius: 999px;
}

@media (max-width: 575.98px) {
  .clara-dashboard-category-heading {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .clara-dashboard-tool-card .card-body {
    padding: 0.9rem;
    padding-top: 1.05rem;
  }

  .clara-dashboard-tool-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .clara-dashboard-open-btn {
    width: 100%;
  }
}


.clara-business-profit .business-break-even-product-chart {
  min-height: 340px;
  overflow: visible;
}

.clara-business-profit .business-kpi-review-link {
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.25rem 0.6rem;
}

.clara-business-profit .business-donut-chart {
  min-height: 300px;
  overflow: visible;
}

.clara-business-profit .business-cost-indicator {
  border-radius: 999px;
  display: inline-block;
  height: 0.65rem;
  margin-right: 0.5rem;
  width: 0.65rem;
}

.clara-business-profit .business-cost-indicator.bg-pink {
  background-color: #d63384;
}

.clara-business-profit .text-pink {
  color: #d63384;
}

@media (max-width: 575.98px) {
  .clara-business-profit .business-break-even-product-chart {
    min-height: 360px;
  }

  .clara-business-profit .business-kpi-review-link {
    width: fit-content;
  }

  .clara-business-profit .business-donut-chart {
    min-height: 280px;
  }

  .clara-business-profit #cost-breakdown-list .nav-link {
    align-items: flex-start;
    display: flex;
    gap: 0.25rem;
  }

  .clara-business-profit #cost-breakdown-list .float-end {
    margin-left: auto;
    text-align: right;
  }
}

.clara-sales-tax-calculator .sales-tax-step-card,
.clara-payment-fee-calculator .sales-tax-step-card {
  background: linear-gradient(180deg, #ffffff, #f8fafe);
}

.clara-sales-tax-calculator .sales-tax-step-card .card-body,
.clara-sales-tax-calculator .sales-tax-result-card,
.clara-payment-fee-calculator .sales-tax-step-card .card-body,
.clara-payment-fee-calculator .sales-tax-result-card {
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.clara-sales-tax-calculator .sales-tax-result-card,
.clara-payment-fee-calculator .sales-tax-result-card {
  min-height: 7.5rem;
}

.clara-sales-tax-calculator .sales-tax-total-card,
.clara-payment-fee-calculator .sales-tax-total-card {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.14), rgba(13, 110, 253, 0.08));
  color: var(--bs-emphasis-color);
}

.clara-payment-fee-calculator .payment-fee-primary-result {
  min-height: 9rem;
}

.clara-sales-tax-calculator .sales-tax-formula-box {
  border: 1px dashed rgba(79, 70, 229, 0.35);
  background: rgba(79, 70, 229, 0.06);
}

@media (max-width: 575.98px) {
  .clara-sales-tax-calculator .sales-tax-result-card .h3,
  .clara-payment-fee-calculator .sales-tax-result-card .h3 {
    font-size: 1.5rem;
  }

  .clara-payment-fee-calculator .payment-fee-primary-result .display-6 {
    font-size: 2rem;
  }
}

.clara-tools-footer {
  background: linear-gradient(180deg, #ffffff, #f8fafe);
  border-top: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: 0 -12px 28px rgba(11, 22, 48, 0.04);
  color: #334155;
  padding: 0;
}

.clara-tools-footer__inner {
  padding: 2rem 1.25rem 1.25rem;
}

.clara-tools-footer__brand {
  display: inline-flex;
  margin-bottom: 1rem;
}

.clara-tools-footer__logo {
  display: block;
  height: auto;
  max-width: 148px;
}

.clara-tools-footer__title {
  color: var(--clara-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.clara-tools-footer__text,
.clara-tools-footer__disclaimer {
  color: #475569;
  line-height: 1.65;
}

.clara-tools-footer__links {
  display: grid;
  gap: 0.45rem;
}

.clara-tools-footer__links a {
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.clara-tools-footer__links a:hover,
.clara-tools-footer__links a:focus {
  color: #4338ca;
  font-weight: 600;
  text-decoration: none;
}

.clara-tools-footer__bottom {
  border-top: 1px solid rgba(79, 70, 229, 0.14);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.clara-tools-footer__copyright {
  color: var(--clara-dark);
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .clara-tools-footer__inner {
    padding: 1.5rem 1rem 1rem;
  }
}
