﻿/**
 * Prime AlÃ¼minyum â€” Brand Tokens
 * -------------------------------------------------
 * Edit ONLY this file to change corporate colors.
 * Values below are starter suggestions taken from your SVG logos
 * (#303A2A olive, #8A764A gold, #1F652D green, #EBECE6 cream).
 * Replace hex codes as needed; save and hard-refresh the browser.
 */

:root {
  /* === Core brand (edit these first) === */
  --brand-primary: #1F652D;
  --brand-primary-dark: #163F1F;
  --brand-primary-light: #678754;
  --brand-primary-soft: rgba(31, 101, 45, 0.10);
  --brand-primary-softer: rgba(31, 101, 45, 0.06);

  --brand-accent: #8A764A;
  --brand-accent-soft: rgba(138, 118, 74, 0.14);

  --brand-ink: #303A2A;
  --brand-muted: #525543;
  --brand-cream: #EBECE6;
  --brand-surface: #F4F6F2;
  --brand-card: #FFFFFF;
  --brand-border: #D8DCD0;

  /* Logo paths (relative to site root) â€” light UI uses dark-ink logos */
  --brand-logo-full: url("/images/brand/logo-v1-dark.svg");
  --brand-logo-mark: url("/images/brand/logo-v6-dark.svg");
  --brand-logo-on-dark: url("/images/brand/logo-v5-light.svg");
}

/* Map brand tokens onto Zentic theme variables */
:root {
  --zc-primary: var(--brand-primary);
  --zc-primary-dark: var(--brand-primary-dark);
  --zc-primary-light: var(--brand-primary-light);
  --zc-primary-xlight: var(--brand-primary-soft);
  --zc-primary-xxlight: var(--brand-primary-softer);
  --zc-primary-middle: var(--brand-primary-light);

  --zc-secondary: var(--brand-accent);
  --zc-secondary-light: var(--brand-accent-soft);
  --zc-secondary-xlight: var(--brand-accent-soft);

  --zc-sidebar-active-border: var(--brand-primary);
  --zc-sidebar-hover: var(--brand-primary-softer);
  --zc-sidebar-active-bg: var(--brand-primary-soft);
  --zc-sidebar-text-active: var(--brand-ink);
  --zc-sidebar-section-color: var(--brand-muted);

  --zc-body-bg: var(--brand-surface);
  --zc-card-bg: var(--brand-card);
  --zc-border-color: var(--brand-border);
  --zc-text-primary: var(--brand-ink);
  --zc-text-secondary: var(--brand-muted);
  --zc-shadow-ai: 0 4px 20px rgba(31, 101, 45, 0.18);
}

/* === Logo helpers (light theme only) === */
.brand-logo-full,
.brand-logo-mark {
  display: block;
  object-fit: contain;
}

.brand-logo-full {
  height: 60px;
  width: auto;
  max-width: 160px;
}

.brand-logo-mark {
  height: 32px;
  width: auto;
  max-width: 40px;
}

.auth-left .brand-logo-full {
  height: 48px;
  max-width: 220px;
}

.sidebar-brand .brand-text {
  display: none;
}

.sidebar-brand .brand-icon {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.sidebar-brand .brand-link {
  gap: 0;
}

/* Auth left panel â€” static theme-like background */
.auth-left {
  background:
    radial-gradient(circle, rgba(235, 236, 230, 0.07) 1px, transparent 1px),
    linear-gradient(150deg, #163F1F 0%, #1F652D 48%, #303A2A 100%) !important;
  background-size: 22px 22px, 100% 100% !important;
}

.auth-left .auth-left-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: none;
  animation: none !important;
}

.auth-left .auth-left-orb-1 {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: rgba(138, 118, 74, 0.22) !important;
}

.auth-left .auth-left-orb-2 {
  width: 320px;
  height: 320px;
  bottom: -110px;
  left: -90px;
  background: rgba(103, 135, 84, 0.20) !important;
}

.auth-left .auth-left-orb-3 {
  width: 200px;
  height: 200px;
  top: 45%;
  left: 8%;
  background: rgba(235, 236, 230, 0.10) !important;
}

.auth-feature-icon {
  background: rgba(235, 236, 230, 0.12) !important;
  color: #EBECE6 !important;
  border-color: rgba(138, 118, 74, 0.35) !important;
}

.btn-zentic.btn-ai,
.btn-zentic.btn-primary {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 4px 14px rgba(31, 101, 45, 0.25);
}

.btn-zentic.btn-ai:hover,
.btn-zentic.btn-primary:hover {
  background: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
}

.stat-icon.purple,
.zentic-bg-purple {
  background: var(--brand-primary-soft) !important;
  color: var(--brand-primary) !important;
}

.stat-icon.stat-icon-brand {
  background: rgba(31, 101, 45, 0.08) !important;
  color: var(--brand-primary) !important;
  border: 1px solid rgba(31, 101, 45, 0.12);
}

.stat-icon.stat-icon-brand.is-accent {
  background: rgba(138, 118, 74, 0.1) !important;
  color: #6b5a35 !important;
  border-color: rgba(138, 118, 74, 0.15);
}

.stat-icon.stat-icon-brand.is-neutral {
  background: rgba(48, 58, 42, 0.06) !important;
  color: #4a5642 !important;
  border-color: rgba(48, 58, 42, 0.1);
}

.stat-icon.stat-icon-brand.is-warn {
  background: rgba(180, 120, 40, 0.1) !important;
  color: #8a6508 !important;
  border-color: rgba(180, 120, 40, 0.14);
}

.stat-icon.stat-icon-brand.is-teal {
  background: rgba(47, 143, 138, 0.12) !important;
  color: #1f6f6b !important;
  border-color: rgba(47, 143, 138, 0.18);
}

.crm-label-info {
  display: inline-flex;
  align-items: center;
  color: var(--zc-text-muted);
  cursor: help;
  font-size: 0.9rem;
}

.crm-password-field {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}

.crm-password-field .form-control-zentic {
  flex: 1;
  min-width: 0;
}

.crm-password-auto {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--zc-text-muted);
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.crm-password-auto--inline {
  margin: 0;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 58, 42, 0.12);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.crm-password-auto--inline:has(input:checked) {
  border-color: rgba(31, 101, 45, 0.35);
  background: rgba(31, 101, 45, 0.06);
}

.admin-user-create-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-password-rules-row {
  padding-top: 0.15rem;
}

@media (max-width: 767.98px) {
  .admin-user-form__row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .admin-user-create-form #adminCreateUserSubmit {
    width: 100%;
  }

  .crm-admin-table thead {
    display: none;
  }

  .crm-admin-table,
  .crm-admin-table tbody,
  .crm-admin-table tr,
  .crm-admin-table td {
    display: block;
    width: 100%;
  }

  .crm-admin-table tr.crm-admin-row {
    margin-bottom: 0.85rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(48, 58, 42, 0.1);
    border-radius: 14px;
    background: #fff;
  }

  .crm-admin-table td {
    border: 0 !important;
    padding: 0.35rem 0 !important;
  }

  .crm-admin-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--zc-text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .crm-admin-table td[data-label="Kullanıcı"]::before {
    display: none;
  }

  .crm-admin-table td[data-label="İşlemler"] {
    padding-top: 0.55rem !important;
  }

  .crm-admin-table td[data-label="İşlemler"]::before {
    display: none;
  }

  .crm-admin-table .crm-row-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }

}

.crm-password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: #f8faf6;
}

.crm-password-rules__item {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.crm-password-rules__item::before {
  content: 'â—‹';
  font-size: 0.65rem;
  line-height: 1;
  color: #94a3b8;
}

.crm-password-rules__item.is-met {
  color: var(--brand-primary-dark);
}

.crm-password-rules__item.is-met::before {
  content: 'â—';
  color: var(--brand-primary);
}

.crm-password-rules__item.is-missing::before {
  content: 'â—‹';
  color: #dc2626;
}

.form-control-zentic.is-invalid {
  border-color: rgba(220, 38, 38, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
}

.crm-customer-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(138, 118, 74, 0.18), rgba(184, 137, 61, 0.12));
  color: #8a6508;
  flex-shrink: 0;
  font-size: 0.68rem;
  box-shadow: 0 0 0 1px rgba(138, 118, 74, 0.15);
}

.crm-customer-star--sm {
  width: 1rem;
  height: 1rem;
  font-size: 0.62rem;
}

.crm-export-map-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.crm-export-map-hint.is-info {
  background: rgba(31, 101, 45, 0.06);
  border: 1px solid rgba(31, 101, 45, 0.14);
  color: var(--brand-primary-dark);
}

.crm-export-map-hint.is-warn {
  background: rgba(180, 120, 40, 0.08);
  border: 1px solid rgba(180, 120, 40, 0.16);
  color: #8a6508;
}

.crm-export-map-hint i {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.company-form-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.company-form-header {
  margin-bottom: 1rem;
}

.company-form-header.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.company-form-top-row > [class*="col-"] {
  display: flex;
}

.company-form-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.company-form-card .zentic-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.company-form-card .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.crm-company-match {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #e7f3f8;
  color: #1d4f73;
  font-size: 0.8rem;
  line-height: 1.4;
}

.company-form-card .form-control-zentic,
.company-form-card .form-select-zentic,
.company-form-card .crm-country-picker-trigger {
  min-height: 38px;
}

.crm-website-open {
  border: 0;
  padding: 0 12px;
  color: var(--brand-primary);
  transition: background 0.15s ease, color 0.15s ease;
}

.crm-website-open:hover:not(:disabled) {
  background: rgba(31, 101, 45, 0.08);
  color: var(--brand-primary-dark);
}

.crm-website-open:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.company-form-fill-row {
  margin-top: auto;
}

.company-form-address {
  min-height: 72px;
  resize: vertical;
}

.company-form-assign-card .zentic-card-body {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.company-form-assignee-picker {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-height: 132px;
  margin-top: 0.15rem;
}

.company-form-followup {
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 12px;
  background: #f8faf6;
  padding: 0.75rem;
  height: 100%;
}

.company-form-followup.is-disabled {
  opacity: 0.92;
}

@media (min-width: 1200px) {
  .company-form-top-row {
    min-height: 0;
  }

  .company-form-card .zentic-card-body {
    min-height: 320px;
  }
}

@media (max-width: 991.98px) {
  .company-form-header.page-header {
    align-items: flex-start;
  }

  .company-form-header .page-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .company-form-assignee-picker {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .company-form-followup {
    margin-top: 0.25rem;
  }

  .company-form-card .zentic-card-body {
    min-height: 0;
  }
}

.ai-status-dot {
  background: var(--brand-primary) !important;
}

.credit-vadisoft {
  font-size: 0.8rem;
  color: var(--zc-text-muted);
}

.credit-vadisoft a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.credit-vadisoft a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.auth-credit {
  margin-top: 1.25rem;
  text-align: center;
}

/* Login logo â€” clean, no box */
.auth-left-logo {
  margin-bottom: 2.5rem;
}

.auth-left-logo .brand-link {
  display: inline-flex;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.auth-left-logo .brand-logo-full {
  height: 58px;
  max-width: 260px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.auth-left-logo .brand-link:hover .brand-logo-full {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px rgba(212, 196, 154, 0.3));
}

.auth-mobile-logo {
  display: none;
  justify-content: left;
  margin: 0 0 3.35rem;
}



.auth-mobile-logo .brand-link {
  display: inline-flex;
}

.auth-mobile-logo .brand-logo-full {
  height: 48px;
  max-width: 220px;
  width: auto;
}

@media (max-width: 991px) {
  .auth-mobile-logo {
    display: flex;
  }
}

.auth-social {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-social-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(235, 236, 230, 0.65);
}

.auth-social-links {
  display: flex;
  gap: 0.65rem;
}

.auth-social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #EBECE6;
  background: rgba(235, 236, 230, 0.08);
  border: 1px solid rgba(212, 196, 154, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.auth-social-link:hover {
  background: rgba(212, 196, 154, 0.18);
  border-color: rgba(212, 196, 154, 0.55);
  color: #D4C49A;
  transform: translateY(-2px);
}

.auth-tagline span {
  background: linear-gradient(90deg, #EBECE6 0%, #D4C49A 45%, #8A764A 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* CRM calendar */
.crm-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.crm-cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crm-cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--zc-border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zc-text);
  background: var(--zc-card-bg);
  text-decoration: none;
}

.crm-cal-nav-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.crm-cal-title {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 8rem;
  text-align: center;
}

.crm-cal-legend {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--zc-text-muted);
}

.crm-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.crm-calendar-head,
.crm-calendar-day {
  text-align: center;
  font-size: 0.72rem;
}

.crm-calendar-head {
  font-weight: 700;
  color: var(--zc-text-muted);
  padding: 2px 0 6px;
  letter-spacing: 0.02em;
}

.crm-calendar-day {
  min-height: 54px;
  border: 1px solid var(--zc-border-color);
  border-radius: 12px;
  padding: 6px 4px;
  background: linear-gradient(180deg, var(--zc-card-bg) 0%, rgba(31, 101, 45, 0.02) 100%);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.crm-calendar-day:hover:not(.is-muted) {
  border-color: rgba(31, 101, 45, 0.35);
}

.crm-calendar-day.is-selected {
  border-color: var(--brand-primary) !important;
  background: rgba(31, 101, 45, 0.1) !important;
  box-shadow: 0 0 0 1px rgba(31, 101, 45, 0.2), 0 8px 16px rgba(31, 101, 45, 0.1);
}

.crm-calendar-day.has-events {
  border-color: rgba(31, 101, 45, 0.22);
}

.crm-calendar-day.is-muted {
  opacity: 0.35;
  background: transparent;
}

.crm-calendar-day.is-today {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px rgba(31, 101, 45, 0.18), 0 8px 18px rgba(31, 101, 45, 0.08);
  background: rgba(31, 101, 45, 0.06);
}

.crm-calendar-day .day-num {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--zc-text);
}

.crm-calendar-day .day-dots {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: 8px;
}

.crm-calendar-day .day-mini {
  margin-top: 4px;
  display: grid;
  gap: 1px;
  font-size: 0.62rem;
  color: var(--zc-text-muted);
  line-height: 1.2;
}

.crm-cal.is-widget {
  --cal-w-ink: #243028;
  --cal-w-muted: rgba(36, 48, 40, 0.58);
  --cal-w-line: rgba(31, 101, 45, 0.12);
  padding: 0.15rem 0.1rem 0.25rem;
}

.crm-cal.is-widget .crm-cal-toolbar.is-widget-toolbar {
  margin-bottom: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 101, 45, 0.09) 0%, rgba(103, 135, 84, 0.08) 52%, rgba(255, 255, 255, 0.65) 100%);
  border: 1px solid var(--cal-w-line);
}

.crm-cal.is-widget .crm-cal-title {
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  min-width: 9rem;
  color: var(--cal-w-ink);
}

.crm-cal.is-widget .crm-cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border-color: rgba(31, 101, 45, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(31, 101, 45, 0.06);
}

.crm-cal.is-widget .crm-calendar.is-widget-grid {
  gap: 6px;
  padding: 0.55rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(31, 101, 45, 0.07), transparent 55%),
    radial-gradient(100% 70% at 100% 100%, rgba(47, 143, 138, 0.07), transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, #ffffff 100%);
  border: 1px solid var(--cal-w-line);
}

.crm-cal.is-widget .crm-calendar-day {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 6px 3px 7px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(48, 58, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  overflow: visible;
}

.crm-cal.is-widget .crm-calendar-day:hover:not(.is-muted) {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(48, 58, 42, 0.16), 0 8px 16px rgba(48, 58, 42, 0.08);
}

.crm-cal.is-widget .crm-calendar-day.is-selected {
  background: rgba(48, 58, 42, 0.06) !important;
  box-shadow: inset 0 0 0 1.5px rgba(48, 58, 42, 0.28), 0 8px 18px rgba(48, 58, 42, 0.08) !important;
}

.crm-cal.is-widget .crm-calendar-day.has-events {
  background: rgba(255, 255, 255, 0.95);
}

.crm-cal.is-widget .crm-calendar-day.is-today {
  background: linear-gradient(180deg, rgba(31, 101, 45, 0.1), rgba(255, 255, 255, 0.85));
}

.crm-cal.is-widget .crm-calendar-day.is-today .day-num {
  width: 24px;
  height: 24px;
  margin: 0 auto 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(31, 101, 45, 0.28);
}

.crm-cal.is-widget .crm-calendar-head {
  font-size: 0.68rem;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cal-w-muted);
}

.crm-cal.is-widget .day-num {
  font-size: 0.78rem;
  font-weight: 720;
  margin-bottom: 2px;
  color: var(--cal-w-ink);
}

.crm-cal.is-widget .day-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 1px auto 0;
  min-height: 14px;
}

.crm-cal.is-widget .day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 760;
  line-height: 1;
  color: #fff;
}

.crm-cal.is-widget .day-chip.is-done {
  background: #1F652D;
}

.crm-cal.is-widget .day-chip.is-plan {
  background: #8A764A;
}

.crm-cal.is-widget .day-chip.is-ship {
  background: #2F8F8A;
}

.crm-cal.is-widget .day-chip.is-sample {
  background: #C47A2C;
}

.crm-cal.is-widget .day-chip.is-note {
  background: #5B6B9A;
}
.crm-cal.is-widget .day-chip.is-due {
  background: #e07a1f;
}
.crm-cal.is-widget .day-chip.is-track {
  background: #2f6f8f;
}

.crm-cal.is-widget .day-dots {
  display: none;
}

.crm-cal.is-widget .crm-cal-legend {
  display: none;
}

.crm-cal.is-widget .crm-cal-legend.is-widget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  font-size: 0.7rem;
  color: var(--cal-w-muted);
}

.crm-cal-widget-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.crm-cal-widget-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.crm-cal.is-widget .crm-cal-day-panel.is-widget-panel {
  margin-top: 0;
  padding: 0.9rem 0.95rem;
  border-top: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 246, 0.96));
  border: 1px solid var(--cal-w-line);
  box-shadow: 0 10px 24px rgba(48, 58, 42, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.crm-cal.is-widget .crm-cal-day-head {
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(31, 101, 45, 0.1);
}

.crm-cal-day-head-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.crm-cal.is-widget .crm-cal-day-label {
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.crm-cal.is-widget .crm-cal-day-body {
  max-height: none;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 220px;
  max-height: 420px;
  padding-right: 2px;
}

.crm-cal-day-total {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(31, 101, 45, 0.1);
}

.crm-cal-empty-box {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  text-align: center;
  padding: 1.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(48, 58, 42, 0.03);
  border: 1px dashed rgba(48, 58, 42, 0.12);
  color: rgba(48, 58, 42, 0.45);
}

.crm-cal-empty-box i {
  font-size: 1.35rem;
}

.crm-cal-widget-foot {
  margin-top: 0.75rem;
}

@media (max-width: 991.98px) {
  .crm-cal-widget-layout {
    grid-template-columns: 1fr;
  }

  .crm-cal.is-widget .crm-cal-day-body {
    min-height: 160px;
    max-height: 280px;
  }
}

.crm-cal.is-full .crm-calendar-day {
  min-height: 78px;
  padding: 8px 6px;
}

.crm-cal.is-full .crm-calendar-day:hover:not(.is-muted) {
  transform: translateY(-1px);
  border-color: var(--brand-primary-light);
  box-shadow: 0 8px 16px rgba(48, 58, 42, 0.08);
}

.crm-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.crm-dot.is-done { background: #1F652D; }
.crm-dot.is-plan { background: #8A764A; }
.crm-dot.is-ship { background: #2F8F8A; }
.crm-dot.is-sample { background: #C47A2C; }
.crm-dot.is-note { background: #5B6B9A; }
.crm-dot.is-due { background: #e07a1f; }
.crm-dot.is-track { background: #2f6f8f; }

.crm-cal-event {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--zc-border-color);
}

.crm-cal-event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.crm-cal-day-panel {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--zc-border-color);
}

.crm-cal-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.crm-cal-day-label {
  font-weight: 700;
  font-size: 0.86rem;
}

.crm-cal-day-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zc-text-muted);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.crm-cal-empty {
  font-size: 0.82rem;
  color: var(--zc-text-muted);
  padding: 0.35rem 0;
}

.crm-cal-day-list {
  display: grid;
  gap: 0.45rem;
}

.crm-cal-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(31, 101, 45, 0.1);
  box-shadow: 0 4px 14px rgba(48, 58, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.crm-cal-item:hover {
  background: #fff;
  border-color: rgba(31, 101, 45, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(31, 101, 45, 0.1);
  color: inherit;
}

.crm-cal-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.crm-cal-item.is-done .crm-cal-item-dot { background: var(--brand-primary); }
.crm-cal-item.is-plan .crm-cal-item-dot { background: var(--brand-accent); }
.crm-cal-item.is-ship .crm-cal-item-dot { background: #2f8f8a; }
.crm-cal-item.is-sample .crm-cal-item-dot { background: #c47a2c; }

.crm-cal-item.is-done {
  border-color: rgba(31, 101, 45, 0.16);
  background: linear-gradient(135deg, rgba(31, 101, 45, 0.06), #fff 55%);
}

.crm-cal-item.is-plan {
  border-color: rgba(196, 140, 58, 0.22);
  background: linear-gradient(135deg, rgba(196, 140, 58, 0.08), #fff 55%);
}

.crm-cal-item.is-ship {
  border-color: rgba(47, 143, 138, 0.28);
  background: linear-gradient(135deg, rgba(47, 143, 138, 0.1), #fff 55%);
}

.crm-cal-item.is-sample {
  border-color: rgba(196, 122, 44, 0.28);
  background: linear-gradient(135deg, rgba(196, 122, 44, 0.1), #fff 55%);
}

.crm-cal-item.is-note {
  border-color: rgba(91, 107, 154, 0.28);
  background: linear-gradient(135deg, rgba(91, 107, 154, 0.1), #fff 55%);
}

.crm-cal-item.is-done:hover {
  border-color: rgba(31, 101, 45, 0.35);
}

.crm-cal-item.is-plan:hover {
  border-color: rgba(196, 140, 58, 0.4);
}

.crm-cal-item.is-ship:hover {
  border-color: rgba(47, 143, 138, 0.45);
}

.crm-cal-item.is-sample:hover {
  border-color: rgba(196, 122, 44, 0.45);
}

.crm-cal-item.is-note:hover {
  border-color: rgba(91, 107, 154, 0.45);
}

.crm-cal-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.crm-cal-item.is-done .crm-cal-item-icon {
  background: rgba(31, 101, 45, 0.14);
  color: var(--brand-primary-dark);
}

.crm-cal-item.is-plan .crm-cal-item-icon {
  background: rgba(196, 140, 58, 0.16);
  color: #8a5a18;
}

.crm-cal-item.is-ship .crm-cal-item-icon {
  background: rgba(47, 143, 138, 0.16);
  color: #1f6f6b;
}

.crm-cal-item.is-sample .crm-cal-item-icon {
  background: rgba(196, 122, 44, 0.16);
  color: #9a5f1c;
}

.crm-cal-item.is-note .crm-cal-item-icon {
  background: rgba(91, 107, 154, 0.16);
  color: #44527a;
}

.crm-cal-item.is-ship {
  flex-wrap: wrap;
  align-items: center;
}

.crm-cal-item-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 160px;
  text-decoration: none;
  color: inherit;
}

.crm-cal-item-link:hover {
  color: inherit;
}

.crm-cal-item .crm-shipment-status-select {
  max-width: 132px;
  min-width: 110px;
  height: 32px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 9px;
  border: 1px solid rgba(47, 143, 138, 0.28);
  background: #fff;
}

.crm-cal-item.is-ship.is-loaded {
  border-color: rgba(47, 143, 138, 0.4);
}

.crm-cal-item.is-ship.is-quote-only {
  border-style: dashed;
  border-color: rgba(208, 137, 58, 0.45);
  background: rgba(208, 137, 58, 0.06);
}

.crm-followup-note-readonly {
  white-space: pre-wrap;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(31, 101, 45, 0.05);
  border: 1px solid rgba(31, 101, 45, 0.1);
  font-size: 0.9rem;
  line-height: 1.45;
}

.crm-followup-plan .crm-followup-field.is-disabled {
  opacity: 0.55;
}

.crm-followup-cancelled {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(90, 107, 99, 0.08);
  border: 1px solid rgba(90, 107, 99, 0.18);
}

.crm-followup-cancelled__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #44534c;
}

.crm-followup-cancelled__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(48, 58, 42, 0.62);
}

.crm-followup-cancelled__note {
  margin-top: 0.55rem;
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(48, 58, 42, 0.78);
}

.crm-followup-badge.is-cancelled {
  background: rgba(90, 107, 99, 0.16);
  color: #44534c;
}

.crm-summary-row.crm-followup-summary.is-cancelled {
  background: rgba(90, 107, 99, 0.08);
}

.crm-profile-banners {
  display: grid;
  gap: 0.65rem;
}

.crm-profile-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1px solid transparent;
}

.crm-profile-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.crm-profile-banner.is-birthday {
  background: linear-gradient(135deg, rgba(196, 140, 58, 0.14), rgba(255, 255, 255, 0.95));
  border-color: rgba(196, 140, 58, 0.28);
}

.crm-profile-banner.is-birthday .crm-profile-banner__icon {
  background: rgba(196, 140, 58, 0.18);
  color: #8a5a18;
}

.crm-profile-banner.is-anniversary {
  background: linear-gradient(135deg, rgba(31, 101, 45, 0.12), rgba(255, 255, 255, 0.95));
  border-color: rgba(31, 101, 45, 0.22);
}

.crm-profile-banner.is-anniversary .crm-profile-banner__icon {
  background: rgba(31, 101, 45, 0.14);
  color: var(--brand-primary-dark);
}

.crm-profile-banner strong {
  display: block;
  margin-bottom: 0.15rem;
}

.crm-profile-banner p {
  color: rgba(48, 58, 42, 0.72);
  font-size: 0.9rem;
}

.crm-profile-tenure {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 101, 45, 0.22);
  background:
    linear-gradient(135deg, rgba(31, 101, 45, 0.14) 0%, rgba(103, 135, 84, 0.1) 48%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 8px 18px rgba(31, 101, 45, 0.1);
  text-align: left;
}

.crm-profile-tenure__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(31, 101, 45, 0.28);
}

.crm-profile-tenure__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.crm-profile-tenure__body em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(31, 101, 45, 0.72);
}

.crm-profile-tenure__body strong {
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.3;
  color: var(--brand-primary-dark);
}

.crm-cal-ship-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(47, 143, 138, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: transparent;
  font-size: 0.85rem;
}

.crm-cal-ship-check.is-checked {
  border-color: #2F8F8A;
  background: #2F8F8A;
  color: #fff;
  box-shadow: 0 4px 10px rgba(47, 143, 138, 0.28);
}

.crm-cal-item-arrow {
  margin-left: 0;
  flex-shrink: 0;
  opacity: 0.35;
  font-size: 0.95rem;
}

.crm-cal-item:hover .crm-cal-item-arrow {
  opacity: 0.7;
  color: var(--brand-primary);
}

.crm-cal-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}

.crm-cal-type-badge.is-done {
  background: rgba(31, 101, 45, 0.14);
  color: var(--brand-primary-dark);
}

.crm-cal-type-badge.is-plan {
  background: rgba(196, 140, 58, 0.16);
  color: #8a5a18;
}

.crm-cal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.crm-cal-type-badge.is-ship {
  background: rgba(47, 143, 138, 0.16);
  color: #1f6f6b;
}

.crm-cal-type-badge.is-sample {
  background: rgba(196, 122, 44, 0.16);
  color: #9a5f1c;
}

.crm-cal-type-badge.is-note {
  background: rgba(91, 107, 154, 0.16);
  color: #44527a;
}

.crm-cal-item-main {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.crm-cal-item-main strong {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.crm-cal-item-title-row strong {
  min-width: 0;
}

.crm-cal-item-meta {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  line-height: 1.3;
}

.crm-cal.is-widget .crm-cal-item {
  padding: 0.75rem 0.8rem;
}

.crm-cal.is-widget .crm-cal-day-hint {
  display: inline;
  font-size: 0.68rem;
}

.crm-cal.is-widget .crm-cal-day-list {
  gap: 0.55rem;
}

.crm-cal.is-widget .crm-cal-day-body::-webkit-scrollbar {
  width: 5px;
}

.crm-cal.is-widget .crm-cal-day-body::-webkit-scrollbar-thumb {
  background: rgba(31, 101, 45, 0.28);
  border-radius: 99px;
}

/* Sidebar footer */
.sidebar-footer-crm {
  margin-top: auto;
  flex-shrink: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--zc-sidebar-border);
}

.sidebar-logout-form {
  margin: 0;
}

.sidebar-logout-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--zc-text-muted) !important;
}

.sidebar-logout-btn:hover {
  color: var(--brand-primary) !important;
  background: var(--brand-primary-softer) !important;
}

.sidebar-company-logo {
  display: flex;
  justify-content: center;
  padding: 8px 6px 2px;
  opacity: 0.9;
}

.sidebar-company-logo .brand-logo-full {
  height: 34px;
  max-width: 150px;
}

.zentic-sidebar.collapsed .sidebar-footer-crm .nav-text,
.zentic-sidebar.collapsed .sidebar-company-logo {
  display: none;
}

/* Balanced sidebar layout */
.zentic-sidebar {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.zentic-sidebar .sidebar-brand {
  padding: 16px 16px 12px;
}

.zentic-sidebar .sidebar-ai-status {
  padding: 9px 16px;
}

.zentic-sidebar .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 0 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 58, 42, 0.18) transparent;
}

.zentic-sidebar .sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.zentic-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(48, 58, 42, 0.16);
  border-radius: 99px;
}

.zentic-sidebar .nav-section {
  padding: 2px 10px 12px;
  margin-bottom: 14px;
}

.zentic-sidebar .nav-section + .nav-section {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.zentic-sidebar .nav-section-label {
  padding: 12px 8px 8px;
  letter-spacing: 0.08em;
}

.zentic-sidebar .nav-link {
  padding: 8px 10px;
}

.zentic-sidebar .nav-item {
  margin-bottom: 0.35rem;
}

.zentic-sidebar .nav-item:last-child {
  margin-bottom: 0.1rem;
}

.zentic-sidebar .crm-assistant-section {
  margin-top: 6px;
  padding-bottom: 4px;
}

.zentic-sidebar .crm-assistant-nav-item {
  margin: 0.35rem 0.2rem 0;
}

.zentic-sidebar .crm-assistant-nav {
  padding: 0.65rem 0.7rem;
  border-radius: 13px;
  box-shadow: 0 6px 14px rgba(31, 101, 45, 0.07);
}

.zentic-sidebar .crm-assistant-nav:hover,
.zentic-sidebar .crm-assistant-nav:focus-visible {
  transform: translateY(-1px);
}

/* Collapsed rail: fit logo + balanced icon spacing */
.zentic-sidebar.collapsed .sidebar-brand {
  padding: 12px 8px 10px;
  justify-content: center;
}

.zentic-sidebar.collapsed .brand-link {
  width: 100%;
  justify-content: center;
}

.zentic-sidebar.collapsed .brand-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(31, 101, 45, 0.06);
}

.zentic-sidebar.collapsed .brand-logo-full {
  height: 28px;
  width: 28px;
  max-width: 28px;
  object-fit: contain;
}

.zentic-sidebar.collapsed .sidebar-ai-status {
  display: none;
}

.zentic-sidebar.collapsed .sidebar-nav {
  padding: 8px 0 12px;
}

.zentic-sidebar.collapsed .nav-section {
  padding: 0 12px;
  margin-bottom: 8px;
}

.zentic-sidebar.collapsed .nav-section + .nav-section {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.zentic-sidebar.collapsed .crm-assistant-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.zentic-sidebar.collapsed .nav-item,
.zentic-sidebar.collapsed.is-export-only .nav-item,
.zentic-sidebar.collapsed.has-finance .nav-item {
  margin-bottom: 0.4rem;
}

.zentic-sidebar.collapsed .nav-item:last-child,
.zentic-sidebar.collapsed.is-export-only .nav-item:last-child,
.zentic-sidebar.collapsed.has-finance .nav-item:last-child {
  margin-bottom: 0;
}

.zentic-sidebar.collapsed .nav-link {
  width: 44px;
  min-height: 44px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}

.zentic-sidebar.collapsed .nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Collapsed hover labels */
.zentic-sidebar.collapsed {
  overflow: visible;
}

.zentic-sidebar.collapsed .sidebar-nav,
.zentic-sidebar.collapsed .sidebar-footer-crm,
.zentic-sidebar.collapsed .nav-section,
.zentic-sidebar.collapsed .nav-list,
.zentic-sidebar.collapsed .nav-item {
  overflow: visible;
}

.zentic-sidebar.collapsed .nav-text {
  display: block !important;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate3d(8px, -50%, 0);
  width: max-content;
  max-width: 220px;
  margin: 0;
  padding: 0.42rem 0.75rem;
  border-radius: 10px;
  background: #243028;
  color: #f3f6f2;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 10px 24px rgba(20, 28, 18, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1400;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.zentic-sidebar.collapsed .nav-text::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #243028;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1.5px;
}

.zentic-sidebar.collapsed .nav-link:hover .nav-text,
.zentic-sidebar.collapsed .nav-link:focus-visible .nav-text,
.zentic-sidebar.collapsed .sidebar-logout-btn:hover .nav-text,
.zentic-sidebar.collapsed .sidebar-logout-btn:focus-visible .nav-text {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
}

.zentic-sidebar.collapsed .crm-assistant-nav {
  position: relative;
  overflow: visible;
}

.zentic-sidebar.collapsed .crm-assistant-nav::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate3d(8px, -50%, 0);
  padding: 0.42rem 0.75rem;
  border-radius: 10px;
  background: #243028;
  color: #f3f6f2;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow:
    0 10px 24px rgba(20, 28, 18, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1400;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.zentic-sidebar.collapsed .crm-assistant-nav:hover::after,
.zentic-sidebar.collapsed .crm-assistant-nav:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, -50%, 0);
}

.zentic-sidebar.collapsed .crm-assistant-nav-item {
  margin: 0;
  display: flex;
  justify-content: center;
}

.zentic-sidebar.collapsed .crm-assistant-nav {
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.zentic-sidebar.collapsed .crm-assistant-nav__orb {
  margin: 0;
}

.zentic-sidebar.collapsed .sidebar-footer-crm {
  padding: 8px 10px 12px;
}

.zentic-sidebar.collapsed .sidebar-logout-btn {
  width: 44px;
  min-height: 44px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.zentic-sidebar.collapsed .sidebar-logout-btn .nav-icon {
  margin: 0;
}

/* Export-only: roomier spacing (no finance block) */
.zentic-sidebar.is-export-only .sidebar-nav {
  padding: 10px 0 14px;
}

.zentic-sidebar.is-export-only .nav-section {
  margin-bottom: 10px;
}

.zentic-sidebar.is-export-only .nav-section-label {
  padding: 14px 8px 8px;
}

.zentic-sidebar.is-export-only .nav-link {
  padding: 10px 12px;
}

.zentic-sidebar.is-export-only .nav-item {
  margin-bottom: 0.5rem;
}

.zentic-sidebar.is-export-only .nav-item:last-child {
  margin-bottom: 0.2rem;
}

.zentic-sidebar.is-export-only .crm-assistant-section {
  margin-top: 12px;
  padding-bottom: 6px;
}

.zentic-sidebar.is-export-only .crm-assistant-nav-item {
  margin: 0.5rem 0.25rem 0;
}

.zentic-sidebar.is-export-only .crm-assistant-nav {
  padding: 0.75rem 0.8rem;
}

/* Finance users: slightly tighter to fit both departments */
.zentic-sidebar.has-finance .sidebar-nav {
  padding: 4px 0 8px;
}

.zentic-sidebar.has-finance .nav-section {
  margin-bottom: 2px;
}

.zentic-sidebar.has-finance .nav-section-label {
  padding: 8px 8px 4px;
}

.zentic-sidebar.has-finance .nav-link {
  padding: 7px 10px;
}

.zentic-sidebar.has-finance .nav-item {
  margin-bottom: 0.28rem;
}

.zentic-sidebar.has-finance .nav-item:last-child {
  margin-bottom: 0.08rem;
}

.zentic-sidebar.has-finance .crm-assistant-section {
  margin-top: 4px;
  padding-bottom: 2px;
}

.zentic-sidebar.has-finance .crm-assistant-nav {
  padding: 0.58rem 0.65rem;
}

/* Login form polish */
.auth-right .auth-form-container {
  max-width: 420px;
}

.auth-logout-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 101, 45, 0.22);
  background: rgba(31, 101, 45, 0.08);
  color: var(--brand-ink, #303a2a);
}

.auth-logout-success > i {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  font-size: 1.15rem;
  color: var(--brand-primary, #1f652d);
}

.auth-logout-success strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.auth-logout-success span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(48, 58, 42, 0.78);
}

.auth-right .form-group {
  margin-bottom: 1.15rem;
}

.auth-right .form-label {
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--zc-text);
}

.auth-right .input-group-zentic {
  border-radius: 14px;
  border: 1px solid var(--zc-border-color);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-right .input-group-zentic:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(31, 101, 45, 0.12);
}

.auth-right .input-group-zentic .form-control-zentic {
  border: 0 !important;
  box-shadow: none !important;
  min-height: 48px;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.95rem;
  background: transparent;
}

.auth-right .input-group-addon {
  min-width: 46px;
  color: var(--brand-primary);
  background: rgba(31, 101, 45, 0.04);
}

.auth-right .btn-zentic.btn-ai {
  min-height: 50px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.35rem;
  background: linear-gradient(135deg, #1F652D 0%, #163F1F 100%) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(31, 101, 45, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-right .btn-zentic.btn-ai:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(31, 101, 45, 0.34);
}

.prime-welcome-toast {
  border-radius: 14px !important;
  border: 1px solid rgba(31, 101, 45, 0.15) !important;
  box-shadow: 0 12px 30px rgba(48, 58, 42, 0.14) !important;
}

.prime-crm-swal {
  border-radius: 18px !important;
  padding: 1.35rem 1.25rem 1.1rem !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

.prime-crm-swal__title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.prime-crm-swal__html {
  font-size: 0.92rem !important;
  color: #475569 !important;
  margin-top: 0.35rem !important;
}

.prime-crm-swal__actions {
  gap: 0.55rem !important;
  margin-top: 1rem !important;
}

.prime-crm-swal__btn {
  min-width: 7.5rem;
  justify-content: center;
}

.prime-crm-swal__btn.is-danger {
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

.prime-crm-swal__btn.is-danger:hover {
  background: #fef2f2 !important;
}

.prime-swal-icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.35rem;
}

.prime-swal-icon-wrap.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.prime-swal-icon-wrap.is-warning {
  background: #ffedd5;
  color: #c2410c;
}

.prime-swal-lead {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 0.95rem;
}

.prime-swal-note {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}

.prime-crm-swal-toast {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
  padding: 0.75rem 0.9rem !important;
}

.prime-crm-swal-toast.is-welcome {
  border-color: rgba(31, 101, 45, 0.15) !important;
}

.prime-crm-swal-toast__title {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

.prime-crm-swal-toast__text {
  font-size: 0.82rem !important;
}

.country-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--brand-primary-soft);
  overflow: hidden;
}

.country-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: 99px;
}

.profile-avatar-lg {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.profile-avatar-stage {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.profile-avatar-ring {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, rgba(31, 101, 45, 0.18), rgba(212, 196, 154, 0.35));
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(31, 101, 45, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-ring:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 101, 45, 0.16);
}

.profile-avatar-ring .profile-avatar-lg {
  width: 112px;
  height: 112px;
  border: 3px solid #fff;
  background: #fff;
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  border: 3px solid #fff;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(22, 63, 31, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-avatar-ring:hover .profile-avatar-overlay,
.profile-avatar-ring:focus-within .profile-avatar-overlay {
  opacity: 1;
}

.profile-avatar-overlay i {
  font-size: 1.05rem;
}

.profile-avatar-meta {
  display: grid;
  gap: 0.15rem;
}

.profile-avatar-name {
  font-size: 1rem;
  color: var(--zc-text);
}

.profile-avatar-role {
  font-size: 0.8rem;
  color: var(--zc-text-muted);
}

.profile-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.profile-dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  text-align: center;
  padding: 1rem 0.85rem;
  border-radius: 16px;
  border: 1.5px dashed rgba(31, 101, 45, 0.28);
  background: rgba(31, 101, 45, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-dropzone:hover,
.profile-dropzone.is-dragover {
  border-color: var(--brand-primary);
  background: rgba(31, 101, 45, 0.07);
  box-shadow: 0 0 0 4px rgba(31, 101, 45, 0.08);
}

.profile-dropzone-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 101, 45, 0.1);
  color: var(--brand-primary);
  margin-bottom: 0.2rem;
}

.profile-dropzone-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--zc-text);
}

.profile-dropzone-hint {
  font-size: 0.74rem;
  color: var(--zc-text-muted);
}

.profile-dropzone-file {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.profile-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.profile-crop-modal[hidden] {
  display: none !important;
}

.profile-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 24, 0.55);
}

.profile-crop-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  box-shadow: 0 24px 48px rgba(22, 63, 31, 0.2);
  overflow: hidden;
}

.profile-crop-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
  background: linear-gradient(180deg, #f7f9f5, #fff);
}

.profile-crop-modal__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.profile-crop-modal__body {
  padding: 1rem 1.1rem;
}

.profile-crop-stage {
  width: 100%;
  max-height: min(52vh, 360px);
  background: #1a241c;
  border-radius: 12px;
  overflow: hidden;
}

.profile-crop-stage img {
  display: block;
  max-width: 100%;
}

.profile-crop-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--zc-text-muted);
}

.profile-crop-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.profile-crop-modal__tools,
.profile-crop-modal__confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-equal-row > [class*="col-"] > .zentic-card {
  min-height: 100%;
}

.profile-date-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 0.45rem;
}

.profile-date-row .form-control-zentic,
.profile-date-row .form-select-zentic {
  min-width: 0;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

/* Topbar user chip */
.topbar-info-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31, 101, 45, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #3e7a68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topbar-reminder-btn {
  position: relative;
  overflow: visible;
}

.topbar-info-btn:hover {
  background: rgba(31, 101, 45, 0.08);
  border-color: rgba(31, 101, 45, 0.22);
  color: #1f652d;
  transform: translateY(-1px);
}

.topbar-user {
  gap: 10px !important;
  padding: 4px 10px 4px 4px !important;
  border-radius: 999px !important;
  border: 1px solid transparent;
}

.topbar-user:hover {
  background: rgba(31, 101, 45, 0.06) !important;
  border-color: rgba(31, 101, 45, 0.12);
}

.topbar-user-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(31, 101, 45, 0.15);
}

.topbar-user-avatar-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.topbar-user-meta {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
  max-width: 160px;
}

.topbar-user-name {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: var(--zc-text) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.topbar-user-title {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.topbar-user-arrow {
  font-size: 12px !important;
  color: var(--zc-text-muted) !important;
  margin-left: 2px;
}

.user-dropdown-menu {
  width: 280px !important;
  border-radius: 18px !important;
}

.prime-udm-header {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem !important;
}

.prime-udm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(31, 101, 45, 0.15);
}

.prime-udm-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.prime-udm-details {
  margin: 0 0.85rem 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(31, 101, 45, 0.04);
  border: 1px solid rgba(31, 101, 45, 0.08);
  display: grid;
  gap: 0.4rem;
}

.prime-udm-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
}

.prime-udm-row span {
  color: var(--zc-text-muted);
}

.prime-udm-row strong {
  color: var(--zc-text);
  font-weight: 650;
  text-align: right;
}

/* Shared person avatar */
.crm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(31, 101, 45, 0.12);
}

.crm-avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 0.72rem;
}

.crm-avatar-md {
  width: 42px;
  height: 42px;
  font-size: 0.8rem;
}

.crm-avatar-fallback {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Corporate firm mini-cards */
.crm-firm-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.crm-firm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: linear-gradient(180deg, #fff 0%, #f7f9f5 100%);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-firm-card:hover {
  border-color: rgba(31, 101, 45, 0.28);
  box-shadow: 0 8px 20px rgba(31, 101, 45, 0.08);
  transform: translateY(-1px);
}

.crm-firm-card-main {
  min-width: 0;
  flex: 1;
}

.crm-firm-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-firm-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.crm-firm-card-title-row .crm-firm-card-title {
  flex: 1;
  min-width: 0;
}

.crm-firm-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.crm-firm-card-icon.is-ship {
  background: rgba(47, 143, 138, 0.14);
  color: #1f6f6b;
}

.crm-firm-card.is-ship {
  border-color: rgba(47, 143, 138, 0.22);
  background: linear-gradient(180deg, #fff 0%, #f2faf9 100%);
}

.crm-firm-card.is-ship:hover {
  border-color: rgba(47, 143, 138, 0.4);
  box-shadow: 0 8px 20px rgba(47, 143, 138, 0.12);
}

.crm-firm-card-date.is-ship {
  color: #1f6f6b;
}

.crm-firm-card-icon.is-sample {
  background: rgba(196, 122, 44, 0.14);
  color: #9a5f1c;
}

.crm-firm-card.is-sample {
  border-color: rgba(196, 122, 44, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
}

.crm-firm-card.is-sample:hover {
  border-color: rgba(196, 122, 44, 0.4);
  box-shadow: 0 8px 20px rgba(196, 122, 44, 0.12);
}

.crm-firm-card-date.is-sample {
  color: #9a5f1c;
}

.crm-sample-filter-form {
  width: 100%;
}

.crm-sample-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(150px, 0.9fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
  width: 100%;
}

.crm-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.crm-filter-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--zc-text-muted);
  letter-spacing: 0.01em;
}

.crm-sample-filter-clear {
  justify-content: flex-end;
}

.crm-sample-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.crm-sample-date__value {
  font-weight: 650;
  color: var(--brand-ink);
}

.crm-sample-date__label {
  font-size: 0.68rem;
  color: var(--zc-text-muted);
}

.crm-sample-table .crm-row-actions form {
  margin: 0;
  display: inline-flex;
}

@media (max-width: 992px) {
  .crm-sample-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .crm-sample-filter-search,
  .crm-sample-filter-clear {
    grid-column: 1 / -1;
  }
}

.crm-firm-card-meta,
.crm-firm-card-date {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  margin-top: 0.15rem;
}

.crm-firm-card-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.crm-firm-card-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 64px;
}

.crm-firm-card-person-name {
  font-size: 0.65rem;
  color: var(--zc-text-muted);
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.crm-week-card {
  display: flex;
  flex-direction: column;
  max-height: none;
}

.crm-week-body {
  overflow: auto;
  max-height: 320px;
  padding-right: 0.35rem;
}

.crm-week-body::-webkit-scrollbar,
.crm-cal-side-body::-webkit-scrollbar {
  width: 6px;
}

.crm-week-body::-webkit-scrollbar-thumb,
.crm-cal-side-body::-webkit-scrollbar-thumb {
  background: rgba(31, 101, 45, 0.25);
  border-radius: 999px;
}

/* Workload */
.crm-workload-panel {
  display: flex;
  flex-direction: column;
}

.crm-workload-panel .zentic-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.crm-workload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  align-content: start;
}

.crm-workload-grid.is-dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-workload-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: linear-gradient(180deg, #fff 0%, #f7f9f5 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-workload-card:hover {
  border-color: rgba(31, 101, 45, 0.22);
  box-shadow: 0 8px 20px rgba(31, 101, 45, 0.08);
  transform: translateY(-1px);
}

.crm-workload-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.crm-workload-card-avatar {
  flex-shrink: 0;
}

.crm-workload-card-avatar .crm-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.72rem;
}

.crm-workload-card-identity {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.crm-workload-card-name {
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-workload-card-role {
  font-size: 0.68rem;
  color: var(--zc-text-muted);
  line-height: 1.2;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-workload-card-metrics {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.crm-workload-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.3rem 0.45rem;
  border-radius: 10px;
  background: rgba(31, 101, 45, 0.07);
  min-width: 46px;
}

.crm-workload-metric.is-warn {
  background: rgba(180, 120, 0, 0.1);
}

.crm-workload-metric-value {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-primary);
}

.crm-workload-metric.is-warn .crm-workload-metric-value {
  color: #a86800;
}

.crm-workload-metric-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--zc-text-muted);
}

.crm-workload-card .crm-workload-bar {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  background: rgba(31, 101, 45, 0.08);
  overflow: hidden;
}

.crm-workload-card .crm-workload-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary-light), var(--brand-primary));
}

/* Dashboard â€” mobile activity cards */
.crm-dash-activities-mobile {
  display: flex;
  flex-direction: column;
}

.crm-dash-activity-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s ease;
}

.crm-dash-activity-card:last-child {
  border-bottom: 0;
}

.crm-dash-activity-card:active,
.crm-dash-activity-card:hover {
  background: rgba(31, 101, 45, 0.04);
}

.crm-dash-activity-card-main {
  min-width: 0;
  flex: 1;
}

.crm-dash-activity-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.crm-dash-activity-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.crm-dash-activity-card-title-row .crm-dash-activity-card-title {
  min-width: 0;
}

.crm-dash-firm-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.crm-dash-firm-cell__text {
  min-width: 0;
}

.crm-company-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.crm-ship-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  background: rgba(47, 143, 138, 0.14);
  color: #1f6f6b;
  white-space: nowrap;
}

.crm-ship-top-badge i {
  font-size: 0.75rem;
}

.crm-dash-activity-card-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-ink);
  line-height: 1.25;
}

.crm-dash-activity-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--zc-text-muted);
}

.crm-dash-activity-card-user {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--zc-text-muted);
}

.crm-dash-activity-card-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  text-align: right;
  max-width: 42%;
  line-height: 1.3;
}

.crm-workload-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 101, 45, 0.08);
  overflow: hidden;
}

.crm-workload-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary-light), var(--brand-primary));
}

.crm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  background: rgba(31, 101, 45, 0.08);
  color: var(--brand-primary-dark);
}

.crm-chip.is-warn {
  background: rgba(138, 118, 74, 0.14);
  color: #6d5c34;
}

/* Companies live filter */
.crm-filter-bar {
  display: block !important;
}

.crm-filter-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.crm-filter-toggle.is-active {
  background: rgba(31, 101, 45, 0.1) !important;
  border-color: rgba(31, 101, 45, 0.28) !important;
  color: var(--brand-primary-dark, #1f652d);
}

.crm-filter-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.crm-filter-advanced {
  display: grid;
  gap: 0.75rem;
}

.crm-filter-search {
  position: relative;
}

.crm-filter-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zc-text-muted);
  pointer-events: none;
}

.crm-filter-search .search-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.12);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crm-filter-search .search-input:focus {
  outline: none;
  border-color: rgba(31, 101, 45, 0.45);
  box-shadow: 0 0 0 3px rgba(31, 101, 45, 0.12);
}

.crm-filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.crm-filter-selects .form-select-zentic,
.crm-filter-selects .form-control-zentic {
  min-width: 140px;
  flex: 1 1 140px;
}

.crm-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.crm-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.crm-row-actions form {
  margin: 0;
  display: inline-flex;
}

.crm-check-col {
  width: 42px;
  vertical-align: middle !important;
}

.crm-check {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--brand-primary, #1f652d);
}

.crm-bulk-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(31, 101, 45, 0.18);
  border-radius: 12px;
  background: rgba(31, 101, 45, 0.06);
}

.crm-bulk-bar.is-visible,
.crm-bulk-bar:not([hidden]) {
  display: flex;
}

.crm-bulk-bar-info {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink, #303a2a);
}

.crm-bulk-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-zentic.is-danger-outline {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.28);
  background: #fff;
}

.btn-zentic.is-danger-outline:hover,
.btn-zentic.is-danger-outline:focus {
  color: #912018;
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(180, 35, 24, 0.06);
}

.crm-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: #fff;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.crm-action-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(31, 101, 45, 0.3);
  background: rgba(31, 101, 45, 0.08);
  color: var(--brand-primary);
  box-shadow: 0 6px 14px rgba(31, 101, 45, 0.12);
}

.crm-action-btn.is-edit:hover {
  background: rgba(138, 118, 74, 0.14);
  border-color: rgba(138, 118, 74, 0.35);
  color: #6d5c34;
}

.crm-action-btn.is-warn:hover {
  background: rgba(180, 70, 50, 0.1);
  border-color: rgba(180, 70, 50, 0.3);
  color: #a13a28;
}

.crm-action-btn.is-ok:hover {
  background: rgba(31, 101, 45, 0.12);
  color: var(--brand-primary-dark);
}

/* Calendar page side sync */
.crm-cal-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
}

.crm-cal-side-card {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
}

.crm-cal-side-body {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* Admin user cell + modal */
.crm-user-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.crm-user-cell-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.crm-modal[hidden] {
  display: none !important;
}

.crm-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.crm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 18, 0.45);
}

.crm-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
}

.crm-modal-head,
.crm-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
  flex-shrink: 0;
}

.crm-modal-foot {
  border-bottom: 0;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
  justify-content: flex-end;
  margin-top: 1rem;
  padding-left: 0;
  padding-right: 0;
}

.crm-modal-body {
  padding: 1rem;
  overflow: auto;
}

.crm-country {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
  line-height: 1.2;
}

.crm-country-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(48, 58, 42, 0.12);
  flex-shrink: 0;
}

.crm-country-name {
  font-size: inherit;
}

.crm-country-picker {
  position: relative;
}

.crm-country-picker-trigger {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.45rem 3.4rem 0.45rem 0.75rem;
  border: 1px solid rgba(48, 58, 42, 0.14);
  border-radius: 10px;
  background: #fff;
  color: rgba(48, 58, 42, 0.55);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-country-picker-trigger.has-value {
  color: #303a2a;
}

.crm-country-picker-trigger:hover,
.crm-country-picker-trigger[aria-expanded="true"] {
  border-color: rgba(62, 122, 104, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 122, 104, 0.12);
}

.crm-country-picker-trigger .icon-chevron-down {
  position: absolute;
  right: 0.7rem;
  opacity: 0.55;
  font-size: 0.95rem;
  pointer-events: none;
}

.crm-country-picker-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(48, 58, 42, 0.12);
  flex-shrink: 0;
}

.crm-country-picker-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-country-picker-clear {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(48, 58, 42, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.crm-country-picker-clear:hover {
  background: rgba(48, 58, 42, 0.06);
  color: #303a2a;
}

.crm-country-picker-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 28, 18, 0.16);
  overflow: hidden;
}

.crm-country-picker-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
}

.crm-country-picker-search i {
  opacity: 0.45;
}

.crm-country-picker-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: #303a2a;
}

.crm-country-picker-list {
  max-height: 260px;
  overflow: auto;
  padding: 0.35rem;
}

.crm-country-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: #303a2a;
}

.crm-country-picker-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(48, 58, 42, 0.12);
}

.crm-country-picker-option span {
  flex: 1;
  min-width: 0;
}

.crm-country-picker-option em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(48, 58, 42, 0.45);
  letter-spacing: 0.04em;
}

.crm-country-picker-option:hover,
.crm-country-picker-option.is-active {
  background: rgba(62, 122, 104, 0.1);
}

.crm-country-picker-empty {
  padding: 0.85rem;
  text-align: center;
  color: rgba(48, 58, 42, 0.5);
  font-size: 0.875rem;
}

.crm-assignee-picker {
  display: grid;
  gap: 0.4rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 12px;
  background: #fafbf9;
}

.crm-assignee-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.crm-assignee-option:hover,
.crm-assignee-option.is-checked {
  background: rgba(62, 122, 104, 0.1);
}

.crm-assignee-option input {
  width: 1rem;
  height: 1rem;
  accent-color: #3e7a68;
  flex-shrink: 0;
}

.crm-assignee-option-body {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.crm-assignee-option-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.crm-assignee-option-meta strong {
  font-size: 0.9rem;
  color: #303a2a;
}

.crm-assignee-option-meta em {
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(48, 58, 42, 0.55);
}

.crm-detail-tabs {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.crm-detail-header {
  align-items: flex-start;
}

.crm-detail-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.crm-detail-heading-text {
  min-width: 0;
  flex: 1 1 auto;
}

.crm-detail-heading-text .page-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.crm-company-title {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.crm-company-relation {
  margin: 0 0 0.35rem;
  color: rgba(31, 101, 45, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.crm-detail-heading-text .page-subtitle {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.crm-company-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.crm-company-subtitle__sep {
  color: rgba(48, 58, 42, 0.35);
}

.crm-company-subtitle__place {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.crm-company-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.crm-company-type-badge.is-customer {
  background: rgba(31, 101, 45, 0.12);
  color: #1f652d;
}

.crm-company-type-badge.is-lead {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.crm-detail-tablist {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(48, 58, 42, 0.06);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.crm-detail-tab {
  border: 0;
  background: transparent;
  color: rgba(48, 58, 42, 0.7);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crm-detail-tab-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.78;
  flex-shrink: 0;
}

.crm-detail-tab.is-active {
  background: #fff;
  color: #303a2a;
  box-shadow: 0 1px 3px rgba(20, 28, 18, 0.08);
}

.crm-detail-tab.is-active .crm-detail-tab-icon {
  opacity: 1;
  color: #4f6b44;
}

.crm-detail-tab-count {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  background: rgba(62, 122, 104, 0.14);
  color: #2f5f52;
  padding: 0 0.35rem;
}

.crm-detail-panel[hidden] {
  display: none !important;
}

.crm-participant-picker {
  display: grid;
  gap: 0.65rem;
}

.crm-participant-groups {
  display: grid;
  gap: 0.65rem;
}

.crm-participant-group {
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: #fafbf9;
}

.crm-participant-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(48, 58, 42, 0.55);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crm-participant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.crm-participant-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.12);
  font-size: 0.82rem;
  cursor: pointer;
}

.crm-participant-option:has(input:checked) {
  background: rgba(62, 122, 104, 0.12);
  border-color: rgba(62, 122, 104, 0.35);
}

.crm-participant-option input {
  accent-color: #3e7a68;
}

.crm-participant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.crm-participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(62, 122, 104, 0.12);
  color: #303a2a;
  font-size: 0.8rem;
}

.crm-participant-chip em {
  font-style: normal;
}

.crm-participant-chip button {
  border: 0;
  background: transparent;
  color: rgba(48, 58, 42, 0.55);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.crm-participant-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.crm-note-edit[hidden] {
  display: none !important;
}

.crm-contact-edit[hidden] {
  display: none !important;
}

.crm-contact-card.is-editing {
  border-color: rgba(31, 101, 45, 0.28);
  background: rgba(31, 101, 45, 0.04);
}

.crm-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 767.98px) {
  .crm-contact-grid {
    grid-template-columns: 1fr;
  }
}

.crm-contact-card {
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 0.9rem;
}

.crm-contact-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.crm-contact-card__identity {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.crm-contact-card__identity strong {
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--brand-ink, #303a2a);
}

.crm-contact-card__identity span {
  font-size: 0.8rem;
  color: rgba(48, 58, 42, 0.68);
}

.crm-contact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.crm-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(31, 101, 45, 0.07);
  color: var(--brand-ink, #303a2a);
  text-decoration: none !important;
  font-size: 0.78rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-contact-chip:hover {
  background: rgba(31, 101, 45, 0.12);
  color: var(--brand-primary, #1f652d);
}

.crm-contact-chip.is-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  font-weight: 700;
}

.crm-contact-chip.is-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #075e54;
}

.crm-wa-icon {
  flex-shrink: 0;
}

.crm-contact-empty {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(48, 58, 42, 0.04);
  color: rgba(48, 58, 42, 0.72);
  font-size: 0.9rem;
}

.crm-contact-empty > i {
  font-size: 1.15rem;
  color: var(--brand-primary, #1f652d);
}

.crm-summary-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.crm-summary-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: 0.55rem 0.75rem;
  align-items: start;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(48, 58, 42, 0.035);
}

.crm-summary-row dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(48, 58, 42, 0.62);
}

.crm-summary-row dt i {
  font-size: 0.95rem;
  color: var(--brand-primary, #1f652d);
  opacity: 0.85;
}

.crm-summary-row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-ink, #303a2a);
  word-break: break-word;
}

.crm-summary-row dd.is-empty,
.crm-summary-contact.is-empty,
.crm-summary-address.is-empty {
  font-weight: 500;
  color: rgba(48, 58, 42, 0.42);
  font-style: italic;
}

.crm-summary-followup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.crm-summary-divider {
  height: 1px;
  margin: 0.95rem 0;
  background: linear-gradient(90deg, transparent, rgba(48, 58, 42, 0.14), transparent);
}

.crm-summary-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.crm-summary-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--brand-ink, #303a2a);
}

.crm-summary-contact i {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  color: var(--brand-primary, #1f652d);
}

.crm-summary-contact a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.crm-summary-contact a:hover {
  color: var(--brand-primary, #1f652d);
  text-decoration: underline;
}

.crm-summary-wa {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  color: #128c7e !important;
  font-size: 0.72rem;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.crm-summary-wa:hover {
  background: rgba(37, 211, 102, 0.24);
  color: #075e54 !important;
}

.crm-summary-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: rgba(31, 101, 45, 0.05);
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(48, 58, 42, 0.78);
}

.crm-summary-address i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--brand-primary, #1f652d);
}

.crm-summary-row.crm-followup-summary.is-overdue {
  background: rgba(185, 28, 28, 0.08);
}

.crm-summary-row.crm-followup-summary.is-today {
  background: rgba(180, 83, 9, 0.08);
}

.crm-summary-row.crm-followup-summary.is-highlighted {
  outline: 2px solid rgba(31, 101, 45, 0.35);
  outline-offset: 1px;
}

@media (max-width: 575.98px) {
  .crm-summary-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.crm-list-contact {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.crm-list-contact__name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-ink, #303a2a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-list-contact__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-list-contact__more {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1f652d;
}

.crm-list-contact-empty {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
}

.crm-welcome-contact {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 101, 45, 0.18);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(76, 175, 80, 0.14), transparent 55%),
    linear-gradient(135deg, #f7fbf5 0%, #eef6eb 100%);
  box-shadow: 0 10px 24px rgba(31, 101, 45, 0.08);
}

.crm-welcome-contact__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1f652d, #2f8a3f);
  color: #fff;
  font-size: 1.15rem;
}

.crm-welcome-contact__body {
  flex: 1;
  min-width: 0;
}

.crm-welcome-contact__title {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 750;
  color: #164822;
}

.crm-welcome-contact__text {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #44534c;
}

.crm-welcome-contact__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.crm-welcome-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (max-width: 767.98px) {
  .crm-welcome-contact {
    flex-direction: column;
  }

  .crm-welcome-contact__fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .crm-welcome-contact__fields {
    grid-template-columns: 1fr;
  }
}

.crm-contact-add-panel {
  margin-top: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgba(31, 101, 45, 0.28);
  border-radius: 14px;
  background: rgba(31, 101, 45, 0.03);
}

.crm-contact-add-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-ink, #303a2a);
}

.crm-quick-contact__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.crm-quick-contact__row .form-control-zentic {
  flex: 1 1 160px;
  min-width: 140px;
}

.crm-cal-day-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.crm-cal-contacts {
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  max-height: 180px;
  overflow: auto;
}

.crm-pending-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.crm-pending-card__type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(48, 58, 42, 0.7);
}

.crm-pending-card__name {
  font-size: 1.05rem;
  color: var(--brand-ink, #303a2a);
}

.crm-pending-card__meta {
  font-size: 0.88rem;
  color: rgba(48, 58, 42, 0.75);
}

.crm-pending-card__ask {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.crm-pending-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.crm-about-page {
  width: 100%;
}

.crm-about-page .crm-about-hero {
  border-radius: 18px;
  border: 1px solid rgba(48, 58, 42, 0.08);
  margin-bottom: 1.15rem;
  padding: 1.75rem 1.75rem 1.5rem;
}

.crm-about-page .crm-about-title {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.crm-about-page .crm-about-lead {
  padding-right: 0;
  max-width: 68ch;
  font-size: 1rem;
}

.crm-about-page .crm-about-body {
  padding: 0 !important;
}

.crm-about-page .crm-about-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.crm-about-page .crm-about-card {
  min-height: 100%;
}

.crm-about-page .crm-about-footnote {
  margin-top: 1.15rem;
}

.crm-about-page .crm-about-credit {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .crm-about-page .crm-about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-about-page .crm-about-card.is-wide {
    flex-direction: column;
  }
  .crm-about-page .crm-about-card.is-wide .crm-about-preview {
    width: 100%;
    height: 104px;
    border-right: 0;
    border-bottom: 1px solid rgba(48, 58, 42, 0.06);
  }
}

@media (max-width: 575.98px) {
  .crm-about-page .crm-about-hero {
    padding: 1.25rem 1.1rem;
  }

  .crm-about-page .crm-about-grid {
    grid-template-columns: 1fr;
  }
}

.crm-about-modal .crm-about-dialog {
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
  padding: 0;
  overflow: hidden;
}

.crm-about-hero {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.2rem;
  background:
    radial-gradient(1200px 240px at 10% -20%, rgba(62, 122, 104, 0.22), transparent 55%),
    linear-gradient(135deg, #f4f8f5 0%, #eef5f1 48%, #f8faf8 100%);
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
}

.crm-about-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.crm-about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
  animation: crm-about-float 7s ease-in-out infinite;
}

.crm-about-orb.is-a {
  width: 90px;
  height: 90px;
  right: 8%;
  top: 12%;
  background: rgba(62, 122, 104, 0.28);
}

.crm-about-orb.is-b {
  width: 56px;
  height: 56px;
  right: 22%;
  bottom: 18%;
  background: rgba(208, 137, 58, 0.22);
  animation-delay: -2.2s;
  animation-duration: 8.5s;
}

.crm-about-orb.is-c {
  width: 38px;
  height: 38px;
  right: 4%;
  bottom: 28%;
  background: rgba(47, 143, 138, 0.25);
  animation-delay: -4s;
  animation-duration: 6.2s;
}

.crm-about-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3e7a68;
  margin-bottom: 0.35rem;
}

.crm-about-title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: #303a2a;
}

.crm-about-lead {
  margin: 0;
  max-width: 52ch;
  color: rgba(48, 58, 42, 0.72);
  line-height: 1.55;
  font-size: 0.95rem;
  padding-right: 2rem;
}

.crm-about-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: rgba(48, 58, 42, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-about-close:hover {
  background: #fff;
  color: #303a2a;
}

.crm-about-body {
  padding: 1.1rem 1.2rem 1.25rem !important;
}

.crm-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.crm-about-card {
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 1px 2px rgba(20, 28, 18, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.28s ease, border-color 0.2s ease;
  animation: crm-about-rise 0.55s cubic-bezier(0.32, 0.72, 0, 1) both;
  animation-delay: calc(var(--about-i, 0) * 55ms);
}

.crm-about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3e7a68 0%, #6aa88f 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.crm-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(20, 28, 18, 0.1);
  border-color: rgba(62, 122, 104, 0.22);
}

.crm-about-card:hover::before {
  opacity: 1;
}

.crm-about-preview {
  position: relative;
  height: 104px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(48, 58, 42, 0.06);
  overflow: hidden;
}

.crm-about-preview__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}

.crm-about-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.crm-about-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.crm-about-icon.is-green { background: #3e7a68; }
.crm-about-icon.is-teal { background: #2f8f8a; }
.crm-about-icon.is-orange { background: #d0893a; }
.crm-about-icon.is-blue { background: #3b82a0; }
.crm-about-icon.is-purple { background: #6b6aa8; }
.crm-about-icon.is-slate { background: #5a6b63; }

.crm-about-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #303a2a;
}

.crm-about-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(48, 58, 42, 0.66);
}

/* —— Preview scenes —— */
.crm-about-preview.is-companies {
  background: linear-gradient(160deg, #eef5f1 0%, #f7faf8 100%);
}
.crm-about-preview.is-companies .crm-about-preview__stage {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}
.ap-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(48, 58, 42, 0.08);
  transform: translateX(0);
  animation: crm-about-slide 4.8s ease-in-out infinite;
}
.ap-row.is-mid { animation-delay: -1.6s; }
.ap-row i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #3e7a68;
  flex-shrink: 0;
}
.ap-row b {
  height: 6px;
  border-radius: 99px;
  background: rgba(48, 58, 42, 0.22);
  flex: 1 1 auto;
}
.ap-row em {
  width: 28px;
  height: 6px;
  border-radius: 99px;
  background: rgba(62, 122, 104, 0.35);
  flex-shrink: 0;
}
.ap-flag {
  position: absolute;
  right: 1.1rem;
  top: 0.65rem;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3e7a68 50%, #d0893a 50%);
  box-shadow: 0 0 0 1px rgba(48, 58, 42, 0.12);
  animation: crm-about-pulse 2.4s ease-in-out infinite;
}

.crm-about-preview.is-calls {
  background: linear-gradient(160deg, #e8f5f4 0%, #f5faf9 100%);
}
.ap-phone {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #2f8f8a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 2;
  animation: crm-about-bob 2.8s ease-in-out infinite;
}
.ap-wave {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(47, 143, 138, 0.45);
  animation: crm-about-ring 2.4s ease-out infinite;
}
.ap-wave.is-2 { animation-delay: 0.7s; }
.ap-note,
.ap-note.is-2 {
  position: absolute;
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 143, 138, 0.2);
}
.ap-note { width: 48px; right: 14%; top: 28%; animation: crm-about-bob 3.2s ease-in-out infinite; }
.ap-note.is-2 { width: 36px; left: 12%; bottom: 24%; animation-delay: -1s; }

.crm-about-preview.is-ship {
  background: linear-gradient(160deg, #f8f1e6 0%, #faf7f2 100%);
}
.ap-road {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 58%;
  height: 3px;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, rgba(208, 137, 58, 0.55) 0 10px, transparent 10px 16px);
}
.ap-truck {
  position: absolute;
  left: 12%;
  top: 38%;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #d0893a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: crm-about-drive 4.5s ease-in-out infinite;
  z-index: 2;
}
.ap-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #3e7a68;
  top: 30%;
}
.ap-pin.is-a { left: 18%; }
.ap-pin.is-b { right: 16%; background: #d0893a; animation: crm-about-pulse 2s ease-in-out infinite; }

.crm-about-preview.is-sample {
  background: linear-gradient(160deg, #e8f2f7 0%, #f5f9fb 100%);
}
.ap-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #3b82a0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  animation: crm-about-bob 3s ease-in-out infinite;
  z-index: 2;
}
.ap-tag {
  position: absolute;
  right: 16%;
  top: 22%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3b82a0;
  background: #fff;
  border: 1px solid rgba(59, 130, 160, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  animation: crm-about-pulse 2.6s ease-in-out infinite;
}
.ap-dot {
  position: absolute;
  bottom: 22%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 130, 160, 0.45);
  animation: crm-about-pulse 1.8s ease-in-out infinite;
}
.ap-dot.is-1 { left: 28%; }
.ap-dot.is-2 { left: 48%; animation-delay: 0.25s; }
.ap-dot.is-3 { left: 68%; animation-delay: 0.5s; }

.crm-about-preview.is-finance {
  background: linear-gradient(160deg, #eef5f1 0%, #f7faf8 100%);
  align-items: flex-end;
}
.crm-about-preview.is-finance .crm-about-preview__stage {
  align-items: flex-end;
  gap: 0.4rem;
  padding-bottom: 1rem;
}
.ap-bar {
  width: 18px;
  border-radius: 6px 6px 2px 2px;
  background: #3e7a68;
  transform-origin: bottom;
  animation: crm-about-grow 2.8s ease-in-out infinite;
}
.ap-bar.is-a { height: 36%; background: rgba(62, 122, 104, 0.45); animation-delay: 0s; }
.ap-bar.is-b { height: 62%; background: rgba(62, 122, 104, 0.7); animation-delay: 0.2s; }
.ap-bar.is-c { height: 48%; animation-delay: 0.4s; }
.ap-coin {
  position: absolute;
  right: 16%;
  top: 18%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #3e7a68;
  border: 1px solid rgba(62, 122, 104, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: crm-about-bob 2.6s ease-in-out infinite;
}

.crm-about-preview.is-calendar {
  background: linear-gradient(160deg, #e8f2f7 0%, #f5f9fb 100%);
}
.crm-about-preview.is-calendar .crm-about-preview__stage {
  flex-direction: column;
  width: 72%;
  max-width: 160px;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 160, 0.15);
  padding: 0.55rem;
}
.ap-cal-head {
  height: 8px;
  width: 40%;
  border-radius: 99px;
  background: #3b82a0;
  align-self: flex-start;
}
.ap-cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
  width: 100%;
}
.ap-cal-grid i {
  display: block;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(59, 130, 160, 0.12);
}
.ap-cal-grid i.is-on {
  background: #3b82a0;
  animation: crm-about-pulse 2s ease-in-out infinite;
}

.crm-about-preview.is-map {
  background: linear-gradient(160deg, #efeff8 0%, #f7f7fb 100%);
}
.ap-globe {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(107, 106, 168, 0.15) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(107, 106, 168, 0.12) 9px 10px),
    #6b6aa8;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  animation: crm-about-spin-slow 12s linear infinite;
}
.ap-mpin {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(107, 106, 168, 0.35);
  animation: crm-about-pulse 2.2s ease-in-out infinite;
}
.ap-mpin.is-1 { top: 28%; left: 28%; }
.ap-mpin.is-2 { top: 42%; right: 26%; animation-delay: 0.4s; }
.ap-mpin.is-3 { bottom: 24%; left: 46%; animation-delay: 0.8s; }

.crm-about-preview.is-reports {
  background: linear-gradient(160deg, #eef1ef 0%, #f7f8f7 100%);
}
.crm-about-preview.is-reports .crm-about-preview__stage {
  align-items: flex-end;
  gap: 0.35rem;
  width: 70%;
  max-width: 150px;
  height: 70%;
}
.ap-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
}
.ap-chart b {
  flex: 1 1 auto;
  height: var(--h, 50%);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #7a8f84 0%, #5a6b63 100%);
  transform-origin: bottom;
  animation: crm-about-grow 3s ease-in-out infinite;
}
.ap-chart b:nth-child(2) { animation-delay: 0.15s; background: linear-gradient(180deg, #6aa88f 0%, #3e7a68 100%); }
.ap-chart b:nth-child(3) { animation-delay: 0.3s; }
.ap-chart b:nth-child(4) { animation-delay: 0.45s; background: linear-gradient(180deg, #6aa88f 0%, #3e7a68 100%); }
.ap-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 36%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(62, 122, 104, 0.45), transparent);
  animation: crm-about-slide 5s ease-in-out infinite;
}

.crm-about-preview.is-quality {
  background: linear-gradient(160deg, #e7f5ea 0%, #f7faf8 100%);
}
.ap-clip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #1f652d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
  animation: crm-about-bob 2.8s ease-in-out infinite;
}
.ap-qrow {
  position: absolute;
  top: 28%;
  right: 14%;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 42%;
  height: 16px;
  padding: 0 0.4rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 101, 45, 0.16);
  animation: crm-about-bob 3.2s ease-in-out infinite;
}
.ap-qrow b {
  height: 5px;
  flex: 1 1 auto;
  border-radius: 99px;
  background: rgba(48, 58, 42, 0.18);
}
.ap-qrow em {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0893a;
  flex-shrink: 0;
}
.ap-qrow em.is-ok { background: #1f652d; }
.ap-qrow.is-2 { top: auto; bottom: 24%; animation-delay: -1.1s; }
.ap-qstamp {
  position: absolute;
  left: 16%;
  bottom: 18%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1f652d;
  background: #fff;
  border: 1px solid rgba(31, 101, 45, 0.22);
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  animation: crm-about-pulse 2.4s ease-in-out infinite;
}
.crm-about-page .crm-about-card.is-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.crm-about-page .crm-about-card.is-wide .crm-about-preview {
  width: 220px;
  height: auto;
  min-height: 118px;
  border-bottom: 0;
  border-right: 1px solid rgba(48, 58, 42, 0.06);
}
.crm-about-page .crm-about-card.is-wide .crm-about-card-body {
  justify-content: center;
  padding-right: 1.25rem;
}

.crm-about-card:hover .crm-about-preview__stage {
  animation: crm-about-nudge 0.6s ease;
}

@keyframes crm-about-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes crm-about-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes crm-about-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes crm-about-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
@keyframes crm-about-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes crm-about-drive {
  0%, 100% { left: 12%; }
  50% { left: 68%; }
}
@keyframes crm-about-grow {
  0%, 100% { transform: scaleY(0.82); }
  50% { transform: scaleY(1); }
}
@keyframes crm-about-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@keyframes crm-about-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes crm-about-nudge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .crm-about-card,
  .crm-about-orb,
  .ap-row,
  .ap-flag,
  .ap-phone,
  .ap-wave,
  .ap-note,
  .ap-truck,
  .ap-pin,
  .ap-box,
  .ap-tag,
  .ap-dot,
  .ap-bar,
  .ap-coin,
  .ap-cal-grid i.is-on,
  .ap-globe,
  .ap-mpin,
  .ap-chart b,
  .ap-line,
  .crm-about-card:hover .crm-about-preview__stage {
    animation: none !important;
  }
  .crm-about-card {
    opacity: 1;
    transform: none;
  }
}

.crm-about-footnote {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(62, 122, 104, 0.1), rgba(62, 122, 104, 0.04));
  border: 1px solid rgba(62, 122, 104, 0.14);
}

.crm-about-foot-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #3e7a68;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crm-about-footnote strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #303a2a;
}

.crm-about-footnote p {
  color: rgba(48, 58, 42, 0.7);
  font-size: 0.86rem;
  line-height: 1.5;
}

.crm-about-credit {
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.crm-about-credit-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(48, 58, 42, 0.45);
}

.crm-about-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(48, 58, 42, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
}

.crm-about-credit-link:hover {
  color: #1f652d;
}

.crm-about-credit-logo {
  height: 26px;
  width: auto;
  display: block;
}

/* Dashboard page header */
.crm-dash-page-header .page-title {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.crm-dash-page-header .page-subtitle {
  margin-top: 0.35rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(48, 58, 42, 0.72);
}

.crm-cal-item-title-row .crm-country {
  flex-shrink: 0;
}

.crm-cal-item-title-row .crm-country-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(48, 58, 42, 0.12);
}

/* Dashboard stat carousel â€” single strip, multiple cards visible + autoplay */
.crm-stat-carousel {
  margin-bottom: 1rem;
  width: 100%;
  max-width: none;
}

.crm-stat-viewport {
  display: block;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y pinch-zoom;
}

.crm-stat-track {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.crm-stat-slide {
  flex: 0 0 calc(100% / var(--crm-stat-visible, 4));
  width: calc(100% / var(--crm-stat-visible, 4));
  min-width: 0;
  box-sizing: border-box;
  padding: 0 0.35rem;
}

.crm-stat-track.is-carousel-mode {
  overflow: visible;
  transform: translate3d(0, 0, 0);
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.crm-stat-track.is-carousel-mode.is-instant {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .crm-stat-track.is-carousel-mode {
    transition: none;
  }
}

.crm-stat-slide .stat-card {
  height: 100%;
  min-height: 0;
  margin: 0;
  width: 100%;
  padding: 0.7rem 0.85rem 0.75rem !important;
}

.crm-stat-slide .stat-card-header {
  margin-bottom: 0.2rem;
}

.crm-stat-slide .stat-icon {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.85rem !important;
}

.crm-stat-slide .stat-value {
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
  margin: 0.1rem 0 0.05rem !important;
}

.crm-stat-slide .stat-label {
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.crm-stat-slide .stat-meta {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.2;
  color: rgba(48, 58, 42, 0.62);
  max-width: 100%;
}

.crm-stat-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.crm-stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(48, 58, 42, 0.22);
  transition: width 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.crm-stat-dot.is-active {
  width: 18px;
  background: #3e7a68;
}

/* â”€â”€ Sticky / scrollable data tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.crm-table-scroll-shell {
  position: relative;
}

.zentic-table-wrapper.crm-table-scroll,
.crm-table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.crm-table-scroll.has-overflow::before,
.crm-table-scroll.has-overflow::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.crm-table-scroll.has-overflow::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96), transparent);
}

.crm-table-scroll.has-overflow::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96), transparent);
}

.crm-table-scroll.has-overflow:not(.at-start)::before,
.crm-table-scroll.has-overflow:not(.at-end)::after {
  opacity: 1;
}

.crm-table-scroll-hint-row {
  position: sticky;
  top: calc(var(--crm-sticky-top, 64px) + 0.25rem);
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  height: 0;
  margin: 0;
}

.crm-table-scroll-hint {
  position: relative;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 8;
  display: none;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(48, 58, 42, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  box-shadow: 0 8px 20px rgba(20, 28, 18, 0.22);
}

.crm-table-scroll-shell.show-hint .crm-table-scroll-hint,
.crm-table-scroll.show-hint .crm-table-scroll-hint {
  display: inline-flex;
  opacity: 1;
  animation: crmTableHintSwipe 1.35s ease-in-out infinite;
}

@keyframes crmTableHintSwipe {
  0%, 100% { transform: translateX(0); }
  40% { transform: translateX(7px); }
  55% { transform: translateX(3px); }
}

@keyframes crmTableHintPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.zentic-table thead th:first-child,
.zentic-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 6px 0 10px -8px rgba(20, 28, 18, 0.28);
}

.zentic-table thead th:first-child {
  z-index: 3;
  background: var(--zc-body-bg, #f4f6f3);
}

.zentic-table tbody tr:hover td:first-child {
  background: #f7f9f6;
}

/* Companies list: narrow checkbox + wide sticky company name */
.crm-companies-table .crm-check-col {
  width: 2.1rem;
  min-width: 2.1rem !important;
  max-width: 2.1rem !important;
  padding-left: 0.45rem !important;
  padding-right: 0.2rem !important;
  text-align: center;
  box-shadow: none;
}

.crm-companies-table thead th.crm-check-col,
.crm-companies-table tbody td.crm-check-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
}

.crm-companies-table thead th.crm-check-col {
  background: var(--zc-body-bg, #f4f6f3);
  z-index: 5;
}

.crm-companies-table .crm-company-col {
  min-width: 220px;
  width: 42%;
}

.crm-companies-table thead th.crm-company-col,
.crm-companies-table tbody td.crm-company-col {
  position: sticky;
  left: 2.1rem;
  z-index: 3;
  background: #fff;
  box-shadow: 8px 0 12px -10px rgba(20, 28, 18, 0.35);
}

.crm-companies-table thead th.crm-company-col {
  background: var(--zc-body-bg, #f4f6f3);
  z-index: 4;
}

.crm-companies-table tbody tr:hover td.crm-check-col,
.crm-companies-table tbody tr:hover td.crm-company-col {
  background: #f7f9f6;
}

.crm-companies-table thead th.crm-company-col:first-child,
.crm-companies-table tbody td.crm-company-col:first-child {
  left: 0;
}

/* Back-to-top + quick actions FAB stacking */
.back-to-top {
  right: 1.35rem !important;
  bottom: 1.35rem !important;
  z-index: 1030 !important;
}

body:has(.crm-quick-actions) .back-to-top.visible {
  bottom: calc(1.35rem + 4.1rem) !important;
}

body:has(.crm-quick-actions.is-open) .back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

@media (max-width: 991.98px) {
  body:has(.crm-quick-actions) .back-to-top.visible {
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px) + 3.9rem) !important;
    right: 0.95rem !important;
  }
}

@media (max-width: 575.98px) {
  body:has(.crm-quick-actions) .back-to-top.visible {
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px) + 3.7rem) !important;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 991.98px) {
  .zentic-table {
    min-width: 680px;
  }

  .zentic-table thead th,
  .zentic-table tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .zentic-table thead th:first-child,
  .zentic-table tbody td:first-child {
    min-width: 150px;
    max-width: 220px;
  }

  .crm-companies-table.zentic-table thead th.crm-check-col,
  .crm-companies-table.zentic-table tbody td.crm-check-col {
    min-width: 2.1rem !important;
    max-width: 2.1rem !important;
    width: 2.1rem !important;
  }

  .crm-companies-table .crm-company-col {
    min-width: 210px !important;
    max-width: none !important;
  }
}

@media (max-width: 767.98px) {
  .crm-about-grid {
    grid-template-columns: 1fr;
  }

  .crm-about-lead {
    padding-right: 0;
  }

  .crm-filter-toolbar {
    display: flex;
  }

  .crm-filter-form.is-collapsed .crm-filter-advanced {
    display: none;
  }

  .crm-filter-form .crm-filter-search {
    order: -1;
  }

  .zentic-content {
    padding: 12px !important;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: clip;
  }

  .page-header {
    gap: 0.75rem !important;
  }

  .page-title {
    font-size: 1.35rem !important;
  }

  .page-subtitle {
    font-size: 0.85rem !important;
  }

  .page-header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .page-header-actions .btn-zentic {
    flex: 1 1 auto;
    justify-content: center;
  }

  .topbar-info-btn {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .crm-filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .crm-filter-selects .form-select-zentic,
  .crm-filter-selects .form-control-zentic {
    min-width: 0;
    flex: none;
    width: 100%;
  }

  .crm-filter-actions {
    flex-wrap: wrap;
  }

  .crm-filter-hint {
    display: none;
  }

  .zentic-card-header,
  .zentic-card-body {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .crm-detail-tablist {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 0.3rem;
    position: relative;
    mask-image: none;
  }

  .crm-detail-tablist.has-overflow:not(.at-end) {
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 2rem), transparent 100%);
  }

  .crm-detail-tablist.has-overflow:not(.at-start) {
    mask-image: linear-gradient(to right, transparent 0%, #000 1.25rem, #000 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 1.25rem, #000 100%);
  }

  .crm-detail-tablist.has-overflow:not(.at-start):not(.at-end) {
    mask-image: linear-gradient(to right, transparent 0%, #000 1.25rem, #000 calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 1.25rem, #000 calc(100% - 2rem), transparent 100%);
  }

  .crm-detail-tablist::-webkit-scrollbar {
    display: none;
  }

  .crm-detail-tab {
    white-space: nowrap;
    flex: 0 0 auto;
    justify-content: center;
    min-width: max-content;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
  }

  .crm-detail-tab-count {
    min-width: 1.2rem;
    height: 1.2rem;
    font-size: 0.68rem;
  }

  .crm-detail-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .crm-detail-heading {
    width: 100%;
    align-items: flex-start;
  }

  .crm-detail-heading-text {
    min-width: 0;
    overflow: hidden;
  }

  .crm-detail-heading-text .page-title,
  .crm-company-title {
    font-size: 1.28rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .crm-company-relation {
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
  }

  .crm-detail-heading-text .page-subtitle,
  .crm-company-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    gap: 0.3rem 0.4rem;
    align-items: center;
  }

  .crm-company-subtitle__sep {
    display: none;
  }

  .crm-company-type-badge {
    font-size: 0.68rem;
    padding: 0.16rem 0.5rem;
  }

  .crm-company-subtitle > span:not(.crm-company-type-badge):not(.crm-company-subtitle__sep):not(.crm-company-subtitle__place) {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(48, 58, 42, 0.06);
    color: rgba(48, 58, 42, 0.78);
    font-weight: 600;
  }

  .crm-company-subtitle__place {
    width: 100%;
    margin-top: 0.1rem;
  }

  .crm-detail-tabs,
  .crm-detail-panel,
  .crm-detail-panel .row,
  .crm-detail-panel .zentic-card,
  .crm-detail-panel .zentic-card-body {
    min-width: 0;
    max-width: 100%;
  }

  .crm-detail-panel .zentic-card-body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .crm-detail-panel a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .crm-detail-panel .zentic-table-wrapper {
    max-width: 100%;
  }

  .crm-detail-panel .zentic-table {
    min-width: 480px;
  }

  .crm-contact-add-form .btn-zentic {
    min-height: 42px;
  }

  .crm-activity-item,
  .crm-note-item {
    min-width: 0;
  }

  .crm-activity-item .d-flex,
  .crm-note-item .d-flex {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .crm-participant-option {
    max-width: 100%;
  }

  .crm-participant-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 12rem;
  }

  .crm-participant-groups {
    gap: 0.5rem;
  }

  .crm-participant-add {
    grid-template-columns: 1fr;
  }

  .crm-assignee-picker {
    max-height: 180px;
  }

  /* Calendar â€” compact & touch-friendly */
  .crm-cal-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .crm-cal-nav {
    justify-content: space-between;
  }

  .crm-cal-title {
    font-size: 0.95rem;
    min-width: 0;
    flex: 1;
  }

  .crm-cal-legend {
    justify-content: center;
    gap: 0.75rem;
  }

  .crm-calendar {
    gap: 3px;
  }

  .crm-calendar-head {
    font-size: 0;
    padding-bottom: 4px;
  }

  .crm-calendar-head::first-letter {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--zc-text-muted);
  }

  .crm-calendar-day {
    min-height: 44px;
    border-radius: 10px;
    padding: 5px 2px;
  }

  .crm-calendar-day .day-num {
    font-size: 0.78rem;
    margin-bottom: 2px;
  }

  .crm-cal.is-full .crm-calendar-day .day-mini {
    display: none;
  }

  .crm-cal.is-widget .crm-calendar-day {
    min-height: 40px;
    border-radius: 10px;
  }

  .crm-cal.is-widget .day-num {
    font-size: 0.72rem;
  }

  .crm-cal.is-widget .crm-cal-day-body {
    max-height: 180px;
  }

  .crm-cal-day-panel {
    margin-top: 0.65rem;
  }

  .crm-cal-item {
    padding: 0.55rem 0.6rem;
  }

  .crm-cal-page-row {
    gap: 0.75rem !important;
  }

  .crm-firm-card {
    padding: 0.7rem 0.75rem;
  }

  .crm-firm-card-person-name {
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crm-workload-grid,
  .crm-workload-grid.is-dense {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-workload-card-head {
    flex-wrap: wrap;
    align-items: center;
  }

  .crm-workload-card-identity {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }

  .crm-workload-card-metrics {
    flex: 1 1 100%;
    margin-top: 0.15rem;
  }

  .crm-workload-metric {
    flex: 1;
    min-width: 0;
  }

  .crm-firm-card {
    align-items: flex-start;
  }

  .crm-firm-card-person {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    max-width: 38%;
  }

  .crm-firm-card-person-name {
    max-width: none;
    white-space: nowrap;
    text-align: left;
  }

  .crm-week-body {
    max-height: 280px !important;
  }

  .crm-modal-dialog,
  .crm-about-dialog {
    width: min(100%, 100%) !important;
    margin: 0;
    max-height: min(94vh, 900px);
    border-radius: 16px;
  }

  .crm-country-picker-panel {
    max-height: 60vh;
  }

  .crm-country-picker-list {
    max-height: 200px;
  }
}

@media (max-width: 575.98px) {
  .crm-filter-selects {
    grid-template-columns: 1fr;
  }

  .zentic-table {
    min-width: 620px;
  }

  .crm-detail-panel .zentic-table {
    min-width: 420px;
  }

  .crm-detail-tab {
    font-size: 0.8rem;
    padding: 0.5rem 0.65rem;
    gap: 0.3rem;
  }

  .crm-detail-tab-icon {
    font-size: 0.88rem;
  }

  .crm-detail-heading-text .page-title,
  .crm-company-title {
    font-size: 1.15rem !important;
  }

  .crm-company-relation {
    font-size: 0.78rem;
  }

  .crm-detail-panel [class*="col-lg-"],
  .crm-detail-panel [class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .zentic-table thead th:first-child,
  .zentic-table tbody td:first-child {
    min-width: 132px;
    max-width: 180px;
  }

  .crm-companies-table.zentic-table thead th.crm-check-col,
  .crm-companies-table.zentic-table tbody td.crm-check-col {
    min-width: 2.1rem !important;
    max-width: 2.1rem !important;
    width: 2.1rem !important;
  }

  .crm-companies-table .crm-company-col {
    min-width: 200px !important;
    max-width: none !important;
    width: auto;
  }

  .crm-companies-table thead th.crm-company-col:first-child,
  .crm-companies-table tbody td.crm-company-col:first-child {
    left: 0;
  }

  .crm-table-scroll-hint-row {
    top: calc(var(--crm-sticky-top, 56px) + 0.15rem);
  }

  .table-user-name {
    font-size: 0.88rem;
  }

  .table-user-email {
    font-size: 0.75rem;
  }

  .crm-calendar-day {
    min-height: 40px;
  }

  .crm-firm-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .crm-firm-card-person {
    flex-direction: row;
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(48, 58, 42, 0.1);
  }

  .crm-dash-activity-card {
    flex-direction: column;
    gap: 0.45rem;
  }

  .crm-dash-activity-card-date {
    max-width: none;
    text-align: left;
  }

  .crm-about-hero {
    padding: 1.1rem 1rem 1rem;
  }

  .crm-about-title {
    font-size: 1.25rem;
  }

  .company-form-header .d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
    min-width: 0;
  }

  .company-form-header .page-title {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 991.98px) {
  .crm-week-card {
    max-height: none;
  }

  .crm-week-body {
    max-height: 360px;
  }

  .crm-cal-side {
    height: auto !important;
    max-height: none !important;
  }

  .crm-cal-side-card {
    max-height: none !important;
    height: auto !important;
    flex: none !important;
  }

  .crm-cal-side-body {
    overflow: visible;
    max-height: none;
  }

  .crm-cal.is-widget .crm-cal-legend {
    display: flex;
    justify-content: center;
    font-size: 0.68rem;
  }
}

@media (max-width: 1199.98px) {
  .crm-cal-page-row {
    align-items: stretch !important;
  }

  .crm-cal-page-row .crm-cal-card,
  .crm-cal-page-row [data-crm-cal-main] {
    height: auto !important;
  }

  .crm-cal-page-row .crm-cal-side {
    height: auto !important;
    max-height: none !important;
  }

  .crm-cal-page-row .crm-cal-side-card {
    max-height: none !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  .crm-cal-page-row .crm-cal-side-body {
    overflow: visible !important;
    max-height: none !important;
  }

  .crm-cal.is-full .crm-cal-day-body {
    max-height: none;
    overflow: visible;
  }
}

.topbar-reminder-badge,
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.topbar-reminder-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  z-index: 2;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.32rem;
  font-size: 0.7rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.35);
}

.nav-link .nav-badge {
  margin-left: auto;
}

/* Sidebar nav spacing (base; department modifiers override) */
.zentic-sidebar .nav-item {
  margin-bottom: 0.35rem;
}

.zentic-sidebar .nav-item:last-child {
  margin-bottom: 0.1rem;
}

.zentic-sidebar.is-export-only .nav-item {
  margin-bottom: 0.5rem;
}

.zentic-sidebar.has-finance .nav-item {
  margin-bottom: 0.28rem;
}

.crm-followup-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
}

.crm-followup-alert.is-overdue {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.crm-followup-alert.is-today {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.crm-followup-alert-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.crm-followup-summary {
  border-radius: 0.5rem;
  padding: 0.35rem 0.45rem;
  margin-left: -0.45rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.crm-followup-summary.is-overdue {
  background: rgba(254, 226, 226, 0.55);
}

.crm-followup-summary.is-today {
  background: rgba(255, 237, 213, 0.55);
}

.crm-followup-summary.is-highlighted {
  box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.35);
  background: rgba(255, 237, 213, 0.9);
}

.crm-followup-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.crm-followup-badge.is-overdue {
  background: #fee2e2;
  color: #b91c1c;
}

.crm-followup-badge.is-today {
  background: #ffedd5;
  color: #c2410c;
}

.crm-followup-badge.is-week,
.crm-followup-badge.is-upcoming {
  background: #e0f2fe;
  color: #0369a1;
}

.crm-reminder-label {
  font-weight: 600;
  color: var(--zentic-text-muted, #64748b);
}

.crm-reminder-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.crm-reminder-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: linear-gradient(180deg, #fff 0%, #f7f9f5 100%);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-reminder-card:hover {
  border-color: rgba(31, 101, 45, 0.28);
  box-shadow: 0 8px 20px rgba(31, 101, 45, 0.08);
  transform: translateY(-1px);
}

.crm-reminder-card-main {
  min-width: 0;
  flex: 1;
}

.crm-reminder-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-ink);
  line-height: 1.35;
}

.crm-reminder-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--zc-text-muted);
}

.crm-reminder-city::before {
  content: 'Â·';
  margin-right: 0.35rem;
  opacity: 0.55;
}

.crm-reminder-location-muted {
  font-size: 0.74rem;
  color: var(--zc-text-muted);
}

.crm-reminder-card-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.crm-reminder-card-assignees {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  min-width: 72px;
  max-width: 108px;
  flex-shrink: 0;
}

.crm-avatar-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.crm-avatar-stack .crm-avatar {
  margin-left: -0.35rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(48, 58, 42, 0.08);
}

.crm-avatar-stack .crm-avatar:first-child {
  margin-left: 0;
}

.crm-avatar-xs {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.crm-avatar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8efe4;
  color: var(--brand-primary);
  font-size: 0.62rem;
  font-weight: 700;
}

.crm-reminder-assignee-names {
  font-size: 0.64rem;
  line-height: 1.25;
  color: var(--zc-text-muted);
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crm-reminder-assignee-empty {
  font-size: 0.68rem;
  color: var(--zc-text-muted);
  font-style: italic;
}

.crm-followup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--zentic-text-muted, #64748b);
  cursor: pointer;
  user-select: none;
}

.crm-followup-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.crm-followup-field.is-disabled [data-followup-input] {
  opacity: 0.55;
}

@media (max-width: 767.98px) {
  .crm-detail-header .page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .crm-detail-header .page-header-actions .btn-zentic,
  .crm-detail-header .page-header-actions form {
    flex: 1 1 auto;
  }

  .crm-detail-header .page-header-actions form .btn-zentic {
    width: 100%;
    justify-content: center;
  }

  .crm-detail-tablist {
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.04);
    padding: 0.25rem;
    gap: 0.25rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .crm-detail-tab {
    border-radius: 0.6rem;
    flex: 0 0 auto;
  }

  .crm-detail-panel .row {
    --bs-gutter-x: 0.75rem;
  }

  .crm-contact-add-form,
  .crm-activity-form .row {
    display: flex;
    flex-direction: column;
  }

  .crm-contact-add-form [class*="col-"],
  .crm-activity-form [class*="col-"] {
    width: 100%;
    max-width: 100%;
  }

  .crm-detail-tabs {
    overflow-x: visible;
  }
}

@media (min-width: 768px) {
  .crm-filter-toolbar {
    display: none !important;
  }

  .crm-filter-form.is-collapsed .crm-filter-advanced {
    display: grid !important;
  }
}

/* Shipments */
.crm-shipment-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(48, 58, 42, 0.08);
  color: #303a2a;
}

.crm-shipment-status.is-planned { background: rgba(59, 130, 160, 0.12); color: #2b6a84; }
.crm-shipment-status.is-loaded { background: rgba(208, 137, 58, 0.14); color: #9a5f1c; }
.crm-shipment-status.is-invoiced { background: rgba(107, 106, 168, 0.14); color: #4f4e8a; }
.crm-shipment-status.is-completed { background: rgba(47, 143, 78, 0.14); color: #1f652d; }
.crm-shipment-status.is-cancelled { background: rgba(180, 60, 60, 0.12); color: #8f2b2b; }

.crm-shipment-return-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(180, 60, 60, 0.12);
  color: #8f2b2b;
  line-height: 1.2;
}

.crm-shipment-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.crm-shipment-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  border: 1px solid transparent;
}

.crm-shipment-steps__item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
}

.crm-shipment-steps__item.is-green { background: rgba(47, 143, 78, 0.1); color: #1f652d; border-color: rgba(47, 143, 78, 0.18); }
.crm-shipment-steps__item.is-green i { background: #2f8f4e; }
.crm-shipment-steps__item.is-blue { background: rgba(59, 130, 160, 0.12); color: #2b6a84; border-color: rgba(59, 130, 160, 0.2); }
.crm-shipment-steps__item.is-blue i { background: #3b82a0; }
.crm-shipment-steps__item.is-teal { background: rgba(47, 143, 138, 0.12); color: #1f6f6b; border-color: rgba(47, 143, 138, 0.2); }
.crm-shipment-steps__item.is-teal i { background: #2f8f8a; }
.crm-shipment-steps__item.is-amber { background: rgba(208, 137, 58, 0.14); color: #9a5f1c; border-color: rgba(208, 137, 58, 0.22); }
.crm-shipment-steps__item.is-amber i { background: #d0893a; }
.crm-shipment-steps__item.is-slate { background: rgba(90, 107, 99, 0.12); color: #44534c; border-color: rgba(90, 107, 99, 0.18); }
.crm-shipment-steps__item.is-slate i { background: #5a6b63; }

.crm-shipment-panel {
  overflow: hidden;
  border: 1px solid transparent;
}

.crm-shipment-panel.is-green {
  border-color: rgba(47, 143, 78, 0.22);
  background: linear-gradient(180deg, #f4fbf6 0%, #fff 42%);
}
.crm-shipment-panel.is-blue {
  border-color: rgba(59, 130, 160, 0.22);
  background: linear-gradient(180deg, #f3f9fc 0%, #fff 42%);
}
.crm-shipment-panel.is-teal {
  border-color: rgba(47, 143, 138, 0.22);
  background: linear-gradient(180deg, #f2faf9 0%, #fff 42%);
}
.crm-shipment-panel.is-amber {
  border-color: rgba(208, 137, 58, 0.28);
  background: linear-gradient(180deg, #fff8f0 0%, #fff 42%);
}
.crm-shipment-panel.is-slate {
  border-color: rgba(90, 107, 99, 0.2);
  background: linear-gradient(180deg, #f6f7f6 0%, #fff 42%);
}

.crm-shipment-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom-color: transparent !important;
}

.crm-shipment-panel.is-green .crm-shipment-panel__head { background: rgba(47, 143, 78, 0.08); }
.crm-shipment-panel.is-blue .crm-shipment-panel__head { background: rgba(59, 130, 160, 0.1); }
.crm-shipment-panel.is-teal .crm-shipment-panel__head { background: rgba(47, 143, 138, 0.1); }
.crm-shipment-panel.is-amber .crm-shipment-panel__head { background: rgba(208, 137, 58, 0.12); }
.crm-shipment-panel.is-slate .crm-shipment-panel__head { background: rgba(90, 107, 99, 0.08); }

.crm-shipment-panel__hint {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--zc-text-muted);
}

.crm-shipment-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.crm-shipment-step-badge.is-green { background: #2f8f4e; }
.crm-shipment-step-badge.is-blue { background: #3b82a0; }
.crm-shipment-step-badge.is-teal { background: #2f8f8a; }
.crm-shipment-step-badge.is-amber { background: #d0893a; }
.crm-shipment-step-badge.is-slate { background: #5a6b63; }

.crm-shipment-arranged {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.crm-shipment-arranged__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 1.5px solid rgba(48, 58, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.crm-shipment-arranged__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.crm-shipment-arranged__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: #fff;
}

.crm-shipment-arranged__icon.is-customer { background: #3b82a0; }
.crm-shipment-arranged__icon.is-prime { background: #2f8f4e; }

.crm-shipment-arranged__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.crm-shipment-arranged__copy strong {
  font-size: 0.95rem;
  color: #303a2a;
}

.crm-shipment-arranged__copy small {
  color: var(--zc-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.crm-shipment-arranged__option.is-customer.is-active,
.crm-shipment-arranged__option.is-customer:hover {
  border-color: rgba(59, 130, 160, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 160, 0.12);
  background: #f3f9fc;
}

.crm-shipment-arranged__option.is-prime.is-active,
.crm-shipment-arranged__option.is-prime:hover {
  border-color: rgba(47, 143, 78, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.12);
  background: #f4fbf6;
}

.crm-shipment-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(47, 143, 138, 0.06);
  border: 1px dashed rgba(47, 143, 138, 0.25);
}

.crm-shipment-price-box {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.crm-shipment-price-box.is-buy {
  background: rgba(180, 60, 60, 0.06);
  border-color: rgba(180, 60, 60, 0.16);
}

.crm-shipment-price-box.is-sell {
  background: rgba(47, 143, 78, 0.08);
  border-color: rgba(47, 143, 78, 0.18);
}

.crm-shipment-price-box.is-margin {
  background: rgba(208, 137, 58, 0.1);
  border-color: rgba(208, 137, 58, 0.2);
}

.crm-shipment-price-box__label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.crm-shipment-price-box.is-buy .crm-shipment-price-box__label { color: #8f2b2b; }
.crm-shipment-price-box.is-sell .crm-shipment-price-box__label { color: #1f652d; }

.crm-shipment-meta {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 100%;
}

.crm-shipment-meta.is-blue {
  background: rgba(59, 130, 160, 0.08);
  border-color: rgba(59, 130, 160, 0.16);
}

.crm-shipment-meta.is-teal {
  background: rgba(47, 143, 138, 0.08);
  border-color: rgba(47, 143, 138, 0.16);
}

.crm-shipment-meta__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--zc-text-muted);
}

.crm-shipment-meta small {
  color: var(--zc-text-muted);
  font-size: 0.75rem;
}

.crm-shipment-money {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 650;
  font-size: 0.8rem;
}

.crm-shipment-money.is-buy {
  background: rgba(180, 60, 60, 0.08);
  color: #8f2b2b;
}

.crm-shipment-money.is-sell {
  background: rgba(47, 143, 78, 0.1);
  color: #1f652d;
}

.crm-shipment-row:hover td {
  background: rgba(47, 143, 78, 0.03);
}

.crm-shipment-setting-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.crm-shipment-setting-row .form-control-zentic {
  flex: 1;
  min-width: 0;
}

.crm-shipment-setting-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(48, 58, 42, 0.05);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .crm-shipment-dates {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .crm-shipment-arranged {
    grid-template-columns: 1fr;
  }
}

.crm-shipment-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.crm-shipment-wizard-nav__right {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.crm-shipment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.crm-shipment-tab {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.crm-shipment-tab__num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.crm-shipment-tab.is-green .crm-shipment-tab__num { background: #2f8f4e; }
.crm-shipment-tab.is-teal .crm-shipment-tab__num { background: #2f8f8a; }
.crm-shipment-tab.is-amber .crm-shipment-tab__num { background: #d0893a; }

.crm-shipment-tab__text {
  font-size: 0.82rem;
  font-weight: 650;
  color: #303a2a;
  line-height: 1.25;
}

.crm-shipment-tab.is-active.is-green {
  border-color: rgba(47, 143, 78, 0.4);
  background: #f4fbf6;
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.1);
}
.crm-shipment-tab.is-active.is-teal {
  border-color: rgba(47, 143, 138, 0.4);
  background: #f2faf9;
  box-shadow: 0 0 0 3px rgba(47, 143, 138, 0.1);
}
.crm-shipment-tab.is-active.is-amber {
  border-color: rgba(208, 137, 58, 0.45);
  background: #fff8f0;
  box-shadow: 0 0 0 3px rgba(208, 137, 58, 0.12);
}

.crm-shipment-pane[hidden] {
  display: none !important;
}

.crm-company-picker {
  position: relative;
}

.crm-company-picker__search {
  position: relative;
}

.crm-company-picker__search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zc-text-muted);
  pointer-events: none;
}

.crm-company-picker__search .form-control-zentic {
  padding-left: 2.2rem;
}

.crm-company-picker__search .form-control-zentic.is-invalid {
  border-color: #b43c3c;
  box-shadow: 0 0 0 3px rgba(180, 60, 60, 0.12);
}

.crm-company-picker__results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(22, 63, 31, 0.12);
  padding: 0.35rem;
}

.crm-company-picker__empty {
  padding: 0.85rem;
  text-align: center;
  color: var(--zc-text-muted);
  font-size: 0.84rem;
}

.crm-company-picker__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.crm-company-picker__item:hover {
  background: rgba(59, 130, 160, 0.08);
}

.crm-company-picker__item-flag {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f4;
  border: 1px solid rgba(48, 58, 42, 0.08);
  flex-shrink: 0;
  color: #5a6b63;
}

.crm-company-picker__item-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crm-company-picker__item-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.crm-company-picker__item-main strong {
  font-size: 0.9rem;
  color: #303a2a;
}

.crm-company-picker__item-main span {
  font-size: 0.75rem;
  color: var(--zc-text-muted);
}

.crm-company-picker__selected {
  margin-top: 0.75rem;
}

.crm-sample-picker .crm-company-picker__search {
  margin-bottom: 0.35rem;
}

.crm-sample-picker .crm-company-picker__selected,
.crm-sample-picker .crm-sample-guest {
  margin-top: 1.1rem;
}

.crm-sample-picker .crm-company-picker__card.is-guest {
  border-color: rgba(196, 122, 44, 0.28);
  background: linear-gradient(135deg, #fff8f0, #fff);
}

.crm-sample-promote {
  margin-top: 0.65rem;
}

.crm-sample-type-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  width: fit-content;
}

.crm-sample-type-badge.is-customer {
  background: rgba(31, 101, 45, 0.12);
  color: #1f652d;
}

.crm-sample-type-badge.is-lead {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.crm-company-picker__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 160, 0.25);
  background: linear-gradient(135deg, #f3f9fc, #fff);
}

.crm-company-picker__flag {
  width: 40px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(48, 58, 42, 0.1);
  flex-shrink: 0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-company-picker__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crm-company-picker__flag-fallback {
  color: #5a6b63;
}

.crm-company-picker__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.crm-company-picker__meta strong {
  font-size: 0.95rem;
  color: #303a2a;
}

.crm-company-picker__meta span {
  font-size: 0.78rem;
  color: var(--zc-text-muted);
}

@media (max-width: 767.98px) {
  .crm-shipment-tabs {
    grid-template-columns: 1fr;
  }
}

.crm-shipment-form.is-compact .crm-shipment-tabs {
  gap: 0.4rem;
}

.crm-shipment-form.is-compact .crm-shipment-tab {
  border-color: rgba(48, 58, 42, 0.1);
  background: #fff;
  box-shadow: none;
}

.crm-shipment-form.is-compact .crm-shipment-tab__num {
  background: #5a6b63;
}

.crm-shipment-form.is-compact .crm-shipment-tab.is-active {
  border-color: rgba(31, 101, 45, 0.35);
  background: #f7f9f5;
  box-shadow: 0 0 0 2px rgba(31, 101, 45, 0.08);
}

.crm-shipment-form.is-compact .crm-shipment-tab.is-active .crm-shipment-tab__num {
  background: var(--brand-primary);
}

.crm-shipment-arranged.is-slim {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__option {
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(48, 58, 42, 0.12);
  background: #fff;
  box-shadow: none;
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__option i {
  font-size: 0.95rem;
  color: #5a6b63;
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.2;
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__text strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #303a2a;
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__text small {
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--zc-text-muted);
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__option span {
  font-size: 0.84rem;
  font-weight: 650;
  color: #303a2a;
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__option.is-active,
.crm-shipment-arranged.is-slim .crm-shipment-arranged__option:hover,
.crm-shipment-arranged.is-slim .crm-shipment-arranged__option.is-prime.is-active,
.crm-shipment-arranged.is-slim .crm-shipment-arranged__option.is-prime:hover,
.crm-shipment-arranged.is-slim .crm-shipment-arranged__option.is-customer.is-active,
.crm-shipment-arranged.is-slim .crm-shipment-arranged__option.is-customer:hover {
  border-color: rgba(31, 101, 45, 0.4);
  background: #f7fbf8;
  box-shadow: 0 0 0 2px rgba(31, 101, 45, 0.08);
}

.crm-shipment-arranged.is-slim .crm-shipment-arranged__option.is-active i {
  color: var(--brand-primary);
}

.crm-shipment-form.is-compact .crm-shipment-dates {
  background: rgba(48, 58, 42, 0.03);
  border-color: rgba(48, 58, 42, 0.12);
}

.crm-shipment-form.is-compact .crm-shipment-price-box.is-buy,
.crm-shipment-form.is-compact .crm-shipment-price-box.is-sell,
.crm-shipment-form.is-compact .crm-shipment-price-box.is-margin {
  background: #fff;
  border-color: rgba(48, 58, 42, 0.12);
}

.crm-shipment-form.is-compact .crm-shipment-price-box.is-buy .crm-shipment-price-box__label,
.crm-shipment-form.is-compact .crm-shipment-price-box.is-sell .crm-shipment-price-box__label {
  color: #5a6b63;
}

.crm-money-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 0.5rem;
  align-items: center;
}

.crm-money-row [data-money] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-align: right;
}

@media (max-width: 575.98px) {
  .crm-shipment-arranged.is-slim {
    grid-template-columns: 1fr;
  }
}

/* Shipment list: customer + status */
.crm-shipment-customer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.crm-shipment-customer__text {
  min-width: 0;
}

.crm-shipment-customer__text a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.crm-shipment-dest__country {
  margin-top: 0.2rem;
}

.crm-shipment-status-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.28rem 1.6rem 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6b63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 12px;
  max-width: 140px;
  transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

.crm-shipment-status-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 101, 45, 0.12);
}

.crm-shipment-status-select:disabled {
  opacity: 0.65;
  cursor: wait;
}

.crm-shipment-status-select.is-planned {
  background-color: rgba(59, 130, 160, 0.12);
  color: #2b6a84;
  border-color: rgba(59, 130, 160, 0.18);
}

.crm-shipment-status-select.is-loaded {
  background-color: rgba(208, 137, 58, 0.14);
  color: #9a5f1c;
  border-color: rgba(208, 137, 58, 0.2);
}

.crm-shipment-status-select.is-invoiced {
  background-color: rgba(107, 106, 168, 0.14);
  color: #4f4e8a;
  border-color: rgba(107, 106, 168, 0.2);
}

.crm-shipment-status-select.is-completed {
  background-color: rgba(47, 143, 78, 0.14);
  color: #1f652d;
  border-color: rgba(47, 143, 78, 0.2);
}

.crm-shipment-status-select.is-cancelled {
  background-color: rgba(180, 60, 60, 0.12);
  color: #8f2b2b;
  border-color: rgba(180, 60, 60, 0.18);
}

/* Shipment detail show */
.crm-ship-show {
  display: grid;
  gap: 1rem;
}

.crm-ship-show__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  flex-wrap: wrap;
}

.crm-ship-show__hero-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1;
}

.crm-ship-show__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(47, 143, 138, 0.12);
  color: #1f6f6b;
  font-size: 1.25rem;
}

.crm-ship-show__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zc-text-muted);
  margin-bottom: 0.15rem;
}

.crm-ship-show__company {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--brand-ink);
  text-decoration: none;
  line-height: 1.25;
}

.crm-ship-show__company:hover {
  color: var(--brand-primary);
}

.crm-ship-show__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
}

.crm-ship-show__dest {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--zc-text-muted);
}

.crm-ship-show__hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  text-align: right;
}

.crm-ship-show__carrier {
  display: grid;
  gap: 0.1rem;
}

.crm-ship-show__carrier strong {
  font-size: 0.9rem;
  color: var(--brand-ink);
}

.crm-ship-show__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.crm-ship-show__field {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.08);
  background: #fafbf9;
  min-width: 0;
}

.crm-ship-show__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--zc-text-muted);
}

.crm-ship-show__field strong {
  font-size: 0.92rem;
  color: var(--brand-ink);
  line-height: 1.3;
  word-break: break-word;
}

.crm-ship-show__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--zc-text-muted);
}

.crm-ship-show__notes {
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--brand-ink);
}

.crm-ship-show__price {
  display: grid;
  gap: 0.45rem;
}

.crm-ship-show__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.08);
  background: #fafbf9;
}

.crm-ship-show__price-row span {
  font-size: 0.8rem;
  color: var(--zc-text-muted);
  font-weight: 600;
}

.crm-ship-show__price-row strong {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.crm-ship-show__price-row.is-margin {
  background: #f7f9f5;
  border-color: rgba(31, 101, 45, 0.12);
}

.crm-ship-show__price-row .is-positive { color: #1f652d; }
.crm-ship-show__price-row .is-negative { color: #8f2b2b; }

.crm-ship-show__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.crm-ship-show__timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: rgba(48, 58, 42, 0.1);
}

.crm-ship-show__timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.crm-ship-show__timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.25rem;
  flex-shrink: 0;
  background: #fff;
  border: 2px solid #5a6b63;
  z-index: 1;
}

.crm-ship-show__timeline strong {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

@media (max-width: 767.98px) {
  .crm-ship-show__grid {
    grid-template-columns: 1fr;
  }

  .crm-ship-show__hero-side {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
}

a.reports-country-row {
  color: inherit;
  text-decoration: none;
}

a.reports-country-row:hover {
  background: rgba(47, 143, 138, 0.06);
  color: inherit;
}

/* Dashboard quick actions FAB */
.crm-quick-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.crm-quick-actions__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  background: linear-gradient(135deg, #1f652d 0%, #2f8f4e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 12px 28px rgba(31, 101, 45, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crm-quick-actions__fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(31, 101, 45, 0.34);
  color: #fff;
}

.crm-quick-actions__fab-close {
  display: none;
}

.crm-quick-actions.is-open .crm-quick-actions__fab-icon {
  display: none;
}

.crm-quick-actions.is-open .crm-quick-actions__fab-close {
  display: inline-block;
}

.crm-quick-actions__panel {
  width: min(320px, calc(100vw - 2rem));
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 0.35rem;
  animation: crmQuickIn 0.22s ease;
}

@keyframes crmQuickIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.crm-quick-actions__title {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zc-text-muted);
  padding: 0.25rem 0.45rem 0.45rem;
}

.crm-quick-actions__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.55rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s ease;
}

.crm-quick-actions__item:hover {
  background: #f5f8f4;
  color: inherit;
}

.crm-quick-actions__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.crm-quick-actions__icon.is-lead { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.crm-quick-actions__icon.is-customer { background: rgba(31, 101, 45, 0.12); color: #1f652d; }
.crm-quick-actions__icon.is-ship { background: rgba(47, 143, 138, 0.14); color: #1f6f6b; }
.crm-quick-actions__icon.is-cal { background: rgba(208, 137, 58, 0.14); color: #9a5f1c; }
.crm-quick-actions__icon.is-note { background: rgba(91, 107, 154, 0.14); color: #44527a; }
.crm-quick-actions__icon.is-report { background: rgba(107, 106, 168, 0.14); color: #4f4e8a; }
.crm-quick-actions__icon.is-list { background: rgba(48, 58, 42, 0.08); color: #44534c; }
.crm-quick-actions__icon.is-sample { background: rgba(208, 137, 58, 0.14); color: #9a5f1c; }

.crm-quick-actions__copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.crm-quick-actions__copy strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.25;
}

.crm-quick-actions__copy small {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  line-height: 1.25;
}

@media (max-width: 575.98px) {
  .crm-quick-actions {
    right: 0.85rem;
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }

  .crm-quick-actions__fab-label {
    display: none;
  }

  .crm-quick-actions__fab {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}

/* Dashboard calendar widget */
.crm-dash-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crm-dash-cal-card {
  overflow: visible;
  border: 1px solid rgba(31, 101, 45, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 246, 0.98));
  box-shadow: 0 12px 28px rgba(48, 58, 42, 0.06);
}

.crm-dash-cal-header {
  align-items: flex-start;
  gap: 0.75rem;
}

.crm-dash-cal-sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: rgba(48, 58, 42, 0.58);
}

.crm-dash-cal-body {
  padding-top: 0.35rem;
}

.crm-calendar-day.is-creating {
  position: relative;
  z-index: 2;
  animation: crmCalCreatePulse 0.9s ease;
  background: rgba(31, 101, 45, 0.18) !important;
  box-shadow:
    0 0 0 2px rgba(31, 101, 45, 0.55),
    0 0 0 8px rgba(31, 101, 45, 0.16),
    0 10px 22px rgba(31, 101, 45, 0.2) !important;
}

.crm-calendar-day.is-creating::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(31, 101, 45, 0.45);
  animation: crmCalCreateRing 0.9s ease;
  pointer-events: none;
}

@keyframes crmCalCreatePulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes crmCalCreateRing {
  0% { opacity: 0.95; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.28); }
}

.crm-cal.is-widget .crm-cal-day-head-actions {
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Dashboard quick notes */
.crm-quick-notes-panel .zentic-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 22rem;
}

.crm-quick-notes-picker {
  position: relative;
}

.crm-quick-notes-compose {
  display: grid;
  gap: 0.55rem;
  border: 1px dashed rgba(31, 101, 45, 0.28);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(31, 101, 45, 0.03);
}

.crm-quick-notes-compose .btn-zentic {
  justify-self: start;
}

.crm-quick-notes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1;
  min-height: 10rem;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: rgba(48, 58, 42, 0.035);
  color: rgba(48, 58, 42, 0.62);
  text-align: center;
  font-size: 0.9rem;
}

.crm-quick-notes-empty > i {
  font-size: 1.6rem;
  color: var(--brand-primary, #1f652d);
  opacity: 0.8;
}

.crm-quick-notes-feed {
  display: grid;
  gap: 0.65rem;
  max-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}

.crm-quick-note-item__meta {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.crm-quick-note-item__company {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 0.1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-primary, #1f652d);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-quick-note-item__company:hover {
  text-decoration: underline;
}

.crm-quick-note-item {
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 244, 0.9));
}

.crm-quick-note-item__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.crm-quick-note-item__body {
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.88rem;
  color: var(--brand-ink, #303a2a);
}

.crm-quick-notes-none {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(48, 58, 42, 0.04);
  color: rgba(48, 58, 42, 0.55);
  font-size: 0.88rem;
  font-style: italic;
}

.crm-quick-notes-none.is-error {
  color: #b91c1c;
  font-style: normal;
  background: rgba(185, 28, 28, 0.06);
}

.crm-quick-notes-status {
  margin-top: auto;
}

/* Company notes */
.crm-note-feed {
  display: grid;
  gap: 0.75rem;
}

.crm-note-card {
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 244, 0.9));
}

.crm-note-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.crm-note-card__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.crm-note-card__body {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.92rem;
}

.crm-note-compose {
  border: 1px dashed rgba(31, 101, 45, 0.28);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(31, 101, 45, 0.03);
}

/* Activity cards + nested notes */
.crm-activity-feed {
  display: grid;
  gap: 1rem;
}

.crm-activity-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr;
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
  box-shadow: 0 10px 28px rgba(48, 58, 42, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.crm-activity-card.is-highlight {
  border-color: rgba(91, 124, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 124, 74, 0.16), 0 12px 30px rgba(48, 58, 42, 0.08);
}

.crm-activity-card__accent {
  background: linear-gradient(180deg, #6f8f5f 0%, #4f6b44 100%);
}

.crm-activity-card.is-call .crm-activity-card__accent {
  background: linear-gradient(180deg, #5b8def 0%, #3b6fd4 100%);
}

.crm-activity-card.is-meeting .crm-activity-card__accent {
  background: linear-gradient(180deg, #8b6fd4 0%, #6a4fb8 100%);
}

.crm-activity-card.is-email .crm-activity-card__accent {
  background: linear-gradient(180deg, #3aa0b5 0%, #2a7f90 100%);
}

.crm-activity-card.is-visit .crm-activity-card__accent {
  background: linear-gradient(180deg, #d0893a 0%, #b06a22 100%);
}

.crm-activity-card.is-planned .crm-activity-card__accent {
  background: linear-gradient(180deg, #e0a04a 0%, #c2812a 100%);
}

.crm-activity-card.is-cancelled-plan .crm-activity-card__accent {
  background: linear-gradient(180deg, #7a8a82 0%, #5a6b63 100%);
}

.crm-activity-card.is-planned .crm-activity-card__icon {
  background: rgba(194, 129, 42, 0.14);
  color: #b06a22;
}

.crm-activity-card.is-cancelled-plan .crm-activity-card__icon {
  background: rgba(90, 107, 99, 0.14);
  color: #44534c;
}

.crm-activity-card.is-cancelled-plan {
  opacity: 0.92;
}

.crm-activity-card.is-cancelled {
  opacity: 0.88;
}

.crm-activity-card.is-cancelled .crm-activity-card__accent {
  background: linear-gradient(180deg, #7a8a82 0%, #5a6b63 100%);
}

.crm-activity-card.is-cancelled .crm-activity-card__icon {
  background: rgba(90, 107, 99, 0.14);
  color: #44534c;
}

.crm-activity-card.is-cancelled .crm-activity-card__summary {
  text-decoration: line-through;
  text-decoration-color: rgba(48, 58, 42, 0.35);
}

.crm-activity-card__body {
  padding: 1rem 1.05rem 1.05rem;
  min-width: 0;
}

.crm-activity-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.crm-activity-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.crm-activity-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(91, 124, 74, 0.1);
  color: #4f6b44;
  font-size: 1rem;
}

.crm-activity-card.is-call .crm-activity-card__icon {
  background: rgba(91, 141, 239, 0.12);
  color: #3b6fd4;
}

.crm-activity-card.is-meeting .crm-activity-card__icon {
  background: rgba(139, 111, 212, 0.12);
  color: #6a4fb8;
}

.crm-activity-card.is-email .crm-activity-card__icon {
  background: rgba(58, 160, 181, 0.12);
  color: #2a7f90;
}

.crm-activity-card.is-visit .crm-activity-card__icon {
  background: rgba(208, 137, 58, 0.14);
  color: #b06a22;
}

.crm-activity-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.crm-activity-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.crm-activity-card__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.35rem;
  font-size: 0.78rem;
  color: rgba(48, 58, 42, 0.62);
}

.crm-activity-card__when i {
  font-size: 0.78rem;
  opacity: 0.75;
}

.crm-activity-card__dot {
  opacity: 0.45;
}

.crm-activity-card__summary {
  margin: 0 0 0.55rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(32, 38, 28, 0.92);
  white-space: pre-wrap;
}

.crm-activity-card__summary.is-empty {
  color: var(--zc-text-muted);
  font-style: italic;
}

.crm-activity-card__facts {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.crm-activity-card__line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(48, 58, 42, 0.74);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgba(48, 58, 42, 0.035);
}

.crm-activity-card__line i {
  margin-top: 0.12rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.crm-activity-card__line.is-next {
  color: rgba(31, 101, 45, 0.95);
  font-weight: 600;
  background: rgba(76, 140, 74, 0.08);
}

.crm-activity-card__line.is-cancel-reason {
  color: #44534c;
  font-weight: 600;
  background: rgba(90, 107, 99, 0.1);
}

.crm-activity-notes {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.crm-activity-notes__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(48, 58, 42, 0.55);
  margin-bottom: 0.45rem;
}

.crm-activity-notes__list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.crm-activity-note {
  border-radius: 10px;
  background: rgba(48, 58, 42, 0.035);
  padding: 0.55rem 0.7rem;
}

.crm-activity-note__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.crm-activity-notes__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: start;
}

@media (max-width: 575.98px) {
  .crm-activity-notes__compose {
    grid-template-columns: 1fr;
  }

  .crm-company-title {
    font-size: 1.45rem;
  }
}




/* vadiSoft assistant */
.crm-assistant-nav-item {
  margin: 0.55rem 0.35rem 0.15rem;
  list-style: none;
}

.crm-assistant-nav {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(31, 101, 45, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(76, 175, 80, 0.18), transparent 55%),
    linear-gradient(135deg, #f4faf3 0%, #e7f3e4 100%);
  color: #1a4f26;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(31, 101, 45, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.crm-assistant-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: crmAssistantSheen 4.5s ease-in-out infinite;
  pointer-events: none;
}

.crm-assistant-nav:hover,
.crm-assistant-nav:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 101, 45, 0.34);
  box-shadow: 0 12px 24px rgba(31, 101, 45, 0.14);
  outline: none;
}

.crm-assistant-nav__orb {
  position: relative;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1f652d, #2f8a3f);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(31, 101, 45, 0.28);
  z-index: 1;
}

.crm-assistant-nav__ring {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(47, 138, 63, 0.45);
  animation: crmAssistantRing 2.2s ease-out infinite;
}

.crm-assistant-nav__copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.08rem;
  z-index: 1;
}

.crm-assistant-nav__title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  color: #164822;
}

.crm-ai-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 101, 45, 0.16), rgba(47, 138, 63, 0.22));
  color: #1f652d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  vertical-align: middle;
}

.crm-assistant-nav__sub {
  font-size: 0.68rem;
  color: #4d6a52;
  letter-spacing: 0.01em;
}

.crm-assistant-nav__chev {
  color: #1f652d;
  opacity: 0.7;
  z-index: 1;
  transition: transform 0.2s ease;
}

.crm-assistant-nav:hover .crm-assistant-nav__chev {
  transform: translateX(2px);
}

.zentic-sidebar.collapsed .crm-assistant-nav-item {
  margin: 0;
  display: flex;
  justify-content: center;
}

.zentic-sidebar.collapsed .crm-assistant-nav {
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.zentic-sidebar.collapsed .crm-assistant-nav__copy,
.zentic-sidebar.collapsed .crm-assistant-nav__chev {
  display: none;
}

.zentic-sidebar.collapsed .crm-assistant-nav__orb {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.95rem;
  box-shadow: none;
}

.zentic-sidebar.collapsed .crm-assistant-nav__ring {
  display: none;
}

.crm-assistant-modal[hidden] {
  display: none !important;
}

.crm-assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
}

@media (min-width: 576px) {
  .crm-assistant-modal {
    align-items: center;
    padding: 1.25rem;
  }
}

.crm-assistant-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 34, 24, 0.5);
  backdrop-filter: blur(3px);
  animation: crmAssistantFadeIn 0.22s ease;
}

.crm-assistant-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 14px 14px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(76, 175, 80, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f3f8f1 100%);
  border: 1px solid rgba(31, 101, 45, 0.14);
  box-shadow: 0 30px 60px rgba(22, 63, 31, 0.28);
  overflow: hidden;
  animation: crmAssistantSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 576px) {
  .crm-assistant-modal__dialog {
    border-radius: 22px;
  }
}

@keyframes crmAssistantFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes crmAssistantSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes crmAssistantSheen {
  0%, 55% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes crmAssistantRing {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes crmAssistantSpin {
  to { transform: rotate(360deg); }
}

@keyframes crmAssistantAvatarPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 101, 45, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(31, 101, 45, 0); }
}

@keyframes crmAssistantDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes crmAssistantItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crmAssistantLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.crm-assistant-modal__top,
.crm-assistant-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
  flex-shrink: 0;
}

.crm-assistant-modal__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}

.crm-assistant-modal__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crm-assistant-modal__avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1f652d, #2f8a3f);
  color: #fff;
  font-size: 1.2rem;
  animation: crmAssistantAvatarPulse 2.4s ease-in-out infinite;
}

.crm-assistant-modal__live {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39c35b;
  border: 2px solid #fff;
}

.crm-assistant-modal__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f652d;
}

.crm-assistant-modal__online {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(57, 195, 91, 0.14);
  color: #1f7a35;
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.crm-assistant-modal__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--brand-ink);
}

.crm-assistant-modal__body {
  padding: 1rem;
  overflow: auto;
  flex: 1;
}

.crm-assistant-loading,
.crm-assistant-error {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: var(--zc-text-muted);
}

.crm-assistant-loading__pulse {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 3px solid rgba(31, 101, 45, 0.15);
  border-top-color: #1f652d;
  animation: crmAssistantSpin 0.8s linear infinite;
}

.crm-assistant-speech {
  position: relative;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(76, 175, 80, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 248, 238, 0.95) 100%);
  border: 1px solid rgba(31, 101, 45, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.crm-assistant-speech::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
  opacity: 0;
}

.crm-assistant-speech.is-thinking::before,
.crm-assistant-speech.is-speaking::before {
  opacity: 1;
  animation: crmAssistantSpeechSheen 2.4s ease-in-out infinite;
}

.crm-assistant-speech.is-thinking {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(31, 101, 45, 0.06),
    0 0 24px rgba(47, 138, 63, 0.14);
}

.crm-assistant-speech.is-speaking {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(31, 101, 45, 0.08),
    0 0 18px rgba(47, 138, 63, 0.1);
}

@keyframes crmAssistantSpeechSheen {
  0%, 40% { transform: translateX(-120%); }
  70% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.crm-assistant-speech__typing {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 1.2rem;
}

.crm-assistant-speech__typing-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.crm-assistant-speech__typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f652d;
  animation: crmAssistantDot 1s ease-in-out infinite;
}

.crm-assistant-speech__typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.crm-assistant-speech__typing-dots i:nth-child(3) { animation-delay: 0.3s; }

.crm-assistant-speech__typing em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #4d6a52;
}

.crm-assistant-speech__lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
}

.crm-assistant-speech__line,
.crm-assistant-speech p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--brand-ink);
}

.crm-assistant-speech__line.is-streaming,
.crm-assistant-speech__line.is-complete {
  animation: crmAssistantLineIn 0.28s ease both;
}

.crm-assistant-speech__line.is-instant {
  animation: none;
}

.crm-assistant-speech__cursor {
  display: inline-block;
  width: 0.45rem;
  height: 1em;
  margin-left: 0.12rem;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: linear-gradient(180deg, #2f8a3f, #1f652d);
  box-shadow: 0 0 8px rgba(47, 138, 63, 0.45);
  animation: crmAssistantCursor 0.85s steps(1, end) infinite;
}

@keyframes crmAssistantCursor {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

.crm-assistant-section {
  border: 1px solid rgba(48, 58, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.crm-assistant-section + .crm-assistant-section {
  margin-top: 0.75rem;
}

.crm-assistant-section__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.crm-assistant-section__head h3 {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--brand-ink);
}

.crm-assistant-section__chev {
  color: #6a7a6e;
  transition: transform 0.2s ease;
}

.crm-assistant-section.is-open .crm-assistant-section__chev {
  transform: rotate(180deg);
}

.crm-assistant-section__body {
  padding: 0 0.8rem 0.85rem;
}

.crm-assistant-chip {
  display: inline-flex;
  min-width: 1.5rem;
  justify-content: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(31, 101, 45, 0.12);
  color: #1f652d;
  font-size: 0.72rem;
  font-weight: 750;
}

.crm-assistant-chip.is-soft {
  background: rgba(48, 58, 42, 0.08);
  color: #44534c;
}

.crm-assistant-chip.is-warn {
  background: rgba(180, 60, 60, 0.12);
  color: #b43c3c;
}

.crm-assistant-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.crm-assistant-stat {
  border: 1px solid rgba(48, 58, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem 0.35rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.crm-assistant-stat:hover,
.crm-assistant-stat.is-active {
  border-color: rgba(31, 101, 45, 0.35);
  background: #f2f8ef;
  transform: translateY(-1px);
}

.crm-assistant-stat strong {
  display: block;
  font-size: 0.98rem;
  color: var(--brand-ink);
}

.crm-assistant-stat span {
  font-size: 0.64rem;
  color: var(--zc-text-muted);
}

.crm-assistant-list {
  display: grid;
  gap: 0.4rem;
}

.crm-assistant-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  animation: crmAssistantItemIn 0.28s ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.crm-assistant-item:hover {
  border-color: rgba(31, 101, 45, 0.28);
  background: #f4f8f2;
}

.crm-assistant-item__badge {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 750;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(48, 58, 42, 0.08);
  color: #44534c;
}

.crm-assistant-item__main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}

.crm-assistant-item__main strong {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-assistant-item__main span {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-assistant-item__when {
  display: inline-block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1f652d;
}

.crm-assistant-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--zc-text-muted);
}

.crm-assistant-shortcuts {
  margin-bottom: 0.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 101, 45, 0.12);
  background: rgba(255, 255, 255, 0.88);
  animation: crmAssistantLineIn 0.28s ease both;
}

.crm-assistant-shortcuts__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f652d;
}

.crm-assistant-shortcuts__grid {
  display: grid;
  gap: 0.4rem;
}

.crm-assistant-shortcut {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.08);
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.crm-assistant-shortcut:hover {
  background: #f4f8f2;
  border-color: rgba(31, 101, 45, 0.24);
  color: inherit;
  transform: translateY(-1px);
}

.crm-assistant-shortcut__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.crm-assistant-shortcut__icon.is-customer {
  background: rgba(31, 101, 45, 0.12);
  color: #1f652d;
}

.crm-assistant-shortcut__icon.is-cal {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.crm-assistant-shortcut__icon.is-ship {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
}

.crm-assistant-shortcut__icon.is-sample {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}

.crm-assistant-shortcut__icon.is-note {
  background: rgba(91, 107, 154, 0.14);
  color: #44527a;
}

.crm-assistant-shortcut__icon.is-bell {
  background: rgba(194, 65, 12, 0.12);
  color: #c2410c;
}

.crm-assistant-shortcut__icon.is-ok {
  background: rgba(31, 101, 45, 0.14);
  color: #1f652d;
}

.crm-assistant-month {
  font-weight: 600;
  font-size: 0.78em;
  color: rgba(48, 58, 42, 0.55);
  text-transform: none;
  letter-spacing: 0;
}

.crm-assistant-finance-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.crm-assistant-finance-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.crm-assistant-finance-card:hover {
  transform: translateY(-1px);
  border-color: rgba(62, 122, 104, 0.28);
  box-shadow: 0 8px 16px rgba(20, 28, 18, 0.06);
}

.crm-assistant-finance-card strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: #303a2a;
  letter-spacing: -0.01em;
}

.crm-assistant-finance-card span {
  font-size: 0.7rem;
  font-weight: 650;
  color: rgba(48, 58, 42, 0.58);
}

.crm-assistant-finance-card.is-ok strong {
  color: #1f652d;
}

.crm-assistant-finance-card.is-warn strong {
  color: #b42318;
}

.crm-assistant-shortcut__copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.crm-assistant-shortcut__copy strong {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--brand-ink);
}

.crm-assistant-shortcut__copy small {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
}

body.crm-assistant-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .crm-assistant-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .crm-assistant-nav::before,
  .crm-assistant-nav__ring,
  .crm-assistant-modal__avatar,
  .crm-assistant-item,
  .crm-assistant-speech__line,
  .crm-assistant-speech__typing-dots i,
  .crm-assistant-speech__cursor,
  .crm-assistant-speech::before,
  .crm-assistant-loading__pulse {
    animation: none !important;
  }
}

/* Dashboard export map mini widget */
.crm-export-widget {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.crm-export-widget__sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--zc-text-muted);
}

.crm-export-widget__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.crm-export-widget__canvas {
  position: relative;
  flex: 1;
  min-height: 220px;
  max-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91, 124, 74, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f7f2 0%, #e8eee6 100%);
  border: 1px solid rgba(48, 58, 42, 0.08);
}

.crm-export-widget__canvas.is-loading::after {
  content: "Harita yükleniyor…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(48, 58, 42, 0.55);
}

.crm-export-widget__canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.crm-export-widget__canvas path {
  fill: #d7ddd3;
  stroke: #ffffff;
  stroke-width: 0.35;
}

.crm-export-widget__canvas path.is-selected {
  fill: #3f7a52;
  stroke: #2b5a3b;
  stroke-width: 0.7;
}

.crm-export-widget__error {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--zc-text-muted);
}

.crm-export-widget__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crm-export-widget__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(48, 58, 42, 0.05);
  border: 1px solid rgba(48, 58, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(32, 38, 28, 0.88);
  max-width: 100%;
}

.crm-export-widget__flag img {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.crm-export-widget__flag span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.crm-export-widget__more {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2f5f52;
  background: rgba(62, 122, 104, 0.12);
}

@media (max-width: 575.98px) {
  .crm-export-widget__canvas {
    min-height: 180px;
    max-height: 220px;
  }
}

/* Company timeline */
.crm-timeline {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  display: grid;
  gap: 0;
}

.crm-timeline > li {
  margin: 0;
  padding: 0;
}

.crm-timeline__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0.65rem 0.85rem 0.15rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

a.crm-timeline__item:hover {
  background: rgba(48, 58, 42, 0.035);
  text-decoration: none;
  color: inherit;
}

.crm-timeline__rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.crm-timeline__rail::before {
  content: "";
  position: absolute;
  top: 2.4rem;
  bottom: -0.85rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(48, 58, 42, 0.1);
}

.crm-timeline > li:last-child .crm-timeline__rail::before {
  display: none;
}

.crm-timeline__dot {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2eb;
  color: #4f6b44;
  font-size: 0.95rem;
  z-index: 1;
  box-shadow: 0 0 0 4px #fff;
}

.crm-timeline__item.is-purple .crm-timeline__dot {
  background: rgba(139, 111, 212, 0.14);
  color: #6a4fb8;
}

.crm-timeline__item.is-green .crm-timeline__dot {
  background: rgba(76, 140, 74, 0.14);
  color: #1f652d;
}

.crm-timeline__item.is-orange .crm-timeline__dot {
  background: rgba(194, 120, 40, 0.14);
  color: #b06a22;
}

.crm-timeline__item.is-cyan .crm-timeline__dot {
  background: rgba(58, 160, 181, 0.14);
  color: #2a7f90;
}

.crm-timeline__item.is-blue .crm-timeline__dot {
  background: rgba(91, 141, 239, 0.14);
  color: #3b6fd4;
}

.crm-timeline__item.is-slate .crm-timeline__dot {
  background: rgba(90, 107, 99, 0.16);
  color: #44534c;
}

.crm-timeline__content {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding-top: 0.15rem;
}

.crm-timeline__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.crm-timeline__title {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--brand-ink);
}

.crm-timeline__time {
  font-size: 0.75rem;
  color: rgba(48, 58, 42, 0.55);
  white-space: nowrap;
}

.crm-timeline__detail {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(32, 38, 28, 0.88);
}

.crm-timeline__meta {
  font-size: 0.76rem;
  color: rgba(48, 58, 42, 0.58);
}

@media (max-width: 575.98px) {
  .crm-timeline__item {
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem;
    padding-left: 0;
  }

  .crm-timeline__dot {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.85rem;
  }

  .crm-activity-card__when {
    font-size: 0.72rem;
  }
}


/* Mobile bottom nav */
.crm-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(48, 58, 42, 0.1);
  box-shadow: 0 -8px 24px rgba(48, 58, 42, 0.08);
  backdrop-filter: blur(10px);
}

.crm-mobile-nav__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(48, 58, 42, 0.62);
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.15rem;
  padding: 0.25rem 0.2rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.crm-mobile-nav__item i {
  font-size: 1.15rem;
  line-height: 1;
}

.crm-mobile-nav__item.is-active,
.crm-mobile-nav__item:active {
  color: #1f652d;
  background: rgba(31, 101, 45, 0.08);
}

.crm-mobile-nav__item:hover {
  color: #1f652d;
}

@media (min-width: 992px) {
  .crm-mobile-nav {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .crm-quick-actions {
    bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }

  body.crm-assistant-open .crm-mobile-nav {
    display: none;
  }

  .zentic-content {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Guided empty states */
.crm-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 124, 74, 0.08), transparent 60%),
    rgba(48, 58, 42, 0.02);
  border: 1px dashed rgba(48, 58, 42, 0.12);
}

.crm-empty__icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(91, 124, 74, 0.1);
  color: #4f6b44;
}

.crm-empty.is-blue .crm-empty__icon {
  background: rgba(91, 141, 239, 0.12);
  color: #3b6fd4;
}

.crm-empty.is-purple .crm-empty__icon {
  background: rgba(139, 111, 212, 0.12);
  color: #6a4fb8;
}

.crm-empty.is-orange .crm-empty__icon {
  background: rgba(208, 137, 58, 0.14);
  color: #b06a22;
}

.crm-empty.is-green .crm-empty__icon {
  background: rgba(76, 140, 74, 0.12);
  color: #1f652d;
}

.crm-empty.is-cyan .crm-empty__icon {
  background: rgba(58, 160, 181, 0.12);
  color: #2a7f90;
}

.crm-empty__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--brand-ink, #303a2a);
}

.crm-empty__desc {
  margin: 0 auto 1rem;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--zc-text-muted);
}

.crm-empty__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.crm-empty__step {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.1);
  color: rgba(32, 38, 28, 0.85);
  font-size: 0.75rem;
  font-weight: 650;
  text-decoration: none !important;
}

.crm-empty__step:hover {
  border-color: rgba(31, 101, 45, 0.35);
  color: #1f652d;
}

/* Finance balances */
.crm-finance-balances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.crm-finance-balance {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--zc-text, #303a2a);
  white-space: nowrap;
}
.crm-finance-balance.is-due {
  color: #b42318;
}
.crm-finance-balance.is-credit {
  color: #1f652d;
}

/* Finance form */
.finance-form-card {
  border-radius: 14px;
}
.crm-finance-option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcf8 0%, #f4f7ef 100%);
  cursor: pointer;
  margin: 0;
}
.crm-finance-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.crm-finance-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.crm-finance-option__body strong {
  font-size: 0.9rem;
  color: var(--brand-ink, #303a2a);
}
.crm-finance-option__body small {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--zc-text-muted);
}
.crm-finance-option:has(input:checked) {
  border-color: rgba(31, 101, 45, 0.35);
  box-shadow: 0 0 0 3px rgba(31, 101, 45, 0.08);
}

/* Finance amount input */
.crm-finance-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 0.5rem;
  align-items: center;
}
.crm-finance-amount__field {
  min-width: 0;
}
.crm-finance-amount [data-money] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-align: right;
}
.crm-finance-amount [data-money-symbol] {
  min-width: 2rem;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-ink, #303a2a);
}

/* Finance stats + list */
.crm-finance-stats {
  margin-bottom: 1rem;
}
.crm-finance-stats__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.crm-finance-stats__currency {
  width: auto;
  min-width: 6.5rem;
  max-width: 7.5rem;
}
.crm-finance-statement-card .crm-dash-cal-sub {
  margin-top: 0.2rem;
}
.crm-finance-statement-form .btn-zentic {
  min-height: 2.5rem;
}
.crm-finance-stat {
  position: relative;
  overflow: hidden;
}
.crm-finance-stat__icon {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  opacity: 0.18;
  font-size: 1.35rem;
}
.crm-finance-stat.is-charge {
  background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
}
.crm-finance-stat.is-payment {
  background: linear-gradient(180deg, #f3faf5 0%, #fff 100%);
}
.crm-finance-stat.is-balance {
  background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
}
.crm-finance-stat.is-balance.is-due .stat-value {
  color: #b42318;
}
.crm-finance-stat.is-balance.is-credit .stat-value {
  color: #1f652d;
}
.crm-finance-balances {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  text-align: left;
}
.crm-finance-table th:nth-child(2),
.crm-finance-table td[data-label="Bakiye"] {
  text-align: left;
}
.crm-finance-balance-block {
  min-width: 0;
  text-align: left;
}
.crm-finance-balance-block.is-primary .crm-finance-balance {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.crm-finance-balance-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.crm-finance-side-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(48, 58, 42, 0.08);
  color: #5a6b63;
}
.crm-finance-side-badge.is-due {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}
.crm-finance-side-badge.is-credit {
  background: rgba(31, 101, 45, 0.12);
  color: #1f652d;
}
.crm-finance-balance-meta {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--zc-text-muted);
  margin-top: 0.15rem;
}
.crm-finance-balance-others {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.crm-finance-balance-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 650;
  background: rgba(48, 58, 42, 0.06);
  color: var(--zc-text-muted);
}
.crm-finance-balance-chip.is-due { color: #b42318; }
.crm-finance-balance-chip.is-credit { color: #1f652d; }
.crm-finance-last {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.crm-finance-last-age {
  font-size: 0.72rem;
  color: var(--zc-text-muted);
}
.crm-finance-last-age.is-warn,
.crm-finance-last.is-stale .crm-finance-last-age {
  color: #9a5f1c;
  font-weight: 650;
}
.crm-finance-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  align-items: center;
}
.crm-finance-sort {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.crm-finance-sort:hover,
.crm-finance-sort.is-active {
  color: #1f652d;
}
.crm-finance-count-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
  background: rgba(31, 101, 45, 0.1);
  color: #1f652d;
  white-space: nowrap;
}

.crm-table-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}
.crm-table-pager__meta {
  font-size: 0.84rem;
  color: var(--zc-text-muted);
  line-height: 1.4;
}
.crm-table-pager__meta strong {
  color: var(--brand-ink, #303a2a);
  font-weight: 750;
}
.crm-table-pager__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.crm-table-pager__pages {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.crm-table-pager__btn {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(48, 58, 42, 0.12);
  background: #fff;
  color: var(--brand-ink, #303a2a);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.crm-table-pager__btn:hover {
  border-color: rgba(31, 101, 45, 0.35);
  color: #1f652d;
  background: rgba(31, 101, 45, 0.06);
  transform: translateY(-1px);
}
.crm-table-pager__btn.is-active {
  background: #1f652d;
  border-color: #1f652d;
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 101, 45, 0.22);
}
.crm-table-pager__btn.is-active:hover {
  color: #fff;
  transform: none;
}
.crm-table-pager__btn.is-nav {
  min-width: auto;
  padding: 0 0.75rem;
}
.crm-table-pager__btn.is-disabled {
  opacity: 0.42;
  pointer-events: none;
  transform: none;
}
.crm-table-pager__ellipsis {
  min-width: 1.4rem;
  text-align: center;
  color: var(--zc-text-muted);
  font-weight: 700;
}
@media (max-width: 575.98px) {
  .crm-table-pager {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-table-pager__nav {
    justify-content: space-between;
  }
  .crm-table-pager__nav-text {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .crm-finance-table-wrap {
    overflow: visible !important;
  }

  .crm-finance-table thead {
    display: none;
  }

  .crm-finance-table,
  .crm-finance-table tbody,
  .crm-finance-table tr,
  .crm-finance-table td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .crm-finance-table {
    min-width: 0 !important;
  }

  .crm-finance-table tr.crm-finance-row {
    margin-bottom: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(48, 58, 42, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(48, 58, 42, 0.05);
  }

  .crm-finance-table td {
    border: 0 !important;
    padding: 0 !important;
  }

  .crm-finance-table td[data-label="Cari"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: none !important;
    padding-bottom: 0.7rem !important;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid rgba(48, 58, 42, 0.08) !important;
  }

  .crm-finance-table td[data-label="Cari"] .crm-user-cell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .crm-finance-table td[data-label="Cari"] .crm-user-cell-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .crm-finance-table td[data-label="Cari"] .crm-finance-meta-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .crm-finance-table td[data-label]::before {
    display: none;
  }

  .crm-finance-table td[data-label="Bakiye"],
  .crm-finance-table td[data-label="Son hareket"] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.15rem 0 !important;
  }

  .crm-finance-table td[data-label="Bakiye"]::before,
  .crm-finance-table td[data-label="Son hareket"]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--zc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .crm-finance-table td[data-label="Bakiye"] {
    margin-bottom: 0.55rem;
  }

  .crm-finance-table .crm-finance-balance {
    font-size: 1.05rem;
    white-space: normal;
  }

  .crm-finance-table .crm-finance-balance-main {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .crm-finance-table .crm-finance-balance-meta {
    white-space: normal;
    line-height: 1.35;
  }

  .crm-finance-table td[data-label="İşlem"] {
    margin-top: 0.75rem;
    padding-top: 0.7rem !important;
    border-top: 1px solid rgba(48, 58, 42, 0.08) !important;
  }

  .crm-finance-table td.text-end {
    text-align: left !important;
  }

  .crm-finance-table .crm-row-actions {
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}
.crm-finance-reports-chart {
  min-height: 260px;
}
.crm-finance-reports-donut {
  min-height: 220px;
}
.crm-finance-reports-hbar {
  min-height: 220px;
}
.crm-finance-reports-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.crm-finance-reports-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f7f8f5;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.crm-finance-reports-list__row:hover {
  background: #eef2ea;
}
.crm-finance-reports-list__name {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-cal-chooser-dialog {
  width: min(520px, 100%);
}
.crm-cal-chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.crm-cal-chooser-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.crm-cal-chooser-card:hover {
  border-color: rgba(62, 122, 104, 0.45);
  box-shadow: 0 8px 20px rgba(20, 28, 18, 0.08);
  transform: translateY(-1px);
}
.crm-cal-chooser-card strong {
  font-size: 0.95rem;
  color: #303a2a;
}
.crm-cal-chooser-card span:last-child {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(48, 58, 42, 0.65);
}
.crm-cal-chooser-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}
.crm-cal-chooser-card__icon.is-activity {
  background: rgba(31, 101, 45, 0.12);
  color: #1f652d;
}
.crm-cal-chooser-card__icon.is-note {
  background: rgba(91, 107, 154, 0.14);
  color: #44527a;
}
.crm-day-notes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.crm-day-notes-day {
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faf6 0%, #fff 42%);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(48, 58, 42, 0.04);
}
.crm-day-notes-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid rgba(48, 58, 42, 0.08);
}
.crm-day-notes-day__date {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #303a2a;
  letter-spacing: -0.01em;
}
.crm-day-notes-day__count {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(48, 58, 42, 0.58);
}
.crm-day-notes-day__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}
.crm-day-notes-item {
  border: 1px solid rgba(48, 58, 42, 0.1);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: #fff;
}
.crm-day-notes-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.crm-day-notes-item__date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #5b6b9a;
  margin-bottom: 0.15rem;
}
.crm-day-notes-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #303a2a;
}
.crm-day-notes-item__meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}
.crm-day-notes-item__body {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(48, 58, 42, 0.82);
}
@media (max-width: 575.98px) {
  .crm-cal-chooser-grid {
    grid-template-columns: 1fr;
  }
  .crm-day-notes-day__head {
    flex-wrap: wrap;
  }
}

.crm-day-notes-comments {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}
.crm-day-notes-comments__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.crm-day-notes-comments__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(48, 58, 42, 0.12);
  background: #f7f8f5;
  color: #303a2a;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.crm-day-notes-comments__toggle:hover,
.crm-day-notes-comments__toggle.is-open {
  background: #eef2ea;
  border-color: rgba(62, 122, 104, 0.35);
}
.crm-day-notes-comments__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #5b6b9a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
}
.crm-day-notes-comments__badge.is-empty {
  background: rgba(48, 58, 42, 0.18);
  color: rgba(48, 58, 42, 0.7);
}
.crm-day-notes-comments__chevron {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.crm-day-notes-comments__toggle.is-open .crm-day-notes-comments__chevron {
  transform: rotate(180deg);
}
.crm-day-notes-comments__panel {
  margin-top: 0.75rem;
}
.crm-day-notes-comments__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(48, 58, 42, 0.7);
  margin-bottom: 0.55rem;
}
.crm-day-notes-comments__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.crm-day-notes-comment {
  background: #f7f8f5;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.crm-day-notes-comment__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.crm-day-notes-comments__compose {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(91, 107, 154, 0.06);
  border: 1px solid rgba(91, 107, 154, 0.16);
}
.crm-day-notes-comments__compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 575.98px) {
  .crm-day-notes-comments__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-day-notes-comments__toggle,
  .crm-day-notes-comments__bar .btn-zentic {
    width: 100%;
    justify-content: center;
  }
}

.crm-digital-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.crm-digital-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--zc-border-color);
  background: var(--zc-card-bg);
  color: var(--zc-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}
.crm-digital-nav__item:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.crm-digital-nav__item.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.crm-digital-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.crm-digital-day {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--zc-border-color);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  margin: 0;
}
.crm-digital-day input {
  margin: 0;
}
.crm-digital-day:has(input:checked) {
  border-color: rgba(31, 101, 45, 0.35);
  background: rgba(31, 101, 45, 0.08);
  color: var(--brand-primary-dark);
}
.crm-chip.is-muted {
  background: rgba(90, 98, 88, 0.1);
  color: #6b7168;
}
.crm-dot.is-social { background: #6B4EA1; }
.crm-cal-item.is-social {
  border-color: rgba(107, 78, 161, 0.28);
  background: linear-gradient(135deg, rgba(107, 78, 161, 0.1), #fff 55%);
}
.crm-cal-item.is-social:hover {
  border-color: rgba(107, 78, 161, 0.45);
}
.crm-cal-item.is-social .crm-cal-item-icon {
  background: rgba(107, 78, 161, 0.14);
  color: #4d3478;
}
.crm-cal-type-badge.is-social {
  background: rgba(107, 78, 161, 0.14);
  color: #4d3478;
}
.crm-digital-agenda-title {
  font-size: 0.78rem;
  font-weight: 750;
  margin: 0 0 0.45rem;
  color: var(--zc-text-muted);
}
.crm-digital-agenda-block + .crm-digital-agenda-block {
  margin-top: 0.85rem;
}
.crm-digital-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.crm-digital-item-actions form {
  display: inline-flex;
}

.crm-modal-dialog.is-lg {
  width: min(720px, 100%);
}
.crm-digital-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 1199.98px) {
  .crm-digital-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .crm-digital-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.crm-digital-card {
  background: #fff;
  border: 1px solid var(--zc-border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 28, 18, 0.04);
}
.crm-digital-card.is-editing .crm-digital-card__view {
  display: none;
}
.crm-digital-card__edit {
  display: none;
}
.crm-digital-card.is-editing .crm-digital-card__edit {
  display: block;
}
.crm-digital-card__view,
.crm-digital-card__edit-body {
  padding: 1rem 1.05rem 0.85rem;
}
.crm-digital-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.crm-digital-card__titles {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.crm-digital-card__titles strong {
  font-size: 1rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-digital-card__titles span {
  color: var(--zc-text-muted);
  font-size: 0.78rem;
}
.crm-digital-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  background: var(--brand-primary);
}
.crm-digital-mark.is-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.crm-digital-mark.is-facebook { background: #1877F2; }
.crm-digital-mark.is-linkedin { background: #0A66C8; }
.crm-digital-mark.is-tiktok { background: #111; }
.crm-digital-mark.is-youtube { background: #E11D48; }
.crm-digital-mark.is-x { background: #111; }
.crm-digital-mark.is-site { background: #1F652D; }
.crm-digital-mark.is-shop { background: #8A5A18; }
.crm-digital-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.85rem;
}
.crm-digital-meta > div.is-full {
  grid-column: 1 / -1;
}
.crm-digital-meta dt {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--zc-text-muted);
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.crm-digital-meta dd {
  margin: 0;
  font-size: 0.86rem;
  word-break: break-word;
}
.crm-digital-meta dd .crm-chip {
  margin: 0 0.25rem 0.25rem 0;
}
.crm-digital-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1.05rem 1rem;
  border-top: 1px solid rgba(48, 58, 42, 0.08);
}
.crm-digital-toolbar {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.crm-digital-filter {
  border: 1px solid var(--zc-border-color);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 650;
}
.crm-digital-filter.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.crm-digital-drag {
  color: var(--zc-text-muted);
  cursor: grab;
  padding: 0.2rem;
}
.crm-digital-card.is-dragging {
  opacity: 0.55;
}
.crm-digital-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--zc-border-color);
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: var(--brand-primary-dark);
  flex-shrink: 0;
}
.crm-digital-secret,
.crm-digital-linkrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.crm-digital-linkrow__text,
.crm-digital-secret code {
  font-size: 0.82rem;
  word-break: break-word;
}
.crm-digital-channels {
  display: grid;
  gap: 0.7rem;
}
.crm-digital-channel {
  padding: 0.75rem;
  border: 1px solid var(--zc-border-color);
  border-radius: 12px;
  background: #f8f9f6;
}
.crm-digital-grid.is-brands {
  grid-template-columns: minmax(0, 1fr);
}
.crm-digital-card.is-brand {
  border: 1px solid rgba(31, 101, 45, 0.12);
  box-shadow: 0 10px 28px rgba(20, 28, 18, 0.06);
}
.crm-digital-card.is-brand .crm-digital-card__view {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}
.crm-digital-brand {
  padding: 1.05rem 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(31, 101, 45, 0.08), rgba(31, 101, 45, 0.02));
  border-right: 1px solid rgba(31, 101, 45, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.crm-digital-brand__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.crm-digital-brand__days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.crm-digital-brand__date {
  font-size: 0.75rem;
  color: var(--zc-text-muted);
}
.crm-digital-brand__note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--zc-text);
  line-height: 1.4;
}
.crm-digital-card__actions.is-inline {
  margin-top: auto;
  padding: 0.35rem 0 0;
  border-top: 0;
}
.crm-digital-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  align-content: start;
}
.crm-digital-plat {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.35rem 0.7rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(48, 58, 42, 0.1);
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 118px;
}
.crm-digital-plat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-primary);
}
.crm-digital-plat.is-instagram::before { background: linear-gradient(180deg, #f58529, #dd2a7b, #8134af); }
.crm-digital-plat.is-facebook::before { background: #1877F2; }
.crm-digital-plat.is-linkedin::before { background: #0A66C8; }
.crm-digital-plat.is-tiktok::before,
.crm-digital-plat.is-x::before { background: #111; }
.crm-digital-plat.is-youtube::before { background: #E11D48; }
.crm-digital-plat__copy {
  display: grid;
  min-width: 0;
  align-content: center;
}
.crm-digital-plat__copy strong {
  font-size: 0.88rem;
}
.crm-digital-plat__copy em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--zc-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-digital-plat__creds {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.28rem;
  margin: 0;
}
.crm-digital-plat__creds > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.crm-digital-plat__creds dt {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--zc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}
.crm-digital-plat__creds dd {
  margin: 0;
  font-size: 0.78rem;
  min-width: 0;
  text-align: right;
}
.crm-digital-agenda-layout .crm-cal.is-full .crm-calendar-day {
  min-height: 92px;
  text-align: left;
  padding: 8px 7px;
}
.crm-digital-agenda-layout .crm-calendar-day .day-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  margin-bottom: 4px;
}
.crm-digital-agenda-layout .crm-calendar-day.has-notes {
  background: linear-gradient(180deg, rgba(91, 107, 154, 0.2), rgba(91, 107, 154, 0.08));
  border-color: rgba(91, 107, 154, 0.55);
  box-shadow: inset 0 0 0 1px rgba(91, 107, 154, 0.18);
}
.crm-digital-agenda-layout .crm-calendar-day.has-notes .day-num {
  color: #33416a;
}
.crm-digital-agenda-layout .crm-calendar-day.has-social {
  background: linear-gradient(180deg, rgba(107, 78, 161, 0.12), #fff 70%);
  border-color: rgba(107, 78, 161, 0.28);
}
.crm-digital-agenda-layout .crm-calendar-day.has-notes.is-selected {
  background: linear-gradient(180deg, rgba(91, 107, 154, 0.28), rgba(31, 101, 45, 0.1)) !important;
  border-color: var(--brand-primary) !important;
}
.day-note-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #5B6B9A;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}
.day-note-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}
.day-note-title,
.day-note-more {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  color: #33416a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-note-more {
  color: rgba(51, 65, 106, 0.7);
}
@media (max-width: 991.98px) {
  .crm-digital-card.is-brand .crm-digital-card__view {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-digital-brand {
    border-right: 0;
    border-bottom: 1px solid rgba(31, 101, 45, 0.1);
  }
}
.crm-digital-mark.is-brand {
  background: #1F652D;
  font-size: 1rem;
}
.crm-digital-remind-banner {
  background: #fff;
  border: 1px solid rgba(31, 101, 45, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: 0 8px 20px rgba(20, 28, 18, 0.04);
}
.crm-digital-remind-banner__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.crm-digital-remind-banner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.crm-digital-remind-banner a {
  display: flex;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.crm-digital-remind-banner a span {
  color: var(--brand-primary-dark);
  font-weight: 700;
  min-width: 6.5rem;
}
.crm-digital-agenda-search {
  margin-bottom: 1rem;
}
.crm-digital-agenda-results {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
  max-height: 280px;
  overflow: auto;
}
.crm-digital-agenda-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--zc-text-muted);
}
.crm-digital-agenda-hit {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--zc-border-color);
  background: #fff;
  color: inherit;
  cursor: pointer;
}
.crm-digital-agenda-hit:hover {
  border-color: rgba(31, 101, 45, 0.35);
}
.crm-digital-agenda-hit__date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}
.crm-digital-agenda-hit strong {
  font-size: 0.88rem;
}
.crm-digital-agenda-hit__body {
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--zc-text);
}
.crm-digital-agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.1rem;
  align-items: start;
}
.crm-digital-agenda-layout .crm-cal-day-panel {
  margin-top: 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--zc-border-color);
  border-radius: 16px;
  background: #f7f8f5;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 7.5rem);
  overflow: auto;
}
.crm-digital-agenda-layout .crm-cal.is-full .crm-calendar-day {
  min-height: 92px;
}
.crm-digital-agenda-layout .crm-cal-item {
  align-items: flex-start;
}
.crm-cal-item-body {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--zc-text);
}
@media (max-width: 991.98px) {
  .crm-digital-agenda-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-digital-agenda-layout .crm-cal-day-panel {
    position: static;
    max-height: none;
  }
}
@media (max-width: 575.98px) {
  .crm-digital-meta {
    grid-template-columns: 1fr;
  }
}

.crm-proforma-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.crm-proforma-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--zc-border-color);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 33, 24, 0.05);
}
.crm-proforma-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.crm-proforma-card__no {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #eaf3e6;
  color: #1f652d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.crm-proforma-card__date {
  color: var(--zc-text-muted, #66715f);
  font-size: 0.82rem;
}
.crm-proforma-card__name {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zc-text);
}
.crm-proforma-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  color: var(--zc-text-muted, #66715f);
  font-size: 0.82rem;
}
.crm-proforma-card__meta i {
  margin-right: 0.2rem;
}
.crm-proforma-card__sum {
  margin: 1rem 0 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f7f8f5;
}
.crm-proforma-card__sum span {
  display: block;
  font-size: 0.75rem;
  color: var(--zc-text-muted, #66715f);
  margin-bottom: 0.15rem;
}
.crm-proforma-card__sum strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: #1f652d;
}
.crm-proforma-card__sum-meta {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--zc-text-muted, #66715f);
}
.crm-proforma-card__sent {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: #eaf3e6;
  color: #1f652d;
  font-size: 0.78rem;
  line-height: 1.4;
}
.crm-proforma-card__sent i {
  margin-right: 0.3rem;
}
.crm-proforma-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}
.page-header-actions .crm-proforma-export,
.crm-proforma-card__actions .crm-proforma-export {
  width: auto;
  min-width: 9.5rem;
  height: 2rem;
  padding: 0 2rem 0 0.75rem;
  font-size: 0.82rem;
  background-position: right 0.55rem center;
  background-size: 14px;
}
.crm-proforma-card__actions .btn-zentic.is-danger {
  color: #b42318;
}
.crm-proforma-items {
  display: grid;
  gap: 0.75rem;
}
.crm-proforma-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.85rem 0.9rem;
  border: 1px solid var(--zc-border-color);
  border-radius: 16px;
  background: #fbfcf9;
}
.crm-proforma-item__index {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf3e6;
  color: #1f652d;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 1.35rem;
}
.crm-proforma-item__grid {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1.6fr) 7.5rem 7.5rem 8rem 8.5rem;
  gap: 0.55rem 0.65rem;
  align-items: end;
}
.crm-proforma-item__grid label,
.crm-proforma-item__total {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  margin: 0;
}
.crm-proforma-item__grid label span,
.crm-proforma-item__total span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--zc-text-muted, #66715f);
}
.crm-proforma-item__grid .is-wide {
  grid-column: span 1;
}
.crm-proforma-item__total strong {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.65rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--zc-border-color);
  font-variant-numeric: tabular-nums;
}
.crm-proforma-item__remove {
  width: 2rem;
  height: 2rem;
  margin-top: 1.35rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b42318;
}
.crm-proforma-item__remove:hover {
  background: #fdecec;
}
@media (max-width: 1199.98px) {
  .crm-proforma-item__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crm-proforma-item__grid .is-wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 991.98px) {
  .crm-proforma-grid {
    grid-template-columns: 1fr;
  }
  .crm-proforma-totals {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .crm-proforma-item {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-proforma-item__index,
  .crm-proforma-item__remove {
    margin-top: 0;
  }
}
.crm-proforma-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.crm-proforma-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--zc-border-color);
  border-radius: 12px;
  background: #f7f8f5;
}
.crm-proforma-totals span {
  color: var(--zc-text-muted, #66715f);
  font-size: 0.82rem;
}
.crm-proforma-totals strong {
  font-variant-numeric: tabular-nums;
}
.crm-proforma-totals .is-grand {
  background: #eaf3e6;
  border-color: #cfe0c8;
  grid-column: 1 / -1;
}
.crm-proforma-terms {
  font-family: inherit;
  line-height: 1.55;
  min-height: 280px;
}
.crm-proforma-savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(48, 58, 42, 0.12);
  box-shadow: 0 -10px 28px rgba(26, 33, 24, 0.1);
  backdrop-filter: blur(12px);
}
.crm-proforma-savebar[hidden] {
  display: none !important;
}
.crm-proforma-savebar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
}
.crm-proforma-savebar__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #303a2a;
  font-weight: 650;
  font-size: 0.92rem;
}
.crm-proforma-savebar__copy i {
  color: #1f652d;
}
.crm-proforma-savebar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
body.has-proforma-savebar .zentic-content {
  padding-bottom: 6.5rem !important;
}
body.has-proforma-savebar .finance-form-page [data-proforma-primary-save] {
  display: none;
}
.crm-action-menu {
  position: relative;
  display: inline-block;
}
.crm-action-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.crm-action-menu > summary::-webkit-details-marker,
.crm-action-menu > summary::marker {
  display: none;
}
.crm-action-menu[open] > summary {
  background: #eaf3e6;
}
.crm-action-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  min-width: 220px;
  display: grid;
  gap: 0.15rem;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(48, 58, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(26, 33, 24, 0.12);
}
.crm-action-menu__list a,
.crm-action-menu__list button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #303a2a;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}
.crm-action-menu__list a:hover,
.crm-action-menu__list button:hover {
  background: #f3f6f1;
}
.crm-action-menu__list i {
  width: 1rem;
  color: #4f6b44;
}
@media (max-width: 991.98px) {
  .crm-proforma-savebar {
    bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
    padding-bottom: 0.7rem;
  }
  body.has-proforma-savebar .zentic-content {
    padding-bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  .crm-proforma-savebar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .crm-proforma-savebar__actions .btn-zentic {
    flex: 1 1 auto;
  }
}

.kalite-subnav {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.kalite-subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d7e0d2;
  background: #fff;
  color: #243024;
  text-decoration: none;
  font-weight: 600;
}
.kalite-subnav__link.is-active {
  background: #1f3d2b;
  border-color: #1f3d2b;
  color: #fff;
}
.kalite-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr auto;
  gap: 0.75rem;
  align-items: end;
}
.kalite-track-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.kalite-track-chip { text-decoration: none; }
.kalite-track-chip.is-on { outline: 2px solid currentColor; outline-offset: 1px; }
.kalite-track-form {
  display: grid;
  grid-template-columns: 10.5rem 8.5rem minmax(16rem, 1.5fr) minmax(10rem, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}
.kalite-track-form__submit { display: flex; }
.kalite-close-choice { display: grid; gap: 0.7rem; }
.kalite-close-choice__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.kalite-close-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #e4ebdf;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.kalite-close-option input { margin-top: 0.2rem; accent-color: #1f652d; }
.kalite-close-option strong { display: block; color: #1f3d2b; font-size: 0.92rem; }
.kalite-close-option small { display: block; margin-top: 0.2rem; color: #5c6b58; line-height: 1.4; }
.kalite-close-option:has(input:checked) {
  border-color: #1f652d;
  background: #f3faf4;
  box-shadow: inset 0 0 0 1px #1f652d;
}
.kalite-close-date { display: grid; gap: 0.35rem; max-width: 16rem; }
.kalite-close-date[hidden] { display: none; }
.kalite-track-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: #9a5b12;
  background: #fff8ef;
}
.kalite-filter-grid.is-wide {
  grid-template-columns: minmax(8rem, 1.3fr) repeat(4, minmax(7.5rem, 0.75fr)) auto;
}
.kalite-sheet > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  font-weight: 700;
}
.kalite-sheet > summary::-webkit-details-marker { display: none; }
.kalite-sheet > summary span {
  font-weight: 600;
  color: #5c6b58;
  font-size: 0.85rem;
}
.kalite-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}
.kalite-checks label,
.kalite-control-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.kalite-control-table { display: grid; gap: 0.55rem; }
.kalite-control-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.1fr) 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}
.kalite-control-row:last-child { grid-template-columns: minmax(8rem, 0.8fr) 1fr 1fr 1fr; }
.kalite-customer { position: relative; }
.kalite-customer__field { position: relative; }
.kalite-customer__field .icon-search {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6d7c68;
  pointer-events: none;
}
.kalite-customer__field input { padding-left: 2.2rem; }
.kalite-customer__menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% - 1.4rem);
  background: #fff;
  border: 1px solid #d7e0d2;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20, 32, 18, 0.12);
  max-height: 280px;
  overflow: auto;
}
.kalite-customer__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #eef2ea;
}
.kalite-customer__option em {
  font-style: normal;
  font-size: 0.72rem;
  background: #e7f0df;
  color: #245033;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.kalite-customer__option.is-create { color: #1f3d2b; font-weight: 700; }
.kalite-drop {
  position: relative;
  border: 1.5px dashed #8aa584;
  border-radius: 16px;
  background: #f7faf4;
  padding: 1rem;
  margin-bottom: 0.8rem;
  min-height: 9rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.kalite-drop:hover,
.kalite-drop.is-dragover {
  border-color: #1f652d;
  background: #f3f8ef;
  box-shadow: 0 14px 28px rgba(31, 101, 45, 0.12);
}
.kalite-drop__copy i { transition: transform 0.22s ease; }
.kalite-drop:hover .kalite-drop__copy i,
.kalite-drop.is-dragover .kalite-drop__copy i { transform: translateY(-4px); }
.kalite-drop > input[data-file-input] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.kalite-drop__copy { pointer-events: none; display: grid; gap: 0.15rem; }
.kalite-drop__copy i { font-size: 1.3rem; color: #1f3d2b; }
.kalite-drop__copy span { color: #5c6b58; font-size: 0.85rem; }
.kalite-drop__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.kalite-drop__progress {
  height: 6px;
  background: #e3ebdf;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.7rem;
}
.kalite-drop__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #1f3d2b;
}
.kalite-drop__error { color: #9a3412; margin: 0.45rem 0 0; }
.kalite-gallery__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.kalite-gallery__pending {
  padding: 1rem;
  border-radius: 12px;
  background: #f6f8f4;
  color: #5c6b58;
}
.kalite-badge-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.kalite-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e7f0df;
  color: #245033;
  font-size: 0.72rem;
  font-weight: 700;
}
.kalite-report-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}
.kalite-report-hero__meta, .kalite-report-hero__visual { padding: 1.15rem 1.25rem 1.3rem; }
.kalite-report-hero__visual {
  background: linear-gradient(180deg, #f4f8f1 0%, #fff 70%);
  border-left: 1px solid #e4ebdf;
}
.kalite-report-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d7c68;
  font-weight: 700;
}
.kalite-profile-input { font-size: 1.35rem; font-weight: 700; }
.kalite-profile-link { display: inline-block; margin-top: 0.45rem; font-weight: 600; }
.kalite-report-placeholder {
  min-height: 220px;
  border: 1.5px dashed #c5d4be;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #5c6b58;
  padding: 1rem;
  background: #fff;
}
.kalite-report-caption { display: grid; gap: 0.35rem; margin: 0.7rem 0 0.9rem; }
.kalite-report-caption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kalite-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}
.kalite-gallery-empty { grid-column: 1 / -1; }
.kalite-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #e4ebdf;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 40, 22, 0.04);
}
.kalite-thumb__open {
  border: 0;
  padding: 0;
  background: #eef3ea;
  width: 100%;
  height: 148px;
}
.kalite-thumb__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kalite-thumb__body { display: grid; gap: 0.35rem; padding: 0.75rem; }
.kalite-thumb__body strong {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kalite-thumb__body small, .kalite-file small, .kalite-report-caption small { color: #6d7c68; }
.kalite-thumb__tools {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  display: flex;
  gap: 0.3rem;
}
.kalite-thumb__tools button {
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #1d4f73;
  box-shadow: 0 4px 12px rgba(24, 40, 22, 0.12);
}
.kalite-thumb__tools button:disabled { opacity: 0.45; }
.kalite-report-frame { position: relative; }
.kalite-report-frame .kalite-thumb__tools {
  top: auto;
  bottom: 0.65rem;
  left: 0.65rem;
}
.kalite-thumb__remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #9a3412;
}
.kalite-files { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.kalite-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid #e4ebdf;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kalite-file:hover {
  border-color: rgba(31, 101, 45, 0.28);
  box-shadow: 0 12px 24px rgba(31, 101, 45, 0.08);
}
.kalite-file__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef5e8;
  color: #1f652d;
}
.kalite-file__main { min-width: 0; display: grid; gap: 0.25rem; }
.kalite-file__main a {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kalite-file__remove {
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #fff4ef;
  color: #9a3412;
}
.kalite-caption { min-height: 2.2rem; }
.kalite-caption.is-saving { outline: 2px solid #c5d4be; }
.kalite-caption-text { margin: 0; color: #243024; }
.kalite-report-preview {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(24, 40, 22, 0.08);
}
.kalite-report-preview img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #f7faf4;
  transition: transform 0.45s ease;
}
.kalite-report-preview:hover img { transform: scale(1.045); }
.kalite-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(16, 24, 14, 0.82);
  display: grid;
  place-items: center;
  padding: 4.2rem 4.5rem 1.5rem;
}
.kalite-lightbox[hidden] { display: none; }
.kalite-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1100px, 100%);
  max-width: 100%;
  min-height: 0;
}
.kalite-lightbox__viewport {
  width: min(1100px, 92vw);
  height: min(78vh, 920px);
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: zoom-in;
  border-radius: 12px;
}
.kalite-lightbox.is-zoomed .kalite-lightbox__viewport { cursor: grab; }
.kalite-lightbox.is-panning .kalite-lightbox__viewport { cursor: grabbing; }
.kalite-lightbox__zoom {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.kalite-lightbox__zoom button {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1c2b18;
}
.kalite-lightbox__zoom button:disabled { opacity: 0.45; }
.kalite-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
@keyframes kaliteZoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.kalite-lightbox__meta {
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
  color: #fff;
}
.kalite-lightbox__meta strong {
  display: block;
  font-size: 0.95rem;
}
.kalite-lightbox__meta p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-wrap;
}
.kalite-lightbox__close,
.kalite-lightbox__nav {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1c2b18;
}
.kalite-lightbox__close { top: 1rem; right: 1rem; }
.kalite-lightbox__nav { top: 50%; transform: translateY(-50%); }
.kalite-lightbox__nav[hidden] { display: none; }
.kalite-lightbox__nav--prev { left: 1rem; }
.kalite-lightbox__nav--next { right: 1rem; }
@media (max-width: 767.98px) {
  .kalite-lightbox { padding: 3.6rem 0.75rem 1rem; }
  .kalite-lightbox__viewport { width: 100%; height: 68vh; }
  .kalite-lightbox img { max-height: 68vh; }
}
.kalite-stage-gate { max-width: 40rem; padding: 0.4rem 0.1rem 0.2rem; }
.kalite-stage-gate h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.kalite-stage-gate p { margin: 0 0 1rem; color: #5c6b58; }
@media (max-width: 991.98px) {
  .kalite-filter-grid, .kalite-control-row, .kalite-control-row:last-child, .kalite-report-hero__grid, .kalite-track-form, .kalite-close-choice__options { grid-template-columns: 1fr; }
  .kalite-report-hero__visual { border-left: 0; border-top: 1px solid #e4ebdf; }
  .kalite-drop { min-height: 11rem; }
  .kalite-drop__camera { display: inline-flex; }
}
@media (min-width: 992px) {
  .kalite-drop__camera { display: none; }
}
a.kalite-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0.15rem;
}
.kalite-note { display: grid; gap: 0.35rem; }
.kalite-caption-preview {
  margin: 0;
  color: #243024;
  font-size: 0.84rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kalite-note-btn {
  justify-self: start;
  border: 0;
  background: #eef5e8;
  color: #1f3d2b;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.kalite-caption-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 24, 14, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.kalite-caption-modal[hidden] { display: none; }
.kalite-caption-modal__card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 24px 60px rgba(16, 24, 14, 0.28);
  animation: kaliteZoomIn 0.22s ease;
}
.kalite-caption-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.kalite-caption-modal__head h3 { margin: 0; font-size: 1.05rem; }
.kalite-caption-modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f6f1;
}
.kalite-caption-modal__name { margin: 0.35rem 0 0.75rem; color: #5c6b58; font-size: 0.85rem; }
.kalite-caption-modal__text { white-space: pre-wrap; margin: 0; }
.kalite-caption-modal__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.85rem; }
.kalite-list-shot {
  width: 74px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eef3ea;
  box-shadow: 0 6px 16px rgba(24, 40, 22, 0.08);
  display: inline-grid;
  place-items: center;
  color: #6d7c68;
}
.kalite-list-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.kalite-list-shot:hover img { transform: scale(1.14); }
.kalite-list-shot.is-empty { box-shadow: none; border: 1px dashed #d5e0cf; }
.kalite-day-panel .kalite-day-scroll {
  max-height: 16.5rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.kalite-side-card > .zentic-card-body {
  max-height: 11.5rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.kalite-day-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #eef3ea;
  color: #1f652d;
  font-size: 0.72rem;
  font-weight: 750;
  vertical-align: 1px;
}
.kalite-day-list { display: grid; gap: 0.35rem; }
.kalite-day-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #e6ece3;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.kalite-day-item.is-note,
.kalite-day-item.is-reminder { grid-template-columns: auto minmax(0, 1fr) auto; }
.kalite-day-item__mark {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3ea;
  color: #1f652d;
  font-size: 0.9rem;
}
.kalite-day-item__body { display: grid; min-width: 0; gap: 0.05rem; }
.kalite-day-item__body strong,
.kalite-day-item__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kalite-day-item__body strong { font-size: 0.86rem; line-height: 1.25; }
.kalite-day-item__body small { color: #6d7c68; font-size: 0.75rem; }
.kalite-day-item__actions { display: flex; align-items: center; gap: 0.15rem; }
.kalite-day-item__actions form { margin: 0; }
.kalite-day-item.is-track .kalite-day-item__mark { background: #e7f1f6; color: #2f6f8f; }
.kalite-day-item.is-track.is-closed .kalite-day-item__mark { background: #e7f5ea; color: #1f652d; }
.kalite-day-item.is-due .kalite-day-item__mark { background: #fff4e8; color: #c2410c; }
.kalite-day-item.is-reminder .kalite-day-item__mark { background: #f3efe4; color: #8a764a; }
.kalite-day-item.is-note .kalite-day-item__mark { background: #eef1f8; color: #44527a; }
.kalite-day-item.is-done { opacity: 0.62; }
.kalite-day-item.is-done strong { text-decoration: line-through; }
.kalite-day-item:hover { border-color: #c9d7c4; background: #fbfcfb; }
.kalite-side-card .kalite-feed { gap: 0.35rem; }
.kalite-side-card .kalite-row { padding: 0.45rem 0.55rem; }
.kalite-upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.kalite-upcoming a { display: grid; text-decoration: none; }
.kalite-upcoming small { color: #6d7c68; }
.kalite-kind { display: flex; gap: 0.45rem; margin: 0.85rem 0 0.75rem; }
.kalite-kind label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  border: 1px solid #e4ebdf;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.kalite-kind label:has(input:checked) {
  background: #1f652d;
  border-color: #1f652d;
  color: #fff;
}
.kalite-kind input { accent-color: currentColor; }
.crm-action-menu__list a.is-current {
  background: #eaf3e6;
  color: #1f652d;
}
.kalite-doc { max-width: 920px; }
.kalite-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}
.kalite-workspace .kalite-doc,
.kalite-workspace .kalite-section-nav { max-width: none; }
.kalite-workspace__side {
  position: sticky;
  top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}
.kalite-complaint-reason {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 18rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--zc-text-muted);
  white-space: normal;
}
.kalite-form-marks { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.kalite-form-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
  background: #f1f3ef;
  color: #8b9486;
  font-size: 0.95rem;
  text-decoration: none;
}
.kalite-form-mark.is-done { background: #e7f6ea; color: #1f652d; }
.kalite-form-mark::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 0.22rem 0.45rem;
  border-radius: 7px;
  background: #1c2b18;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.kalite-form-mark:hover::after,
.kalite-form-mark:focus-visible::after { opacity: 1; }
.kalite-ncr-controls { display: grid; gap: 0.55rem; }
.kalite-ncr-control {
  display: grid;
  grid-template-columns: minmax(11rem, 1.15fr) minmax(9rem, 0.85fr) minmax(9rem, 0.85fr);
  gap: 0.65rem;
  align-items: end;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e4ebdf;
  border-radius: 12px;
  background: #fbfcfb;
}
.kalite-ncr-control.is-other { grid-template-columns: minmax(8rem, 0.8fr) minmax(8rem, 1fr) minmax(9rem, 0.85fr) minmax(9rem, 0.85fr); }
.kalite-ncr-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e4ebdf;
  border-radius: 10px;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
.kalite-ncr-check:has(input:checked) {
  border-color: #1f652d;
  background: #f3f8f2;
  color: #1f652d;
}
.kalite-ncr-check input { accent-color: #1f652d; }
.kalite-ncr-field { display: grid; gap: 0.28rem; margin: 0; }
.kalite-ncr-field > span { font-size: 0.75rem; font-weight: 650; color: #5c6658; }
.kalite-ncr-decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.kalite-ncr-decisions label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e4ebdf;
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}
.kalite-ncr-decisions label.is-wide { grid-column: 1 / -1; }
.kalite-ncr-decisions label:has(input:checked) {
  border-color: #1f652d;
  background: #f3f8f2;
  color: #1f652d;
}
.kalite-ncr-decisions input { accent-color: #1f652d; }
@media (max-width: 767.98px) {
  .kalite-ncr-control, .kalite-ncr-control.is-other, .kalite-ncr-decisions { grid-template-columns: 1fr; }
  .kalite-ncr-decisions label.is-wide { grid-column: auto; }
}
.kalite-row-remove {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 10px;
  background: #fde8e8;
  color: #b42318;
  display: inline-grid;
  place-items: center;
}
.kalite-row-remove:hover { background: #b42318; color: #fff; }
.kalite-preview {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid #d7c7a2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf1 0%, #f4efe4 100%);
}
.kalite-preview__paper {
  height: 5.4rem;
  border: 1px solid #1c2418;
  background: #fff;
  padding: 0.35rem 0.3rem 0.3rem;
  display: grid;
  align-content: start;
  gap: 0.28rem;
}
.kalite-preview__paper b { font-size: 0.55rem; letter-spacing: 0.02em; }
.kalite-preview__paper i { display: block; height: 2px; background: #d9d3c6; }
.kalite-preview__copy { display: grid; gap: 0.2rem; min-width: 0; }
.kalite-preview__copy small { color: #7a6844; font-weight: 700; letter-spacing: 0.02em; }
.kalite-preview__copy strong { color: #1c2418; }
.kalite-preview__copy span { color: #5c5346; font-size: 0.78rem; line-height: 1.35; }
.kalite-preview.is-later { border-style: dashed; }
.kalite-preview .btn-zentic { justify-self: start; margin-top: 0.25rem; }
.kalite-rail-gallery .zentic-card-body {
  max-height: calc(100vh - 8.5rem);
  overflow: auto;
}
.kalite-rail-customer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
}
.kalite-rail-customer .kalite-report-customer__meta {
  grid-column: 1 / -1;
  white-space: normal;
}
.kalite-rail__kicker {
  margin: 0 0 0.75rem;
  color: #6d7c68;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.kalite-rail .kalite-progress {
  position: static;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.kalite-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.kalite-rail__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.38rem 0.15rem;
  color: #5c6b58;
  font-weight: 650;
  cursor: pointer;
}
.kalite-rail__list [data-rail-mark] {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid #d5e0d0;
  background: #fff;
}
.kalite-rail__list li.is-partial { color: #303a2a; }
.kalite-rail__list li.is-partial [data-rail-mark] {
  background: #d7e8c8;
  border-color: #1f652d;
}
.kalite-rail__list li.is-done { color: #1f652d; }
.kalite-rail__list li.is-done [data-rail-mark] {
  background: #1f652d;
  border-color: #1f652d;
}
.crm-savebar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(34rem, calc(100vw - 2rem));
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  border: 1px solid rgba(48, 58, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(26, 33, 24, 0.16);
  transform: translateX(-50%);
}
.crm-savebar[hidden] { display: none !important; }
.crm-savebar__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #303a2a;
  font-weight: 650;
}
.crm-savebar__copy i { color: #6d7c68; }
body.has-crm-savebar .zentic-content { padding-bottom: 5.5rem; }
@media (max-width: 991.98px) {
  .kalite-workspace { grid-template-columns: 1fr; }
  .kalite-workspace__side { position: static; }
  .kalite-rail-gallery .zentic-card-body { max-height: none; }
  .crm-savebar { bottom: calc(4.7rem + env(safe-area-inset-bottom, 0px)); }
  body.has-crm-savebar .zentic-content { padding-bottom: 9rem; }
}
.kalite-section-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 920px;
  margin-bottom: 1rem;
}
.kalite-section-nav button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  border: 1px solid #e4ebdf;
  background: #fff;
  color: #303a2a;
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.kalite-section-nav button span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef5e8;
  color: #1f652d;
  font-size: 0.82rem;
}
.kalite-section-nav button.is-active {
  background: #f3f8f2;
  border-color: #1f652d;
  color: #1f652d;
}
.kalite-section-nav button.is-active span {
  background: #1f652d;
  color: #fff;
}
.kalite-block + .kalite-block {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e4ebdf;
}
.kalite-block h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.kalite-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.kalite-reason-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  min-width: 0;
  min-height: 2.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e4ebdf;
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}
.kalite-reason-grid label span { min-width: 0; }
.kalite-reason-grid input { flex: 0 0 auto; margin-top: 0.15rem; }
.kalite-reason-grid label:has(input:checked) {
  border-color: #1f652d;
  background: #f3f8f2;
}
.kalite-reason-grid input { accent-color: #1f652d; }
.kalite-progress {
  position: sticky;
  top: 0.75rem;
  z-index: 6;
  margin-bottom: 1.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e4ebdf;
  border-radius: 14px;
  background: #f7faf6;
}
.kalite-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.kalite-progress__top strong { color: #1f652d; }
.kalite-progress__top span { color: #5c6b58; font-size: 0.86rem; }
.kalite-progress__track {
  height: 0.45rem;
  border-radius: 999px;
  background: #e4ebdf;
  overflow: hidden;
}
.kalite-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1f652d;
}
.kalite-report-customer__meta {
  color: #4d5c49;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.kalite-form,
.kalite-form fieldset,
.kalite-form .zentic-card,
.kalite-form .zentic-card-body,
.kalite-form .row,
.kalite-ncr-controls,
.kalite-ncr-control,
.kalite-ncr-field,
.kalite-filter-form,
.kalite-filter-grid,
.kalite-filter-grid > .crm-filter-field {
  min-width: 0;
  max-width: 100%;
}
.kalite-ncr-control > *,
.kalite-filter-grid > * { min-width: 0; }
.kalite-form input[type="date"],
.kalite-report-hero input[type="date"],
.kalite-ncr-field input[type="date"],
.kalite-filter-form input[type="date"],
#kaliteNoteForm input[type="date"],
.kalite-period input[type="month"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.45rem 0.75rem;
  line-height: 1.4;
  color: #243024;
  background-color: #fff;
  overflow: hidden;
}
.kalite-form input[type="date"]::-webkit-date-and-time-value,
.kalite-report-hero input[type="date"]::-webkit-date-and-time-value,
.kalite-ncr-field input[type="date"]::-webkit-date-and-time-value,
.kalite-filter-form input[type="date"]::-webkit-date-and-time-value,
#kaliteNoteForm input[type="date"]::-webkit-date-and-time-value,
.kalite-period input[type="month"]::-webkit-date-and-time-value {
  display: block;
  min-height: 1.4em;
  line-height: 1.4em;
  text-align: left;
  margin: 0;
}
.kalite-form input[type="date"]::-webkit-datetime-edit,
.kalite-report-hero input[type="date"]::-webkit-datetime-edit,
.kalite-ncr-field input[type="date"]::-webkit-datetime-edit,
.kalite-filter-form input[type="date"]::-webkit-datetime-edit,
#kaliteNoteForm input[type="date"]::-webkit-datetime-edit,
.kalite-period input[type="month"]::-webkit-datetime-edit,
.kalite-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.kalite-report-hero input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.kalite-ncr-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.kalite-filter-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
#kaliteNoteForm input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.kalite-period input[type="month"]::-webkit-datetime-edit-fields-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 1.4em;
  line-height: 1.4em;
  padding: 0;
}
.kalite-chart-bar,
.kalite-chart-hbar,
.kalite-chart-donut {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.kalite-chart-bar { height: 220px; }
.kalite-chart-hbar { height: 220px; }
.kalite-chart-donut {
  height: auto;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem 1rem;
}
.kalite-donut-plot {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  flex: 0 0 auto;
}
.kalite-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.kalite-donut-legend li {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
  color: #243024;
  font-size: 0.8rem;
}
.kalite-donut-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
}
.kalite-donut-legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kalite-donut-legend b { font-weight: 750; color: #1f652d; }
.kalite-mini-label {
  margin: 0.85rem 0 0.35rem;
  color: #5c6b58;
  font-size: 0.75rem;
  font-weight: 750;
}
.kalite-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  max-height: 7.5rem;
  overflow: auto;
}
.kalite-mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.8rem;
}
.kalite-mini-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #243024;
}
.kalite-mini-list b { font-weight: 750; color: #1f652d; }
.kalite-late { border-color: #f0c9a0; background: #fff8f1; }
.kalite-late .card-title { color: #9a5410; }
.kalite-late .kalite-feed small { color: #9a5410; }
.kalite-period {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.kalite-period label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: #5c6b58;
  font-size: 0.78rem;
  font-weight: 700;
}
.kalite-period input[type="month"] {
  width: 11rem;
  max-width: 100%;
  min-width: 0;
}
.kalite-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
}
.kalite-stat__icon {
  grid-row: 1 / span 2;
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7f5ea;
  color: #1f652d;
  font-size: 1.05rem;
}
.kalite-stat span { color: #5c6b58; font-size: 0.78rem; font-weight: 700; }
.kalite-stat strong { font-size: 1.55rem; line-height: 1.1; color: #1f652d; }
.kalite-stat.is-open .kalite-stat__icon { background: #fff1e6; color: #c2410c; }
.kalite-stat.is-open strong { color: #c2410c; }
.kalite-stat.is-month .kalite-stat__icon { background: #f8f1e4; color: #8a764a; }
.kalite-stat.is-month strong { color: #8a764a; }
.kalite-stat.is-check .kalite-stat__icon { background: #e7f5ea; color: #1f652d; }
.kalite-stat.is-people .kalite-stat__icon { background: #e8f0f8; color: #3d6f9a; }
.kalite-stat.is-people strong { color: #3d6f9a; }
.kalite-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.kalite-feed a:not(.kalite-row), .kalite-feed li > span { display: grid; gap: 0.1rem; text-decoration: none; color: inherit; }
.kalite-feed small { color: #5c6b58; }
.kalite-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e4ebdf;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.kalite-row__mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef3ea;
  color: #1f652d;
}
.kalite-row__body { display: grid; gap: 0.08rem; min-width: 0; }
.kalite-row__body strong,
.kalite-row__body em,
.kalite-row__body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kalite-row__body em { font-style: normal; font-weight: 650; color: #243024; }
.kalite-row.is-complaint .kalite-row__mark,
.kalite-row.is-late .kalite-row__mark { background: #fff1e6; color: #c2410c; }
.kalite-row.is-report .kalite-row__mark { background: #e7f5ea; color: #1f652d; }
.kalite-row.is-due .kalite-row__mark { background: #fff4e8; color: #c2410c; }
.kalite-row.is-reminder .kalite-row__mark { background: #f3efe4; color: #8a764a; }
.kalite-row.is-track .kalite-row__mark { background: #e7f1f6; color: #2f6f8f; }
.kalite-row__badge {
  font-size: 0.72rem;
  font-weight: 750;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  background: #eef3ea;
  color: #1f652d;
}
.kalite-row__badge.is-open,
.kalite-row__badge.is-late,
.kalite-row__badge.is-due { background: #fff1e6; color: #c2410c; }
.kalite-row__badge.is-progress { background: #e8f0f8; color: #3d6f9a; }
.kalite-row__badge.is-closed,
.kalite-row__badge.is-lot { background: #e7f5ea; color: #1f652d; }
.kalite-row__badge.is-reminder { background: #f3efe4; color: #8a764a; }
.kalite-row__badge.is-track { background: #e7f1f6; color: #1d4e66; }
@media (max-width: 575.98px) {
  .kalite-row { grid-template-columns: auto minmax(0, 1fr); }
  .kalite-row__badge { grid-column: 2; justify-self: start; }
}
.vault-summary { margin-bottom: 1rem; }
.vault-summary__hint { color: #6d7b69; font-size: 0.82rem; }
.vault-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.vault-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e6ece3;
  border-radius: 14px;
  background: #fff;
}
.vault-stat strong { display: block; font-size: 1.35rem; line-height: 1.1; color: #1c2b1d; }
.vault-stat span { color: #667564; font-size: 0.78rem; font-weight: 650; }
.vault-stat__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef3fb;
  color: #3d6f9a;
  flex: 0 0 auto;
}
.vault-stat.is-entries .vault-stat__icon { background: #e7f5ea; color: #1f652d; }
.vault-stat.is-empty .vault-stat__icon { background: #fff4e8; color: #c2410c; }
.vault-stat.is-recent .vault-stat__icon { background: #f3efe4; color: #8a764a; }
.vault-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.vault-tabs { display: grid; gap: 0.45rem; }
.vault-tabs > .vault-tab {
  border: 1px solid #e4ebdf;
  background: #fff;
  padding: 0.55rem 0.8rem;
}
.vault-tabs > .vault-tab > i { color: #1f652d; }
.vault-tabs > .vault-tab.is-active { background: #eef6f0; border-color: #b7d7be; color: #1f652d; }
.vault-tab-row {
  --vault-tone: #1f652d;
  --vault-soft: #e7f5ea;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding-right: 0.2rem;
  border: 1px solid #e4ebdf;
  border-left: 4px solid var(--vault-tone);
  border-radius: 14px;
  background: #fff;
}
.vault-tab-row.is-green { --vault-tone: #1f652d; --vault-soft: #e7f5ea; }
.vault-tab-row.is-blue { --vault-tone: #3d6f9a; --vault-soft: #e8f0f8; }
.vault-tab-row.is-orange { --vault-tone: #c2410c; --vault-soft: #fff1e6; }
.vault-tab-row.is-gold { --vault-tone: #8a764a; --vault-soft: #f8f1e4; }
.vault-tab-row.is-rose { --vault-tone: #9d3d6a; --vault-soft: #f8e8f0; }
.vault-tab-row.is-slate { --vault-tone: #4b5563; --vault-soft: #eef1f4; }
.vault-tab-row.is-current { background: var(--vault-soft); }
.vault-tab__tools { display: flex; align-items: center; flex: 0 0 auto; }
.vault-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3rem;
  padding: 0.5rem 0.55rem 0.5rem 0.75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.vault-tab > i { color: var(--vault-tone, #1f652d); }
.vault-tab span { display: grid; gap: 0.05rem; white-space: normal; overflow: visible; line-height: 1.25; }
.vault-tab span small { color: #6d7b69; font-size: 0.72rem; font-weight: 650; }
.vault-tab b {
  min-width: 1.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f3f6f2;
  color: #3c4a38;
  font-size: 0.75rem;
  text-align: center;
}
.vault-tab.is-active b { background: var(--vault-tone, #1f652d); color: #fff; }
.vault-tones { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.vault-tone { position: relative; margin: 0; cursor: pointer; }
.vault-tone input { position: absolute; opacity: 0; }
.vault-tone span {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(36, 48, 36, 0.12);
}
.vault-tone input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--vault-tone, #1f652d); }
.vault-tone.is-green { --vault-tone: #1f652d; }
.vault-tone.is-blue { --vault-tone: #3d6f9a; }
.vault-tone.is-orange { --vault-tone: #c2410c; }
.vault-tone.is-gold { --vault-tone: #8a764a; }
.vault-tone.is-rose { --vault-tone: #9d3d6a; }
.vault-tone.is-slate { --vault-tone: #4b5563; }
.vault-tone.is-green span { background: #1f652d; }
.vault-tone.is-blue span { background: #3d6f9a; }
.vault-tone.is-orange span { background: #c2410c; }
.vault-tone.is-gold span { background: #8a764a; }
.vault-tone.is-rose span { background: #9d3d6a; }
.vault-tone.is-slate span { background: #4b5563; }
.vault-icon-btn.is-edit { color: #2563eb; }
.vault-icon-btn.is-edit:hover { background: #e8f0f8; color: #1d4ed8; }
.vault-icon-btn.is-delete { color: #dc2626; }
.vault-icon-btn.is-delete:hover { background: #fde8e8; color: #b91c1c; }
.vault-new-group {
  width: 100%;
  margin-top: 0.7rem;
  min-height: 2.8rem;
  border: 1px dashed #c9d5c6;
  border-radius: 14px;
  background: #fff;
  color: #3c4a38;
  font-weight: 700;
}
.vault-main__head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.vault-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: min(100%, 18rem);
  padding: 0.35rem 0.7rem;
  border: 1px solid #e4ebdf;
  border-radius: 12px;
  background: #fbfcfb;
  color: #6d7b69;
}
.vault-search input { border: 0; background: transparent; width: 100%; min-width: 0; outline: none; color: #243024; }
.vault-records { display: grid; gap: 0.45rem; }
.vault-record {
  display: grid;
  grid-template-columns: minmax(11rem, 1.15fr) minmax(15rem, 0.95fr) auto;
  gap: 0.35rem 0.85rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e6ece3;
  border-radius: 12px;
  background: #fff;
}
.vault-records.is-sortable .vault-record { grid-template-columns: auto minmax(11rem, 1.15fr) minmax(15rem, 0.95fr) auto; }
.vault-drag {
  width: 1.5rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8b9787;
  cursor: grab;
  padding: 0;
}
.vault-drag:active { cursor: grabbing; }
.vault-record.is-dragging { opacity: 0.45; }
.vault-record__identity { display: grid; gap: 0.02rem; min-width: 0; }
.vault-record__identity strong { font-size: 1.02rem; font-weight: 760; color: #3493b9; letter-spacing: -0.01em; }
.vault-record__identity em { font-style: normal; color: #1f652d; font-size: 0.72rem; font-weight: 700; }
.vault-record__identity small { color: #8b9787; font-size: 0.7rem; }
.vault-record__fields { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.15fr); gap: 0.45rem; align-items: end; min-width: 0; }
.vault-field span { display: block; margin-bottom: 0.15rem; color: #8b9787; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.vault-userline { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.vault-userline b { font-weight: 650; overflow-wrap: anywhere; }
.vault-secret {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  min-height: 2rem;
  padding: 0 0.15rem 0 0.55rem;
  border: 1px solid #e4ebdf;
  border-radius: 9px;
  background: #f7f8f6;
}
.vault-secret input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: #243024; }
.vault-record__actions { display: flex; align-items: center; gap: 0.15rem; }
.vault-icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5c6b58;
  text-decoration: none;
}
.vault-icon-btn:hover { background: #eef3ea; color: #1f652d; }
.vault-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  color: #6d7b69;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.vault-link i { color: #3d6f9a; font-size: 0.82rem; flex: 0 0 auto; }
.vault-link:hover { color: #1f652d; }
.vault-notes {
  margin: 0;
  color: #5c6b58;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1100px) {
  .vault-record,
  .vault-records.is-sortable .vault-record { grid-template-columns: auto minmax(0, 1fr); }
  .vault-record__fields,
  .vault-record__actions { grid-column: 2; }
  .vault-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .vault-layout { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .kalite-form .row > [class*="col-"],
  .kalite-report-hero .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .kalite-form,
  .kalite-form fieldset,
  .kalite-report-hero,
  .kalite-report-hero__meta,
  .kalite-filter-form,
  .kalite-ncr-field,
  #kaliteNoteForm {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }
  .kalite-form input[type="date"],
  .kalite-report-hero input[type="date"],
  .kalite-ncr-field input[type="date"],
  .kalite-filter-form input[type="date"],
  #kaliteNoteForm input[type="date"],
  .kalite-period input[type="month"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 2.75rem;
    min-height: 2.75rem;
    -webkit-appearance: none;
    appearance: none;
  }
  .kalite-period { display: grid; }
  .kalite-ncr-control,
  .kalite-ncr-control.is-other,
  .kalite-ncr-decisions { grid-template-columns: 1fr; }
  .kalite-ncr-decisions label.is-wide { grid-column: auto; }
}
@media (max-width: 767.98px) {
  .kalite-chart-donut { grid-template-columns: 1fr; justify-items: center; }
  .kalite-donut-legend { width: 100%; }
  .kalite-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kalite-section-nav button { font-size: 0.78rem; padding: 0.5rem; }
  .kalite-report-customer { flex-wrap: wrap; }
  .kalite-report-customer__meta { white-space: normal; }
  .kalite-reason-grid { grid-template-columns: 1fr; }
  .kalite-reason-grid label { font-size: 0.92rem; padding: 0.7rem 0.8rem; }
  .kalite-progress__top { flex-direction: column; align-items: flex-start; }
  .kalite-form,
  .kalite-report-hero,
  .kalite-workspace,
  .kalite-workspace__main,
  .kalite-report-hero__meta {
    min-width: 0;
    max-width: 100%;
  }
}
.kalite-later {
  padding: 1.25rem 0.2rem 0.4rem;
  color: #5c6b58;
}
.kalite-carry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e4ebdf;
  border-radius: 14px;
  background: #f7faf6;
}
.kalite-carry div { display: grid; gap: 0.15rem; min-width: 0; }
.kalite-carry span {
  color: #6d7c68;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.kalite-carry strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .kalite-carry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .kalite-filter-form.is-collapsed { display: none; }
  .kalite-table-wrap { overflow: visible !important; }
  .kalite-glance { max-height: none; overflow: visible; }
  .kalite-table {
    min-width: 0 !important;
    border: 0;
    background: transparent;
  }
  .kalite-table thead { display: none; }
  .kalite-table,
  .kalite-table tbody {
    display: block;
    width: 100%;
  }
  .kalite-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.45rem 0.5rem;
    position: relative;
    margin: 0 0 0.85rem;
    padding: 0.8rem;
    border: 1px solid rgba(48, 58, 42, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(24, 40, 22, 0.06);
  }
  .kalite-table td {
    display: flex;
    flex: 1 1 calc(50% - 0.5rem);
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0;
    padding: 0.55rem 0.7rem !important;
    border: 0 !important;
    border-radius: 14px;
    background: #f3f6f1 !important;
    box-shadow: none !important;
    position: static !important;
    left: auto !important;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.3;
  }
  .kalite-table td::before {
    content: attr(data-label);
    display: block;
    width: auto;
    margin: 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7d8b78;
  }
  .kalite-table tbody td:first-child,
  .kalite-table td:first-child {
    flex: 1 1 100%;
    display: flex;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0;
    padding: 0.2rem 5.2rem 0.35rem 0.15rem !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    font-size: 1.08rem;
    font-weight: 760;
    line-height: 1.25;
    box-shadow: none !important;
    position: static !important;
  }
  .kalite-table td:first-child .kalite-person,
  .kalite-table td:first-child .fw-600 { width: 100%; }
  .kalite-table .kalite-complaint-reason {
    max-width: none;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
  }
  .kalite-table td:first-child::before,
  .kalite-table td[data-label="İşlem"]::before,
  .kalite-table td.text-end:last-child::before { display: none; }
  .kalite-table td[data-label="Müşteri"]:not(:first-child),
  .kalite-table td[data-label="Not"],
  .kalite-table td[data-label="Formlar"],
  .kalite-table td.is-qc-missing {
    flex: 1 1 100%;
  }
  .kalite-table td[data-label="İşlem"],
  .kalite-table td.text-end:last-child {
    position: absolute !important;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0;
  }
  .kalite-table td[data-label="İşlem"] .crm-row-actions,
  .kalite-table td.text-end:last-child .crm-row-actions {
    justify-content: flex-end !important;
    gap: 0.3rem;
  }
  .kalite-table .crm-action-btn {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border-color: transparent;
    background: #e7f3ea;
    color: #1f652d;
    box-shadow: 0 4px 12px rgba(31, 101, 45, 0.14);
  }
  .kalite-table td[data-label="Görsel"],
  .kalite-table td[data-label="Rapor görseli"] {
    flex: 1 1 100%;
  }
  .kalite-table td[data-label="Görsel"] .kalite-list-shot,
  .kalite-table td[data-label="Rapor görseli"] .kalite-list-shot {
    position: relative;
    display: block;
    width: 100%;
    height: 8.5rem;
    overflow: hidden;
  }
  .kalite-table td[data-label="Görsel"] .kalite-list-shot.is-empty,
  .kalite-table td[data-label="Rapor görseli"] .kalite-list-shot.is-empty {
    display: grid;
    height: 3.2rem;
    place-items: center;
  }
  .kalite-table td[data-label="Görsel"] .kalite-list-shot img,
  .kalite-table td[data-label="Rapor görseli"] .kalite-list-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }
}
.kalite-qc-missing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a5b12;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.kalite-person { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.kalite-person > div { min-width: 0; }
.kalite-profile-edit { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e4ebdf; }
.kalite-profile-edit[hidden] { display: none; }
.kalite-glance { max-height: 360px; overflow: auto; }
@media (max-width: 767.98px) {
  .kalite-glance { max-height: none; overflow: visible; }
}
.kalite-note-compose { display: grid; margin-top: 0.9rem; }
.kalite-note-compose[hidden] { display: none; }
.kalite-gallery-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.9rem; }
.kalite-gallery-tabs button {
  border: 1px solid #e4ebdf;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  color: #3d4d3a;
}
.kalite-gallery-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: #eef5e8;
  font-size: 0.75rem;
}
.kalite-gallery-tabs button.is-active {
  background: #1f652d;
  border-color: #1f652d;
  color: #fff;
}
.kalite-gallery-tabs button.is-active span { background: rgba(255, 255, 255, 0.2); color: #fff; }
.kalite-gallery-panel[hidden] { display: none; }
.kalite-report-customer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4ebdf;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(24, 40, 22, 0.04);
}
.kalite-report-customer__body { display: grid; min-width: 0; flex: 1; }
.kalite-report-customer__body small { color: #6d7c68; }
.kalite-report-customer__body span { color: #4d5c49; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kalite-report-replace {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.6rem;
  border: 1px dashed #b7c9b0;
  border-radius: 12px;
  background: #f7faf4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.kalite-report-replace:hover,
.kalite-report-replace.is-dragover {
  border-color: #1f652d;
  background: #f3f8ef;
  box-shadow: 0 8px 18px rgba(31, 101, 45, 0.1);
}
.kalite-report-replace > input[data-file-input] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.kalite-report-replace__hint { position: relative; z-index: 2; font-size: 0.82rem; font-weight: 700; color: #245033; pointer-events: none; }
.kalite-report-replace .btn-zentic,
.kalite-report-replace .kalite-drop__progress,
.kalite-report-replace .kalite-drop__error { position: relative; z-index: 2; }
.kalite-report-replace .kalite-drop__progress { flex-basis: 100%; }
