@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap");

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    height: 100%;
    margin: 0;
}

body {
  margin-bottom: 0;
  background: radial-gradient(circle at top left, #eef4ff 0%, #f9fbff 45%, #eaf2ff 100%);
  color: var(--ink);
}

.required-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.required-indicator {
    color: #dc2626;
    font-weight: 700;
    line-height: 1;
}

.required-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink-muted);
    font-size: 0.875rem;
}

.required-legend .required-indicator {
    font-size: 0.95rem;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

h4 {
    text-align: center;
}

.rightalign {
    text-align: right;
}

:root {
    --auth-ink: #0f172a;
    --auth-muted: #475569;
    --auth-accent: #2563eb;
    --auth-accent-strong: #1d4ed8;
    --auth-sand: #f2efe9;
    --auth-peach: #f6c9a6;
    --auth-cream: #fbfaf6;
    --auth-shadow: 0 25px 60px rgba(15, 31, 29, 0.18);
    --surface: #ffffff;
    --surface-muted: #f7f7f7;
    --ink: #0f172a;
    --ink-muted: #475569;
    --border: rgba(15, 23, 42, 0.12);
    --chart-bg: #f1ecff;
}

.auth-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 24px;
    width: 100%;
}

.auth-card {
    width: min(900px, 96%);
    background: var(--auth-cream);
    border-radius: 24px;
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    border: 1px solid rgba(15, 31, 29, 0.08);
}

.auth-card-compact {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(760px, 96%);
}

.auth-hero {
    padding: 28px 32px 24px;
    background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 40%, #e0e7ff 100%);
    border-right: 1px solid rgba(15, 31, 29, 0.08);
}

.auth-hero-compact {
    padding: 28px 32px;
}

.auth-brand {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--auth-accent-strong);
    margin-bottom: 18px;
}

.auth-hero h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: var(--auth-ink);
    margin-bottom: 12px;
}

.auth-hero p {
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--auth-muted);
    font-size: 1.02rem;
}

.auth-metrics {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.auth-metric {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(15, 31, 29, 0.08);
}

.auth-metric-label {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.85rem;
    color: var(--auth-muted);
}

.auth-metric-value {
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    color: var(--auth-accent-strong);
}

.auth-checklist {
    margin-top: 24px;
    padding-left: 18px;
    color: var(--auth-muted);
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.6;
}

.auth-form {
    padding: 28px 32px;
    background: var(--auth-cream);
}

.auth-form h2 {
    font-family: "Fraunces", serif;
    color: var(--auth-ink);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--auth-muted);
    margin-bottom: 24px;
}

.auth-form .form-label {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    color: var(--auth-ink);
}

.auth-form .form-control {
    border-radius: 12px;
    border: 1px solid rgba(15, 31, 29, 0.15);
    padding: 10px 12px;
    font-family: "IBM Plex Sans", sans-serif;
}

.auth-form .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.2);
}

.auth-primary {
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
}

.auth-primary:hover {
    background: var(--auth-accent-strong);
    border-color: var(--auth-accent-strong);
}

.auth-link {
    color: var(--auth-accent-strong);
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--auth-muted);
}

.auth-body header .navbar,
header .navbar {
    background-color: transparent !important;
    border-color: rgba(15, 31, 29, 0.12) !important;
    box-shadow: none !important;
}

.auth-body header .navbar .navbar-brand,
.auth-body header .navbar .nav-link,
header .navbar .navbar-brand,
header .navbar .nav-link {
    color: var(--auth-ink) !important;
}

footer {
    background: transparent;
}

body.theme-dark {
    background: radial-gradient(circle at top left, #1a2423 0%, #121816 45%, #0d1211 100%);
    color: #e6f0ee;
}

body.theme-dark .navbar,
body.theme-dark header .navbar {
    background-color: transparent !important;
    border-color: rgba(230, 240, 238, 0.18) !important;
}

body.theme-dark .navbar .nav-link,
body.theme-dark .navbar .navbar-brand {
    color: #e6f0ee !important;
}

body.theme-dark .card,
body.theme-dark .dropdown-menu,
body.theme-dark .table,
body.theme-dark .modal-content {
    background-color: #141d1c;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark input[type="date"],
body.theme-dark input[type="datetime-local"],
body.theme-dark input[type="time"] {
    color-scheme: dark;
    background-color: #1b2625;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.18);
}

body.theme-dark input[type="date"]::placeholder,
body.theme-dark input[type="datetime-local"]::placeholder,
body.theme-dark input[type="time"]::placeholder {
    color: rgba(230, 240, 238, 0.58);
}

body.theme-dark input[type="date"]:focus,
body.theme-dark input[type="datetime-local"]:focus,
body.theme-dark input[type="time"]:focus {
    background-color: #1f2d2c;
    color: #f8fffe;
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.15);
}

body.theme-dark .table {
    --bs-table-bg: #141d1c;
    --bs-table-striped-bg: #192221;
    --bs-table-color: #e6f0ee;
    --bs-table-striped-color: #e6f0ee;
    --bs-table-border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .table-light {
    --bs-table-bg: #1c2625;
    --bs-table-border-color: rgba(230, 240, 238, 0.12);
    color: #e6f0ee;
}

body.theme-dark .table {
    color: #e6f0ee;
}

body.theme-dark .table > :not(caption) > * > * {
    background-color: #141d1c;
    color: #e6f0ee;
}

body.theme-dark .table thead th,
body.theme-dark .table thead td {
    background-color: #172120;
    color: #e6f0ee;
}

body.theme-dark .table tbody tr,
body.theme-dark .table tbody td,
body.theme-dark .table tbody th {
    background-color: #141d1c !important;
    color: #e6f0ee !important;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #192221 !important;
    color: #e6f0ee !important;
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #141d1c !important;
    color: #e6f0ee !important;
}

body.theme-dark .pagination .page-link {
    background-color: #1b2625;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.2);
}

body.theme-dark .pagination .page-item.active .page-link {
    background-color: #2a3a39;
    border-color: #2a3a39;
}


body.theme-dark .footer,
body.theme-dark footer {
    color: #b5c2bf !important;
}

body.theme-dark .footer *,
body.theme-dark footer * {
    color: #b5c2bf !important;
}

body.theme-dark .text-muted,
body.theme-dark .text-secondary,
body.theme-dark .subtitle,
body.theme-dark .small,
body.theme-dark .form-text {
    color: #b5c2bf !important;
}

body.theme-dark .company-name,
body.theme-dark .company-initials,
body.theme-dark .user-initials,
body.theme-dark .dropdown-header,
body.theme-dark .dropdown-header small {
    color: #e6f0ee !important;
}

body.theme-dark .company-badge,
body.theme-dark .notification-bell {
    background: rgba(230, 240, 238, 0.08);
    border-color: rgba(230, 240, 238, 0.2);
}

body.theme-dark .notification-bell svg {
    fill: #e6f0ee;
}

body.theme-dark .auth-card,
body.theme-dark .auth-form,
body.theme-dark .auth-hero,
body.theme-dark .auth-metric,
body.theme-dark .auth-metric-label,
body.theme-dark .auth-metric-value,
body.theme-dark .auth-hero h1,
body.theme-dark .auth-hero p,
body.theme-dark .auth-form h2,
body.theme-dark .auth-subtitle,
body.theme-dark .auth-form .form-label,
body.theme-dark .auth-link,
body.theme-dark .auth-footer {
    color: #e6f0ee !important;
}

body.theme-dark .auth-card,
body.theme-dark .auth-form {
    background: #141d1c;
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .auth-hero {
    background: linear-gradient(160deg, #1f2a29 0%, #182221 45%, #121a19 100%);
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .auth-metric {
    background: rgba(15, 22, 21, 0.7);
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .auth-form .form-control {
    background: #1b2625;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.2);
}

body.theme-dark .btn-close {
    filter: invert(1) grayscale(100%);
}

body.theme-dark a {
    color: #93c5fd;
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .selectpicker,
body.theme-dark .dropdown-item {
    background-color: #1b2625;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.2);
}

body.theme-dark .bootstrap-select > .dropdown-toggle,
body.theme-dark .bootstrap-select .dropdown-menu {
    background-color: #1b2625;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.2);
}

body.theme-dark .bootstrap-select .dropdown-menu .dropdown-item {
    color: #e6f0ee;
}

body.theme-dark .bootstrap-select .dropdown-menu .dropdown-item.active,
body.theme-dark .bootstrap-select .dropdown-menu .dropdown-item:active,
body.theme-dark .bootstrap-select .dropdown-menu .dropdown-item:hover {
    background-color: #243030;
    color: #e6f0ee;
}

body.theme-dark .bootstrap-select .dropdown-menu .bs-searchbox .form-control {
    background-color: #1f2a29;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.25);
}

body.theme-dark .select2-container--bootstrap-5 .select2-selection {
    background-color: #1b2625 !important;
    color: #e6f0ee !important;
    border-color: rgba(230, 240, 238, 0.2) !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
body.theme-dark .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    color: #e6f0ee !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder,
body.theme-dark .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__placeholder {
    color: #9fb3bf !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-top-color: #c7d7e5 !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-dropdown {
    background-color: #141d1c !important;
    border-color: rgba(230, 240, 238, 0.2) !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-search .select2-search__field {
    background-color: #1b2625 !important;
    color: #e6f0ee !important;
    border-color: rgba(230, 240, 238, 0.2) !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-results__option {
    background-color: #141d1c !important;
    color: #e6f0ee !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
body.theme-dark .select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected="true"] {
    background-color: #1d4ed8 !important;
    color: #eff6ff !important;
}

body.theme-dark .select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background-color: #1e293b !important;
    color: #dbeafe !important;
}

body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
    background-color: #243030;
}

body.theme-dark .dropdown-item-text {
    color: #e6f0ee;
}

body.theme-dark .footer {
    color: #b5c2bf;
}

body.theme-dark .kpi-gradient-card::after {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .chart-card {
    background: #1a2027;
}

body.theme-dark {
    --chart-bg: #1a2027;
}

.doc-summary-card {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    box-shadow: 0 18px 35px rgba(30, 64, 175, 0.2);
    position: relative;
    z-index: 1;
}

.doc-summary-card h5 {
    font-family: "Fraunces", serif;
}

.doc-summary-list {
    display: grid;
    gap: 10px;
}

.doc-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.doc-summary-name {
    font-weight: 600;
}

.doc-summary-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-summary-pill {
    background: rgba(15, 30, 28, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.doc-summary-badge {
    background: rgba(15, 30, 28, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

body.theme-dark .doc-summary-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    box-shadow: 0 18px 35px rgba(8, 16, 15, 0.45);
}

.chart-card {
    margin-bottom: 18px;
    position: relative;
    z-index: 0;
}

.kpi-plan-table {
    min-width: 1600px;
}

.kpi-plan-table .form-control-sm {
    min-width: 7ch;
}

footer.border-top,
footer .border-top {
    border-color: rgba(15, 31, 29, 0.12) !important;
}

.auth-body .footer {
    position: static !important;
    line-height: normal;
}

.footer {
    padding: 12px 0;
}

.page-scroll .footer {
    position: static !important;
    line-height: normal !important;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-initials {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    color: var(--auth-accent-strong);
    font-size: 0.85rem;
}

.notification-bell {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.notification-bell svg {
    width: 20px;
    height: 20px;
    fill: var(--auth-accent-strong);
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e03a3a;
    border: 2px solid #fff;
}

.notification-bell-toggle {
    padding: 0;
}

.notification-count-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

.notification-menu {
    width: min(420px, calc(100vw - 2rem));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    overflow: hidden;
}

.notification-menu-header,
.notification-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(248, 250, 252, 0.9);
}

.notification-menu-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.notification-menu-body {
    max-height: min(60vh, 520px);
    overflow-y: auto;
    background: #fff;
}

.notification-empty {
    padding: 1.2rem;
    color: #64748b;
    text-align: center;
}

.notification-entry {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.notification-entry:last-child {
    border-bottom: none;
}

.notification-entry--read {
    opacity: 0.78;
}

.notification-entry-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.8rem;
}

.notification-entry-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.notification-entry-message {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.notification-entry-time {
    color: #64748b;
    font-size: 0.8rem;
}

.notification-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.notification-page {
    display: grid;
    gap: 1.5rem;
}

.notification-page-header,
.notification-page-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.notification-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
}

.notification-page-eyebrow {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 0.35rem;
}

.notification-page-title {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 700;
    color: #0f172a;
}

.notification-page-subtitle,
.notification-page-meta {
    color: #64748b;
}

.notification-page-shell {
    padding: 1.5rem;
}

.notification-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.notification-view-switch {
    gap: 0.6rem;
}

.notification-view-switch .nav-link {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    color: #475569;
    background: rgba(241, 245, 249, 0.95);
}

.notification-view-switch .nav-link.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.notification-empty-state {
    display: grid;
    place-items: center;
    gap: 0.6rem;
    min-height: 320px;
    text-align: center;
    color: #475569;
}

.notification-empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
}

.notification-list {
    display: grid;
    gap: 1rem;
}

.notification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.notification-card--read {
    opacity: 0.86;
}

.notification-card-top,
.notification-card-meta,
.notification-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.notification-card-status {
    font-size: 0.85rem;
    color: #64748b;
}

.notification-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 0.7rem 0 0.55rem;
}

.notification-card-title {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.notification-card-message {
    margin-bottom: 0;
    color: #475569;
}

.notification-card-meta {
    color: #64748b;
    font-size: 0.86rem;
}

.notification-card-actions {
    justify-content: flex-end;
    align-content: start;
}

body.theme-dark .notification-count-badge {
    box-shadow: 0 0 0 2px #141d1c;
}

body.theme-dark .notification-menu,
body.theme-dark .notification-page-header,
body.theme-dark .notification-page-shell,
body.theme-dark .notification-card {
    background: #141d1c;
    border-color: rgba(230, 240, 238, 0.12);
    color: #e6f0ee;
}

body.theme-dark .notification-menu-header,
body.theme-dark .notification-menu-footer {
    background: rgba(20, 29, 28, 0.96);
    border-color: rgba(230, 240, 238, 0.08);
}

body.theme-dark .notification-empty,
body.theme-dark .notification-page-subtitle,
body.theme-dark .notification-page-meta,
body.theme-dark .notification-card-message,
body.theme-dark .notification-card-meta,
body.theme-dark .notification-card-status,
body.theme-dark .notification-entry-message,
body.theme-dark .notification-entry-time {
    color: rgba(230, 240, 238, 0.72);
}

body.theme-dark .notification-entry-title,
body.theme-dark .notification-page-title,
body.theme-dark .notification-card-title {
    color: #f8fafc;
}

body.theme-dark .notification-menu-body {
    background: #141d1c;
}

body.theme-dark .notification-entry {
    border-bottom-color: rgba(230, 240, 238, 0.08);
}

body.theme-dark .notification-view-switch .nav-link {
    background: rgba(255, 255, 255, 0.06);
    color: #e6f0ee;
}

@media (max-width: 991.98px) {
    .notification-page-header,
    .notification-page-toolbar,
    .notification-card {
        grid-template-columns: 1fr;
    }

    .notification-card-actions {
        justify-content: flex-start;
    }
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    max-width: 260px;
    white-space: normal;
    height: 42px;
}

.company-logo {
    /*width: 42px;
    height: 42px;
    border-radius: 50%;*/
    background: rgba(37, 99, 235, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .company-logo img {
       /* width: 100%;
        height: 100%;
        object-fit: cover;*/
        width: 45px;
        max-width: 100%;
        height: auto;
        display: block;
    }

.company-initials {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    color: var(--auth-accent-strong);
    font-size: 0.8rem;
}

.company-name {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    color: var(--auth-ink);
    font-size: 0.9rem;
    max-width: 200px;
    white-space: normal;
    overflow: visible;
}

@media (max-width: 992px) {
    .auth-card,
    .auth-card-compact {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        border-right: none;
        border-bottom: 1px solid rgba(15, 31, 29, 0.08);
    }
}

.tempus-dominus-widget {
    z-index: 2200 !important;
}

.lead-followup-modal-dialog {
    max-width: min(1080px, calc(100vw - 2rem));
}

.lead-followup-modal {
    overflow: visible;
}

.lead-followup-modal .modal-content,
.lead-followup-modal .modal-body,
.lead-followup-modal .modal-footer {
    overflow: visible;
}

.lead-followup-modal .tempus-dominus-widget {
    z-index: 2300 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(760px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}

.lead-followup-modal .tempus-dominus-widget button {
    color: inherit;
}

.lead-followup-modal .tempus-dominus-widget .toolbar {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.lead-followup-modal .tempus-dominus-widget .toolbar .btn,
.lead-followup-modal .tempus-dominus-widget button.btn {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.32);
    font-weight: 600;
}

body.theme-dark .lead-followup-modal .tempus-dominus-widget {
    background: #141d1c;
    color: #e6f0ee;
    border: 1px solid rgba(230, 240, 238, 0.14);
}

body.theme-dark .lead-followup-modal .tempus-dominus-widget .toolbar {
    border-top-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-followup-modal .tempus-dominus-widget .toolbar .btn,
body.theme-dark .lead-followup-modal .tempus-dominus-widget button.btn {
    color: #f8fafc !important;
    background: #334155;
    border-color: rgba(226, 232, 240, 0.24);
}

.kpi-card {
    border-radius: 10px;
}

.kpi-card .card-body {
    min-height: 132px;
}

.kpi-icon {
    font-size: 2.3rem;
    color: #1d4ed8;
    opacity: 0.9;
}

.kpi-card-lead {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.kpi-card-quote {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
}

body.theme-dark .kpi-card-lead {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%);
}

body.theme-dark .kpi-card-quote {
    background: linear-gradient(135deg, #0f2a3d 0%, #1e3a8a 100%);
}

body.theme-dark .kpi-icon {
    color: #bfdbfe;
}

body.theme-dark .lead-line-items-card {
    background-color: #141d1c;
    border: 1px solid rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-line-items-card .card-header {
    border-bottom: 1px solid rgba(230, 240, 238, 0.12);
    background-color: #172120 !important;
    color: #e6f0ee;
}

body.theme-dark #lineItemsTable thead th {
    background-color: #172120 !important;
    color: #e6f0ee !important;
    border-color: rgba(230, 240, 238, 0.12) !important;
}

body.theme-dark #lineItemsTable tbody td {
    background-color: #141d1c !important;
    color: #e6f0ee !important;
    border-color: rgba(230, 240, 238, 0.12) !important;
}

body.theme-dark .salesquote-line-items-card {
    background-color: #141d1c;
    border: 1px solid rgba(230, 240, 238, 0.12);
}

body.theme-dark .salesquote-line-items-card .card-header {
    border-bottom: 1px solid rgba(230, 240, 238, 0.12);
    background-color: #172120 !important;
    color: #e6f0ee;
}

body.theme-dark #lineTable thead th {
    background-color: #172120 !important;
    color: #e6f0ee !important;
    border-color: rgba(230, 240, 238, 0.12) !important;
}

body.theme-dark #lineTable tbody td {
    background-color: #141d1c !important;
    color: #e6f0ee !important;
    border-color: rgba(230, 240, 238, 0.12) !important;
}

.master-mega-menu {
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 90px);
    padding: 0.75rem;
    overflow-y: auto;
}

.crm-mega-menu {
    width: min(650px, calc(100vw - 2rem));
    max-height: calc(100vh - 90px);
    padding: 0.75rem;
    overflow-y: auto;
}

.purchase-mega-menu {
    width: min(650px, calc(100vw - 2rem));
    max-height: calc(100vh - 90px);
    padding: 0.75rem;
    overflow-y: auto;
}

.crm-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.purchase-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.crm-menu-section {
    min-width: 0;
}

.purchase-menu-section {
    min-width: 0;
}

.crm-menu-section .dropdown-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.purchase-menu-section .dropdown-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-menu-section .dropdown-item {
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    white-space: normal;
}

.purchase-menu-section .dropdown-item {
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    white-space: normal;
}

.master-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.master-menu-section {
    min-width: 0;
}

.master-menu-section .dropdown-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.master-menu-section .dropdown-item {
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    white-space: normal;
}

body.theme-dark .master-mega-menu {
    background-color: #141d1c;
    border-color: rgba(230, 240, 238, 0.16);
}

body.theme-dark .crm-mega-menu {
    background-color: #141d1c;
    border-color: rgba(230, 240, 238, 0.16);
}

body.theme-dark .purchase-mega-menu {
    background-color: #141d1c;
    border-color: rgba(230, 240, 238, 0.16);
}

body.theme-dark .master-menu-section .dropdown-header {
    color: #93c5fd;
}

body.theme-dark .crm-menu-section .dropdown-header {
    color: #93c5fd;
}

body.theme-dark .purchase-menu-section .dropdown-header {
    color: #93c5fd;
}

body.theme-dark .master-menu-section .dropdown-item {
    color: #e6f0ee;
}

body.theme-dark .crm-menu-section .dropdown-item {
    color: #e6f0ee;
}

body.theme-dark .purchase-menu-section .dropdown-item {
    color: #e6f0ee;
}

body.theme-dark .master-menu-section .dropdown-item:hover,
body.theme-dark .master-menu-section .dropdown-item:focus {
    background-color: #1e3a5f;
    color: #ffffff;
}

body.theme-dark .crm-menu-section .dropdown-item:hover,
body.theme-dark .crm-menu-section .dropdown-item:focus {
    background-color: #1e3a5f;
    color: #ffffff;
}

body.theme-dark .purchase-menu-section .dropdown-item:hover,
body.theme-dark .purchase-menu-section .dropdown-item:focus {
    background-color: #1e3a5f;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .master-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .purchase-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .master-mega-menu {
        width: 100%;
        max-height: 65vh;
    }

    .crm-mega-menu {
        width: 100%;
        max-height: 65vh;
    }

    .purchase-mega-menu {
        width: 100%;
        max-height: 65vh;
    }

    .master-menu-grid {
        grid-template-columns: 1fr;
    }

    .crm-menu-grid {
        grid-template-columns: 1fr;
    }

    .purchase-menu-grid {
        grid-template-columns: 1fr;
    }
}

.item-master-page {
    display: grid;
    gap: 1.25rem;
}

.item-master-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-master-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.item-master-page-title {
    font-family: "Fraunces", serif;
    color: var(--auth-ink);
    font-size: clamp(1.75rem, 2vw, 2.3rem);
}

.item-master-mode-badge {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 600;
}

.item-master-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.item-master-form-footer {
    justify-content: flex-end;
}

.item-master-shell {
    display: grid;
    gap: 1.25rem;
}

.item-master-tab-strip {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-bottom: 0.25rem;
    background: transparent;
}

.item-master-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0 0.5rem;
    margin: 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.item-master-tabs::-webkit-scrollbar {
    height: 6px;
}

.item-master-tabs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

.item-master-tabs .nav-item {
    flex: 0 0 auto;
}

.item-master-tabs .nav-link {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--auth-ink);
    font-weight: 600;
    white-space: nowrap;
    padding: 0.7rem 1rem;
    box-shadow: 0 10px 22px rgba(148, 163, 184, 0.08);
}

.item-master-tabs .nav-link:hover,
.item-master-tabs .nav-link:focus-visible {
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}

.item-master-tabs .nav-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.item-master-tab-content {
    display: grid;
    gap: 1.25rem;
}

.item-master-tab-pane {
    display: grid;
    gap: 1.25rem;
}

.item-master-overview {
    display: grid;
    gap: 1rem;
}

.item-master-overview-side {
    display: grid;
    gap: 1rem;
}

.item-master-section {
    display: grid;
    gap: 0.85rem;
    scroll-margin-top: 90px;
}

.item-master-section-heading h5,
.item-master-card-header h5 {
    color: #0f3b73;
    font-weight: 700;
}

.item-master-section-heading p,
.item-master-card-header p {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.item-master-section-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.12);
    padding: 1rem 1.1rem;
}

.item-master-card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.item-master-field-grid {
    display: grid;
    gap: 0.9rem;
}

.item-master-field {
    display: grid;
    gap: 0.4rem;
}

.item-master-field-label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--auth-ink);
}

.item-master-field-control {
    min-width: 0;
}

.item-master-field-control .form-control,
.item-master-field-control .form-select,
.item-master-field-control .select2-container--bootstrap-5 .select2-selection {
    min-height: 44px;
    border-radius: 12px;
}

.item-master-inline-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.75fr);
    gap: 0.75rem;
}

.item-master-conditional-tab.d-none,
.item-master-tab-pane.d-none {
    display: none !important;
}

.item-master-switch {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.75rem;
    min-height: 44px;
    padding-left: 0;
    margin-bottom: 0;
}

.item-master-switch .form-check-input {
    width: 2.4rem;
    height: 1.25rem;
    margin-left: 0;
    margin-top: 0.2rem;
}

.item-master-switch .form-check-label {
    min-width: 0;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.item-master-inline-note {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.item-master-visual-card {
    display: flex;
    flex-direction: column;
}

.item-master-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-master-visual-frame {
    width: min(100%, 240px);
    min-height: 280px;
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 0.85rem;
}

.item-master-picture-preview {
    width: 100%;
    max-width: 180px;
    max-height: 160px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
}

.item-master-visual-icon {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
}

.item-master-visual-code {
    font-weight: 700;
    color: var(--auth-ink);
    letter-spacing: 0.04em;
}

.item-master-visual-name {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.item-master-picture-upload {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.item-master-pane-grid {
    display: grid;
    gap: 1rem;
}

.item-master-state-list {
    display: grid;
    gap: 0.85rem;
}

.item-master-state-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.item-master-state-label {
    font-weight: 600;
    color: var(--auth-ink);
}

@media (min-width: 1200px) {
    .item-master-overview {
        grid-template-columns: minmax(0, 1.2fr) 260px minmax(0, 1.05fr);
        align-items: stretch;
    }

    .item-master-pane-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-master-field {
        grid-template-columns: 148px minmax(0, 1fr);
        align-items: start;
        column-gap: 1rem;
    }

    .item-master-field-label {
        padding-top: 0.7rem;
    }

    .item-master-field--textarea {
        grid-template-columns: 148px minmax(0, 1fr);
    }

    .item-master-field--textarea .item-master-field-control textarea {
        min-height: 120px;
    }

    .item-master-field--compound {
        align-items: start;
    }
}

@media (max-width: 1199.98px) {
    .item-master-header-actions,
    .item-master-form-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .item-master-section-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .item-master-inline-pair {
        grid-template-columns: 1fr;
    }

}

body.theme-dark .item-master-page-title,
body.theme-dark .item-master-field-label,
body.theme-dark .item-master-state-label {
    color: #e6f0ee;
}

body.theme-dark .item-master-section-card {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    box-shadow: none;
}

body.theme-dark .item-master-card-header,
body.theme-dark .item-master-section-card {
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .item-master-section-heading h5,
body.theme-dark .item-master-card-header h5 {
    color: #93c5fd;
}

body.theme-dark .item-master-section-heading p,
body.theme-dark .item-master-card-header p,
body.theme-dark .item-master-visual-name,
body.theme-dark .item-master-inline-note {
    color: #b5c2bf;
}

body.theme-dark .item-master-visual-frame {
    background: linear-gradient(180deg, #182322 0%, #121816 100%);
    border-color: rgba(147, 197, 253, 0.18);
}

body.theme-dark .item-master-visual-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
}

body.theme-dark .item-master-visual-code {
    color: #e6f0ee;
}

body.theme-dark .item-master-state-row {
    background: rgba(30, 64, 175, 0.12);
    border-color: rgba(147, 197, 253, 0.12);
}

body.theme-dark .item-master-tabs .nav-link {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    color: #e6f0ee;
    box-shadow: none;
}

body.theme-dark .item-master-tabs .nav-link:hover,
body.theme-dark .item-master-tabs .nav-link:focus-visible {
    border-color: rgba(147, 197, 253, 0.2);
    color: #93c5fd;
}

body.theme-dark .item-master-tabs .nav-link.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

body.theme-dark .item-master-tabs::-webkit-scrollbar-thumb {
    background: rgba(181, 194, 191, 0.35);
}

@media (max-width: 767.98px) {
    .item-master-tabs {
        gap: 0.5rem;
        padding-bottom: 0.35rem;
        margin-inline: -0.1rem;
    }

    .item-master-tabs .nav-link {
        padding: 0.65rem 0.9rem;
        font-size: 0.92rem;
    }

    .item-master-tab-pane {
        gap: 1rem;
    }
}

.lead-page {
    display: grid;
    gap: 1.25rem;
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.lead-title-block {
    display: grid;
    gap: 0.35rem;
}

.lead-breadcrumb {
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.lead-page-title {
    color: var(--auth-ink);
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.lead-header-actions,
.lead-form-footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lead-form {
    display: grid;
    gap: 1rem;
}

.lead-form-footer {
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    position: relative;
    z-index: 0;
}

.lead-shell {
    display: grid;
    gap: 1rem;
}

.lead-overview {
    display: grid;
    gap: 1rem;
}

.lead-section {
    display: grid;
    gap: 0.75rem;
}

.lead-section-card,
.lead-summary-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.1);
    padding: 1rem 1.1rem;
}

.lead-card-header,
.lead-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.lead-card-header h5,
.lead-summary-header h5 {
    color: #0f3b73;
    font-weight: 700;
}

.lead-card-header p,
.lead-summary-header p,
.lead-section-subtitle {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.lead-summary-stack {
    display: grid;
    gap: 1rem;
}

.lead-summary-badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}

.lead-status-badge {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
}

.lead-status-badge--secondary {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.lead-line-items-card {
    overflow: hidden;
}

.lead-line-items-card .lead-card-header {
    margin-bottom: 0;
}

.lead-line-items-card .table-responsive {
    margin-top: 0.5rem;
}

.lead-line-items-card thead th {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.lead-line-items-card tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.lead-line-items-card .form-control,
.lead-line-items-card .form-select,
.lead-line-items-card .select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
    border-radius: 12px;
}

.lead-activity-list {
    display: grid;
    gap: 0.75rem;
}

.lead-activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.04);
}

.lead-activity-dot {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
}

.lead-activity-content {
    min-width: 0;
}

.lead-activity-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.lead-activity-meta {
    color: var(--ink-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.lead-activity-note {
    color: var(--auth-ink);
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.lead-dot-separator {
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.45;
    margin: 0 0.35rem;
    vertical-align: middle;
}

.lead-followup-modal .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.lead-followup-modal .modal-header,
.lead-followup-modal .modal-footer {
    border-color: rgba(148, 163, 184, 0.14);
}

.lead-field-grid {
    display: grid;
    gap: 0.9rem;
}

.lead-field {
    display: grid;
    gap: 0.4rem;
}

.lead-field-label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--auth-ink);
}

.lead-field-control {
    min-width: 0;
}

.lead-field-control .form-control,
.lead-field-control .form-select,
.lead-field-control .select2-container--bootstrap-5 .select2-selection {
    min-height: 44px;
    border-radius: 12px;
}

.lead-field--wide {
    grid-column: 1 / -1;
}

.lead-empty-state {
    min-height: 120px;
    display: grid;
    place-items: center;
    gap: 0.65rem;
    text-align: center;
    color: var(--ink-muted);
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.04);
    padding: 1rem;
}

.lead-empty-state i {
    font-size: 1.5rem;
    color: #4f46e5;
}

.lead-lifecycle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lead-lifecycle-step {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.06);
    color: var(--auth-ink);
    font-weight: 600;
    font-size: 0.9rem;
}

.lead-lifecycle-step.active {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.28);
    color: #4338ca;
}

.lead-collapse {
    gap: 0.65rem;
}

.lead-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--auth-ink);
    text-align: left;
    box-shadow: 0 12px 26px rgba(148, 163, 184, 0.08);
}

.lead-section-toggle:hover {
    border-color: rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

.lead-section-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.lead-section-subtitle {
    display: block;
    margin-top: 0.2rem;
    font-weight: 400;
}

.lead-collapse-icon {
    transition: transform 0.2s ease;
    font-size: 1.05rem;
}

.lead-section-toggle[aria-expanded="false"] .lead-collapse-icon {
    transform: rotate(180deg);
}

@media (min-width: 1200px) {
    .lead-overview {
        grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
        align-items: start;
    }

    .lead-field-grid--primary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lead-field-grid--primary .lead-field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1199.98px) {
    .lead-header-actions,
    .lead-form-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .lead-section-card,
    .lead-summary-card {
        padding: 0.9rem;
        border-radius: 16px;
    }
}

body.theme-dark .lead-page-title,
body.theme-dark .lead-field-label {
    color: #e6f0ee;
}

body.theme-dark .lead-section-card,
body.theme-dark .lead-summary-card {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    box-shadow: none;
}

body.theme-dark .lead-card-header,
body.theme-dark .lead-summary-header {
    border-bottom-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-form-footer {
    border-top-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-card-header h5,
body.theme-dark .lead-summary-header h5 {
    color: #93c5fd;
}

body.theme-dark .lead-card-header p,
body.theme-dark .lead-summary-header p,
body.theme-dark .lead-section-subtitle,
body.theme-dark .lead-breadcrumb,
body.theme-dark .lead-empty-state {
    color: #b5c2bf;
}

body.theme-dark .lead-empty-state {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(147, 197, 253, 0.18);
}

body.theme-dark .lead-empty-state i {
    color: #93c5fd;
}

body.theme-dark .lead-lifecycle-step {
    background: rgba(30, 64, 175, 0.12);
    border-color: rgba(147, 197, 253, 0.12);
    color: #e6f0ee;
}

body.theme-dark .lead-lifecycle-step.active {
    background: rgba(79, 70, 229, 0.28);
    border-color: rgba(147, 197, 253, 0.24);
    color: #eff6ff;
}

body.theme-dark .lead-section-toggle {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    color: #e6f0ee;
}

body.theme-dark .lead-section-toggle:hover {
    background: rgba(26, 38, 37, 0.98);
    border-color: rgba(147, 197, 253, 0.2);
}

body.theme-dark .lead-line-items-card {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-line-items-card thead th {
    color: #b5c2bf;
    border-bottom-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-line-items-card tbody td {
    border-top-color: rgba(230, 240, 238, 0.12);
}

.lead-followup-page {
    display: grid;
    gap: 1rem;
}

.lead-followup-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lead-followup-title-block {
    display: grid;
    gap: 0.35rem;
}

.lead-followup-hero,
.lead-followup-summary-card,
.lead-followup-calendar-card,
.lead-followup-list-card,
.lead-followup-detail-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.1);
}

.lead-followup-hero,
.lead-followup-calendar-card,
.lead-followup-list-card,
.lead-followup-detail-card {
    padding: 1rem 1.1rem;
}

.lead-followup-hero {
    display: grid;
    gap: 1rem;
}

.lead-followup-hero-primary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lead-followup-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.lead-followup-hero-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lead-followup-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca;
    font-weight: 600;
    font-size: 0.85rem;
}

.lead-followup-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem 1rem;
}

.lead-followup-meta-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 0.18rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lead-followup-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.lead-followup-summary-card {
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.lead-followup-summary-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.lead-followup-summary-icon-today {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.lead-followup-summary-icon-upcoming {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.lead-followup-summary-icon-overdue {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.lead-followup-summary-icon-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.lead-followup-summary-label {
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.lead-followup-summary-value {
    color: var(--auth-ink);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.lead-followup-board {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(300px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.lead-followup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.lead-followup-card-header h5 {
    color: #0f3b73;
    font-weight: 700;
}

.lead-followup-card-header p {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.lead-followup-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.lead-followup-calendar-grid-head {
    margin-bottom: 0.5rem;
}

.lead-followup-calendar-grid-head span {
    padding: 0.55rem 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-align: center;
    text-transform: uppercase;
}

.lead-followup-day {
    min-height: 118px;
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.lead-followup-day.is-muted {
    background: rgba(148, 163, 184, 0.04);
    color: var(--ink-muted);
}

.lead-followup-day.is-today {
    outline: 2px solid rgba(79, 70, 229, 0.2);
    outline-offset: -2px;
    background: rgba(79, 70, 229, 0.06);
}

.lead-followup-day-number {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.lead-followup-day-events {
    display: grid;
    gap: 0.35rem;
}

.lead-followup-day-event,
.lead-followup-more {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-followup-more {
    color: var(--ink-muted);
}

.lead-followup-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.lead-followup-legend i {
    margin-right: 0.3rem;
}

.lead-followup-dot-call {
    color: #f97316;
}

.lead-followup-dot-meeting {
    color: #22c55e;
}

.lead-followup-dot-demo {
    color: #3b82f6;
}

.lead-followup-dot-email {
    color: #8b5cf6;
}

.lead-followup-dot-whatsapp {
    color: #14b8a6;
}

.lead-followup-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.lead-followup-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink-muted);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid transparent;
    font-weight: 600;
}

.lead-followup-tab.active {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.24);
    color: #4338ca;
}

.lead-followup-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.lead-followup-table tbody td {
    border-top-color: rgba(148, 163, 184, 0.12);
}

.lead-followup-table tbody tr.is-selected {
    background: rgba(79, 70, 229, 0.06);
}

.lead-followup-type-pill,
.lead-followup-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lead-followup-type-call {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.lead-followup-type-meeting {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.lead-followup-type-demo {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.lead-followup-type-email {
    background: rgba(139, 92, 246, 0.14);
    color: #6d28d9;
}

.lead-followup-type-whatsapp {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.lead-followup-type-other {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.lead-followup-status-upcoming {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.lead-followup-status-overdue {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.lead-followup-status-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.lead-followup-detail-list {
    display: grid;
    gap: 0.85rem;
}

.lead-followup-detail-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 1399.98px) {
    .lead-followup-board {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .lead-followup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .lead-followup-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-followup-calendar-grid {
        min-width: 720px;
    }
}

body.theme-dark .lead-followup-hero,
body.theme-dark .lead-followup-summary-card,
body.theme-dark .lead-followup-calendar-card,
body.theme-dark .lead-followup-list-card,
body.theme-dark .lead-followup-detail-card,
body.theme-dark .lead-followup-day {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    box-shadow: none;
}

body.theme-dark .lead-followup-day.is-muted {
    background: rgba(30, 41, 59, 0.24);
}

body.theme-dark .lead-followup-day.is-today,
body.theme-dark .lead-followup-table tbody tr.is-selected {
    background: rgba(79, 70, 229, 0.18);
}

body.theme-dark .lead-followup-card-header,
body.theme-dark .lead-followup-legend,
body.theme-dark .lead-followup-detail-actions {
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-followup-card-header h5,
body.theme-dark .lead-followup-summary-value {
    color: #e6f0ee;
}

body.theme-dark .lead-followup-card-header p,
body.theme-dark .lead-followup-summary-label,
body.theme-dark .lead-followup-meta-label,
body.theme-dark .lead-followup-calendar-grid-head span,
body.theme-dark .lead-followup-legend,
body.theme-dark .lead-followup-more,
body.theme-dark .lead-followup-tab {
    color: #b5c2bf;
}

body.theme-dark .lead-followup-chip,
body.theme-dark .lead-followup-tab.active {
    color: #c4b5fd;
    background: rgba(79, 70, 229, 0.22);
    border-color: rgba(147, 197, 253, 0.18);
}

body.theme-dark .lead-followup-table thead th {
    color: #b5c2bf;
    border-bottom-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-followup-table tbody td {
    border-top-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-activity-item {
    background: rgba(30, 41, 59, 0.25);
    border-color: rgba(147, 197, 253, 0.14);
}

body.theme-dark .lead-activity-dot {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
}

body.theme-dark .lead-activity-note {
    color: #e6f0ee;
}

body.theme-dark .lead-status-badge--secondary {
    background: rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
}

body.theme-dark .lead-followup-modal .modal-content {
    background: #141d1c;
    color: #e6f0ee;
    border-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .lead-followup-modal .modal-header,
body.theme-dark .lead-followup-modal .modal-footer {
    border-color: rgba(230, 240, 238, 0.12);
}

.bp-page {
    display: grid;
    gap: 1rem;
}

.bp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.bp-title-block {
    display: grid;
    gap: 0.35rem;
}

.bp-breadcrumb {
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.bp-page-title {
    color: var(--auth-ink);
    font-family: "Fraunces", serif;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.bp-header-actions,
.bp-form-footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bp-form-footer {
    justify-content: flex-end;
}

.bp-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.bp-shell--single {
    grid-template-columns: 1fr;
}

.bp-entry-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.address-book-split {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
}

.bp-main,
.bp-sidebar {
    display: grid;
    gap: 1rem;
}

.bp-section-card,
.bp-summary-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.1);
    padding: 1rem 1.1rem;
}

.bp-card-header,
.bp-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.bp-card-header h5,
.bp-summary-header h5 {
    color: #0f3b73;
    font-weight: 700;
}

.bp-card-header p,
.bp-summary-header p {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.bp-summary-badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
}

.bp-field-grid {
    display: grid;
    gap: 0.9rem;
}

.bp-field-grid--primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-field-grid--address-book {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bp-field {
    display: grid;
    gap: 0.4rem;
}

.bp-field--wide {
    grid-column: 1 / -1;
}

.bp-field-label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--auth-ink);
}

.bp-field .form-control,
.bp-field .form-select,
.bp-field .select2-container--bootstrap-5 .select2-selection {
    min-height: 44px;
    border-radius: 12px;
}

.bp-toggle-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.bp-toggle-option {
    display: inline-flex;
}

.bp-toggle-btn {
    border-radius: 999px;
    min-width: 104px;
    font-weight: 600;
}

.bp-switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding: 0.4rem 0;
}

.bp-summary-list {
    display: grid;
    gap: 0.75rem;
}

.bp-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
}

.bp-summary-row span {
    color: var(--ink-muted);
}

.bp-action-list {
    display: grid;
    gap: 0.65rem;
}

.bp-action-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    color: var(--auth-ink);
    background: rgba(148, 163, 184, 0.04);
    text-decoration: none;
    font-weight: 600;
}

.bp-action-link:hover {
    border-color: rgba(79, 70, 229, 0.25);
    background: rgba(79, 70, 229, 0.08);
    color: #1d4ed8;
}

.bp-empty-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    gap: 0.7rem;
    text-align: center;
    color: var(--ink-muted);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.04);
    padding: 1rem;
}

.bp-empty-state--compact {
    min-height: 120px;
}

.bp-empty-state i {
    font-size: 1.5rem;
    color: #4f46e5;
}

.bp-address-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1rem;
}

.bp-address-list {
    display: grid;
    gap: 0.75rem;
}

.bp-address-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.04);
    padding: 0.9rem;
}

.bp-address-item-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.bp-address-type {
    color: #6366f1;
    font-size: 0.82rem;
    font-weight: 700;
}

.bp-address-lines {
    display: grid;
    gap: 0.2rem;
    color: var(--auth-ink);
    font-size: 0.94rem;
}

.bp-address-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.7rem;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.bp-address-form {
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    padding-left: 1rem;
}

@media (max-width: 1199.98px) {
    .bp-shell,
    .bp-entry-shell,
    .address-book-split,
    .bp-address-layout {
        grid-template-columns: 1fr;
    }

    .bp-address-form {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
        padding-top: 1rem;
    }

    .bp-header-actions,
    .bp-form-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .bp-section-card,
    .bp-summary-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .bp-field-grid--primary {
        grid-template-columns: 1fr;
    }

    .bp-field-grid--address-book {
        grid-template-columns: 1fr;
    }

    .bp-toggle-group {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

body.theme-dark .bp-page-title,
body.theme-dark .bp-field-label {
    color: #e6f0ee;
}

body.theme-dark .bp-section-card,
body.theme-dark .bp-summary-card {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    box-shadow: none;
}

body.theme-dark .bp-card-header,
body.theme-dark .bp-summary-header {
    border-bottom-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .bp-card-header h5,
body.theme-dark .bp-summary-header h5 {
    color: #93c5fd;
}

body.theme-dark .bp-card-header p,
body.theme-dark .bp-summary-header p,
body.theme-dark .bp-breadcrumb,
body.theme-dark .bp-empty-state,
body.theme-dark .bp-summary-row span {
    color: #b5c2bf;
}

body.theme-dark .bp-empty-state,
body.theme-dark .bp-address-item,
body.theme-dark .bp-action-link {
    background: rgba(30, 41, 59, 0.25);
    border-color: rgba(147, 197, 253, 0.14);
}

body.theme-dark .bp-empty-state i {
    color: #93c5fd;
}

body.theme-dark .bp-address-lines,
body.theme-dark .bp-summary-row strong,
body.theme-dark .bp-action-link {
    color: #e6f0ee;
}

body.theme-dark .bp-action-link:hover {
    background: rgba(96, 165, 250, 0.12);
    color: #bfdbfe;
}

body.theme-dark .bp-address-form {
    border-left-color: rgba(230, 240, 238, 0.12);
}

@media (max-width: 1199.98px) {
    body.theme-dark .bp-address-form {
        border-top-color: rgba(230, 240, 238, 0.12);
    }
}

.sq-page {
    display: grid;
    gap: 1rem;
}

.sq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.sq-title-block {
    display: grid;
    gap: 0.35rem;
}

.sq-breadcrumb {
    color: var(--ink-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.sq-page-title {
    color: var(--auth-ink);
    font-weight: 700;
}

.sq-header-actions,
.sq-form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sq-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "top"
        "items"
        "bottom";
    gap: 1rem;
    align-items: start;
    overflow-x: clip;
}

.sq-top-grid {
    grid-area: top;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.78fr);
    gap: 1rem;
    align-items: stretch;
}

.sq-items-row {
    grid-area: items;
}

.sq-bottom-grid {
    grid-area: bottom;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.78fr);
    gap: 1rem;
    align-items: start;
}

.sq-top-grid,
.sq-items-row,
.sq-bottom-grid {
    display: grid;
    gap: 1rem;
    min-width: 0;
    align-content: start;
}

.sq-section-card,
.sq-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 1rem 1.05rem;
    min-width: 0;
}

#sq-details,
#sq-summary {
    height: 100%;
}

#sq-terms textarea {
    min-height: 220px;
}

.sq-card-header,
.sq-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.sq-card-header h5,
.sq-summary-header h5 {
    color: var(--auth-ink);
    font-weight: 700;
}

.sq-card-header p,
.sq-summary-header p {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.sq-summary-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.sq-field-grid {
    display: grid;
    gap: 0.9rem 1rem;
}

.sq-field-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sq-field {
    display: grid;
    gap: 0.35rem;
}

.sq-field-label {
    font-size: 0.88rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.sq-field .form-control,
.sq-field .form-select,
.sq-field .select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
}

.sq-select + .select2,
.sq-select {
    width: 100% !important;
}

.sq-status-readonly {
    display: grid;
    gap: 0.35rem;
}

.sq-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.sq-status-badge--draft {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.sq-status-badge--sent {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.sq-status-badge--accepted {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.sq-status-badge--rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.sq-status-badge--expired {
    background: rgba(251, 191, 36, 0.16);
    color: #d97706;
}

.sq-status-badge--converted {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

.sq-table-responsive {
    overflow: auto;
}

.sq-line-table {
    min-width: 1300px;
}

.sq-line-table thead th {
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-weight: 700;
    white-space: nowrap;
}

.sq-line-table tbody td {
    vertical-align: middle;
}

.sq-uom-meta {
    display: grid;
    gap: 0.15rem;
    line-height: 1.35;
    white-space: normal;
}

.sq-uom-meta span {
    display: block;
}

.sq-uom-meta strong {
    color: var(--auth-ink);
    font-weight: 600;
}

.sq-line-table th:nth-child(3),
.sq-line-table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
}

.sq-line-table th:nth-child(4),
.sq-line-table td:nth-child(4) {
    width: 150px;
    min-width: 150px;
}

.sq-line-table th:nth-child(5),
.sq-line-table td:nth-child(5) {
    width: 135px;
    min-width: 135px;
}

.sq-line-table th:nth-child(6),
.sq-line-table td:nth-child(6) {
    width: 135px;
    min-width: 135px;
}

.sq-line-table th:nth-child(7),
.sq-line-table td:nth-child(7) {
    width: 140px;
    min-width: 140px;
}

.sq-line-table th:nth-child(8),
.sq-line-table td:nth-child(8) {
    min-width: 220px;
}

.sq-number-input {
    width: 100%;
    min-width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
}

.sq-table-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.22);
    font-size: 0.92rem;
}

.sq-summary-list {
    display: grid;
    gap: 0.7rem;
}

.sq-summary-list--compact {
    margin-top: 0.9rem;
}

.sq-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
}

.sq-summary-row span {
    color: var(--ink-muted);
}

.sq-summary-row strong {
    color: var(--auth-ink);
}

.sq-summary-icon {
    font-size: 1.15rem;
    color: #6366f1;
}

.sq-tax-box {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.88);
    padding: 0.85rem;
}

.sq-tax-box__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sq-tax-table {
    display: grid;
    gap: 0.5rem;
}

.sq-tax-row {
    display: grid;
    grid-template-columns: 1.1fr 0.55fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.92rem;
}

.sq-tax-row span {
    color: var(--auth-ink);
}

.sq-tax-row--head {
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sq-tax-row--total {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-weight: 700;
}

.sq-grand-total {
    display: grid;
    gap: 0.3rem;
    margin-top: 1rem;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.sq-grand-total div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.sq-grand-total span {
    color: var(--auth-ink);
    font-weight: 700;
}

.sq-grand-total strong {
    font-size: 1.35rem;
    color: #4338ca;
}

.sq-action-list {
    display: grid;
    gap: 0.65rem;
}

.sq-action-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    color: var(--auth-ink);
    background: rgba(148, 163, 184, 0.04);
    text-decoration: none;
    font-weight: 600;
}

.sq-action-link:hover {
    border-color: rgba(79, 70, 229, 0.25);
    background: rgba(79, 70, 229, 0.08);
    color: #1d4ed8;
}

.sq-form-footer {
    justify-content: space-between;
    margin-top: 0.25rem;
}

@media (max-width: 1199.98px) {
    .sq-shell {
        grid-template-areas:
            "top"
            "items"
            "bottom";
    }

    .sq-top-grid,
    .sq-bottom-grid {
        grid-template-columns: 1fr;
    }

    .sq-header-actions,
    .sq-form-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .sq-section-card,
    .sq-summary-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .sq-top-grid,
    .sq-bottom-grid {
        grid-template-columns: 1fr;
    }

    .sq-field-grid--primary {
        grid-template-columns: 1fr;
    }

    .sq-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .sq-tax-row {
        grid-template-columns: 1fr 0.7fr 1fr 1fr;
        font-size: 0.88rem;
    }
}

body.theme-dark .sq-page-title,
body.theme-dark .sq-field-label,
body.theme-dark .sq-card-header h5,
body.theme-dark .sq-summary-header h5,
body.theme-dark .sq-summary-row strong,
body.theme-dark .sq-tax-row span,
body.theme-dark .sq-grand-total span,
body.theme-dark .sq-uom-meta strong {
    color: #e6f0ee;
}

body.theme-dark .sq-section-card,
body.theme-dark .sq-summary-card {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    box-shadow: none;
}

body.theme-dark .sq-card-header,
body.theme-dark .sq-summary-header {
    border-bottom-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .sq-breadcrumb,
body.theme-dark .sq-card-header p,
body.theme-dark .sq-summary-header p,
body.theme-dark .sq-summary-row span,
body.theme-dark .sq-table-footer,
body.theme-dark .sq-grand-total small,
body.theme-dark .sq-status-readonly span.text-muted {
    color: #b5c2bf;
}

body.theme-dark .sq-summary-chip,
body.theme-dark .sq-status-badge--draft,
body.theme-dark .sq-status-badge--sent,
body.theme-dark .sq-status-badge--accepted,
body.theme-dark .sq-status-badge--rejected,
body.theme-dark .sq-status-badge--expired,
body.theme-dark .sq-status-badge--converted {
    background: rgba(99, 102, 241, 0.16);
}

body.theme-dark .sq-status-badge--draft {
    color: #c7d2fe;
}

body.theme-dark .sq-status-badge--sent {
    color: #bae6fd;
}

body.theme-dark .sq-status-badge--accepted {
    color: #bbf7d0;
}

body.theme-dark .sq-status-badge--rejected {
    color: #fecaca;
}

body.theme-dark .sq-status-badge--expired {
    color: #fde68a;
}

body.theme-dark .sq-status-badge--converted {
    color: #e9d5ff;
}

body.theme-dark .sq-tax-box,
body.theme-dark .sq-action-link {
    background: rgba(30, 41, 59, 0.25);
    border-color: rgba(147, 197, 253, 0.14);
}

body.theme-dark .sq-action-link:hover {
    background: rgba(96, 165, 250, 0.12);
    color: #bfdbfe;
}

body.theme-dark .sq-summary-icon {
    color: #93c5fd;
}

body.theme-dark .sq-grand-total {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(37, 99, 235, 0.22));
    border-color: rgba(147, 197, 253, 0.2);
}

body.theme-dark .sq-grand-total strong {
    color: #bfdbfe;
}

body.theme-dark .sq-tax-row--head {
    color: #b5c2bf;
}

.so-page {
    display: grid;
    gap: 1rem;
}

.so-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.so-title-block {
    display: grid;
    gap: 0.35rem;
}

.so-breadcrumb {
    color: var(--ink-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.so-page-title {
    color: var(--auth-ink);
    font-weight: 700;
}

.so-header-actions,
.so-form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.so-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "top"
        "items"
        "bottom";
    gap: 1rem;
    align-items: start;
    overflow-x: clip;
}

.so-top-grid {
    grid-area: top;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.78fr);
    gap: 1rem;
    align-items: stretch;
}

.so-items-row {
    grid-area: items;
}

.so-bottom-grid {
    grid-area: bottom;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.78fr);
    gap: 1rem;
    align-items: start;
}

.so-top-grid,
.so-items-row,
.so-bottom-grid {
    display: grid;
    gap: 1rem;
    min-width: 0;
    align-content: start;
}

.so-section-card,
.so-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 1rem 1.05rem;
    min-width: 0;
}

#so-details,
#so-summary {
    height: 100%;
}

#so-terms textarea {
    min-height: 220px;
}

.so-card-header,
.so-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.so-card-header h5,
.so-summary-header h5 {
    color: var(--auth-ink);
    font-weight: 700;
}

.so-card-header p,
.so-summary-header p {
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.so-summary-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.so-field-grid {
    display: grid;
    gap: 0.9rem 1rem;
}

.so-field-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.so-field {
    display: grid;
    gap: 0.35rem;
}

.so-field-label {
    font-size: 0.88rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.so-field .form-control,
.so-field .form-select,
.so-field .select2-container--bootstrap-5 .select2-selection {
    min-height: 42px;
}

.so-select + .select2,
.so-select {
    width: 100% !important;
}

.so-status-readonly {
    display: grid;
    gap: 0.35rem;
}

.so-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    width: fit-content;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.so-status-badge--draft {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.so-status-badge--confirmed {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.so-status-badge--rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.so-status-badge--cancelled {
    background: rgba(251, 191, 36, 0.16);
    color: #d97706;
}

.so-status-badge--fulfilled {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.so-status-badge--converted {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}

.so-table-responsive {
    overflow: auto;
}

.so-line-table {
    min-width: 1300px;
}

.so-line-table thead th {
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-weight: 700;
    white-space: nowrap;
}

.so-line-table tbody td {
    vertical-align: middle;
}

.so-number-input {
    width: 100%;
    min-width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
}

.so-table-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.22);
    font-size: 0.92rem;
}

.so-summary-list {
    display: grid;
    gap: 0.7rem;
}

.so-summary-list--compact {
    margin-top: 0.9rem;
}

.so-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
}

.so-summary-row span {
    color: var(--ink-muted);
}

.so-summary-row strong {
    color: var(--auth-ink);
}

.so-summary-icon {
    font-size: 1.15rem;
    color: #6366f1;
}

.so-tax-box {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.88);
    padding: 0.85rem;
}

.so-tax-box__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.so-tax-table {
    display: grid;
    gap: 0.5rem;
}

.so-tax-row {
    display: grid;
    grid-template-columns: 1.1fr 0.55fr 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.92rem;
}

.so-tax-row span {
    color: var(--auth-ink);
}

.so-tax-row--head {
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.so-tax-row--total {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-weight: 700;
}

.so-grand-total {
    display: grid;
    gap: 0.3rem;
    margin-top: 1rem;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.so-grand-total div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.so-grand-total span {
    color: var(--auth-ink);
    font-weight: 700;
}

.so-grand-total strong {
    font-size: 1.35rem;
    color: #4338ca;
}

.so-form-footer {
    justify-content: space-between;
    margin-top: 0.25rem;
}

@media (max-width: 1199.98px) {
    .so-shell {
        grid-template-areas:
            "top"
            "items"
            "bottom";
    }

    .so-top-grid,
    .so-bottom-grid {
        grid-template-columns: 1fr;
    }

    .so-header-actions,
    .so-form-footer {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .so-section-card,
    .so-summary-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .so-top-grid,
    .so-bottom-grid,
    .so-field-grid--primary {
        grid-template-columns: 1fr;
    }

    .so-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .so-tax-row {
        grid-template-columns: 1fr 0.7fr 1fr 1fr;
        font-size: 0.88rem;
    }
}

body.theme-dark .so-page-title,
body.theme-dark .so-field-label,
body.theme-dark .so-card-header h5,
body.theme-dark .so-summary-header h5,
body.theme-dark .so-summary-row strong,
body.theme-dark .so-tax-row span {
    color: #e6f0ee;
}

body.theme-dark .so-section-card,
body.theme-dark .so-summary-card {
    background: rgba(20, 29, 28, 0.94);
    border-color: rgba(230, 240, 238, 0.12);
    box-shadow: none;
}

body.theme-dark .so-card-header,
body.theme-dark .so-summary-header {
    border-bottom-color: rgba(230, 240, 238, 0.12);
}

body.theme-dark .so-breadcrumb,
body.theme-dark .so-card-header p,
body.theme-dark .so-summary-header p,
body.theme-dark .so-summary-row span,
body.theme-dark .so-table-footer,
body.theme-dark .so-grand-total small,
body.theme-dark .so-status-readonly span.text-muted {
    color: #b5c2bf;
}

body.theme-dark .so-summary-chip,
body.theme-dark .so-status-badge--draft,
body.theme-dark .so-status-badge--confirmed,
body.theme-dark .so-status-badge--rejected,
body.theme-dark .so-status-badge--cancelled,
body.theme-dark .so-status-badge--fulfilled,
body.theme-dark .so-status-badge--converted {
    background: rgba(99, 102, 241, 0.16);
}

body.theme-dark .so-status-badge--draft {
    color: #c7d2fe;
}

body.theme-dark .so-status-badge--confirmed {
    color: #bae6fd;
}

body.theme-dark .so-status-badge--rejected {
    color: #fecaca;
}

body.theme-dark .so-status-badge--cancelled {
    color: #fde68a;
}

body.theme-dark .so-status-badge--fulfilled {
    color: #bbf7d0;
}

body.theme-dark .so-status-badge--converted {
    color: #e9d5ff;
}

body.theme-dark .so-tax-box {
    background: rgba(30, 41, 59, 0.25);
    border-color: rgba(147, 197, 253, 0.14);
}

body.theme-dark .so-summary-icon {
    color: #93c5fd;
}

body.theme-dark .so-grand-total {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(37, 99, 235, 0.22));
    border-color: rgba(147, 197, 253, 0.2);
}

body.theme-dark .so-grand-total strong {
    color: #bfdbfe;
}

body.theme-dark .so-tax-row--head {
    color: #b5c2bf;
}
