body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--surface-base);
  background-image:
    radial-gradient(circle at 100% 100%, rgba(39, 41, 116, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(179, 14, 21, 0.06) 0%, transparent 45%),
    var(--noise-texture);
  background-blend-mode: normal, normal, overlay;
  background-size: auto, auto, 200px 200px;
  background-attachment: fixed, fixed, scroll;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

/* Dark mode - hero gradient + slightly stronger noise blend */
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 100% 100%, rgba(112, 105, 161, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(179, 14, 21, 0.18) 0%, transparent 45%),
    var(--noise-texture);
  background-blend-mode: normal, normal, soft-light;
}

body,
html {
  font-size: 16px;
}

body > * {
  font-size: 14px;
}

rt.display-block {
  display: block;
}

.tooltip {
  position: fixed;
}

.color-white {
  color: #fff !important;
}

.col-xs-5ths,
.col-sm-5ths,
.col-md-5ths,
.col-lg-5ths {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.col-xs-5ths {
  width: 20%;
  float: left;
}

@media (min-width: 768px) {
  .col-sm-5ths {
    width: 20%;
    float: left;
  }
}

@media (min-width: 992px) {
  .col-md-5ths {
    width: 20%;
    float: left;
  }
}

@media (min-width: 1200px) {
  .col-lg-5ths {
    width: 20%;
    float: left;
  }
}

[dir="rtl"] .mright5 {
  margin-right: 0px;
  margin-left: 5px;
}

[dir="rtl"] .mright10 {
  margin-right: 0px;
  margin-left: 10px;
}

[dir="rtl"] .mleft5 {
  margin-left: 0px;
  margin-right: 5px;
}

[dir="rtl"] .mleft10 {
  margin-left: 0px;
  margin-right: 10px;
}

[dir="rtl"] .input-group-addon:last-child {
  border-left: 1px solid var(--border-strong);
}

[dir="rtl"] .colorpicker.colorpicker-visible.dropdown-menu {
  left: 0px !important;
  right: auto;
  padding-left: 3px;
  margin-left: 45px;
}

.border-right {
  border-right: 1px solid var(--border-default);
}

.line-throught {
  text-decoration: line-through;
}

.full-width {
  width: 100%;
}

.no-margin {
  margin: 0px !important;
}

.no-mtop {
  margin-top: 0px !important;
}

.no-p-left {
  padding-left: 0px !important;
}

.no-p-right {
  padding-right: 0px;
}

.relative {
  position: relative;
}

.font-medium {
  font-size: 15px;
}

.inline-block {
  display: inline-block;
}

.alert-validation {
  margin-top: 5px;
}

.table-image {
  height: 75px;
  width: 250px;
  margin: 15px 0px;
}

.announcement small {
  font-size: 12px;
  color: var(--text-primary);
}

.announcement {
  font-size: 14px;
}

.bgwhite {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
}

.warning-bg {
  background: var(--warning) !important;
  color: #fff !important;
  border: 1px solid var(--warning) !important;
}

.success-bg {
  background: var(--success) !important;
  color: #fff !important;
  border: 1px solid var(--success) !important;
}

.primary-bg {
  background: var(--primary-700);
  color: #fff !important;
  border: 1px solid var(--primary-700);
}

.info-bg {
  background: var(--info) !important;
  color: #fff !important;
  border: 1px solid var(--info) !important;
}

.danger-bg {
  background: var(--danger) !important;
  color: #fff !important;
  border: 1px solid var(--danger) !important;
}

/* Submenu styles removed — Files/Calendar now in sidebar */

.tickets table tr.text-danger a {
  color: var(--danger);
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

@-webkit-keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInRight {
  -webkit-animation-name: fadeInRight;
  animation-name: fadeInRight;
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.fadeInLeft {
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
}

@-webkit-keyframes fadeOutLeft {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

.fadeOutLeft {
  -webkit-animation-name: fadeOutLeft;
  animation-name: fadeOutLeft;
}

@-webkit-keyframes fadeOutRight {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }
}

.fadeOutRight {
  -webkit-animation-name: fadeOutRight;
  animation-name: fadeOutRight;
}

.text-white {
  color: #fff !important;
}

#wrapper {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

footer {
  background: var(--surface-hover);
  padding: var(--space-4) var(--space-3);
  width: 100%;
  margin-top: 25px;
  border-top: 1px solid var(--border-default);
}

footer .copyright-footer {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

footer .footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-3);
}

footer .footer-legal-links::before {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--border-default);
}

footer .footer-legal-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer .footer-legal-links a:hover {
  color: var(--primary-600);
  text-decoration: none;
}

footer .footer-legal-links a + a::before {
  content: "·";
  margin-right: var(--space-2);
  color: var(--text-tertiary);
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

h1,
h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

.h4,
h4,
.h3,
h3 {
  font-weight: 400;
}

/* WCAG: Links must be distinguishable by more than color alone */
a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover,
a:focus {
  text-decoration-color: currentColor;
}

a:active,
a:visited {
  text-decoration: underline;
  text-decoration-color: transparent;
}

/* Navigation and UI elements don't need underlines */
.sidebar-item a,
.sidebar-logo a,
.sidebar-agent-actions a,
.topbar-profile-btn,
.topbar-profile-dropdown a,
.profile-dropdown-menu a,
.btn,
.dropdown-menu a,
.nav-tabs a,
.nav-pills a,
.breadcrumb a,
.pagination a,
.fc a,
.kb-category-card,
.kb-article-card a,
.dashboard-stat-card {
  text-decoration: none;
}

/* Navbar styles removed — replaced by sidebar + topbar layout (sidebar.css) */

.btn.btn-input-group {
  padding: 7px 16px;
  border: 1px transparent;
}

.btn-icon {
  padding: 2px 6px 2px 6px !important;
}

.original-button {
  margin-top: 22px;
  padding: 6px 12px;
}

#client-home-chart {
  max-width: 100%;
}

.client-reply .panel-body {
  background: var(--warning-bg) !important;
  color: var(--warning);
}

/* ── Single Ticket View ── */

/* Ticket subject */
.ticket-subject {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.4;
}

/* Info sidebar list */
.ticket-info-list {
  border-top: 1px solid var(--border-default);
}

.ticket-info-list > p:last-child,
.ticket-info-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ticket-info-item {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ticket-info-value {
  font-weight: 500;
  color: var(--text-primary);
}

.ticket-info-label {
  color: var(--text-secondary);
}

.ticket-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ticket-status-badge {
  font-weight: 500;
}

.ticket-status-change {
  flex: 1;
}

/* Reply cards */
.ticket-reply {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.ticket-reply-staff {
  background: color-mix(in srgb, var(--primary-500) 4%, var(--surface-raised));
}

.ticket-reply-client {
  background: color-mix(in srgb, var(--accent-400, var(--warning)) 5%, var(--surface-raised));
}

.ticket-reply-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-base);
}

.ticket-reply-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.ticket-reply-body {
  padding: var(--space-5);
}

.ticket-reply-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.ticket-reply-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ticket-reply-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.ticket-reply-role {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--surface-base);
  padding: 2px 8px;
  border-radius: var(--radius-badge);
}

.ticket-reply-date {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.ticket-reply-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ticket-reply-content a {
  color: var(--text-link);
}

/* Attachments in ticket replies */
.ticket-reply-attachments {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ticket-attachment a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  font-size: 13px;
  color: var(--text-link);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ticket-attachment a:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  text-decoration: none;
}

.ticket-attachment a i {
  font-size: 16px;
}

.ticket-attachment-image a {
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-3);
}

.ticket-attachment-image img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: var(--radius-input);
  margin-top: var(--space-2);
}

/* Attachment input area */
.ticket-attachment-input {
  max-width: 400px;
}

/* Scroll-to links */
#toplink,
#botlink {
  position: fixed;
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 100;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#toplink:hover,
#botlink:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

#toplink { bottom: 60px; }
#botlink { bottom: 16px; }

/* ── Profile & Company Profile ── */

.profile-avatar-group {
  margin-bottom: var(--space-4);
}

.profile-avatar {
  position: relative;
  display: inline-block;
}

.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-default);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.profile-avatar-remove {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid var(--border-default);
  color: var(--text-danger, #ef4444);
  font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}

.profile-avatar-remove:hover {
  background: var(--text-danger, #ef4444);
  color: #fff;
  border-color: var(--text-danger, #ef4444);
  text-decoration: none;
}

.profile-image-upload-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.profile-image-upload-group label i {
  font-size: 18px;
}

.profile-notification-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.profile-notification-list .auth-checkbox {
  margin-bottom: 0;
}

.profile-section-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section-heading i {
  font-size: 20px;
  color: var(--text-secondary);
}

.profile-section-subheading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.contact-password-actions {
  margin-top: var(--space-2);
}

.contact-password-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.email-notifications-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.last-password-change {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Project View ── */

.project-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.project-team-members {
  display: inline-flex;
  align-items: center;
}

.project-team-avatars {
  display: flex;
}

.project-team-avatars > span {
  margin-left: -4px;
}

.project-team-avatars > span:first-child {
  margin-left: 0;
}

.project-team-avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  ring: none;
  border: 2px solid var(--surface-card, #fff);
}

img.project-team-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-card, #fff);
}

.project-status-label {
  margin-left: 0;
  font-weight: 600;
  border-radius: var(--radius-input);
}

/* ── Document HTML Views (shared: invoice, estimate, contract, subscription, proposal) ── */

.doc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.doc-header-left {
  align-self: flex-end;
}

.doc-header-left h3,
.doc-header-left h4 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 700;
}

.doc-actions {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Document theme toggle button */
.doc-theme-toggle {
  position: relative;
  padding: var(--space-2) var(--space-3);
}

.doc-theme-toggle i {
  font-size: 18px;
}

.doc-meta-label {
  font-weight: 500;
  color: var(--text-primary);
}

.doc-meta-value {
  color: var(--text-primary);
}

.doc-meta-secondary {
  color: var(--text-secondary);
}

.doc-meta-text {
  font-size: inherit;
  margin-bottom: 0;
}

.doc-note-content,
.doc-terms-content {
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.doc-status-label {
  margin-left: var(--space-3);
}

/* Override Tailwind neutral color utilities for dark mode compatibility */
.preview-top-wrapper .tw-text-neutral-700,
.panel_s .tw-text-neutral-700,
.panel-body .tw-text-neutral-700,
.contract-right .tw-text-neutral-700,
.proposal-right .tw-text-neutral-700,
#proposal-wrapper .tw-text-neutral-700 {
  color: var(--text-primary) !important;
}

.preview-top-wrapper .tw-text-neutral-500,
.panel_s .tw-text-neutral-500,
.panel-body .tw-text-neutral-500,
.contract-right .tw-text-neutral-500,
.proposal-right .tw-text-neutral-500,
#proposal-wrapper .tw-text-neutral-500 {
  color: var(--text-secondary) !important;
}

.preview-top-wrapper .tw-text-neutral-600,
.panel_s .tw-text-neutral-600,
.panel-body .tw-text-neutral-600,
.contract-right .tw-text-neutral-600,
.proposal-right .tw-text-neutral-600,
#proposal-wrapper .tw-text-neutral-600 {
  color: var(--text-secondary) !important;
}

/* Override !tw-text-neutral-700 (important modifier in tax rows) */
.tax-area td[class*="tw-text-neutral-700"] {
  color: var(--text-primary) !important;
}

/* Sticky header layout override for document views */
.preview-sticky-container .sm\:tw-flex {
  gap: var(--space-3);
}

.panel_s.tw-mt-6 {
  margin-top: var(--space-6) !important;
}

/* Target existing semantic classes in document views */
.invoice-html-company-info,
.estimate-html-company-info,
.subscription-html-company-info,
.contract-html-company-info,
.proposal-html-company-info,
.invoice-html-customer-billing-info,
.estimate-html-customer-billing-info,
.subscription-html-customer-billing-info,
.invoice-html-customer-shipping-info,
.estimate-html-customer-shipping-info,
.subscription-html-customer-shipping-info,
.proposal-html-info {
  color: var(--text-secondary);
  font-style: normal;
  font-size: inherit;
}

.invoice-html-bill-to,
.estimate_to,
.subscription-html-bill-to,
.invoice-html-ship-to,
.estimate_ship_to,
.subscription-html-ship-to {
  font-weight: 500;
  color: var(--text-primary);
}

.proposal-html-information {
  color: var(--text-primary);
}

/* Summary totals table in document views */
.table.text-right .bold {
  color: var(--text-primary);
}

.table.text-right .tax-area td.bold,
.table.text-right .tax-area td:first-child {
  color: var(--text-primary);
}

/* No payments found message */
.invoice-html-payments h5 {
  color: var(--text-secondary);
  margin-top: 0;
  font-weight: 500;
}

/* Total to words */
.invoice-html-total-to-words p,
.estimate-html-total-to-words p,
.proposal-html-total-to-words p {
  font-weight: 500;
  color: var(--text-primary);
}

.invoice-html-total-to-words span,
.estimate-html-total-to-words span,
.proposal-html-total-to-words span {
  color: var(--text-secondary);
}

/* Contract/Proposal sidebar info rows */
.contract-number,
.contract-start-date,
.contract-end-date,
.contract-type,
.contract-signed-by,
.contract-contract-signed-by,
.proposal-status,
.proposal-date,
.proposal-open-till,
.proposal-html-project,
.proposal-html-total,
.proposal-signed-by,
.proposal-proposal-signed-by {
  font-size: inherit;
}

/* Contract/Proposal tab links */
.nav-tab-link,
.nav-tabs-flat a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
}

/* ── Invoice Page Components ── */

/* Invoice info grid (company/client two-column layout) */
.invoice-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.invoice-info-left {
  flex: 1;
  min-width: 200px;
}

.invoice-info-right {
  flex: 1;
  min-width: 200px;
  text-align: right;
}

/* Totals summary table */
.invoice-totals {
  margin-left: auto;
  width: 100%;
  max-width: 400px;
}

.invoice-totals .table {
  margin-bottom: 0;
}

.invoice-totals td {
  text-align: right;
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
}

.invoice-totals-label {
  font-weight: 600;
  color: var(--text-primary);
}

.invoice-totals-highlight {
  color: var(--danger) !important;
  font-weight: 600;
}

/* Attachment items */
.invoice-attachment-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.invoice-attachment-icon {
  color: var(--text-secondary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Payments section */
.invoice-payments-empty {
  color: var(--text-secondary);
  font-weight: 500;
  margin: var(--space-4) 0;
}

/* Payment methods grid layout */
.invoice-payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.invoice-payment-online,
.invoice-payment-offline {
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
}

.invoice-payment-offline-only {
  grid-column: 1 / -1;
}

.invoice-payment-section-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-default);
}

/* Payment radio component */
.payment-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  margin-bottom: var(--space-3);
  background: var(--surface-base);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.payment-radio:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-hover);
}

.payment-radio:has(input:checked) {
  border-color: var(--success);
  background-color: var(--success-bg);
}

.payment-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.payment-radio-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-input);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.payment-radio-box::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.15s ease;
}

.payment-radio:has(input:checked) .payment-radio-box {
  border-color: var(--success);
}

.payment-radio:has(input:checked) .payment-radio-box::after {
  background: var(--success);
}

.payment-radio:has(input:focus-visible) .payment-radio-box {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.payment-radio-content {
  flex: 1;
  min-width: 0;
}

.payment-radio-label {
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.payment-radio-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: var(--space-1);
  line-height: 1.4;
}

/* Payment form */
.invoice-payment-form {
  margin-top: var(--space-4);
}

.invoice-payment-amount {
  margin-bottom: var(--space-4);
}

.invoice-payment-amount label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  display: block;
}

.invoice-payment-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

/* Invoice mobile responsive */
@media (max-width: 767px) {
  .invoice-info-grid {
    flex-direction: column;
  }

  .invoice-info-right {
    text-align: left;
  }

  .invoice-totals {
    max-width: 100%;
  }

  .invoice-payment-methods {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .invoice-payment-online,
  .invoice-payment-offline {
    padding: var(--space-4);
  }

  .payment-radio {
    padding: var(--space-3);
  }
}

/* ── Knowledge Base Article ── */

.kb-article-single-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.kb-article-content {
  color: var(--text-primary);
}

.kb-article-useful-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: var(--space-6);
}

.kb-article-response {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.kb-related-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.kb-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-related-item {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
}

.kb-related-item + .kb-related-item {
  margin-top: var(--space-3);
}

.kb-related-item .article-related-heading {
  font-size: inherit;
  font-weight: 500;
  margin: 0 0 var(--space-1) 0;
}

.kb-related-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color .2s;
}

.kb-related-link:hover,
.kb-related-link:active {
  color: var(--primary);
}

.kb-related-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Knowledge Base Categories ── */

.kb-categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.kb-category-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-category-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .kb-category-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kb-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.kb-category-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.kb-category-title a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-category-title a:hover {
  color: var(--primary-600);
}

[data-theme="dark"] .kb-category-title a:hover {
  color: var(--primary-400);
}

.kb-category-icon {
  font-size: 18px;
  color: var(--primary-500);
}

.kb-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--space-2);
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-badge);
}

.kb-category-description {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 var(--space-3) 0;
  line-height: 1.5;
}

.kb-category-articles {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-3);
}

.kb-category-articles li {
  margin-bottom: var(--space-2);
}

.kb-category-articles li:last-child {
  margin-bottom: 0;
}

.kb-category-articles li a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-category-articles li a:hover {
  color: var(--primary-600);
}

[data-theme="dark"] .kb-category-articles li a:hover {
  color: var(--primary-400);
}

.kb-category-articles li a i {
  font-size: 14px;
  flex-shrink: 0;
}

.kb-category-more a {
  color: var(--primary-600) !important;
  font-weight: 500;
}

[data-theme="dark"] .kb-category-more a {
  color: var(--primary-400) !important;
}

/* ── Knowledge Base Articles List ── */

.kb-articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.kb-article-item {
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease;
}

.kb-article-item:hover {
  border-color: var(--border-strong);
}

.kb-article-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.kb-article-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.kb-article-item-title a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-article-item-title a:hover {
  color: var(--primary-600);
}

[data-theme="dark"] .kb-article-item-title a:hover {
  color: var(--primary-400);
}

.kb-article-item-title a i {
  font-size: 16px;
  color: var(--primary-500);
  flex-shrink: 0;
}

.kb-article-item-date {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-tertiary);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.kb-article-item-excerpt {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 var(--space-3) 0;
}

.kb-article-item-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.kb-article-item-link:hover {
  color: var(--primary-700);
}

[data-theme="dark"] .kb-article-item-link {
  color: var(--primary-400);
}

[data-theme="dark"] .kb-article-item-link:hover {
  color: var(--primary-300);
}

/* ── Knowledge Base Search Hero ── */

.kb-search-hero {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  margin-bottom: var(--space-6);
  text-align: center;
}

[data-theme="dark"] .kb-search-hero {
  background: linear-gradient(135deg, var(--surface-hover), var(--surface-active));
}

.kb-search-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.kb-search-hero-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}

.kb-search-form {
  margin: 0;
}

.kb-search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-search-input-wrap:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(var(--primary-500-rgb), 0.15);
}

.kb-search-input-icon {
  padding: 0 var(--space-3);
  color: var(--text-tertiary);
  font-size: 18px;
}

.kb-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: var(--space-2) 0;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
}

.kb-search-input::placeholder {
  color: var(--text-tertiary);
}

.kb-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  background: var(--primary-600);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease;
}

.kb-search-btn:hover {
  background: var(--primary-700);
}

/* ── Knowledge Base Search Results ── */

.kb-search-results-header {
  margin-bottom: var(--space-4);
}

.kb-search-results-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.kb-search-results-title i {
  color: var(--primary-500);
}

/* ── Minor View Utilities ── */

.stat-inactive {
  opacity: 0.75;
}

.chart-container {
  margin-bottom: var(--space-6);
}

.dashboard-stats-grid {
  margin-bottom: var(--space-6);
}

/* ── Rich Text Content (.tc-content) ── */

.tc-content {
  color: var(--text-primary);
  line-height: 1.7;
}

.tc-content h1,
.tc-content h2,
.tc-content h3,
.tc-content h4,
.tc-content h5,
.tc-content h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.tc-content a {
  color: var(--text-link);
}

.tc-content a:hover {
  color: var(--text-link-hover);
}

.tc-content table {
  border-color: var(--border-default);
  width: 100%;
}

.tc-content table th,
.tc-content table td {
  border-color: var(--border-default);
  padding: var(--space-2) var(--space-3);
}

.tc-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-input);
}

.tc-content blockquote {
  border-left: 3px solid var(--border-strong);
  padding-left: var(--space-4);
  color: var(--text-secondary);
  margin-left: 0;
}

/* ── Mobile Responsiveness (cross-cutting) ── */

@media (max-width: 767px) {
  /* Document header actions stack on mobile */
  .doc-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-actions {
    flex-wrap: wrap;
  }

  /* Project heading row stack on mobile */
  .project-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Profile notification list single column on mobile */
  .profile-notification-list {
    flex-direction: column;
    gap: var(--space-2);
  }

  /* Ticket info sidebar full width on mobile */
  .ticket-info-list {
    font-size: 0.9rem;
  }

  /* Ensure tables scroll horizontally */
  .tc-content table {
    display: block;
    overflow-x: auto;
  }
}

body.viewinvoice .alert {
  margin-top: 10px;
  margin-bottom: -7px;
  border-radius: 1px;
}

.logo-text:hover,
.logo-text:focus,
.logo-text:active {
  color: var(--text-primary);
}

.p7 {
  padding: 7px;
}

.p8 {
  padding: 8px;
}

.p8-half {
  padding: 8.5px;
}

.p15 {
  padding: 15px;
}

.valign-middle {
  vertical-align: middle;
}

.mtop5 {
  margin-top: 5px;
}

.mtop7 {
  margin-top: 7px;
}

.mtop10 {
  margin-top: 10px;
}

.mtop15 {
  margin-top: 15px;
}

.mtop20 {
  margin-top: 20px;
}

.mtop25 {
  margin-top: 25px;
}

.mtop30 {
  margin-top: 30px;
}

.mtop40 {
  margin-top: 40px;
}

.mbot5 {
  margin-bottom: 5px;
}

.mbot10 {
  margin-bottom: 10px;
}

.mbot15 {
  margin-bottom: 15px;
}

.mbot20 {
  margin-bottom: 20px;
}

.mbot25 {
  margin-bottom: 25px;
}

.mbot30 {
  margin-bottom: 30px;
}

.mbot40 {
  margin-bottom: 40px;
}

.mleft5 {
  margin-left: 5px;
}

.mleft10 {
  margin-left: 10px;
}

.mright5 {
  margin-right: 5px;
}

.mright10 {
  margin-right: 10px;
}

.padding-30 {
  padding: 30px !important;
}

.no-mbot {
  margin-bottom: 0px;
}

.invoice-quick-info h5 {
  margin-top: 0px;
}

.table.items {
  margin-top: 25px;
  font-size: 13.5px;
}

.table.items thead {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.table.items > thead:first-child > tr:first-child > th {
  border-top: 1px solid var(--border-default);
}

.table.items thead th {
  border-right: 1px solid var(--border-default);
}

.table.items thead th:first-child {
  border-left: 1px solid var(--border-default);
}

.table.items tbody > tr > td,
.table.items thead > tr > th {
  padding: 8px 10px;
}

/* Navbar collapse/toggle styles removed — replaced by sidebar layout */

@media (max-width: 767px) {
  #staff_logged_in {
    display: none;
  }

  .viewestimate .panel-body,
  .viewinvoice .panel-body {
    padding: 0px;
  }
}

.dataTables_length select {
  padding-top: 5px;
  height: inherit;
}

[dir="rtl"] div.dataTables_wrapper div.dataTables_filter {
  text-align: left;
}

[dir="rtl"] div.dataTables_wrapper {
  direction: rtl;
}

[dir="rtl"] div.dataTables_wrapper div.dataTables_filter .input-group-addon {
  border-right: 1px solid var(--border-strong);
}

.label-href:visited,
.label-href {
  border: 0 !important;
}

.label-href:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.pointer {
  cursor: pointer;
}

.mime {
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 1px 0 4px 26px;
}

.mime-word {
  background-image: url(../../../images/mime/word.png);
}

.mime-excel {
  background-image: url(../../../images/mime/excel.png);
}

.mime-powerpoint {
  background-image: url(../../../images/mime/powerpoint.png);
}

.mime-pdf {
  background-image: url(../../../images/mime/pdf.png);
}

.mime-zip {
  background-image: url(../../../images/mime/zip.png);
}

.mime-image {
  background-image: url(../../../images/mime/image.png);
}

.mime-file {
  background-image: url(../../../images/mime/file.png);
}

.mime-photoshop {
  background-image: url(../../../images/mime/photoshop.png);
}

.mime-illustrator {
  background-image: url(../../../images/mime/illustrator.png);
}

.mime-video {
  background-image: url(../../../images/mime/video.png);
}

.mime-audio {
  background-image: url(../../../images/mime/audio.png);
}

.files-container {
  margin: 0 0 10px;
}

.files {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.hr-10 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mime > a {
  color: var(--text-secondary) !important;
  text-decoration: none;
}

.white {
  color: #fff;
}

.advanced-editor-wrapper {
  border: 1px solid var(--border-strong);
  margin-bottom: 15px;
}

.staff-profile-image-small {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

.staff-profile-xs-image {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.staff-profile-image-small {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

.staff-profile-image-thumb {
  height: 160px;
  width: 160px;
  border-radius: 50%;
}

.task-attachment {
  border: 1px solid var(--border-default);
  padding: 10px;
  border-radius: 3px;
  max-height: 255px;
  min-height: 255px;
  overflow: hidden;
}

.task-attachment .task-attachment-no-preview {
  margin-top: 45px;
  text-align: center;
}

.task-attachment .preview_image {
  margin: 0px;
  width: 100%;
}

.task-attachment .open-in-external {
  position: absolute;
  right: 30px;
}

.task-attachment .task-attachment-user {
  padding-bottom: 10px;
  display: inline-block;
  width: 100%;
  margin-left: 0px;
  border-bottom: 1px solid var(--border-default);
}

.media-body {
  word-break: break-word;
}

#proposal-wrapper {
  overflow: hidden;
  min-height: 100%;
}

#proposal-wrapper .proposal-left img {
  margin-left: 10px;
  margin-right: 10px;
}

div.proposal-wrapper img:not(.media-object) {
  display: block;
  max-width: 100%;
  height: auto;
}

.proposal-comment {
  display: inline-block;
  width: 100%;
  margin-bottom: 15px;
}

.table.proposal-items thead > tr > th {
  padding-left: 10px;
}

.table.proposal-items tbody > tr > td,
.table.proposal-items thead > tr > th {
  text-align: left;
}

.client-profile-image-small {
  height: 32px;
  width: 32px;
  border-radius: 50%;
}

.client-profile-image-thumb {
  height: 160px;
  width: 160px;
  border-radius: 50%;
}

#task h4 {
  font-size: 15px;
}

#task h5 {
  font-size: 14px;
}

#task .task-info {
  font-size: 10px;
  vertical-align: middle;
  padding: 10px;
}

#task .task-info h5 {
  font-size: 13px;
  font-weight: 400;
}

.jquery-comments [contentEditable="true"]:empty:not(:focus):before {
  color: var(--text-tertiary);
  font-size: 14px;
}

.jquery-comments ul.main {
  list-style: none !important;
}

.jquery-comments.tc-content ul.main ul:not(.child-comments) {
  list-style: initial !important;
}

.jquery-comments ul.navigation li,
.jquery-comments ul.main li.comment .actions > *,
.jquery-comments ul.main li.comment .name,
.jquery-comments .highlight-font-bold {
  font-weight: 500 !important;
}

.jquery-comments ul.main li.comment .name {
  color: var(--text-link);
}

.jquery-comments ul.main li.comment .wrapper .content {
  padding: 5px 0px 5px 0px;
}

.jquery-comments ul.navigation li {
  color: var(--text-primary);
}

.jquery-comments .textarea-wrapper .control-row > span.upload {
  padding: 5px 20px;
  background-color: var(--text-tertiary);
}

.jquery-comments .highlight-background {
  background: var(--info) !important;
}

.jquery-comments .textarea-wrapper .control-row > span {
  padding: 5px 20px !important;
  border-radius: 4px;
}

.jquery-comments .textarea-wrapper .control-row {
  margin-top: 10px;
}

.jquery-comments ul.main li.comment .actions > * {
  color: var(--text-tertiary);
}

.jquery-comments ul.navigation .navigation-wrapper {
  padding: 10px 0px 0px 0px;
}

.jquery-comments ul.navigation {
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 1.5em;
}

.jquery-comments .textarea-wrapper {
  padding-left: 21px;
}

.jquery-comments .textarea-wrapper:before {
  border: 0px;
}

.jquery-comments .textarea-wrapper .textarea {
  border-radius: 3px;
  border: 1px solid var(--border-strong);
}

.project-info-bg {
  background: var(--surface-base) !important;
  color: var(--text-primary) !important;
  border-top: 1px solid var(--border-default);
  border-left: 1px solid var(--border-default);
  border-right: 1px solid var(--border-default);
  font-weight: 500;
}

.no-radius {
  border-radius: 0px !important;
}

.team-members .panel-body {
  padding: 0px;
}

.team-members .media-left {
  padding: 10px;
}

.team-members .media-body {
  padding-right: 10px;
  padding-top: 12px;
}

.team-members .media:last-child {
  border-bottom: 0px;
}

.team-members .media {
  margin-top: 0px;
  border-bottom: 1px solid var(--border-default);
}

.project-percent {
  position: absolute;
  font-size: 33px;
  font-weight: 500;
  top: 35%;
  left: 0;
  right: 0;
}

.project-file-image {
  border: 1px solid var(--border-default);
  border-radius: 4px;
  margin-right: 15px;
}

#task-tracking-stats-modal {
  z-index: 999999999999;
}

.phase-logged-time {
  color: var(--success);
}

.progress-bg-dark {
  background-color: var(--text-tertiary);
}

.project-overview-progress-bar {
  height: 50px;
  background-color: var(--text-tertiary);
  position: relative;
}

.project-overview-progress-bar .project-progress-number {
  font-size: 16px;
  position: absolute;
  display: block;
  width: 100%;
  color: #fff;
  font-weight: 500;
  margin-top: 15px;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
}

.task-user {
  border: 1px solid var(--border-default);
  padding: 2px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  position: relative;
}

.task-checklist-indicator {
  border-radius: 50%;
  border: 1px solid var(--border-default);
  width: 20px;
  height: 21px;
  display: inline-block;
}

.task-checklist-indicator i {
  margin: 0 auto;
  vertical-align: middle;
  margin-left: 3px;
}

#task-comments {
  background: var(--surface-raised);
  margin-right: -20px;
  margin-left: -20px;
  padding: 20px;
  display: inline-block;
}

form.dropzone {
  background-color: var(--surface-raised);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
}

.dropzone .dz-message {
  margin-top: 45px;
  color: var(--info);
}

@media (max-width: 768px) {
  #content {
    padding: var(--space-4);
  }

  /* Prevent Bootstrap row negative margins from causing edge-to-edge content on all pages */
  #content > .row,
  #content > .container-fluid > .row,
  .section-client-dashboard > .row,
  .section-heading > .row,
  .panel_s > .panel-body > .row {
    margin-left: 0;
    margin-right: 0;
  }

  #content > .row > [class*="col-"],
  #content > .container-fluid > .row > [class*="col-"],
  .section-client-dashboard > .row > [class*="col-"],
  .section-heading > .row > [class*="col-"],
  .panel_s > .panel-body > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Page headings mobile spacing */
  .page-heading {
    padding: 0 var(--space-2);
  }

  /* Panels mobile spacing */
  .panel_s {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-card);
  }

  ._buttons .mleft5 {
    margin-left: 0px !important;
  }

  ._buttons .mright10 {
    margin-right: 0px !important;
  }

  ._buttons .pull-left,
  ._buttons .pull-right {
    float: none !important;
  }

  ._buttons .btn,
  ._buttons .btn-group {
    display: inline-block;
    margin-left: 0px !important;
    width: 100%;
    margin-bottom: 5px !important;
    float: none !important;
  }

  .project-overview-column {
    margin-top: 15px;
  }

  /* Table responsive wrapper mobile spacing */
  .table-responsive {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    width: calc(100% + var(--space-4) * 2);
  }

  /* Section headings consistent spacing */
  [class*="section-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Safe area insets for notched phones */
  #content {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
}

.tasks-phases .kan-ban-col .panel-heading {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.tasks-phases .panel-body {
  background: var(--surface-base);
  padding: 10px;
}

.tasks-phases ._task_wrapper {
  background: var(--surface-raised);
  padding: 5px 10px 5px 10px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
}

.activity-feed {
  padding: 15px;
}

.activity-feed .feed-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 30px;
  border-left: 2px solid var(--success);
}

.activity-feed .feed-item:last-child {
  border-color: transparent;
}

.activity-feed .feed-item:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--text-secondary);
}

.activity-feed .feed-item .date {
  position: relative;
  top: -5px;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.activity-feed .feed-item .text {
  position: relative;
  top: -3px;
}

.full-screen-modal {
  width: 90%;
  height: 90%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  overflow-y: initial !important;
}

.full-screen-modal .modal-content {
  height: 100%;
  min-height: 100%;
  max-height: 100%;
}

.full-screen-modal .modal-footer {
  bottom: 0px;
  position: absolute;
  width: 100%;
}

.project_file_discusssions_area,
.project_file_area {
  overflow-y: scroll;
  height: 400px;
}

@media (max-width: 768px) {
  .project_file_discusssions_area,
  .project_file_area {
    height: auto !important;
  }

  .full-screen-modal {
    width: auto;
    height: auto;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 10px;
    overflow-y: initial !important;
  }

  .project_file_discusssions_area {
    margin-top: 30px;
  }

  .full-screen-modal .modal-footer {
    width: auto;
    position: relative !important;
  }
}

.preview_image {
  height: auto;
  width: 250px;
  overflow: hidden;
  margin-bottom: 15px;
  margin-top: 15px;
}

.preview_image:last-child {
  margin-top: 0px;
  margin-bottom: 0px;
}

.preview_image img {
  width: 100%;
  height: auto;
}

.fc-event {
  padding: 8px !important;
  border: 0px !important;
  border-radius: 2px !important;
  margin: 5px 10px 5px 10px !important;
  font-size: 11px;
  cursor: pointer;
}

.fc-view {
  overflow-y: scroll;
}

#calendar .fc-header-toolbar button,
#calendar .fc-day-header,
#calendar .fc-toolbar .fc-center {
  text-transform: capitalize;
}

.tc-content ul,
.tc-content ol {
  list-style: inherit;
  margin-left: 15px;
}

.tc-content ol {
  list-style-type: decimal;
}

.tc-content ul {
  list-style-type: disc;
}

.tc-content table {
  margin-top: 0px;
  border-collapse: initial;
}

.tc-content table > tbody > tr > td {
  padding: 5px 10px 5px 10px;
}

.tc-content img {
  max-width: 100%;
}

.tc-content table[border="1"],
.tc-content table[border="1"] td {
  border: 1px solid;
}

.tc-content em {
  font-style: italic;
}

.tc-content p:empty:before {
  content: ' ';
  white-space: pre;
}

.proposal-view .tc-content ul,
.proposal-view .tc-content ol,
.contract-view .tc-content ul,
.contract-view .tc-content ol {
  margin-left: 0px;
}

.kb-search-jumbotron {
  margin-top: -20px;
  margin-bottom: 10px;
  background: var(--surface-base);
}

.has-feedback.has-feedback-left .form-control-feedback {
  left: 0;
}

.kb-search .form-control-feedback {
  left: 6px !important;
  top: 17px;
  font-size: 16px;
}

.kb-search input[type="search"] {
  padding-left: 45px;
  height: 50px;
  font-size: 16px;
}

.kb-search button[type="submit"] {
  height: 50px;
  padding-left: 25px;
  padding-right: 25px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  font-weight: 600;
}

#toplink,
#botlink {
  position: fixed;
  right: 7.5%;
  bottom: 53%;
  padding: 10px;
  margin: 0 -20px 0 0;
  color: var(--text-secondary);
  background: var(--surface-hover);
  font-size: 1.5em;
  border: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 6px 6px 0 0;
  z-index: 99;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#botlink {
  top: 47%;
  padding: 10px;
  bottom: auto;
  border: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-default);
  border-radius: 0 0 6px 6px;
}

#toplink:hover,
#botlink:hover {
  color: var(--success);
  background: var(--surface-raised);
  text-decoration: none;
}

.panel-body.project-description {
  padding: 11px;
}

.custom-field-inline-edit-link {
  float: left;
  margin-right: 5px;
}

.task-single-status .label {
  float: left;
}

._task_wrapper.overdue-task {
  background: var(--danger-bg) !important;
  border-color: var(--danger) !important;
}

.form-group + p.alert-validation {
  margin-top: -10px;
}

@media screen and (max-height: 575px),
  screen and (min-width: 992px) and (max-width: 1199px) {
  #rc-imageselect,
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.83);
    -webkit-transform: scale(0.83);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

th[align="left"],
td[align="left"] {
  text-align: left;
}

th[align="right"],
td[align="right"] {
  text-align: right;
}

th[align="center"],
td[align="center"] {
  text-align: center !important;
}

[dir="rtl"] th[align="left"],
[dir="rtl"] td[align="left"] {
  text-align: right !important;
}

[dir="rtl"] th[align="right"],
[dir="rtl"] td[align="right"] {
  text-align: left !important;
}

.signature-pad--body {
  border-radius: 4px;
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border: 1px solid var(--border-strong);
}

.gdpr-right {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  padding: 35px 15px;
  text-align: center;
  margin-bottom: 25px;
  border-radius: 6px;
}

.gdpr-right .gdpr-right-heading {
  margin-top: 0px;
  margin-bottom: 20px;
  font-size: 22px;
}

.gdpr-purpose {
  border: 1px solid var(--border-default);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.gdpr-purpose .gdpr-purpose-heading {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
}

.list-status h3 {
  margin-top: 0px;
}

.list-status:last-child {
  border-right: 0px;
}

.list-status a {
  border: 1px solid var(--border-default);
  padding: 15px;
  display: inline-block;
  width: 100%;
  border-radius: 4px;
}

.list-status a.active {
  background: var(--surface-base);
}

.ticket-info p:last-child {
  margin-bottom: 0;
}

.gpicker {
  opacity: 0;
}

.gpicker + div[id^="dropbox-chooser"] {
  float: right;
  margin-left: 5px;
}

.gpicker {
  height: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 1px 7px 5px 3px;
  border: 1px solid var(--border-default);
  border-radius: 2px;
  border-bottom-color: var(--border-default);
  background: var(--surface-raised);
  line-height: 18px !important;
  text-decoration: none !important;
  box-sizing: content-box !important;
  -webkit-box-sizing: content-box !important;
  -moz-box-sizing: content-box !important;
}

.preview-sticky-header {
  z-index: 1;
  background: var(--surface-raised);
  padding-top: 15px;
  padding-bottom: 15px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  width: 100% !important;
  left: 0px !important;
}

@media (max-width: 767px) {
  .preview-sticky-header {
    padding-right: 20px;
    padding-left: 20px;
  }
}

.preview-sticky-header .sticky-hidden {
  display: none !important;
}

.preview-sticky-header .sticky-visible {
  display: inherit !important;
}

.mobile .preview-sticky-header {
  padding: 15px;
}

/*
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops

  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/
@media (min-width: 1281px), (min-width: 1025px) and (max-width: 1280px) {
  .preview-top-wrapper {
    margin-top: 25px;
  }
}

[dir="rtl"] .bootstrap-select .dropdown-toggle .filter-option {
  right: 0;
  margin-right: auto;
  text-align: right;
  padding-right: 16px;
}

.task-comment .task-attachment-col-more {
  display: block !important;
}

.comment-content .task-attachment-col:nth-child(2),
.comment-content .task-attachment-col:nth-child(3),
.comment-content .task-attachment-col:nth-child(4) {
  margin-top: 15px;
}

.task-comment .task-attachment-col {
  margin-left: 0;
  padding-left: 0;
}

.tasks-phases {
  overflow: scroll hidden;
}

.kan-ban-col {
  width: 326px;
  height: 416px;
  margin-right: 6px;
  display: inline-block;
}

.tasks-phases .kan-ban-col .panel-body {
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .kan-ban-col {
    width: 216px;
    height: 416px;
    margin-right: 6px;
    display: inline-block;
  }
}

body[dir="rtl"].safari .table-responsive .table {
  max-width: none;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 991px) {
  .register-heading.text-right {
    text-align: center;
  }
}

.g-recaptcha > div,
#login-recaptcha > div,
#register-recaptcha > div {
  margin: 0 auto;
}

/* reCAPTCHA responsive scaling for narrow screens */
@media screen and (max-width: 360px) {
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

@media screen and (max-width: 320px) {
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.77);
    -webkit-transform: scale(0.77);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

.honey-element {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

@media screen and (max-height: 575px),
  screen and (min-width: 992px) and (max-width: 1199px) {
  #rc-imageselect,
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.83);
    -webkit-transform: scale(0.83);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

/* ============================================
   Fennec360-v2 Typography
   ============================================ */

h1, h2, h3, h4, h5, h6,
.panel-title,
.modal-title {
  font-family: var(--font-heading);
}

/* ============================================
   Fennec360-v2 Component Radius Overrides
   ============================================ */

/* Pill buttons */
.btn {
  border-radius: var(--radius-pill) !important;
}

/* Rounded cards/panels */
.panel,
.panel_s {
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.panel > .panel-heading:first-child {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.panel > .panel-footer:last-child {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* Rounded inputs */
.form-control,
.input-group-addon {
  border-radius: var(--radius-input);
}

.input-group .form-control:first-child {
  border-radius: var(--radius-input) 0 0 var(--radius-input);
}

.input-group .input-group-addon:last-child,
.input-group .input-group-btn:last-child > .btn {
  border-radius: 0 var(--radius-input) var(--radius-input) 0 !important;
}

.input-group .input-group-addon:first-child,
.input-group .input-group-btn:first-child > .btn {
  border-radius: var(--radius-input) 0 0 var(--radius-input) !important;
}

/* Rounded modals */
.modal-content {
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Pill badges/labels */
.badge,
.label {
  border-radius: var(--radius-badge);
}

/* Rounded dropdowns */
.dropdown-menu {
  border-radius: var(--radius-input);
  overflow: hidden;
}

/* Rounded alerts */
.alert {
  border-radius: var(--radius-input);
}

/* Rounded nav-tabs */
.nav-tabs > li > a {
  border-radius: var(--radius-input) var(--radius-input) 0 0;
}

/* Rounded form groups */
.input-group {
  border-radius: var(--radius-input);
}

/* Theme transition for interactive elements */
.btn,
.form-control,
.panel,
.panel_s,
.dropdown-menu,
.modal-content,
.nav-tabs > li > a,
a {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard-section {
  margin-bottom: var(--space-6);
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.dashboard-section-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-section-header .dashboard-section-title {
  margin-bottom: 0;
}

.dashboard-section-icon {
  font-size: 18px;
  color: var(--text-tertiary);
}

.dashboard-section-link {
  font-size: 13px;
  color: var(--text-link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.dashboard-section-link:hover {
  color: var(--text-link-hover);
  text-decoration: none;
}

/* Status Cards Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Mobile: 2 cards per row with compact layout */
@media (max-width: 767px) {
  .dashboard-section-title {
    font-size: 14px;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .dashboard-stat-card {
    padding: var(--space-3);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .dashboard-stat-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .dashboard-stat-value {
    font-size: 18px;
  }

  .dashboard-stat-label {
    font-size: 11px;
  }

  .dashboard-stat-watermark {
    font-size: 48px;
    right: -6px;
    bottom: -8px;
  }

  [dir="rtl"] .dashboard-stat-watermark {
    right: auto;
    left: -6px;
  }
}

.dashboard-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text-primary);
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  overflow: hidden;
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text-primary);
}

.dashboard-stat-card:hover .dashboard-stat-icon {
  transform: scale(1.08);
}

.dashboard-stat-card:focus-visible {
  outline: 2px solid var(--primary-700);
  outline-offset: 2px;
}

/* Semantic glow colors */
.dashboard-stat-danger {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 15%, transparent),
              0 2px 8px color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}
.dashboard-stat-danger:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 25%, transparent),
              0 4px 16px color-mix(in srgb, var(--danger) 20%, transparent);
}

.dashboard-stat-success {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 15%, transparent),
              0 2px 8px color-mix(in srgb, var(--success) 12%, transparent);
  border-color: color-mix(in srgb, var(--success) 25%, transparent);
}
.dashboard-stat-success:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 25%, transparent),
              0 4px 16px color-mix(in srgb, var(--success) 20%, transparent);
}

.dashboard-stat-warning {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warning) 15%, transparent),
              0 2px 8px color-mix(in srgb, var(--warning) 12%, transparent);
  border-color: color-mix(in srgb, var(--warning) 25%, transparent);
}
.dashboard-stat-warning:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warning) 25%, transparent),
              0 4px 16px color-mix(in srgb, var(--warning) 20%, transparent);
}

.dashboard-stat-info {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 15%, transparent),
              0 2px 8px color-mix(in srgb, var(--info) 12%, transparent);
  border-color: color-mix(in srgb, var(--info) 25%, transparent);
}
.dashboard-stat-info:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 25%, transparent),
              0 4px 16px color-mix(in srgb, var(--info) 20%, transparent);
}

/* Dynamic color via --stat-color custom property */
.dashboard-stat-card[style*="--stat-color"] {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stat-color) 15%, transparent),
              0 2px 8px color-mix(in srgb, var(--stat-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--stat-color) 25%, transparent);
}
.dashboard-stat-card[style*="--stat-color"]:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stat-color) 25%, transparent),
              0 4px 16px color-mix(in srgb, var(--stat-color) 20%, transparent);
}
.dashboard-stat-card[style*="--stat-color"] .dashboard-stat-watermark {
  color: var(--stat-color);
}

.dashboard-stat-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-input);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dashboard-stat-danger .dashboard-stat-icon  { color: var(--danger);  background: var(--danger-bg); }
.dashboard-stat-success .dashboard-stat-icon { color: var(--success); background: var(--success-bg); }
.dashboard-stat-warning .dashboard-stat-icon { color: var(--warning); background: var(--warning-bg); }
.dashboard-stat-info .dashboard-stat-icon    { color: var(--info);    background: var(--info-bg); }

.dashboard-stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.dashboard-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Watermark Icon */
.dashboard-stat-watermark {
  position: absolute;
  right: -8px;
  bottom: -12px;
  font-size: 64px;
  opacity: 0.04;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

[dir="rtl"] .dashboard-stat-watermark {
  right: auto;
  left: -8px;
}

.dashboard-stat-card:hover .dashboard-stat-watermark {
  opacity: 0.06;
  transform: scale(1.05);
}

/* Watermark color variants */
.dashboard-stat-danger .dashboard-stat-watermark  { color: var(--danger); }
.dashboard-stat-success .dashboard-stat-watermark { color: var(--success); }
.dashboard-stat-warning .dashboard-stat-watermark { color: var(--warning); }
.dashboard-stat-info .dashboard-stat-watermark    { color: var(--info); }

/* Chart Panel */
.dashboard-chart-panel {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard-chart-filters {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.dashboard-chart-select {
  max-width: 200px;
}

.dashboard-chart-container {
  position: relative;
  max-height: 350px;
}

/* ── Table Density Toggle ── */
.table-density-toggle {
  margin-right: var(--space-2);
  padding: 4px 8px;
  line-height: 1;
  vertical-align: middle;
}

.table-density-toggle i {
  font-size: 16px;
}

/* Compact density */
.table-compact > tbody > tr > td,
.table-compact > tbody > tr > th {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
}

.table-compact > thead > tr > th {
  padding: 8px 10px;
  font-size: 12px;
}

.table-compact .label {
  font-size: 10px;
  padding: 2px 6px;
}

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.empty-state-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 360px;
}

/* ============================================
   Fennec360-v2 Auth Split Layout
   ============================================ */

/* Main container: full viewport, side-by-side */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--surface-base);
}

/* Left: Illustration panel */
.auth-illustration-panel {
  position: relative;
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-950));
  overflow: hidden;
  flex-shrink: 0;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-8);
}

/* Auth background image */
.auth-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Branded gradient overlay for text readability */
.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-950) 85%, transparent) 0%,
    color-mix(in srgb, var(--primary-700) 70%, transparent) 100%
  );
  z-index: 1;
}

/* Trust badges - ensure clickable above overlay */
.auth-trust-badges {
  position: relative;
  z-index: 2;
}

.auth-illustration-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.auth-illustration-logo {
  max-height: 48px;
  width: auto;
  margin-bottom: var(--space-6);
}

.auth-illustration-logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: var(--space-6);
}

.auth-illustration-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

.auth-illustration-tagline-tzm {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: var(--space-2) auto 0;
  letter-spacing: 0.5px;
}

/* Auth testimonial */
.auth-testimonial {
  position: relative;
  z-index: 2;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  margin-top: auto;
}

.auth-testimonial-icon {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-bottom: var(--space-3);
}

.auth-testimonial-quote {
  margin: 0;
}

.auth-testimonial-quote p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-style: italic;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-testimonial-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.auth-testimonial-role {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* OTP login toggle link */
.auth-login-toggle-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.auth-login-toggle-link:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* Reset .panel-body padding inside auth card (OTP injection target) */
.auth-card .panel-body {
  padding: 0;
}

/* OTP module injected form styling */
#fennec-otp-section .form-group {
  margin-bottom: var(--space-4);
}

#fennec-otp-section .btn-primary {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

#fennec-otp-section .btn-primary.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Split OTP digit boxes */
.otp-digit-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--space-4);
  direction: ltr;
}

.otp-digit-box {
  width: 52px;
  height: 58px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--surface-input);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-input);
  outline: none;
  caret-color: var(--primary-500);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.otp-digit-box:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 20%, transparent);
}

/* Filled state - subtle highlight when digit entered */
.otp-digit-box:not(:placeholder-shown),
.otp-digit-box:not([value=""]) {
  border-color: var(--primary-400);
  background: color-mix(in srgb, var(--primary-500) 8%, var(--surface-input));
}

.otp-digit-box::selection {
  background: transparent;
}

/* Dark mode enhancements for OTP boxes */
[data-theme="dark"] .otp-digit-box {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .otp-digit-box:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-400) 25%, transparent),
              inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .otp-digit-box:not(:placeholder-shown),
[data-theme="dark"] .otp-digit-box:not([value=""]) {
  border-color: var(--primary-500);
  background: color-mix(in srgb, var(--primary-500) 15%, var(--surface-raised));
}

#fennec-otp-section #es_phone_number_error_message {
  font-size: 13px;
  margin: 0;
}

#fennec-otp-section #es_countdown {
  display: inline-block;
  min-width: 24px;
  font-variant-numeric: tabular-nums;
}

/* "Or" divider for login toggle */
.auth-login-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-login-divider::before,
.auth-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* Decorative dot pattern overlay */
.auth-illustration-dots {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
  pointer-events: none;
}

/* Right: Form panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
}

/* Decorative dots on form panel - fades toward center */
.auth-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--border-default);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.auth-form-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-6);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}


.auth-mobile-logo {
  display: none;
}

.auth-mobile-logo img {
  max-height: 56px;
  width: auto;
}

.auth-mobile-logo .logo-for-light {
  display: none;
}

[data-theme="dark"] .auth-mobile-logo .logo-for-dark {
  display: none;
}

[data-theme="dark"] .auth-mobile-logo .logo-for-light {
  display: block;
}

.auth-form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-10);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Register page: wider form body for two-column layout */
body.register .auth-form-body {
  max-width: 720px;
}

/* Auth heading */
.auth-heading {
  font-family: var(--font-heading);
  font-size: 33px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.auth-subheading {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-6) 0;
  line-height: 1.5;
}

/* Auth buttons: icon alignment */
.auth-card .btn i,
.auth-login-toggle-link i,
#fennec-otp-section .btn i {
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-right: 4px;
}

/* Loading spinner animation */
.btn-spin,
.auth-spin,
.icon-spin {
  animation: btnSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Button loading state */
.btn-loading,
.btn[disabled].btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading .btn-text {
  visibility: hidden;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  animation: btnSpin 0.8s linear infinite;
}

/* ----------------------------------------
   Accent Button Variants
   ---------------------------------------- */

/* Accent Button - Bold CTA */
.btn.btn-accent {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: var(--text-on-accent);
}

.btn.btn-accent:hover,
.btn.btn-accent:focus {
  background: var(--accent-700);
  border-color: var(--accent-700);
  color: var(--text-on-accent);
}

.btn.btn-accent:active {
  background: var(--accent-800);
  border-color: var(--accent-800);
}

.btn.btn-accent:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

/* Accent Outline variant */
.btn.btn-accent-outline {
  background: transparent;
  border-color: var(--accent-600);
  color: var(--accent-600);
}

.btn.btn-accent-outline:hover,
.btn.btn-accent-outline:focus {
  background: var(--accent-50);
  border-color: var(--accent-700);
  color: var(--accent-700);
}

.btn.btn-accent-outline:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

[data-theme="dark"] .btn.btn-accent-outline {
  color: var(--accent-400);
  border-color: var(--accent-400);
}

[data-theme="dark"] .btn.btn-accent-outline:hover,
[data-theme="dark"] .btn.btn-accent-outline:focus {
  background: rgba(255, 100, 104, 0.1);
  border-color: var(--accent-300);
  color: var(--accent-300);
}

/* Auth card: clean panel */
.auth-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* reCAPTCHA - responsive containment
   Google's .rc-anchor-normal is 300px × 74px fixed inside iframe.
   Scale container to fit within available space on mobile. */
.g-recaptcha,
#login-recaptcha,
#register-recaptcha {
  transform-origin: left top;
  max-width: 100%;
}

/* Auth forms: left-align reCAPTCHA */
#login-recaptcha > div,
#register-recaptcha > div {
  margin: 0;
}

/* 420px screen - auth forms have ~340px available */
@media (max-width: 420px) {
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.92);
    margin-bottom: -8px;
  }
}

/* 390px screen */
@media (max-width: 390px) {
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.85);
    margin-bottom: -14px;
  }
}

/* 360px screen */
@media (max-width: 360px) {
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.78);
    margin-bottom: -20px;
  }
}

/* 320px screen */
@media (max-width: 320px) {
  .g-recaptcha,
  #login-recaptcha,
  #register-recaptcha {
    transform: scale(0.68);
    margin-bottom: -28px;
  }
}

.auth-card-footer {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
  margin-top: var(--space-4);
}

/* Register page header (heading + language selector) */
.auth-register-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.auth-register-titles {
  flex: 1;
}

.auth-register-titles .auth-heading {
  margin-bottom: var(--space-1);
}

.auth-register-titles .auth-subheading {
  margin-bottom: 0;
}

.auth-register-lang {
  width: 180px;
  flex-shrink: 0;
}

/* ── Auth Responsive: mobile (<992px) ── */
@media (max-width: 991px) {
  .auth-illustration-panel {
    display: none;
  }

  .auth-form-panel {
    width: 100%;
  }

  .auth-mobile-logo {
    display: block;
    margin-right: auto;
  }

  .auth-heading {
    font-size: 36px;
  }

  .auth-subheading {
    font-size: 17px;
  }

  .auth-form-body {
    padding: var(--space-4);
    max-width: 100%;
  }

  body.register .auth-form-body {
    max-width: 100%;
  }

  .auth-register-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-register-lang {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .auth-heading {
    font-size: 30px;
  }

  .auth-subheading {
    font-size: 15px;
  }
}

/* ── Password show/hide toggle ── */
.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .form-control {
  padding-right: 44px;
}

.auth-password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  transition: color 0.15s ease;
}

.auth-password-toggle:hover {
  color: var(--text-primary);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-input);
}

/* ── Custom checkbox (Remember Me) ── */
.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth-checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: 5px;
  background: var(--surface-input);
  font-size: 12px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.auth-checkbox-box i {
  opacity: 0;
  color: #fff;
  font-size: 11px;
  transition: opacity 0.15s ease;
}

.auth-checkbox input[type="checkbox"]:checked ~ .auth-checkbox-box {
  background: var(--accent-600);
  border-color: var(--accent-600);
}

.auth-checkbox input[type="checkbox"]:checked ~ .auth-checkbox-box i {
  opacity: 1;
}

.auth-checkbox input[type="checkbox"]:focus ~ .auth-checkbox-box {
  box-shadow: 0 0 0 3px rgba(216, 31, 36, 0.15);
}

.auth-checkbox-label {
  line-height: 1;
}

/* ── Password strength meter ── */
.auth-password-strength {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.auth-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border-default);
  border-radius: 2px;
  overflow: hidden;
}

.auth-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.auth-strength-bar span.strength-weak {
  background-color: #ef4444;
}

.auth-strength-bar span.strength-fair {
  background-color: #f97316;
}

.auth-strength-bar span.strength-good {
  background-color: #eab308;
}

.auth-strength-bar span.strength-strong {
  background-color: #22c55e;
}

.auth-strength-bar span.strength-excellent {
  background-color: #10b981;
}

.auth-strength-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 60px;
}

/* ── Fade transitions (OTP ↔ Password) ── */
.auth-fade-in {
  animation: authFadeIn 0.2s ease forwards;
}

.auth-fade-out {
  animation: authFadeOut 0.15s ease forwards;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes authFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* ── Error shake animation ── */
.auth-shake {
  animation: authShake 0.4s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Auth Flash Alerts */
.auth-alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-5);
  font-size: 14px;
  font-weight: 500;
  animation: authFadeIn 0.3s ease;
}

.auth-alert i {
  font-size: 20px;
  flex-shrink: 0;
}

.auth-alert-success {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  color: var(--success);
}

.auth-alert-danger {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
}

.auth-alert-warning {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  color: var(--warning);
}

.auth-alert-info {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
  color: var(--info);
}

.auth-card .form-group .text-danger,
.auth-card .alert-danger {
  animation: authFadeIn 0.2s ease;
}

/* Auth OTP Tip */
.auth-otp-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: color-mix(in srgb, var(--primary-100) 50%, transparent);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-card);
  text-align: center;
}

[data-theme="dark"] .auth-otp-tip {
  background: color-mix(in srgb, var(--primary-950) 60%, transparent);
  border-color: var(--primary-800);
}

.auth-otp-tip > i {
  font-size: 22px;
  color: var(--primary-600);
}

[data-theme="dark"] .auth-otp-tip > i {
  color: var(--primary-400);
}

.auth-otp-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.auth-otp-tip-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.auth-otp-tip-link:hover {
  color: var(--primary-700);
  gap: var(--space-2);
  text-decoration: none;
}

[data-theme="dark"] .auth-otp-tip-link {
  color: var(--primary-400);
}

[data-theme="dark"] .auth-otp-tip-link:hover {
  color: var(--primary-300);
}

/* Auth Signup CTA */
.auth-signup-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--surface-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-card);
}

.auth-signup-cta-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-signup-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 10px var(--space-4);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-signup-cta-btn:hover {
  background: var(--neutral-200);
  border-color: var(--neutral-300);
  color: var(--text-primary);
  text-decoration: none;
}

.auth-signup-cta-btn:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.auth-signup-cta-btn i {
  font-size: 18px;
}

[data-theme="dark"] .auth-signup-cta-btn {
  color: var(--text-primary);
  background: var(--neutral-800);
  border-color: var(--neutral-700);
}

[data-theme="dark"] .auth-signup-cta-btn:hover {
  background: var(--neutral-700);
  border-color: var(--neutral-600);
  color: var(--text-primary);
}

/* Country Picker with Flags */
.country-picker .country-flag,
.country-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: var(--space-3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .country-picker .country-flag,
[dir="rtl"] .country-flag {
  margin-right: 0;
  margin-left: var(--space-3);
}

.country-picker .dropdown-menu .country-flag,
.bootstrap-select .dropdown-menu .country-flag {
  width: 24px;
  height: 18px;
  margin-right: var(--space-3);
}

[dir="rtl"] .country-picker .dropdown-menu .country-flag,
[dir="rtl"] .bootstrap-select .dropdown-menu .country-flag {
  margin-right: 0;
  margin-left: var(--space-3);
}

/* Optional Field Indicator */
.field-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: var(--space-1);
}

[dir="rtl"] .field-optional {
  margin-left: 0;
  margin-right: var(--space-1);
}

/* Place optional indicator after label text */
label .field-optional,
.control-label .field-optional {
  float: right;
  margin-left: var(--space-2);
}

[dir="rtl"] label .field-optional,
[dir="rtl"] .control-label .field-optional {
  float: left;
  margin-left: 0;
  margin-right: var(--space-2);
}


/* ═══════════════════════════════════════════════
   PAGE HEADING COMPONENT
   Consistent heading pattern for all portal pages
   ═══════════════════════════════════════════════ */

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.page-heading-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page-heading-icon {
  font-size: 20px;
  color: var(--primary-500);
}
