.contract-wizard-shell {
  background:
    radial-gradient(circle at 6% 4%, rgba(13, 110, 253, 0.11), transparent 25rem),
    radial-gradient(circle at 96% 12%, rgba(25, 135, 84, 0.11), transparent 26rem),
    #f3f6fa;
  border-radius: 28px;
  margin: -0.25rem;
  min-height: calc(100vh - 7rem);
  padding: clamp(1rem, 2vw, 2rem);
}

.contract-wizard-hero {
  align-items: center;
  background: linear-gradient(135deg, #0c4fb9 0%, #0d6efd 52%, #178b83 130%);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(13, 79, 185, 0.2);
  color: #fff;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  overflow: hidden;
  padding: 1.45rem 1.65rem;
  position: relative;
}

.contract-wizard-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  height: 18rem;
  position: absolute;
  right: -5rem;
  top: -10rem;
  width: 18rem;
}

.contract-wizard-hero > * { position: relative; z-index: 1; }
.contract-wizard-eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; opacity: 0.85; text-transform: uppercase; }
.contract-wizard-hero h1 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); font-weight: 800; margin: 0.3rem 0; }
.contract-wizard-hero p { margin: 0; max-width: 740px; opacity: 0.86; }
.contract-wizard-hero__actions { display: flex; flex-shrink: 0; gap: 0.65rem; }
.contract-wizard-hero__actions .btn { background: rgba(255, 255, 255, 0.94); border-color: rgba(255, 255, 255, 0.7); color: #1e293b; font-weight: 700; }

.contract-wizard-alert { border: 0; border-radius: 18px; box-shadow: 0 12px 30px rgba(220, 53, 69, 0.1); }
.contract-wizard-layout { align-items: flex-start; display: grid; gap: 1.25rem; grid-template-columns: 285px minmax(0, 1fr); }

.contract-wizard-sidebar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  position: sticky;
  top: 6.5rem;
}

.contract-wizard-step-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: #667085;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  padding: 0.8rem;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.contract-wizard-step-link:not(:disabled):hover { background: #f1f5f9; transform: translateX(2px); }
.contract-wizard-step-link:disabled { cursor: not-allowed; opacity: 0.55; }
.contract-wizard-step-link__number { align-items: center; background: #eef2f7; border-radius: 12px; display: flex; height: 42px; justify-content: center; width: 42px; }
.contract-wizard-step-link strong { color: #344054; display: block; font-size: 0.9rem; }
.contract-wizard-step-link small { display: block; font-size: 0.73rem; line-height: 1.35; margin-top: 0.15rem; }
.contract-wizard-step-link__check { color: #198754; display: none; }
.contract-wizard-step-link.is-active { background: linear-gradient(135deg, rgba(13, 110, 253, 0.11), rgba(13, 110, 253, 0.04)); color: #0d6efd; }
.contract-wizard-step-link.is-active strong { color: #0a58ca; }
.contract-wizard-step-link.is-active .contract-wizard-step-link__number { background: #0d6efd; color: #fff; box-shadow: 0 7px 16px rgba(13, 110, 253, 0.22); }
.contract-wizard-step-link.is-complete .contract-wizard-step-link__number { background: #e8f6ee; color: #198754; }
.contract-wizard-step-link.is-complete .contract-wizard-step-link__check { display: inline-block; }

.contract-wizard-card { background: #fff; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08); min-width: 0; overflow: hidden; }
.contract-wizard-panel { min-height: 520px; padding: clamp(1.25rem, 2.5vw, 2.25rem); }
.contract-wizard-panel__header { align-items: center; border-bottom: 1px solid #e9eef5; display: flex; gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; }
.contract-wizard-panel__header > span { align-items: center; background: linear-gradient(135deg, #0d6efd, #0a58ca); border-radius: 14px; box-shadow: 0 9px 20px rgba(13, 110, 253, 0.2); color: #fff; display: flex; flex: 0 0 48px; font-size: 1.15rem; font-weight: 800; height: 48px; justify-content: center; }
.contract-wizard-panel__header h2 { color: #172033; font-size: 1.25rem; font-weight: 800; margin: 0 0 0.2rem; }
.contract-wizard-panel__header p { color: #667085; margin: 0; }
.contract-wizard-label { color: #344054; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.45rem; }
.contract-wizard-label span, .contract-wizard-required { color: #dc3545; margin-left: 0.15rem; }
.contract-wizard-form .form-control, .contract-wizard-form .form-select, .contract-wizard-form .input-group-text { border-color: #d7deea; min-height: 46px; }
.contract-wizard-form .form-control:focus, .contract-wizard-form .form-select:focus { border-color: #7fb0fa; box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.11); }
.contract-wizard-input-group .input-group-text { background: #f8fafc; color: #64748b; min-width: 46px; justify-content: center; }
.contract-wizard-readonly { background: #f1f5f9 !important; color: #475569; }

.contract-wizard-choice-card { align-items: center; border: 1px solid #d7deea; border-radius: 16px; cursor: pointer; display: grid; gap: 0.85rem; grid-template-columns: auto 46px 1fr; height: 100%; padding: 1rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
.contract-wizard-choice-card:hover { border-color: #86b7fe; box-shadow: 0 8px 22px rgba(13, 110, 253, 0.08); }
.contract-wizard-choice-card.is-disabled { background: #f5f6f8; cursor: not-allowed; opacity: 0.72; }
.contract-wizard-choice-card.is-disabled:hover { border-color: #d7deea; box-shadow: none; }
.contract-wizard-choice-card__icon { align-items: center; background: #edf4ff; border-radius: 12px; color: #0d6efd; display: flex; height: 46px; justify-content: center; width: 46px; }
.contract-wizard-choice-card strong, .contract-wizard-choice-card small { display: block; }
.contract-wizard-choice-card strong { color: #24324a; }
.contract-wizard-choice-card small { color: #667085; font-size: 0.78rem; margin-top: 0.18rem; }

.contract-wizard-extras-toolbar { align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; display: flex; justify-content: space-between; margin-bottom: 1rem; padding: 0.8rem 1rem; }
.contract-wizard-extras { counter-reset: extra-row; display: flex; flex-direction: column; gap: 1rem; }
.contract-wizard-extra-row {
  --extra-accent: #2f80ed;
  --extra-bg: #eef6ff;
  --extra-border: #bddcff;
  background:
    linear-gradient(135deg, var(--extra-bg) 0%, rgba(255, 255, 255, 0.94) 68%),
    #fff;
  border: 1px solid var(--extra-border);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  counter-increment: extra-row;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.contract-wizard-extra-row:nth-child(4n + 2) { --extra-accent: #10b981; --extra-bg: #eefcf6; --extra-border: #bcebd4; }
.contract-wizard-extra-row:nth-child(4n + 3) { --extra-accent: #8b5cf6; --extra-bg: #f6f0ff; --extra-border: #d8ccff; }
.contract-wizard-extra-row:nth-child(4n + 4) { --extra-accent: #f59e0b; --extra-bg: #fff7ed; --extra-border: #fed7aa; }
.contract-wizard-extra-row::before {
  background: var(--extra-accent);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}
.contract-wizard-extra-row:focus-within {
  border-color: var(--extra-accent);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.11);
  transform: translateY(-1px);
}
.contract-wizard-extra-row__header {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: -0.15rem -0.15rem 1rem;
  padding: 0.72rem 0.8rem;
}
.contract-wizard-extra-row__title { align-items: center; display: flex; gap: 0.55rem; }
.contract-wizard-extra-row__title strong::after { color: #667085; content: " #" counter(extra-row); font-size: 0.82rem; font-weight: 800; margin-left: 0.25rem; }
.contract-wizard-extra-row__handle {
  align-items: center;
  background: color-mix(in srgb, var(--extra-accent) 12%, #fff);
  border-radius: 9px;
  color: var(--extra-accent);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.contract-wizard-extra-row .form-label { color: #536179; font-size: 0.75rem; font-weight: 800; margin-bottom: 0.3rem; }
.contract-wizard-extra-row .form-control,
.contract-wizard-extra-row .form-select,
.contract-wizard-extra-row .input-group-text {
  background-color: rgba(255, 255, 255, 0.96);
}
.contract-wizard-extra-row__totals {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
  padding: 0.55rem 0.8rem;
}
.contract-wizard-extra-row__totals span { color: #667085; font-size: 0.78rem; }
.contract-wizard-extra-row__totals strong { color: #26354d; margin-left: 0.25rem; }

.contract-wizard-review { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contract-wizard-review-card { background: linear-gradient(145deg, #fbfcfe, #f5f8fc); border: 1px solid #e2e8f0; border-radius: 16px; min-width: 0; padding: 1rem; }
.contract-wizard-review-card span { color: #667085; display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.45rem; text-transform: uppercase; }
.contract-wizard-review-card span i { color: #0d6efd; margin-right: 0.5rem; width: 1rem; }
.contract-wizard-review-card strong { color: #202b3c; display: block; overflow-wrap: anywhere; }
.contract-wizard-review-page {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: #f6f8fc;
  overflow: hidden;
}
.contract-wizard-review-page__toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #dbe5f2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  position: sticky;
  top: 0;
  z-index: 2;
}
.contract-wizard-review-page__eyebrow {
  color: #0d6efd;
  display: block;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
}
.contract-wizard-review-page__toolbar h3 {
  color: #172033;
  font-size: 1.05rem;
  font-weight: 850;
  margin: 0;
}
.contract-wizard-review-page__pdf {
  flex: 0 0 auto;
  font-weight: 800;
}
.contract-wizard-preview-sheet {
  max-height: min(72vh, 860px);
  overflow-y: auto;
  padding: 1.1rem;
  scrollbar-color: #b7c5d8 #edf2f8;
  scrollbar-width: thin;
}
.contract-wizard-preview-hero {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(20, 184, 166, 0.08)),
    #fff;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
}
.contract-wizard-preview-hero span,
.contract-wizard-preview-section__title h4,
.contract-wizard-preview-grid span,
.contract-wizard-preview-kpis span {
  margin: 0;
}
.contract-wizard-preview-hero span {
  color: #0d6efd;
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contract-wizard-preview-hero h3 {
  color: #111827;
  font-size: 1.45rem;
  font-weight: 850;
  margin: 0.25rem 0 0.35rem;
}
.contract-wizard-preview-hero p {
  color: #667085;
  margin: 0;
  max-width: 720px;
}
.contract-wizard-preview-status {
  background: #fff;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 14px;
  min-width: 150px;
  padding: 0.75rem;
  text-align: right;
}
.contract-wizard-preview-status strong,
.contract-wizard-preview-grid strong,
.contract-wizard-preview-kpis strong {
  color: #172033;
  display: block;
  overflow-wrap: anywhere;
}
.contract-wizard-preview-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.contract-wizard-preview-kpis > div {
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  min-width: 0;
  padding: 0.85rem;
}
.contract-wizard-preview-kpis span,
.contract-wizard-preview-grid span,
.contract-wizard-preview-status span {
  color: #667085;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.38rem;
  text-transform: uppercase;
}
.contract-wizard-preview-kpis strong {
  font-size: 0.94rem;
}
.contract-wizard-preview-section {
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  margin-top: 1rem;
  padding: 1rem;
}
.contract-wizard-preview-section__title {
  align-items: center;
  border-bottom: 1px solid #e7edf6;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
}
.contract-wizard-preview-section__title i {
  align-items: center;
  background: #eef6ff;
  border-radius: 10px;
  color: #0d6efd;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.contract-wizard-preview-section__title h4 {
  color: #172033;
  font-size: 1rem;
  font-weight: 850;
}
.contract-wizard-preview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contract-wizard-preview-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.contract-wizard-preview-grid > div {
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  min-width: 0;
  padding: 0.75rem;
}
.contract-wizard-preview-grid strong {
  font-size: 0.9rem;
}
.contract-wizard-preview-extras {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contract-wizard-preview-extra {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0.65rem;
}
.contract-wizard-preview-extra__number {
  align-items: center;
  background: #0d6efd;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.contract-wizard-preview-extra__content {
  min-width: 0;
}
.contract-wizard-preview-extra__content strong {
  color: #172033;
  display: block;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.contract-wizard-preview-extra__content small {
  color: #667085;
  display: block;
  font-size: 0.76rem;
  margin-top: 0.2rem;
}
.contract-wizard-preview-extra__totals {
  color: #172033;
  font-weight: 850;
  white-space: nowrap;
}
.contract-wizard-preview-empty,
.contract-wizard-preview-note {
  color: #667085;
  margin: 0;
}
.contract-wizard-preview-totals {
  background: #eef6ff;
  border: 1px solid #cfe5ff;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
}
.contract-wizard-preview-totals span {
  color: #49617e;
  font-size: 0.8rem;
  font-weight: 800;
}
.contract-wizard-preview-totals strong {
  color: #172033;
  margin-left: 0.35rem;
}
.contract-wizard-confirmation { align-items: flex-start; background: #eef7ff; border: 1px solid #cfe5ff; border-radius: 16px; color: #28496e; display: flex; gap: 0.8rem; margin-top: 1.25rem; padding: 1rem; }
.contract-wizard-confirmation > i { color: #0d6efd; font-size: 1.15rem; margin-top: 0.15rem; }
.contract-wizard-confirmation p { font-size: 0.86rem; margin-top: 0.15rem; }

.contract-wizard-footer { align-items: center; background: rgba(248, 250, 252, 0.96); border-top: 1px solid #e2e8f0; display: grid; gap: 1rem; grid-template-columns: 1fr minmax(180px, 0.7fr) 1fr; padding: 1rem clamp(1.25rem, 2.5vw, 2.25rem); position: sticky; bottom: 0; z-index: 5; }
.contract-wizard-footer > :last-child { text-align: right; }
.contract-wizard-footer .btn { font-weight: 700; min-height: 44px; padding-left: 1rem; padding-right: 1rem; }
.contract-wizard-footer__progress { color: #667085; font-size: 0.75rem; text-align: center; }
.contract-wizard-footer__progress .progress { height: 5px; margin-top: 0.35rem; }

@media (max-width: 991.98px) {
  .contract-wizard-layout { grid-template-columns: 1fr; }
  .contract-wizard-sidebar { display: grid; grid-template-columns: repeat(5, 1fr); overflow-x: auto; position: static; }
  .contract-wizard-step-link { display: flex; justify-content: center; min-width: 64px; padding: 0.55rem; }
  .contract-wizard-step-link > span:nth-child(2), .contract-wizard-step-link__check { display: none !important; }
  .contract-wizard-hero { align-items: flex-start; flex-direction: column; }
  .contract-wizard-preview-kpis,
  .contract-wizard-preview-grid,
  .contract-wizard-preview-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .contract-wizard-shell { border-radius: 0; margin: -0.75rem; padding: 0.75rem; }
  .contract-wizard-hero { border-radius: 18px; padding: 1.1rem; }
  .contract-wizard-hero__actions { flex-wrap: wrap; width: 100%; }
  .contract-wizard-hero__actions .btn { flex: 1 1 auto; }
  .contract-wizard-panel { min-height: auto; padding: 1rem; }
  .contract-wizard-panel__header { align-items: flex-start; }
  .contract-wizard-review { grid-template-columns: 1fr; }
  .contract-wizard-extras-toolbar { align-items: stretch; flex-direction: column; gap: 0.75rem; }
  .contract-wizard-extra-row__totals { align-items: flex-end; flex-direction: column; gap: 0.35rem; }
  .contract-wizard-review-page__toolbar,
  .contract-wizard-preview-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .contract-wizard-review-page__pdf {
    width: 100%;
  }
  .contract-wizard-preview-sheet {
    max-height: 70vh;
    padding: 0.75rem;
  }
  .contract-wizard-preview-kpis,
  .contract-wizard-preview-grid,
  .contract-wizard-preview-grid--compact {
    grid-template-columns: 1fr;
  }
  .contract-wizard-preview-extra {
    align-items: flex-start;
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .contract-wizard-preview-extra__totals {
    grid-column: 2;
    white-space: normal;
  }
  .contract-wizard-footer { grid-template-columns: auto 1fr; padding: 0.8rem 1rem; }
  .contract-wizard-footer__progress { display: none; }
  .contract-wizard-footer > :last-child { display: flex; justify-content: flex-end; }
}

:root[data-theme="dark"] .contract-wizard-shell { background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 30rem), #0f172a; }
:root[data-theme="dark"] .contract-wizard-card,
:root[data-theme="dark"] .contract-wizard-sidebar { background: #172033; border-color: #2e3b52; }
:root[data-theme="dark"] .contract-wizard-panel__header { border-color: #334155; }
:root[data-theme="dark"] .contract-wizard-panel__header h2,
:root[data-theme="dark"] .contract-wizard-step-link strong,
:root[data-theme="dark"] .contract-wizard-choice-card strong,
:root[data-theme="dark"] .contract-wizard-review-card strong,
:root[data-theme="dark"] .contract-wizard-review-page__toolbar h3,
:root[data-theme="dark"] .contract-wizard-preview-hero h3,
:root[data-theme="dark"] .contract-wizard-preview-status strong,
:root[data-theme="dark"] .contract-wizard-preview-kpis strong,
:root[data-theme="dark"] .contract-wizard-preview-grid strong,
:root[data-theme="dark"] .contract-wizard-preview-section__title h4,
:root[data-theme="dark"] .contract-wizard-preview-extra__content strong,
:root[data-theme="dark"] .contract-wizard-preview-extra__totals,
:root[data-theme="dark"] .contract-wizard-preview-totals strong { color: #e5edf8; }
:root[data-theme="dark"] .contract-wizard-panel__header p,
:root[data-theme="dark"] .contract-wizard-step-link,
:root[data-theme="dark"] .contract-wizard-choice-card small,
:root[data-theme="dark"] .contract-wizard-preview-hero p,
:root[data-theme="dark"] .contract-wizard-preview-status span,
:root[data-theme="dark"] .contract-wizard-preview-kpis span,
:root[data-theme="dark"] .contract-wizard-preview-grid span,
:root[data-theme="dark"] .contract-wizard-preview-extra__content small,
:root[data-theme="dark"] .contract-wizard-preview-empty,
:root[data-theme="dark"] .contract-wizard-preview-note { color: #9ba9bd; }
:root[data-theme="dark"] .contract-wizard-step-link:not(:disabled):hover,
:root[data-theme="dark"] .contract-wizard-extras-toolbar,
:root[data-theme="dark"] .contract-wizard-extra-row__totals,
:root[data-theme="dark"] .contract-wizard-footer { background: #1e293b; }
:root[data-theme="dark"] .contract-wizard-extra-row,
:root[data-theme="dark"] .contract-wizard-choice-card,
:root[data-theme="dark"] .contract-wizard-review-card { background: #1b2639; border-color: #36445b; }
:root[data-theme="dark"] .contract-wizard-extra-row {
  --extra-accent: #60a5fa;
  --extra-bg: rgba(37, 99, 235, 0.18);
  --extra-border: rgba(96, 165, 250, 0.34);
  background:
    linear-gradient(135deg, var(--extra-bg) 0%, rgba(15, 23, 42, 0.84) 70%),
    #1b2639;
  border-color: var(--extra-border);
}
:root[data-theme="dark"] .contract-wizard-extra-row:nth-child(4n + 2) { --extra-accent: #34d399; --extra-bg: rgba(16, 185, 129, 0.16); --extra-border: rgba(52, 211, 153, 0.30); }
:root[data-theme="dark"] .contract-wizard-extra-row:nth-child(4n + 3) { --extra-accent: #a78bfa; --extra-bg: rgba(139, 92, 246, 0.17); --extra-border: rgba(167, 139, 250, 0.32); }
:root[data-theme="dark"] .contract-wizard-extra-row:nth-child(4n + 4) { --extra-accent: #fbbf24; --extra-bg: rgba(245, 158, 11, 0.15); --extra-border: rgba(251, 191, 36, 0.30); }
:root[data-theme="dark"] .contract-wizard-extra-row__header,
:root[data-theme="dark"] .contract-wizard-extra-row__totals {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(148, 163, 184, 0.14);
}
:root[data-theme="dark"] .contract-wizard-extra-row__title strong::after,
:root[data-theme="dark"] .contract-wizard-extra-row__totals span,
:root[data-theme="dark"] .contract-wizard-extra-row .form-label {
  color: #b6c3d6;
}
:root[data-theme="dark"] .contract-wizard-extra-row__handle {
  background: rgba(15, 23, 42, 0.72);
  color: var(--extra-accent);
}
:root[data-theme="dark"] .contract-wizard-extra-row__totals strong {
  color: #e5edf8;
}
:root[data-theme="dark"] .contract-wizard-review-page {
  background: #111827;
  border-color: #2e3b52;
}
:root[data-theme="dark"] .contract-wizard-review-page__toolbar,
:root[data-theme="dark"] .contract-wizard-preview-hero,
:root[data-theme="dark"] .contract-wizard-preview-kpis > div,
:root[data-theme="dark"] .contract-wizard-preview-section,
:root[data-theme="dark"] .contract-wizard-preview-status,
:root[data-theme="dark"] .contract-wizard-preview-grid > div,
:root[data-theme="dark"] .contract-wizard-preview-extra {
  background: #172033;
  border-color: #2e3b52;
}
:root[data-theme="dark"] .contract-wizard-review-page__toolbar,
:root[data-theme="dark"] .contract-wizard-preview-section__title {
  border-color: #2e3b52;
}
:root[data-theme="dark"] .contract-wizard-review-page__eyebrow,
:root[data-theme="dark"] .contract-wizard-preview-hero span {
  color: #93c5fd;
}
:root[data-theme="dark"] .contract-wizard-preview-section__title i {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}
:root[data-theme="dark"] .contract-wizard-preview-totals {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.22);
}
:root[data-theme="dark"] .contract-wizard-preview-totals span {
  color: #b6c3d6;
}
:root[data-theme="dark"] .contract-wizard-form .form-control,
:root[data-theme="dark"] .contract-wizard-form .form-select,
:root[data-theme="dark"] .contract-wizard-form .input-group-text { background-color: #111827; border-color: #3a4860; color: #e5edf8; }
.email-settings-page {
  --email-ink: #172033;
  --email-muted: #667085;
  --email-border: #e4e9f1;
  --email-surface: #ffffff;
  --email-soft: #f6f8fb;
  color: var(--email-ink);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0 auto;
  max-width: 1540px;
}

.email-settings-hero {
  align-items: center;
  background:
    radial-gradient(circle at 85% -20%, rgba(65, 105, 225, 0.22), transparent 38%),
    linear-gradient(135deg, #f8faff 0%, #eef3ff 55%, #f7f9fc 100%);
  border: 1px solid #dce5f7;
  border-radius: 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 2rem 2.2rem;
  position: relative;
}

.email-settings-hero::after {
  border: 1px solid rgba(69, 97, 202, 0.12);
  border-radius: 50%;
  content: "";
  height: 240px;
  position: absolute;
  right: -100px;
  top: -110px;
  width: 240px;
}

.email-settings-hero__copy,
.email-settings-hero__actions {
  position: relative;
  z-index: 1;
}

.email-settings-eyebrow {
  align-items: center;
  color: #3657b8;
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.email-settings-eyebrow__icon {
  align-items: center;
  background: #dfe7ff;
  border-radius: 0.55rem;
  display: inline-flex;
  height: 1.9rem;
  justify-content: center;
  width: 1.9rem;
}

.email-settings-hero h1,
.email-form-hero h1 {
  color: #172033;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0.55rem 0 0.4rem;
}

.email-settings-hero p,
.email-form-hero p {
  color: var(--email-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 660px;
}

.email-settings-hero__actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-settings-stats {
  display: flex;
  gap: 0.65rem;
}

.email-settings-stat {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 130, 192, 0.2);
  border-radius: 0.9rem;
  display: flex;
  flex-direction: column;
  min-width: 112px;
  padding: 0.75rem 0.95rem;
}

.email-settings-stat strong {
  color: #253b80;
  font-size: 1.35rem;
  line-height: 1.1;
}

.email-settings-stat span {
  color: #667085;
  font-size: 0.72rem;
  margin-top: 0.3rem;
  white-space: nowrap;
}

.email-settings-primary-button {
  align-items: center;
  background: linear-gradient(135deg, #3157c8, #2544a0);
  border: 0;
  border-radius: 0.7rem;
  box-shadow: 0 10px 22px rgba(49, 87, 200, 0.22);
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  justify-content: center;
  padding: 0.72rem 1.05rem;
}

.email-settings-primary-button:hover,
.email-settings-primary-button:focus {
  background: linear-gradient(135deg, #284cb8, #1f3988);
  color: #fff;
  transform: translateY(-1px);
}

.email-settings-guide {
  align-items: center;
  background: var(--email-surface);
  border: 1px solid var(--email-border);
  border-radius: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
}

.email-settings-guide__lead {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.email-settings-guide__lead > i {
  align-items: center;
  background: #e9efff;
  border-radius: 0.7rem;
  color: #3157c8;
  display: flex;
  height: 2.45rem;
  justify-content: center;
  width: 2.45rem;
}

.email-settings-guide__lead div {
  display: flex;
  flex-direction: column;
}

.email-settings-guide__lead strong {
  font-size: 0.88rem;
}

.email-settings-guide__lead span {
  color: var(--email-muted);
  font-size: 0.78rem;
}

.email-settings-guide__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.email-settings-guide__types span {
  background: var(--email-soft);
  border: 1px solid var(--email-border);
  border-radius: 999px;
  color: #526078;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.42rem 0.7rem;
}

.email-settings-guide__types i {
  color: #3157c8;
  margin-right: 0.25rem;
}

.email-settings-groups {
  display: grid;
  gap: 1.25rem;
}

.email-settings-group {
  --group-color: #3157c8;
  --group-soft: #edf2ff;
  background: var(--email-surface);
  border: 1px solid var(--email-border);
  border-radius: 1.25rem;
  box-shadow: 0 12px 34px rgba(24, 35, 60, 0.055);
  overflow: hidden;
}

.email-settings-group--emerald {
  --group-color: #0b8a67;
  --group-soft: #e9f8f2;
}

.email-settings-group--violet {
  --group-color: #7450bc;
  --group-soft: #f1ecfb;
}

.email-settings-group__header {
  align-items: center;
  background: linear-gradient(90deg, var(--group-soft), #fff 72%);
  border-bottom: 1px solid var(--email-border);
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.email-settings-group__identity {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.email-settings-group__icon {
  align-items: center;
  background: var(--group-color);
  border-radius: 0.75rem;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--group-color) 25%, transparent);
  color: #fff;
  display: flex;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.email-settings-group__header h2 {
  color: var(--email-ink);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.email-settings-group__header p {
  color: var(--email-muted);
  font-size: 0.72rem;
  margin: 0.12rem 0 0;
}

.email-settings-group__rule-count {
  background: #fff;
  border: 1px solid var(--email-border);
  border-radius: 999px;
  color: var(--group-color);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.38rem 0.7rem;
}

.email-settings-events {
  display: grid;
  gap: 0;
}

.email-event-card {
  border-bottom: 1px solid var(--email-border);
  scroll-margin-top: 105px;
}

.email-event-card:last-child {
  border-bottom: 0;
}

.email-event-card:target {
  animation: email-target-pulse 1.4s ease-out;
}

@keyframes email-target-pulse {
  0%, 35% { background: var(--group-soft); }
  100% { background: transparent; }
}

.email-event-card__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
}

.email-event-card__title {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
  min-width: 0;
}

.email-event-card__status {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.65rem;
  height: 1.65rem;
  justify-content: center;
  margin-top: 0.1rem;
  width: 1.65rem;
}

.email-event-card__status.is-ready {
  background: #dcfce7;
  color: #15803d;
}

.email-event-card__status.is-empty {
  background: #fff4df;
  color: #b76805;
}

.email-event-card__heading-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.email-event-card__heading-row h3 {
  color: var(--email-ink);
  font-size: 0.93rem;
  font-weight: 800;
  margin: 0;
}

.email-event-card__active-count {
  background: #eaf7ef;
  border-radius: 999px;
  color: #18794e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
}

.email-event-card__title p {
  color: var(--email-muted);
  font-size: 0.78rem;
  margin: 0.22rem 0 0;
}

.email-event-card__intrinsic {
  color: #3157c8;
  display: inline-block;
  font-size: 0.7rem;
  margin-top: 0.35rem;
}

.email-event-card__intrinsic i {
  margin-right: 0.3rem;
}

.email-event-card__summary {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.8rem;
}

.email-event-card__summary > span {
  color: var(--email-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.email-event-card__summary > span i {
  color: var(--group-color);
  margin-right: 0.35rem;
}

.email-rule-list {
  background: #f8fafc;
  border-top: 1px solid #edf0f5;
  padding: 0.35rem 1.25rem 0.75rem 3.7rem;
}

.email-rule {
  align-items: center;
  background: #fff;
  border: 1px solid var(--email-border);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 64px 34px minmax(180px, 1.1fr) minmax(170px, 1fr) 80px auto;
  margin-top: 0.4rem;
  min-height: 64px;
  padding: 0.55rem 0.7rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.email-rule:hover {
  border-color: #c9d5eb;
  box-shadow: 0 6px 16px rgba(30, 50, 90, 0.06);
}

.email-rule.is-inactive {
  opacity: 0.62;
}

.email-rule__delivery {
  align-items: center;
  border-right: 1px solid var(--email-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 42px;
}

.email-rule__delivery span {
  color: #3157c8;
  font-size: 0.73rem;
  font-weight: 900;
}

.email-rule__delivery--cc span { color: #8b5e12; }
.email-rule__delivery--bcc span { color: #7450bc; }

.email-rule__delivery small {
  color: var(--email-muted);
  font-size: 0.55rem;
  text-align: center;
}

.email-rule__recipient-icon {
  align-items: center;
  background: var(--group-soft);
  border-radius: 0.65rem;
  color: var(--group-color);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.email-rule__recipient,
.email-rule__note {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.email-rule__recipient strong {
  color: var(--email-ink);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-rule__recipient span {
  color: var(--email-muted);
  font-size: 0.66rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-rule__note {
  color: #7a8497;
  font-size: 0.7rem;
  line-height: 1.35;
}

.email-rule__state-button,
.email-rule__state-label {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #667085;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
}

.email-rule__state-button span,
.email-rule__state-label span {
  background: #98a2b3;
  border-radius: 50%;
  height: 0.48rem;
  width: 0.48rem;
}

.email-rule__state-button.is-active,
.email-rule__state-label.is-active { color: #137a4d; }
.email-rule__state-button.is-active span,
.email-rule__state-label.is-active span { background: #1aaa67; }
.email-rule__state-button:hover { background: #f0f3f8; }

.email-rule__actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.email-rule__actions form,
.email-rule__state form {
  margin: 0;
}

.email-event-card__empty {
  align-items: center;
  background: #fafbfc;
  border-top: 1px solid #edf0f5;
  color: #8a94a6;
  display: flex;
  font-size: 0.75rem;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.75rem 3.75rem;
}

/* Form */
.email-settings-form-page {
  max-width: 1320px;
}

.email-form-hero {
  border-bottom: 1px solid var(--email-border);
  padding: 0.3rem 0 1.35rem;
}

.email-form-back-link {
  align-items: center;
  color: #667085;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.45rem;
  text-decoration: none;
}

.email-form-back-link:hover { color: #3157c8; }

.email-configuration-form {
  padding-bottom: 1.5rem;
}

.email-form-card {
  background: var(--email-surface);
  border: 1px solid var(--email-border);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(24, 35, 60, 0.045);
  margin-bottom: 1rem;
  overflow: hidden;
}

.email-form-card__header {
  align-items: flex-start;
  background: linear-gradient(90deg, #f7f9fc, #fff);
  border-bottom: 1px solid var(--email-border);
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
}

.email-form-card__header > span {
  align-items: center;
  background: #3157c8;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  height: 1.8rem;
  justify-content: center;
  width: 1.8rem;
}

.email-form-card__header h2 {
  color: var(--email-ink);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.email-form-card__header p {
  color: var(--email-muted);
  font-size: 0.73rem;
  margin: 0.12rem 0 0;
}

.email-form-card__body {
  padding: 1.2rem;
}

.email-delivery-options {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, 1fr);
}

.email-delivery-option {
  cursor: pointer;
  position: relative;
}

.email-delivery-option__input {
  opacity: 0;
  position: absolute;
}

.email-delivery-option__surface {
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--email-border);
  border-radius: 0.8rem;
  display: grid;
  gap: 0.1rem 0.6rem;
  grid-template-columns: 28px 1fr;
  padding: 0.75rem;
  transition: 0.18s ease;
}

.email-delivery-option__surface i {
  align-items: center;
  background: #eef2fb;
  border-radius: 0.5rem;
  color: #526078;
  display: flex;
  grid-row: 1 / 3;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.email-delivery-option__surface strong {
  color: var(--email-ink);
  font-size: 0.76rem;
}

.email-delivery-option__surface small {
  color: var(--email-muted);
  font-size: 0.63rem;
}

.email-delivery-option__input:checked + .email-delivery-option__surface {
  background: #f2f5ff;
  border-color: #5575d5;
  box-shadow: 0 0 0 2px rgba(49, 87, 200, 0.09);
}

.email-delivery-option__input:checked + .email-delivery-option__surface i {
  background: #3157c8;
  color: #fff;
}

.email-delivery-option__input:focus-visible + .email-delivery-option__surface {
  box-shadow: 0 0 0 3px rgba(49, 87, 200, 0.18);
}

.email-active-setting {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--email-border);
  border-radius: 0.8rem;
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
}

.email-active-setting > div:first-child {
  display: flex;
  flex-direction: column;
}

.email-active-setting strong { font-size: 0.78rem; }
.email-active-setting span { color: var(--email-muted); font-size: 0.68rem; }
.email-active-setting .form-switch { margin: 0; }

.email-form-sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 87, 200, 0.16), transparent 32%),
    #17233d;
  border-radius: 1rem;
  color: #fff;
  padding: 1.4rem;
  position: sticky;
  top: 100px;
}

.email-form-sidebar__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #f9ca65;
  display: flex;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.email-form-sidebar h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0.9rem 0 0.7rem;
}

.email-form-sidebar ul {
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.1rem;
}

.email-form-sidebar li { margin-bottom: 0.55rem; }
.email-form-sidebar li::marker { color: #809af0; }
.email-form-sidebar li strong { color: #fff; }

.email-form-sidebar__notice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #dbe4f4;
  font-size: 0.7rem;
  line-height: 1.45;
  margin-top: 1rem;
  padding: 0.8rem;
}

.email-form-sidebar__notice i {
  color: #85d9ba;
  margin-right: 0.35rem;
}

.email-form-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--email-border);
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(24, 35, 60, 0.1);
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  padding: 0.75rem;
  position: static;
  z-index: 5;
}

/* Dark mode */
:root[data-theme="dark"] .email-settings-page {
  --email-ink: #edf2f8;
  --email-muted: #9aa9bd;
  --email-border: rgba(148, 163, 184, 0.17);
  --email-surface: #111c2e;
  --email-soft: #18253a;
}

:root[data-theme="dark"] .email-settings-hero {
  background: radial-gradient(circle at 85% -20%, rgba(72, 105, 204, 0.24), transparent 40%), #111c2e;
  border-color: rgba(115, 142, 214, 0.2);
}

:root[data-theme="dark"] .email-settings-hero h1,
:root[data-theme="dark"] .email-form-hero h1,
:root[data-theme="dark"] .email-settings-group__header h2,
:root[data-theme="dark"] .email-event-card__heading-row h3,
:root[data-theme="dark"] .email-rule__recipient strong,
:root[data-theme="dark"] .email-form-card__header h2,
:root[data-theme="dark"] .email-delivery-option__surface strong {
  color: var(--email-ink);
}

:root[data-theme="dark"] .email-settings-stat,
:root[data-theme="dark"] .email-settings-group__rule-count,
:root[data-theme="dark"] .email-rule,
:root[data-theme="dark"] .email-form-actions {
  background: rgba(20, 32, 52, 0.94);
}

:root[data-theme="dark"] .email-settings-group__header,
:root[data-theme="dark"] .email-form-card__header {
  background: linear-gradient(90deg, rgba(30, 45, 70, 0.92), rgba(17, 28, 46, 0.96));
}

:root[data-theme="dark"] .email-rule-list,
:root[data-theme="dark"] .email-event-card__empty,
:root[data-theme="dark"] .email-active-setting {
  background: #0d1728;
}

:root[data-theme="dark"] .email-delivery-option__surface {
  background: #152136;
}

:root[data-theme="dark"] .email-delivery-option__input:checked + .email-delivery-option__surface {
  background: #1c2d50;
}

@media (max-width: 1199.98px) {
  .email-settings-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-settings-hero__actions {
    align-items: flex-start;
    width: 100%;
  }

  .email-rule {
    grid-template-columns: 58px 34px minmax(180px, 1fr) 80px auto;
  }

  .email-rule__note { display: none; }
}

@media (max-width: 767.98px) {
  .email-settings-hero { padding: 1.35rem; }
  .email-settings-stats { width: 100%; }
  .email-settings-stat { flex: 1; min-width: 0; padding: 0.65rem; }
  .email-settings-stat span { white-space: normal; }
  .email-settings-guide { align-items: flex-start; flex-direction: column; }
  .email-settings-group__header { padding: 0.85rem; }
  .email-event-card__header { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .email-event-card__summary { justify-content: space-between; padding-left: 2.45rem; width: 100%; }
  .email-rule-list { padding: 0.35rem 0.75rem 0.75rem; }
  .email-rule {
    gap: 0.6rem;
    grid-template-columns: 52px 32px 1fr auto;
    padding: 0.65rem;
  }
  .email-rule__state { grid-column: 2 / 4; }
  .email-rule__actions { grid-column: 4; grid-row: 1 / 3; }
  .email-delivery-options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .email-settings-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .email-settings-stat strong { font-size: 1.05rem; }
  .email-settings-stat span { font-size: 0.6rem; }
  .email-rule__recipient span { max-width: 150px; }
}
/* ============================================
   MODERN HOME DASHBOARD STYLES
   ============================================ */

/* Dashboard Grid Layout */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Modern Card Design - Kalisan Style */
.modern-stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-left: 4px solid #0d6efd;
}

.modern-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Card Color Variants */
.modern-stat-card.card-primary {
  border-left-color: #0d6efd;
}

.modern-stat-card.card-success {
  border-left-color: #198754;
}

.modern-stat-card.card-warning {
  border-left-color: #fd7e14;
}

.modern-stat-card.card-danger {
  border-left-color: #dc3545;
}

.modern-stat-card.card-info {
  border-left-color: #0dcaf0;
}

.modern-stat-card.card-teal {
  border-left-color: #20c997;
}

/* Modern Card Header with Light Gradient */
.modern-card-header {
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
}

/* Header Color Variants */
.modern-card-header.header-primary {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.modern-card-header.header-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.modern-card-header.header-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.modern-card-header.header-danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.modern-card-header.header-info {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.modern-card-header.header-teal {
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
}

.modern-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  color: #212529;
}

.modern-card-header h5 i {
  margin-right: 0.5rem;
}

.modern-card-header .header-icon {
  color: #0d6efd;
}

.modern-card-header.header-success .header-icon {
  color: #198754;
}

.modern-card-header.header-warning .header-icon {
  color: #fd7e14;
}

.modern-card-header.header-danger .header-icon {
  color: #dc3545;
}

.modern-card-header.header-info .header-icon {
  color: #0dcaf0;
}

.modern-card-header.header-teal .header-icon {
  color: #20c997;
}

/* Card Badge */
.modern-card-header .card-badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Collapse Toggle */
.modern-card-header .collapse-toggle {
  transition: transform 0.3s ease;
}

.modern-card-header[aria-expanded="true"] .collapse-toggle {
  transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card Body */
.modern-card-body {
  padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
}

/* Individual Stat Item */
.stat-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.stat-item:hover::before {
  opacity: 1;
}

/* Stat Value */
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

/* Currency Values - smaller font for better fit */
.stat-value.currency-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Stat Label */
.stat-label {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Color Variants for Stats */
.stat-item.stat-success .stat-value {
  color: #198754;
}

.stat-item.stat-warning .stat-value {
  color: #ffc107;
}

.stat-item.stat-info .stat-value {
  color: #0dcaf0;
}

.stat-item.stat-danger .stat-value {
  color: #dc3545;
}

.stat-item.stat-primary .stat-value {
  color: #0d6efd;
}

/* Two Column Stats (for cards with 2 stats) */
.stats-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Three Column Stats */
.stats-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Single Column Stats (full width) */
.stats-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-item-large {
  text-align: center;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
}

.stat-item-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item-large .stat-value {
  font-size: 1.25rem;
  white-space: nowrap;
}

.stat-item-large .stat-value.currency-value {
  font-size: 1rem;
  font-weight: 700;
}

.stat-item-large .stat-label {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-value.currency-value {
    font-size: 0.95rem;
  }

  .stat-item-large .stat-value {
    font-size: 1.1rem;
  }

  .stat-item-large .stat-value.currency-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-value.currency-value {
    font-size: 0.85rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .modern-card-header h5 {
    font-size: 0.85rem;
  }

  .modern-card-body {
    padding: 1rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-item-large .stat-value {
    font-size: 0.95rem;
  }

  .stat-item-large .stat-value.currency-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .stats-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Icon Styling */
.stat-icon {
  font-size: 0.85rem;
  margin-right: 0.25rem;
  opacity: 0.8;
}

/* Page Title */
.dashboard-page-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.5px;
}

.dashboard-page-title small {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

/* Logo Styling */
.dashboard-logo {
  margin-bottom: 2rem;
  padding: 1rem;
}

.dashboard-logo img {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.dashboard-logo img:hover {
  transform: scale(1.05);
}

/* ============================================
   PROFESSIONAL DASHBOARD REFRESH
   ============================================ */

.dashboard-shell {
  min-height: calc(100vh - 80px);
  margin: -1rem;
  padding: 1.75rem;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.14), transparent 30rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.dashboard-content {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
}

.dashboard-quick-actions {
  margin-bottom: 1.15rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.dashboard-quick-actions__header {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.dashboard-quick-actions__header h2 {
  margin: 0;
  color: #1d2939;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.15;
}

.dashboard-quick-actions__header p {
  margin: 0.2rem 0 0;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-quick-actions__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.6rem;
  border-radius: 16px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.10);
}

.dashboard-quick-actions__items {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.dashboard-quick-action {
  min-width: 230px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-quick-action:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.dashboard-quick-action--primary {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.24);
}

.dashboard-quick-action--primary:hover,
.dashboard-quick-action--primary:focus {
  color: #fff;
  box-shadow: 0 18px 34px rgba(13, 110, 253, 0.30);
}

.dashboard-quick-action__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.25rem;
  border-radius: 14px;
  color: #0d6efd;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-quick-action__content {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.1;
}

.dashboard-quick-action__content strong {
  font-size: 0.94rem;
  font-weight: 850;
}

.dashboard-quick-action__content small {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

.dashboard-quick-action__arrow {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-hero {
  max-width: 1680px;
  margin: 0 auto 1.5rem;
  padding: 1.35rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(32, 201, 151, 0.08));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  position: relative;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -6rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.18));
  filter: blur(4px);
  pointer-events: none;
}

.dashboard-hero__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.dashboard-hero__logo {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dashboard-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #0f5ed7;
  background: rgba(13, 110, 253, 0.10);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.dashboard-hero p {
  max-width: 620px;
  margin: 0.55rem 0 0;
  color: #667085;
  font-size: 0.98rem;
}

.dashboard-hero__side {
  min-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.dashboard-date-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.dashboard-hero-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dashboard-hero-kpi {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-kpi span {
  display: block;
  color: #101828;
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1;
}

.dashboard-hero-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dashboard-hero-kpi--accent {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(20, 184, 166, 0.95));
  border-color: transparent;
}

.dashboard-hero-kpi--accent span,
.dashboard-hero-kpi--accent small {
  color: #fff;
}

.dashboard-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.modern-stat-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.modern-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.modern-stat-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
}

.modern-stat-card.card-warning::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.modern-stat-card.card-success::before {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.modern-stat-card.card-teal::before {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.modern-card-header,
.modern-card-header.header-primary,
.modern-card-header.header-success,
.modern-card-header.header-warning,
.modern-card-header.header-danger,
.modern-card-header.header-info,
.modern-card-header.header-teal {
  padding: 1rem 1.1rem 0.25rem;
  background: #fff;
}

.modern-card-header h5 {
  color: #1d2939;
  font-size: 0.92rem;
  font-weight: 800;
}

.modern-card-header .header-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  margin-right: 0.55rem;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.10);
}

.modern-card-header.header-warning .header-icon {
  background: rgba(245, 158, 11, 0.12);
}

.modern-card-header.header-success .header-icon {
  background: rgba(34, 197, 94, 0.12);
}

.modern-card-header.header-teal .header-icon {
  background: rgba(20, 184, 166, 0.12);
}

.modern-card-header .card-badge {
  border-radius: 999px;
  box-shadow: none;
}

.modern-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.stat-item {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #f8fafc;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: #fff;
}

.stat-value {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.stat-label {
  color: #667085;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

#dashboardAccordion {
  display: grid;
  gap: 1rem;
}

#dashboardAccordion .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

#dashboardAccordion .accordion-header {
  border: 0;
}

#dashboardAccordion .accordion-button,
#dashboardAccordion .accordion-button.bg-warning,
#dashboardAccordion .accordion-button.bg-success,
#dashboardAccordion .accordion-button.text-white,
#dashboardAccordion .accordion-button.text-dark {
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  color: #1d2939 !important;
  background: #fff !important;
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  box-shadow: none;
}

#dashboardAccordion .accordion-button:not(.collapsed) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#dashboardAccordion .accordion-button i {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.10);
}

#dashboardAccordion .accordion-button .badge {
  margin-left: 0.25rem !important;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: #fff !important;
  background: #101828 !important;
}

#dashboardAccordion .accordion-body > .d-flex.bg-light {
  gap: 1rem;
  flex-wrap: wrap;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

#dashboardAccordion .accordion-body small.text-muted {
  color: #667085 !important;
  font-weight: 600;
}

#dashboardAccordion .table {
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #eef6ff;
  color: #344054;
  font-size: 0.88rem;
}

#dashboardAccordion .table thead,
#dashboardAccordion .table thead.table-light {
  background: #f1f5f9 !important;
}

#dashboardAccordion .table thead th {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #475467;
  background: #f1f5f9 !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

#dashboardAccordion .table tbody td {
  padding: 0.85rem 0.75rem;
  border-color: rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

#dashboardAccordion .table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

#dashboardAccordion .btn {
  border-radius: 10px;
  font-weight: 700;
}

#dashboardAccordion .btn-sm {
  padding: 0.34rem 0.55rem;
  font-size: 0.78rem;
}

#dashboardAccordion .badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

#notesModal .modal-content {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

#notesModal .modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

#dashboardShareTextModal .modal-content {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

#dashboardShareTextModal .modal-header,
#dashboardShareTextModal .modal-footer {
  border-color: rgba(15, 23, 42, 0.08);
}

.dashboard-share-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 360px;
  resize: vertical;
}

:root[data-theme="dark"] .dashboard-quick-actions {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.90);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .dashboard-quick-actions__header h2 {
  color: #f8fafc;
}

:root[data-theme="dark"] .dashboard-quick-actions__header p {
  color: #94a3b8;
}

:root[data-theme="dark"] .dashboard-quick-actions__icon {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
}

:root[data-theme="dark"] .dashboard-quick-action__icon {
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.70);
}

@media (max-width: 1400px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .dashboard-shell {
    margin: -0.75rem;
    padding: 1rem;
  }

  .dashboard-hero {
    flex-direction: column;
    border-radius: 22px;
  }

  .dashboard-hero__side {
    min-width: 0;
    align-items: stretch;
  }

  .dashboard-quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-quick-actions__items {
    justify-content: stretch;
  }

  .dashboard-quick-action {
    width: 100%;
  }

  .dashboard-date-chip {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .dashboard-hero__brand {
    align-items: flex-start;
  }

  .dashboard-hero__logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 18px;
  }

  .dashboard-hero-kpis,
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  #dashboardAccordion .accordion-body > .d-flex.bg-light {
    align-items: flex-start !important;
  }

  #dashboardAccordion .accordion-body > .d-flex.bg-light .d-flex {
    width: 100%;
    flex-wrap: wrap;
  }
}
/* ============================================
   MOBILE RESPONSIVE CSS - Zirve Vinç
   ============================================ */

/* ============================================
   GENEL MOBİL STİLLER (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Container tam genişlik VE OVERFLOW KONTROLÜ */
  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Card overflow kontrolü */
  .card {
    max-width: 100%;
    overflow: hidden;
  }

  .card-body {
    padding: 12px;
    overflow-x: auto;
  }

  /* Logo küçült */
  .dashboard-logo .logo {
    max-width: 150px;
    height: auto;
  }

  /* Sayfa başlığı */
  h1.mb-4 {
    font-size: 1.25rem;
    margin-bottom: 1rem !important;
  }

  /* Kart başlıkları */
  .card-header h4,
  .card-header h5 {
    font-size: 0.95rem;
  }

  /* Touch-friendly butonlar - minimum 44x44px */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .btn-sm {
    min-height: 38px;
    min-width: 38px;
    padding: 8px 12px;
  }

  /* ============================================
     İSTATİSTİK KARTLARI
     ============================================ */
  /* Dashboard istatistik kartlarında grid düzeni */
  .card-body .row.text-center .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 8px;
    margin-bottom: 10px;
  }

  .card-body .row.text-center .col-3 h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .card-body .row.text-center .col-3 small {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .card-body .row.text-center .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px;
    margin-bottom: 10px;
  }

  .card-body .row.text-center .col-6 h3 {
    font-size: 1.25rem;
  }

  /* ============================================
     TABLOLAR
     ============================================ */
  /* Tablo container scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }

  /* Tablo minimum genişlik */
  .table-responsive table {
    min-width: 600px;
  }

  /* Kompakt tablo hücreleri */
  .table td,
  .table th {
    padding: 8px 6px;
    font-size: 0.85rem;
  }

  /* Tablo içi küçük yazılar */
  .table small {
    font-size: 0.75rem;
  }

  /* İşlem butonları mobilde */
  .table .d-flex.gap-1 {
    flex-wrap: nowrap;
  }

  .table .btn-sm {
    padding: 6px 10px;
    min-width: 36px;
    min-height: 36px;
  }

  /* ============================================
     NAVİGASYON
     ============================================ */
  /* Tab'lar yatay scroll */
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs .nav-item {
    flex-shrink: 0;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Navbar mobil düzeni */
  .navbar .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 10px 0;
  }

  .navbar .text-white.me-3 {
    margin-right: 0 !important;
    font-size: 0.9rem;
  }

  /* ============================================
     FORMLAR
     ============================================ */
  /* Form elemanları tam genişlik */
  .form-control,
  .form-select {
    font-size: 16px;
    /* iOS zoom'u önle */
  }

  /* Arama formu mobil düzeni */
  .card-body .row.g-3>.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .card-body .row.g-2>div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }

  /* Buton grupları */
  .d-flex.gap-2 {
    flex-wrap: wrap;
  }

  .d-flex.justify-content-md-end {
    justify-content: flex-start !important;
  }

  /* ============================================
     MODALLER
     ============================================ */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-body {
    padding: 15px;
  }

  /* Modal içi formlar */
  .modal .row .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  /* ============================================
     BADGE'LER
     ============================================ */
  .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* ============================================
     ACCORDION / CARD HEADERS
     ============================================ */
  .card-header .d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }

  .card-header .d-flex.justify-content-between>div:last-child {
    align-self: flex-start;
  }
}

/* ============================================
   KÜÇÜK MOBİL (max-width: 576px) - iPhone SE gibi
   ============================================ */
@media (max-width: 576px) {

  .container,
  .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }

  h1.mb-4 {
    font-size: 1.1rem;
  }

  .card-header h4,
  .card-header h5 {
    font-size: 0.85rem;
  }

  /* Daha kompakt istatistikler */
  .card-body .row.text-center .col-3 h3 {
    font-size: 1.25rem;
  }

  .card-body .row.text-center .col-3 small {
    font-size: 0.65rem;
  }

  /* Tablo daha kompakt */
  .table td,
  .table th {
    padding: 6px 4px;
    font-size: 0.8rem;
  }

  /* Tab'lar daha küçük */
  .nav-tabs .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Action butonları */
  .table .btn-sm {
    padding: 5px 8px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.75rem;
  }

  /* İşlem hücresi yığılmasın */
  .table .d-flex.gap-1 {
    gap: 2px !important;
  }
}

/* ============================================
   TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) and (min-width: 769px) {

  /* Orta boyut için hafif düzenlemeler */
  .card-body .row.text-center .col-3 {
    padding: 10px;
  }

  .table td,
  .table th {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}

/* ============================================
   TABLO SCROLL İNDİKATÖRÜ
   ============================================ */
@media (max-width: 768px) {
  .table-responsive::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .table-responsive:not(:hover)::after {
    opacity: 1;
  }

  .table-responsive {
    position: relative;
  }
}

/* ============================================
   UTILITY CLASSES FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .text-mobile-center {
    text-align: center !important;
  }

  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}

/* ============================================
   MODAL Z-INDEX DÜZELTMELERİ
   ============================================ */
/* Modal'ın her zaman karartının üstünde görünmesini sağla */
.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1065 !important;
  position: relative;
}

/* Modal açıkken overflow kısıtlamalarını kaldır */
body.modal-open .card,
body.modal-open .table-responsive {
  overflow: visible !important;
}

/* Modal içeriğinin mobilde düzgün görünmesi */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
  }

  /* Modal'ın tam ekran merkezde görünmesi için */
  .modal-dialog-centered {
    min-height: calc(100% - 20px);
  }
}
:root {
  --zirve-green: #a8d62e;
  --zirve-green-bright: #c5f249;
  --zirve-ink: #10140f;
  --zirve-ink-soft: #171c16;
  --zirve-paper: #f2f3ee;
  --zirve-muted: #6c716a;
  --zirve-line: rgba(16, 20, 15, 0.15);
}

html { scroll-behavior: smooth; }

.marketing-page {
  background: var(--zirve-paper);
  color: var(--zirve-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.marketing-page *, .marketing-page *::before, .marketing-page *::after { box-sizing: border-box; }
.marketing-page img { display: block; max-width: 100%; }
.marketing-page a { color: inherit; text-decoration: none; }
.marketing-page button { font: inherit; }
.site-container { margin: 0 auto; max-width: 1440px; padding-inline: clamp(22px, 5vw, 76px); width: 100%; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.site-header {
  background: rgba(16, 20, 15, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.site-header.is-scrolled { background: rgba(16, 20, 15, 0.97); backdrop-filter: blur(18px); }
.site-header__inner { align-items: center; display: flex; height: 82px; justify-content: space-between; }
.site-brand { align-items: center; display: flex; flex: 0 0 auto; }
.site-brand__logo { height: auto; width: 172px; }
.site-nav { align-items: center; display: flex; gap: clamp(20px, 3vw, 46px); }
.site-nav a { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; letter-spacing: .025em; position: relative; }
.site-nav a::after { background: var(--zirve-green); bottom: -10px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; width: 100%; }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-language { align-items: center; border: 1px solid rgba(255,255,255,.22); display: flex; flex: 0 0 auto; padding: 4px; }
.site-language a { align-items: center; color: rgba(255,255,255,.48); display: flex; font-size: 9px; font-weight: 800; height: 27px; justify-content: center; letter-spacing: .06em; transition: .2s ease; width: 30px; }
.site-language a:hover { color: #fff; }
.site-language a.is-active { background: var(--zirve-green); color: var(--zirve-ink); }
.site-header__cta { align-items: center; border: 1px solid rgba(255,255,255,.35); display: flex; font-size: 12px; font-weight: 800; gap: 22px; letter-spacing: .06em; padding: 13px 16px; text-transform: uppercase; transition: .2s ease; }
.site-header__cta:hover { background: var(--zirve-green); border-color: var(--zirve-green); color: var(--zirve-ink); }
.site-header__cta span { font-size: 18px; }
.site-menu-toggle { background: transparent; border: 0; display: none; height: 42px; padding: 10px; width: 46px; }
.site-menu-toggle > span:not(.sr-only) { background: white; display: block; height: 2px; margin: 5px 0; transition: .2s ease; width: 25px; }

.site-hero { background: var(--zirve-ink); color: #fff; min-height: 100vh; overflow: hidden; padding-top: 82px; position: relative; }
.site-hero__grid { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 84px 84px; inset: 82px 0 0; mask-image: linear-gradient(to bottom, #000, transparent 80%); position: absolute; }
.site-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); min-height: calc(100vh - 205px); position: relative; }
.site-hero__content { align-self: center; padding: 80px 6vw 74px 0; position: relative; z-index: 2; }
.site-eyebrow { align-items: center; color: rgba(255,255,255,.62); display: flex; font-size: 11px; font-weight: 800; gap: 12px; letter-spacing: .2em; margin-bottom: 28px; text-transform: uppercase; }
.site-eyebrow span { background: var(--zirve-green); height: 9px; width: 9px; }
.site-hero h1 { font-size: clamp(58px, 7vw, 108px); font-weight: 800; letter-spacing: -.055em; line-height: .9; margin: 0; max-width: 850px; }
.site-hero h1 em, .site-cta h2 em { color: var(--zirve-green-bright); font-style: normal; }
.site-hero__content > p { color: rgba(255,255,255,.62); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; margin: 34px 0; max-width: 620px; }
.site-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-button { align-items: center; display: inline-flex; font-size: 12px; font-weight: 800; gap: 42px; justify-content: space-between; letter-spacing: .08em; min-width: 196px; padding: 17px 20px; text-transform: uppercase; transition: .2s ease; }
.site-button--primary { background: var(--zirve-green); color: var(--zirve-ink); }
.site-button--primary:hover { background: #fff; transform: translateY(-2px); }
.site-button--ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.site-button--ghost:hover { border-color: #fff; }
.site-hero__visual { min-height: 620px; overflow: hidden; position: relative; }
.site-hero__visual::after { background: linear-gradient(90deg, var(--zirve-ink), transparent 28%), linear-gradient(0deg, rgba(16,20,15,.5), transparent 45%); content: ""; inset: 0; position: absolute; }
.site-hero__visual > img { height: 100%; object-fit: cover; object-position: 53% center; position: absolute; width: 100%; }
.site-hero__visual-label { align-items: flex-start; bottom: 42px; display: flex; gap: 15px; position: absolute; right: 32px; z-index: 2; }
.site-hero__visual-label > span { border: 1px solid rgba(255,255,255,.45); color: var(--zirve-green); font-size: 11px; padding: 8px; }
.site-hero__visual-label p { font-size: 12px; font-weight: 700; line-height: 1.45; margin: 0; text-transform: uppercase; }
.site-hero__line { background: var(--zirve-green); height: 180px; left: 20%; position: absolute; top: 0; width: 2px; z-index: 3; }
.site-stats { border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)) 1.5fr; min-height: 123px; position: relative; z-index: 3; }
.site-stats > div { align-items: center; border-right: 1px solid rgba(255,255,255,.12); display: flex; gap: 14px; padding: 22px clamp(18px, 2vw, 32px); }
.site-stats > div:first-child { padding-left: 0; }
.site-stats strong { font-size: clamp(32px, 3vw, 48px); letter-spacing: -.05em; white-space: nowrap; }
.site-stats strong small { color: var(--zirve-green); font-size: 13px; letter-spacing: 0; text-transform: uppercase; }
.site-stats div > span { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.site-stats .site-stats__note { border: 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.55; }
.site-stats__note span { border: 1px solid var(--zirve-green); color: var(--zirve-green) !important; font-size: 10px !important; padding: 6px; }

.site-section { padding-block: clamp(88px, 10vw, 150px); }
.site-intro { background: #fff; }
.site-intro__grid { display: grid; gap: 8vw; grid-template-columns: .86fr 1.14fr; }
.site-section-index { color: #777c75; font-size: 10px; font-weight: 800; letter-spacing: .18em; margin-bottom: 24px; text-transform: uppercase; }
.site-section h2, .site-cta h2 { font-size: clamp(45px, 6vw, 78px); font-weight: 800; letter-spacing: -.055em; line-height: .96; margin: 0; }
.site-lead { font-size: clamp(20px, 2vw, 27px); letter-spacing: -.02em; line-height: 1.5; margin: 40px 0 60px; max-width: 720px; }
.site-process { border-top: 1px solid var(--zirve-line); }
.site-process article { align-items: start; border-bottom: 1px solid var(--zirve-line); display: grid; gap: 26px; grid-template-columns: 48px 1fr; padding: 25px 0; }
.site-process article > span { color: var(--zirve-green); font-size: 12px; font-weight: 800; }
.site-process h3 { font-size: 18px; margin: 0 0 7px; }
.site-process p { color: var(--zirve-muted); font-size: 14px; line-height: 1.6; margin: 0; }

.site-fleet { background: var(--zirve-paper); }
.site-section-heading { align-items: end; display: grid; gap: 7vw; grid-template-columns: 1.15fr .85fr; margin-bottom: clamp(50px, 6vw, 90px); }
.site-section-heading > p { color: var(--zirve-muted); font-size: 16px; line-height: 1.75; margin: 0 0 5px; max-width: 520px; }
.fleet-list { border-top: 2px solid var(--zirve-ink); }
.fleet-row { align-items: center; border-bottom: 1px solid var(--zirve-line); display: grid; gap: 20px; grid-template-columns: 56px minmax(220px, .75fr) 1.35fr 106px; min-height: 168px; transition: background .2s ease, padding .2s ease; }
.fleet-row:hover { background: #fff; padding-inline: 20px; }
.fleet-row__number { color: #92978f; font-size: 11px; font-weight: 800; }
.fleet-row__model > span { color: var(--zirve-green); display: block; font-size: 9px; font-weight: 800; letter-spacing: .14em; margin-bottom: 8px; text-transform: uppercase; }
.fleet-row__model h3 { font-size: clamp(27px, 3vw, 40px); letter-spacing: -.04em; margin: 0; }
.fleet-row__model small { color: var(--zirve-muted); display: block; font-size: 11px; margin-top: 5px; }
.fleet-row__specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.fleet-row__specs div { border-left: 1px solid var(--zirve-line); padding: 10px 24px; }
.fleet-row__specs dt { color: var(--zirve-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; margin-bottom: 11px; text-transform: uppercase; }
.fleet-row__specs dd { font-size: 20px; font-weight: 800; margin: 0; }
.fleet-row__download { align-items: center; background: var(--zirve-ink); color: #fff; display: flex; height: 82px; justify-content: space-between; padding: 16px; transition: .2s ease; }
.fleet-row__download:hover { background: var(--zirve-green); color: var(--zirve-ink); }
.fleet-row__download > span { font-size: 10px; font-weight: 800; line-height: 1.1; }
.fleet-row__download small { color: #90958e; font-size: 8px; font-weight: 400; }
.fleet-row__download b { font-size: 24px; }
.site-data-note { color: #858a82; font-size: 10px; line-height: 1.55; margin: 24px 0 0; max-width: 740px; }

.site-documents { background: var(--zirve-ink); color: #fff; }
.site-section-heading--light > p { color: rgba(255,255,255,.52); }
.site-documents .site-section-index { color: var(--zirve-green); }
.document-grid { display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.document-card { background: #f5f5f0; color: var(--zirve-ink); grid-column: span 2; overflow: hidden; transition: transform .25s ease; }
.document-card:nth-child(4) { grid-column: 2 / span 2; }
.document-card:hover { transform: translateY(-7px); }
.document-card__preview { background: #fff; height: 210px; overflow: hidden; position: relative; }
.document-card__preview img { height: 100%; object-fit: cover; object-position: left center; transform: scale(1.12); transition: transform .35s ease; width: 100%; }
.document-card:hover .document-card__preview img { transform: scale(1.18); }
.document-card__preview span { background: var(--zirve-green); bottom: 0; font-size: 8px; font-weight: 800; left: 0; letter-spacing: .12em; padding: 7px 10px; position: absolute; }
.document-card__body { align-items: end; display: flex; justify-content: space-between; padding: 24px; }
.document-card__body small { color: #8b9088; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.document-card__body h3 { font-size: 23px; margin: 7px 0 0; }
.document-card__body a { align-items: center; border-bottom: 1px solid var(--zirve-ink); display: flex; font-size: 10px; font-weight: 800; gap: 12px; padding-bottom: 5px; text-transform: uppercase; }
.document-card__body a span { font-size: 18px; }

.site-gallery { background: #fff; }
.gallery-grid { display: grid; gap: 18px; grid-template-columns: .85fr 1.15fr; grid-template-rows: 330px 330px; }
.gallery-item { background: #111; border: 0; cursor: zoom-in; grid-column: 2; margin: 0; overflow: hidden; padding: 0; position: relative; text-align: left; }
.gallery-item--tall { grid-column: 1; grid-row: 1 / span 2; }
.gallery-item--wide { grid-column: 2; }
.gallery-item::after { background: linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); content: ""; inset: 0; position: absolute; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.gallery-item--tall img { object-position: center; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item > span { bottom: 24px; color: #fff; display: flex; flex-direction: column; left: 25px; position: absolute; z-index: 2; }
.gallery-item > span b { font-size: 18px; }
.gallery-item > span small { color: rgba(255,255,255,.6); font-size: 9px; letter-spacing: .12em; margin-top: 5px; text-transform: uppercase; }

.site-cta { background: var(--zirve-green); padding-block: clamp(80px, 9vw, 130px); }
.site-cta .site-section-index { color: rgba(16,20,15,.56); }
.site-cta h2 em { color: #fff; }
.site-cta__inner { align-items: end; display: grid; gap: 8vw; grid-template-columns: 1.2fr .8fr; }
.site-cta__action p { font-size: 17px; line-height: 1.6; margin: 0 0 30px; max-width: 480px; }
.site-cta__action a { align-items: center; border-bottom: 2px solid var(--zirve-ink); display: flex; font-size: 13px; font-weight: 800; justify-content: space-between; letter-spacing: .1em; max-width: 340px; padding-bottom: 14px; text-transform: uppercase; }
.site-cta__action a span { font-size: 22px; }

.site-footer { background: var(--zirve-ink); color: #fff; padding-top: 70px; }
.site-footer__top { display: grid; gap: 9vw; grid-template-columns: .75fr 1.25fr; padding-bottom: 70px; }
.site-footer__logo { width: 180px; }
.site-footer__top > div > p { color: rgba(255,255,255,.42); font-size: 13px; margin-top: 20px; }
.site-footer__links { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); }
.site-footer__links > div { display: flex; flex-direction: column; gap: 12px; }
.site-footer__links small { color: var(--zirve-green); font-size: 9px; font-weight: 800; letter-spacing: .16em; margin-bottom: 6px; }
.site-footer__links a { color: rgba(255,255,255,.6); font-size: 12px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.35); display: flex; font-size: 9px; justify-content: space-between; letter-spacing: .08em; padding-block: 22px; text-transform: uppercase; }
.site-footer__bottom a { color: rgba(255,255,255,.7); }

.site-lightbox { background: rgba(8,10,8,.98); color: #fff; display: none; inset: 0; padding: 54px; position: fixed; z-index: 100; }
.site-lightbox.is-open { display: block; }
.site-lightbox img { height: calc(100vh - 135px); margin: auto; object-fit: contain; width: 100%; }
.site-lightbox p { font-size: 11px; letter-spacing: .08em; margin: 15px auto 0; max-width: 1000px; text-align: center; text-transform: uppercase; }
.site-lightbox__close { background: var(--zirve-green); border: 0; cursor: pointer; font-size: 28px; height: 42px; line-height: 1; position: absolute; right: 22px; top: 20px; width: 42px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

html[lang="en"] .site-hero h1 { font-size: clamp(55px, 6.6vw, 100px); }
html[lang="bg"] .site-hero h1 { font-size: clamp(50px, 5.8vw, 88px); }
html[lang="bg"] .site-nav { gap: clamp(16px, 2vw, 30px); }

@media (max-width: 1240px) {
  .site-nav { gap: 20px; }
  .site-header__cta { display: none; }
}

@media (max-width: 1080px) {
  .site-hero__inner { grid-template-columns: 1.15fr .85fr; }
  .site-stats { grid-template-columns: repeat(3, 1fr); }
  .site-stats__note { display: none !important; }
  .fleet-row { grid-template-columns: 42px minmax(190px, .7fr) 1.3fr 90px; }
  .fleet-row__specs div { padding-inline: 14px; }
}

@media (max-width: 820px) {
  .site-header__inner { height: 72px; }
  .site-brand__logo { width: 145px; }
  .site-menu-toggle { display: block; order: 3; z-index: 2; }
  .site-language { margin-left: auto; margin-right: 10px; order: 2; }
  .site-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .site-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { align-items: flex-start; background: var(--zirve-ink); display: none; flex-direction: column; inset: 72px 0 auto; padding: 25px max(22px, 5vw) 36px; position: fixed; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 18px; }
  .site-hero { padding-top: 72px; }
  .site-hero__inner { display: block; min-height: auto; padding-inline: 0; }
  .site-hero__content { padding: 72px max(22px, 5vw) 62px; }
  .site-hero h1 { font-size: clamp(54px, 14vw, 85px); }
  html[lang="en"] .site-hero h1 { font-size: clamp(48px, 12vw, 76px); }
  html[lang="bg"] .site-hero h1 { font-size: clamp(43px, 10.8vw, 69px); }
  .site-hero__visual { height: 68vh; min-height: 520px; }
  .site-hero__visual::after { background: linear-gradient(0deg, rgba(16,20,15,.65), transparent 55%); }
  .site-stats { grid-template-columns: repeat(3, 1fr); padding-inline: max(22px, 5vw); }
  .site-stats > div { align-items: flex-start; border-right: 0; flex-direction: column; gap: 5px; padding-inline: 0; }
  .site-stats > div:first-child { padding-left: 0; }
  .site-stats strong { font-size: 30px; }
  .site-stats div > span { font-size: 8px; }
  .site-intro__grid, .site-section-heading, .site-cta__inner, .site-footer__top { grid-template-columns: 1fr; }
  .site-intro__grid, .site-section-heading, .site-cta__inner { gap: 42px; }
  .site-lead { margin-top: 0; }
  .fleet-row { gap: 14px; grid-template-columns: 32px 1fr 82px; padding-block: 24px; }
  .fleet-row:hover { padding-inline: 12px; }
  .fleet-row__specs { grid-column: 2 / span 2; grid-row: 2; }
  .fleet-row__download { grid-column: 3; grid-row: 1; }
  .document-grid { grid-template-columns: repeat(2, 1fr); }
  .document-card, .document-card:nth-child(4) { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 280px; }
  .site-footer__links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .site-hero__actions { flex-direction: column; }
  .site-button { width: 100%; }
  .site-stats { min-height: 105px; }
  .site-stats strong { font-size: 23px; }
  .site-stats strong small { font-size: 8px; }
  .site-section h2, .site-cta h2 { font-size: 44px; }
  .fleet-row { grid-template-columns: 28px 1fr 68px; }
  .fleet-row__model h3 { font-size: 25px; }
  .fleet-row__specs { gap: 0; }
  .fleet-row__specs div { padding: 8px 7px; }
  .fleet-row__specs dd { font-size: 15px; }
  .fleet-row__download { height: 70px; padding: 11px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card__preview { height: 190px; }
  .gallery-grid { display: flex; flex-direction: column; }
  .gallery-item { height: 330px; }
  .gallery-item--tall { height: 500px; }
  .site-footer__links { gap: 30px; grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { gap: 18px; }
  .site-lightbox { padding: 55px 15px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .gallery-item img, .document-card, .fleet-row { transition: none; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Notlar alanı için özel scroll stili */
.notes-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: #6c757d #f8f9fa;
}

.notes-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.notes-scroll-area::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 10px;
}

.notes-scroll-area::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}

.notes-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #495057;
}

/* Not kartları için animasyon */
.note-item {
  transition: all 0.3s ease;
}

.note-item:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .notes-container-mobile {
    height: 300px !important;
    position: relative !important;
    top: 0 !important;
  }
}

/* ============================================
   DESKTOP TAM GENİŞLİK STİLLERİ
   ============================================ */

/* Tüm container'ları tam genişlik yap */
.container-fluid {
  max-width: 100% !important;
  width: 100% !important;
}

/* Kartları tam genişlik yap */
.card {
  width: 100%;
}

/* Tabloları dinamik genişlik yap */
.table-responsive {
  width: 100%;
}

.table-responsive .table {
  width: 100%;
}

/* Desktop için tablo ayarları */
@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Tablo hücreleri yeterli alan kaplasın */
  .table th,
  .table td {
    white-space: nowrap;
  }

  /* Uzun içerik olan hücreler wrap yapabilir */
  .table td.text-wrap {
    white-space: normal;
    word-break: break-word;
  }
}

/* Orta ekran boyutları */
@media (min-width: 992px) and (max-width: 1199px) {
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Tablet için */
@media (min-width: 769px) and (max-width: 991px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.1));
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
}

.page-kicker {
  color: #0d6efd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  color: #182235;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 800;
}

.page-subtitle {
  color: #667085;
  max-width: 760px;
}

.modern-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.modern-card-header {
  align-items: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.permission-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.permission-card-header {
  color: #fff;
  padding: 0.9rem 1.1rem;
}

.permission-card-header h5 {
  font-size: 1rem;
  font-weight: 800;
}

.permission-card-header--primary { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.permission-card-header--info { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.permission-card-header--success { background: linear-gradient(135deg, #198754, #0f6848); }
.permission-card-header--warning { background: linear-gradient(135deg, #ffc107, #f59f00); color: #1f2937; }
.permission-card-header--secondary { background: linear-gradient(135deg, #64748b, #475569); }
.permission-card-header--dark { background: linear-gradient(135deg, #111827, #334155); }
.permission-card-header--danger { background: linear-gradient(135deg, #dc3545, #9f1239); }

.permission-card-body {
  padding: 1rem 1.1rem;
}

.permission-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.75rem 0;
}

.permission-row:last-child {
  border-bottom: 0;
}

.sticky-action-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  bottom: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  position: sticky;
  z-index: 5;
}
.contract-detail-header {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(280px, 1fr) auto;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.contract-detail-summary {
  min-width: 0;
}

.contract-detail-title-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.55rem;
}

.contract-detail-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.contract-detail-number {
  color: #495057;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contract-detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.contract-action-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.contract-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contract-action-form {
  display: inline-flex;
  margin: 0;
}

.contract-action-divider {
  background: #e9ecef;
  height: 24px;
  width: 1px;
}

.contract-action-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 0.4rem;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0 0.45rem;
  white-space: nowrap;
}

.contract-action-btn i {
  font-size: 0.78rem;
  width: 0.85rem;
}

.contract-action-btn--neutral {
  color: #495057;
}

.contract-action-btn--neutral:hover {
  background: #f1f3f5;
  color: #212529;
}

.contract-action-btn--success {
  color: #198754;
}

.contract-action-btn--success:hover {
  background: #e9f7ef;
  color: #146c43;
}

.contract-action-btn--warning {
  color: #8a6500;
}

.contract-action-btn--warning:hover {
  background: #fff4cc;
  color: #6b4f00;
}

.contract-action-btn--danger {
  color: #b02a37;
}

.contract-action-btn--danger:hover {
  background: #fbeaec;
  color: #842029;
}

.contract-action-btn--restore {
  color: #0a58ca;
}

.contract-action-btn--restore:hover {
  background: #e7f1ff;
  color: #084298;
}

.contract-action-btn--waiting {
  color: #868e96;
  cursor: help;
}

.contract-action-btn--waiting:hover,
.contract-action-btn--waiting:focus {
  background: #f1f3f5;
  color: #5c636a;
  outline: none;
}

.contract-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  height: 30px;
  padding: 0 0.7rem;
  white-space: nowrap;
}

.contract-status-pill--success {
  background: #d1e7dd;
  color: #0f5132;
}

.contract-status-pill--danger {
  background: #f8d7da;
  color: #842029;
}

@media (max-width: 991.98px) {
  .contract-detail-header {
    align-items: flex-start !important;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .contract-action-toolbar {
    justify-content: flex-start;
    width: 100%;
  }

  .contract-action-divider {
    display: none;
  }
}

.invoice-upload-page {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}

.invoice-upload-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.8rem;
  box-shadow: 0 0.6rem 2rem rgba(33, 37, 41, 0.08);
  max-width: 620px;
  padding: 1.75rem;
  width: 100%;
}

.invoice-upload-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.invoice-upload-heading h1,
.invoice-upload-card > h1 {
  font-size: 1.45rem;
  margin: 0.2rem 0 0;
}

.invoice-upload-eyebrow {
  color: #198754;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-upload-heading-icon {
  color: #198754;
  font-size: 2rem;
}

.invoice-upload-details {
  background: #f8f9fa;
  border-radius: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
}

.invoice-upload-details > div {
  display: grid;
  gap: 1rem;
  grid-template-columns: 105px 1fr;
  padding: 0.65rem 0;
}

.invoice-upload-details > div + div {
  border-top: 1px solid #e9ecef;
}

.invoice-upload-details dt {
  color: #6c757d;
  font-weight: 500;
}

.invoice-upload-details dd {
  font-weight: 600;
  margin: 0;
}

.invoice-upload-security-note {
  color: #6c757d;
  font-size: 0.78rem;
  margin: 1rem 0 0;
  text-align: center;
}

.invoice-upload-success-icon,
.invoice-upload-error-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 1.5rem;
  height: 56px;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 56px;
}

.invoice-upload-success-icon {
  background: #d1e7dd;
  color: #0f5132;
}

.invoice-upload-error-icon {
  background: #f8d7da;
  color: #842029;
}

.contract-side-panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.contract-side-tabs {
  background: #f8f9fa;
  flex-shrink: 0;
}

.contract-side-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 48px;
  padding: 0.65rem 0.35rem;
}

.contract-side-tabs .nav-link:hover {
  color: #0d6efd;
}

.contract-side-tabs .nav-link.active {
  background: #fff;
  border-bottom-color: #0d6efd;
  color: #0d6efd;
}

.contract-side-tabs .badge {
  font-size: 0.65rem;
  vertical-align: 1px;
}

.contract-side-tab-content {
  flex: 1;
  min-height: 0;
}

.contract-side-tab-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.contract-side-tab-pane .notes-scroll-area,
.contract-activity-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.contract-notes-toolbar {
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
}

.contract-side-empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
  min-height: 220px;
}

.contract-side-empty-state i {
  color: #adb5bd;
  font-size: 1.35rem;
}

.contract-activity-timeline {
  position: relative;
}

.contract-activity-timeline::before {
  background: #e9ecef;
  bottom: 12px;
  content: "";
  left: 15px;
  position: absolute;
  top: 12px;
  width: 2px;
}

.contract-activity-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  position: relative;
}

.contract-activity-icon {
  align-items: center;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
  z-index: 1;
}

.contract-activity-content {
  min-width: 0;
  padding-top: 0.15rem;
}

.contract-activity-description {
  color: #343a40;
  font-size: 0.82rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contract-activity-meta {
  color: #868e96;
  display: grid;
  font-size: 0.76rem;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.invoice-note-view-button {
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}

.invoice-note-view-button:hover,
.invoice-note-view-button:focus {
  color: #0d6efd !important;
  text-decoration: none;
}

.extra-tracking-modal__content {
  max-height: calc(100vh - 2rem);
}

.extra-tracking-modal__body {
  overflow: hidden;
}

body.modal-open .extra-tracking-modal__table-wrap {
  max-height: min(70vh, 720px);
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

.extra-tracking-modal__table-wrap table {
  min-width: 1120px;
}

.extra-tracking-modal__table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 768px) {
  body.modal-open .extra-tracking-modal__table-wrap {
    max-height: 65vh;
  }

  .extra-tracking-modal__dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
}

/* ============================================
   PROFESSIONAL APP NAVBAR
   ============================================ */

body {
  background: #f7f9fc;
}

body .app-navbar.navbar {
  min-height: 72px;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body .app-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(13, 110, 253, 0.12), transparent 22rem),
    radial-gradient(circle at 90% 0%, rgba(32, 201, 151, 0.13), transparent 20rem);
}

body .app-navbar > .container-fluid {
  position: relative;
  z-index: 1;
}

body .app-navbar-brand.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 210px;
  margin-right: 1.25rem;
  padding: 0;
  color: #101828 !important;
}

.app-navbar-brand__logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.app-navbar-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-navbar-brand__text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.05;
}

.app-navbar-brand__text strong {
  color: #101828;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.app-navbar-brand__text small {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body .app-navbar-nav.navbar-nav {
  align-items: center;
  gap: 0.25rem;
}

body .app-navbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem !important;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #475467 !important;
  font-size: 0.86rem;
  font-weight: 800;
  transition: all 0.18s ease;
}

body .app-navbar .navbar-nav .nav-link i {
  color: #0d6efd;
  font-size: 0.82rem;
  opacity: 0.9;
}

body .app-navbar .navbar-nav .nav-link:hover,
body .app-navbar .navbar-nav .nav-link:focus {
  color: #101828 !important;
  border-color: rgba(13, 110, 253, 0.10);
  background: rgba(13, 110, 253, 0.08);
  transform: translateY(-1px);
}

body .app-navbar .navbar-nav .nav-link.active {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
}

body .app-navbar .navbar-nav .nav-link.active i {
  color: #fff;
}

body .app-navbar .dropdown-toggle::after {
  margin-left: 0.1rem;
  opacity: 0.7;
}

body .app-navbar .app-navbar-dropdown.dropdown-menu {
  min-width: 230px;
  margin-top: 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

body .app-navbar .app-navbar-dropdown--wide.dropdown-menu {
  min-width: 270px;
}

body .app-navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.75rem;
  border-radius: 12px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 750;
}

body .app-navbar .dropdown-item i {
  width: 1.15rem;
  color: #0d6efd;
  text-align: center;
}

body .app-navbar .dropdown-item:hover,
body .app-navbar .dropdown-item:focus {
  color: #101828;
  background: #eef6ff;
}

body .app-navbar .dropdown-divider {
  margin: 0.45rem 0;
  border-color: rgba(15, 23, 42, 0.08);
}

.app-navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.app-navbar-user__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
  font-size: 0.92rem;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.24);
}

.app-navbar-user__meta {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.app-navbar-user__meta span {
  max-width: 150px;
  overflow: hidden;
  color: #1d2939;
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar-user__meta small {
  max-width: 150px;
  overflow: hidden;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar-logout-form {
  margin: 0;
}

body .app-navbar-logout.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 0.78rem;
  font-weight: 850;
}

body .app-navbar-logout.btn:hover,
body .app-navbar-logout.btn:focus {
  color: #fff;
  background: #ef4444;
}

body .app-navbar-toggler.navbar-toggler {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body .app-navbar-toggler .navbar-toggler-icon {
  filter: none;
  opacity: 0.75;
}

@media (max-width: 1200px) {
  body .app-navbar-brand.navbar-brand {
    min-width: auto;
  }

  .app-navbar-brand__text small {
    display: none;
  }

  body .app-navbar .navbar-nav .nav-link {
    padding-left: 0.62rem !important;
    padding-right: 0.62rem !important;
  }
}

@media (max-width: 991.98px) {
  body .app-navbar.navbar {
    padding: 0.6rem 0;
  }

  body .app-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body .app-navbar-nav.navbar-nav {
    align-items: stretch;
  }

  body .app-navbar .navbar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  body .app-navbar .app-navbar-dropdown.dropdown-menu {
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .app-navbar-user {
    width: 100%;
    justify-content: flex-start;
    margin: 0.75rem 0 0;
    border-radius: 18px;
  }

  .app-navbar-user__meta {
    flex: 1;
  }
}

/* ============================================
   SHARED PROFESSIONAL PAGE LANGUAGE
   ============================================ */

.professional-page-shell {
  margin: -0.25rem -0.25rem 0;
  padding: 1.35rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 30rem),
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.13), transparent 28rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.professional-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  position: relative;
}

.professional-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(20, 184, 166, 0.18));
  pointer-events: none;
}

.professional-hero > * {
  position: relative;
  z-index: 1;
}

.professional-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #0f5ed7;
  background: rgba(13, 110, 253, 0.10);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.professional-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.professional-hero p {
  margin: 0.55rem 0 0;
  color: #667085;
  font-size: 0.96rem;
}

.professional-hero-actions {
  min-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
}

.professional-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.professional-kpi {
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.professional-kpi span {
  display: block;
  color: #101828;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.professional-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.professional-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.professional-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.78rem;
  border-radius: 999px !important;
  font-weight: 850;
  text-decoration: none !important;
}

.professional-btn--primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0d6efd, #14b8a6) !important;
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
}

.professional-btn--ghost {
  border: 1px solid rgba(13, 110, 253, 0.18) !important;
  color: #0d6efd !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.professional-btn--danger {
  border: 1px solid rgba(239, 68, 68, 0.18) !important;
  color: #dc2626 !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.professional-panel,
.professional-page-shell .card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09) !important;
}

.professional-page-shell .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: #f8fafc !important;
}

.professional-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #1d2939;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.professional-search-panel {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: #f8fafc;
}

.professional-search-panel .form-control,
.professional-search-panel .form-select,
.professional-search-panel .input-group-text {
  min-height: 44px;
  border-color: rgba(15, 23, 42, 0.10);
  background-color: #fff;
  font-weight: 600;
}

.professional-table {
  color: #344054;
  font-size: 0.9rem;
}

.professional-table thead th,
.professional-page-shell .table thead th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #475467;
  background: #f1f5f9 !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.professional-table tbody td,
.professional-page-shell .table tbody td {
  padding: 1rem;
  border-color: rgba(15, 23, 42, 0.06);
}

.professional-table tbody tr,
.professional-page-shell .table tbody tr {
  transition: background 0.16s ease;
}

.professional-table tbody tr:hover,
.professional-page-shell .table tbody tr:hover {
  background: #eef6ff;
}

.professional-info-card {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.professional-info-card .card-body {
  padding: 1.15rem;
}

.professional-info-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #1d2939 !important;
  font-weight: 850;
}

.professional-info-card dt {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.professional-info-card dd {
  color: #1d2939;
  font-weight: 750;
}

@media (max-width: 992px) {
  .professional-hero {
    flex-direction: column;
  }

  .professional-hero-actions {
    min-width: 0;
    align-items: stretch;
  }

  .professional-kpis {
    grid-template-columns: 1fr;
  }

  .professional-actions {
    justify-content: flex-start;
  }
}

.contract-show-modern .contract-show-hero.contract-detail-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  padding: 1.25rem;
}

.contract-show-modern .contract-detail-title {
  color: #101828;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.055em;
}

.contract-show-modern .contract-detail-number {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.contract-show-modern .card h5,
.contract-show-modern .card h6 {
  color: #1d2939;
  font-weight: 850;
}

.contract-show-modern .card.border-0.bg-light {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 22px !important;
  background: #fff !important;
}

.contract-show-modern .contract-side-panel {
  border-radius: 22px !important;
}

.contract-show-modern .card-header h5,
.contract-show-modern .card-header .mb-0 {
  font-weight: 850;
}

.contract-show-modern .table {
  color: #344054;
  font-size: 0.9rem;
}

.summaries-index-page .row-danger-30 {
  background: #fff1f2 !important;
  box-shadow: inset 4px 0 0 #ef4444;
}

.summaries-index-page .row-warning-60 {
  background: #fff7ed !important;
  box-shadow: inset 4px 0 0 #f97316;
}

.summaries-index-page .btn-address {
  border: 1px solid rgba(13, 110, 253, 0.16) !important;
  border-radius: 12px;
  background: #fff !important;
}

.summaries-index-page .btn-address i {
  color: #0d6efd !important;
}

.summaries-index-page .btn-address:hover {
  background: rgba(13, 110, 253, 0.08) !important;
}

.crane-show-page .professional-kpi:first-child span {
  font-size: 1rem;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .contract-show-modern .contract-show-hero.contract-detail-header {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LIGHT / DARK THEME
   ============================================ */

:root {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

.app-theme-toggle.btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #0d6efd;
  background: #f2f4f7;
}

.app-theme-toggle.btn:hover,
.app-theme-toggle.btn:focus {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
}

.app-theme-toggle__light-icon {
  display: none;
}

:root[data-theme="dark"] .app-theme-toggle__dark-icon {
  display: none;
}

:root[data-theme="dark"] .app-theme-toggle__light-icon {
  display: inline-block;
}

:root[data-theme="dark"] body {
  background: #08111f;
  color: #d7e1f2;
}

:root[data-theme="dark"] body .app-navbar.navbar {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.90)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] body .app-navbar::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.20), transparent 22rem),
    radial-gradient(circle at 90% 0%, rgba(20, 184, 166, 0.18), transparent 20rem);
}

:root[data-theme="dark"] .app-navbar-brand__logo,
:root[data-theme="dark"] body .app-navbar-toggler.navbar-toggler {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .app-navbar-brand__text strong,
:root[data-theme="dark"] .app-navbar-user__meta span {
  color: #f8fafc;
}

:root[data-theme="dark"] .app-navbar-brand__text small,
:root[data-theme="dark"] .app-navbar-user__meta small {
  color: #94a3b8;
}

:root[data-theme="dark"] body .app-navbar .navbar-nav .nav-link {
  color: #cbd5e1 !important;
}

:root[data-theme="dark"] body .app-navbar .navbar-nav .nav-link:hover,
:root[data-theme="dark"] body .app-navbar .navbar-nav .nav-link:focus {
  color: #f8fafc !important;
  border-color: rgba(59, 130, 246, 0.20);
  background: rgba(59, 130, 246, 0.12);
}

:root[data-theme="dark"] body .app-navbar .app-navbar-dropdown.dropdown-menu,
:root[data-theme="dark"] body .app-navbar .navbar-collapse {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] body .app-navbar .dropdown-item {
  color: #d7e1f2;
}

:root[data-theme="dark"] body .app-navbar .dropdown-item:hover,
:root[data-theme="dark"] body .app-navbar .dropdown-item:focus {
  color: #f8fafc;
  background: rgba(59, 130, 246, 0.14);
}

:root[data-theme="dark"] body .app-navbar .dropdown-divider {
  border-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .app-navbar-user {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] body .app-navbar-logout.btn,
:root[data-theme="dark"] .app-theme-toggle.btn {
  color: #d7e1f2;
  background: rgba(30, 41, 59, 0.92);
}

:root[data-theme="dark"] .dashboard-shell,
:root[data-theme="dark"] .professional-page-shell,
:root[data-theme="dark"] .contracts-index-shell {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 28rem),
    linear-gradient(180deg, #08111f 0%, #0f172a 100%);
}

:root[data-theme="dark"] .dashboard-hero,
:root[data-theme="dark"] .professional-hero,
:root[data-theme="dark"] .contracts-index-hero,
:root[data-theme="dark"] .modern-stat-card,
:root[data-theme="dark"] .professional-panel,
:root[data-theme="dark"] .professional-page-shell .card,
:root[data-theme="dark"] .contracts-index-panel,
:root[data-theme="dark"] #dashboardAccordion .accordion-item,
:root[data-theme="dark"] .professional-info-card {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.90) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32) !important;
}

:root[data-theme="dark"] .dashboard-hero h1,
:root[data-theme="dark"] .professional-hero h1,
:root[data-theme="dark"] .contracts-index-hero h1,
:root[data-theme="dark"] .modern-card-header h5,
:root[data-theme="dark"] .professional-card-title,
:root[data-theme="dark"] .professional-info-title,
:root[data-theme="dark"] .contract-show-modern .contract-detail-title,
:root[data-theme="dark"] .contract-show-modern .card h5,
:root[data-theme="dark"] .contract-show-modern .card h6,
:root[data-theme="dark"] .contracts-index-kpi span,
:root[data-theme="dark"] .professional-kpi span,
:root[data-theme="dark"] .dashboard-hero-kpi span,
:root[data-theme="dark"] .stat-value,
:root[data-theme="dark"] .professional-info-card dd,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .dashboard-hero p,
:root[data-theme="dark"] .professional-hero p,
:root[data-theme="dark"] .contracts-index-hero p,
:root[data-theme="dark"] .dashboard-hero-kpi small,
:root[data-theme="dark"] .professional-kpi small,
:root[data-theme="dark"] .contracts-index-kpi small,
:root[data-theme="dark"] .stat-label,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .professional-info-card dt,
:root[data-theme="dark"] .contract-detail-number {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .dashboard-hero-kpi,
:root[data-theme="dark"] .professional-kpi,
:root[data-theme="dark"] .contracts-index-kpi,
:root[data-theme="dark"] .stat-item,
:root[data-theme="dark"] .stat-item-large,
:root[data-theme="dark"] .dashboard-date-chip,
:root[data-theme="dark"] .contract-show-modern .contract-detail-number {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .modern-card-header,
:root[data-theme="dark"] .modern-card-header.header-primary,
:root[data-theme="dark"] .modern-card-header.header-success,
:root[data-theme="dark"] .modern-card-header.header-warning,
:root[data-theme="dark"] .modern-card-header.header-danger,
:root[data-theme="dark"] .modern-card-header.header-info,
:root[data-theme="dark"] .modern-card-header.header-teal,
:root[data-theme="dark"] .professional-page-shell .card-header,
:root[data-theme="dark"] .professional-search-panel,
:root[data-theme="dark"] .contracts-index-search,
:root[data-theme="dark"] #dashboardAccordion .accordion-body > .d-flex.bg-light {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.96) !important;
}

:root[data-theme="dark"] #dashboardAccordion .accordion-button,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.bg-warning,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.bg-success,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.text-white,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.text-dark {
  color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.98) !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .input-group-text,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .professional-search-panel .form-control,
:root[data-theme="dark"] .professional-search-panel .form-select,
:root[data-theme="dark"] .professional-search-panel .input-group-text,
:root[data-theme="dark"] .contracts-index-search .input-group-text,
:root[data-theme="dark"] .contracts-index-search .form-control,
:root[data-theme="dark"] .contracts-index-search .btn {
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
  background-color: rgba(15, 23, 42, 0.92) !important;
}

:root[data-theme="dark"] .form-control::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}

:root[data-theme="dark"] .table,
:root[data-theme="dark"] .professional-table,
:root[data-theme="dark"] .contracts-index-table,
:root[data-theme="dark"] #dashboardAccordion .table {
  --bs-table-color: #d7e1f2;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(148, 163, 184, 0.12);
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: #d7e1f2;
  --bs-table-striped-bg: rgba(30, 41, 59, 0.62);
  --bs-table-hover-color: #f8fafc;
  --bs-table-hover-bg: rgba(59, 130, 246, 0.14);
  color: #d7e1f2 !important;
}

:root[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-theme="dark"] #dashboardAccordion .table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-theme="dark"] .professional-table.table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-theme="dark"] .contracts-index-table.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(30, 41, 59, 0.62) !important;
  color: #d7e1f2 !important;
}

:root[data-theme="dark"] .table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] #dashboardAccordion .table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] .professional-table.table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] .contracts-index-table.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(59, 130, 246, 0.14) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .table > :not(caption) > * > *,
:root[data-theme="dark"] #dashboardAccordion .table > :not(caption) > * > *,
:root[data-theme="dark"] .professional-table > :not(caption) > * > *,
:root[data-theme="dark"] .contracts-index-table > :not(caption) > * > * {
  color: inherit;
  background-color: var(--bs-table-bg) !important;
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
}

:root[data-theme="dark"] .table thead,
:root[data-theme="dark"] .table thead.table-light,
:root[data-theme="dark"] .professional-table thead th,
:root[data-theme="dark"] .professional-page-shell .table thead th,
:root[data-theme="dark"] .contracts-index-table thead th,
:root[data-theme="dark"] #dashboardAccordion .table thead th {
  color: #cbd5e1 !important;
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

:root[data-theme="dark"] .table tbody td,
:root[data-theme="dark"] .professional-table tbody td,
:root[data-theme="dark"] .professional-page-shell .table tbody td,
:root[data-theme="dark"] .contracts-index-table tbody td {
  border-color: rgba(148, 163, 184, 0.12) !important;
}

:root[data-theme="dark"] .table tbody tr:hover,
:root[data-theme="dark"] .professional-table tbody tr:hover,
:root[data-theme="dark"] .professional-page-shell .table tbody tr:hover,
:root[data-theme="dark"] .contracts-index-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.14) !important;
}

:root[data-theme="dark"] .modal-content {
  border-color: rgba(148, 163, 184, 0.16);
  color: #d7e1f2;
  background: #0f172a;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .list-group-item,
:root[data-theme="dark"] .bg-white,
:root[data-theme="dark"] .bg-light,
:root[data-theme="dark"] .table-light,
:root[data-theme="dark"] .dropdown-menu {
  color: #d7e1f2 !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  background-color: rgba(15, 23, 42, 0.92) !important;
}

:root[data-theme="dark"] .border,
:root[data-theme="dark"] .border-bottom,
:root[data-theme="dark"] .border-top,
:root[data-theme="dark"] .border-start,
:root[data-theme="dark"] .border-end {
  border-color: rgba(148, 163, 184, 0.16) !important;
}

:root[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: #60a5fa;
}

:root[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
  color: #93c5fd;
}

:root[data-theme="dark"] .modal-header,
:root[data-theme="dark"] .modal-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .alert-info,
:root[data-theme="dark"] .alert-light {
  border-color: rgba(59, 130, 246, 0.22);
  color: #d7e1f2;
  background: rgba(59, 130, 246, 0.12);
}

:root[data-theme="dark"] .summaries-index-page .row-danger-30 {
  background: rgba(239, 68, 68, 0.13) !important;
  box-shadow: inset 4px 0 0 #ef4444;
}

:root[data-theme="dark"] .summaries-index-page .row-warning-60 {
  background: rgba(249, 115, 22, 0.13) !important;
  box-shadow: inset 4px 0 0 #f97316;
}

:root[data-theme="dark"] .summaries-index-page .btn-address {
  border-color: rgba(59, 130, 246, 0.24) !important;
  background: rgba(15, 23, 42, 0.90) !important;
}

:root[data-theme="dark"] .contracts-index-tabs .nav-link {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.72);
}

:root[data-theme="dark"] .contracts-index-tabs .nav-link:hover {
  color: #f8fafc;
  background: rgba(59, 130, 246, 0.14);
}

@media (max-width: 991.98px) {
  :root[data-theme="dark"] body .app-navbar .navbar-collapse {
    background: rgba(15, 23, 42, 0.98) !important;
  }
}
