* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  background: #f3f4f6;
}

.muted { color: #6b7280; font-size: 0.9rem; line-height: 1.35; }

.container { min-height: 100vh; }

.tpa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  padding: 8px 20px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { font-size: 20px; font-weight: bold; }
.logo-main { color: #8b5cf6; }
.logo-plus { color: #ffb347; }
.logo-crm { color: #ffb347; }
.logo-link { text-decoration: none; }

.header-global-search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
}

.header-search.list-search {
  width: 100%;
  min-width: 200px;
  max-width: 420px;
  padding-right: 4px;
}

.header-search-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.header-search-voice-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.header-search-voice-btn.is-listening {
  background: #fef2f2;
  color: #dc2626;
  animation: header-voice-pulse 1.2s ease-in-out infinite;
}

.header-search-voice-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

@keyframes header-voice-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.global-search-modal {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
}

.global-search-query-label {
  margin: 0 0 10px;
  font-size: 12px;
}

.global-search-results {
  overflow: auto;
  max-height: min(60vh, 480px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.global-search-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.global-search-count {
  font-weight: 600;
  color: #94a3b8;
}

.global-search-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.global-search-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.global-search-item:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.global-search-item-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  flex-shrink: 0;
}

.global-search-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.global-search-item-sub {
  width: 100%;
  font-size: 12px;
  color: #64748b;
  padding-left: 0;
}

.global-search-empty {
  margin: 0;
  padding: 12px 0;
  text-align: center;
}

.global-search-more {
  margin: 6px 0 0;
  font-size: 11px;
}

.tpa-nav { display: flex; gap: 8px; margin-left: 8px; }
.tpa-nav a { text-decoration: none; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border: 1px solid #e5e7eb; background: #fff;
  border-radius: 8px; font-size: 11px; cursor: pointer; color: #111827; height: auto;
}
.nav-btn:hover { background: #f3f4f6; }
.nav-btn.active { background: #111827; color: #fff; border-color: #111827; }

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: none;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.view {
  transition: opacity 0.15s ease;
}

.view-shell {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 20px;
}

.login-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
}

.row-actions {
  margin-top: 8px;
  display: block;
}

.auth-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.subtitle-inline {
  color: #6b7280;
  font-size: 12px;
}

.hint {
  color: #6b7280;
  margin: 6px 0 0;
}

input {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  min-width: 160px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

/* Global text-input rules must not apply to native radios/checkboxes. */
input[type="radio"],
input[type="checkbox"] {
  min-width: 0;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  vertical-align: middle;
  accent-color: #2563eb;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"] {
  border-radius: 4px;
}

select {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  min-width: 160px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.multi-select {
  position: relative;
}

.multi-select-trigger {
  width: 100%;
  height: 40px;
  background: #fff;
  color: #334155;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  padding: 0 12px;
}

.multi-select-trigger:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  opacity: 1;
}

.multi-select-menu {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 50;
}

.multi-select-menu .multi-option-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
}

.multi-select-menu .multi-option-row:hover {
  background: #f8fafc;
}

.multi-select-menu input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 4px;
}

input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.25);
}

button {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  opacity: 0.92;
}

button:disabled,
button[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.mailbox-sync-panel {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px 14px;
}

.mailbox-sync-panel.is-busy {
  border-color: #cbd5e1;
}

.mailbox-sync-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.mailbox-sync-log {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.35;
}

.mailbox-sync-log-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
}

.mailbox-sync-log-time {
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.mailbox-sync-log-success .mailbox-sync-log-text {
  color: #047857;
}

.mailbox-sync-log-warn .mailbox-sync-log-text {
  color: #b45309;
}

.mailbox-sync-summary {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
  font-size: 0.85rem;
}

button.secondary {
  background: #e2e8f0;
  color: #111827;
  border-color: #e2e8f0;
}

button.secondary:hover {
  background: #cbd5e1;
  opacity: 1;
}

button.primary-block {
  width: 100%;
}

button.link-action {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: #334155;
  border: none;
  font-size: 12px;
  text-decoration: none;
  height: auto;
}

button.link-action:hover {
  background: transparent;
  color: #0f172a;
}

#listBox {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.list-table thead th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  border-bottom: 1px solid #e5e7eb;
}

.list-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
}

.list-table tbody tr:nth-child(even) {
  background: #fcfdff;
}

.list-table tbody tr.clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.list-badge-tenant {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 999px;
  vertical-align: middle;
}

.list-table tbody tr.tenant-user-row {
  background: #f8fafc;
}

.list-table tbody tr.clickable-row:hover {
  background: #eff6ff;
}

.empty-list {
  padding: 20px 12px;
  color: #64748b;
  font-size: 13px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date { color: #333; font-size: 12px; }
.badge {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #dc2626;
  background: #fff;
  color: #dc2626;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  height: auto;
}
.logout-btn:hover { background: #dc2626; color: #fff; opacity: 1; }

.app-card {
  width: calc(100% - 24px);
  max-width: none;
  margin: 12px;
}

body[data-page="dashboard"] {
  background: #f3f4f6;
}

body[data-page="dashboard"] .container {
  width: calc(100% - 24px);
  max-width: none;
  margin: 12px auto;
  padding: 0;
  box-sizing: border-box;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 16px;
  align-items: stretch;
}

.dashboard-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Sol özet — sağdaki kart dili, mor yok, kompakt tek satır */
.dashboard-column--focus {
  min-width: 0;
}

.dashboard-focus-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.dashboard-focus-block {
  padding: 12px 14px;
  min-width: 0;
}

.dashboard-focus-block + .dashboard-focus-block {
  border-top: 1px solid #e5e7eb;
}

.dashboard-focus-block:first-child {
  flex: 0 0 auto;
  overflow: visible;
}

.dashboard-focus-block__title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.dashboard-focus-divider {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
}

.dashboard-focus-block .dashboard-focus-divider:not(:first-of-type) {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.dashboard-focus-count {
  font-weight: 700;
  color: #6b7280;
}

.dashboard-focus-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.dashboard-focus-list--reminders {
  overflow: hidden;
}

.dashboard-focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 7px 0;
  border-radius: 6px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
}

.dashboard-focus-row--meeting {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-focus-row:last-child {
  border-bottom: none;
}

.dashboard-focus-row:hover {
  background: #f9fafb;
}

.dashboard-focus-row--overdue {
  background: #fef2f2;
}

.dashboard-focus-row--overdue:hover {
  background: #fee2e2;
}

.dashboard-focus-row--cancelled .dashboard-focus-row__primary {
  color: #9ca3af;
  text-decoration: line-through;
}

.dashboard-focus-row__content {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.dashboard-focus-row__content[data-reminder-open] {
  cursor: pointer;
}

.dashboard-focus-row__primary {
  flex: 0 1 auto;
  max-width: 38%;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-focus-row--reminder .dashboard-focus-row__note {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  font-size: 12px;
  font-weight: 400;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-focus-row--reminder .dashboard-focus-row__company {
  flex-shrink: 0;
  max-width: 20ch;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-focus-row--reminder .dashboard-focus-row__date {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
  white-space: nowrap;
}

.dashboard-focus-row__sep {
  flex-shrink: 0;
  color: #d1d5db;
  font-size: 11px;
  user-select: none;
}

.dashboard-focus-row__secondary {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-focus-row__actions {
  display: flex;
  flex-shrink: 1;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.dashboard-focus-panel .dashboard-meeting-action,
.dashboard-focus-panel button.dashboard-reminder-action {
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 5px;
  height: auto;
  min-height: 0;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.dashboard-focus-panel button.dashboard-reminder-action--task:hover {
  background: #dbeafe;
  opacity: 1;
}

.dashboard-focus-empty {
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: #9ca3af;
}

.dashboard-focus-row .dashboard-task-complete-panel {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 11px;
}

.header-mail-btn {
  padding: 5px 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  height: auto;
}

.header-mail-btn:hover {
  background: #f9fafb;
  color: #111827;
  opacity: 1;
}

.modal--mailbox-sync {
  width: min(520px, calc(100vw - 32px));
  max-height: min(85vh, 640px);
  display: flex;
  flex-direction: column;
}

.modal--mailbox-sync .modal-body {
  padding: 12px 16px 16px;
  overflow-y: auto;
}

.modal--mailbox-sync .mailbox-sync-panel {
  margin-top: 0;
}

.modal--mailbox-sync .dashboard-mail-special {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

/* Teklif Talep Havuzu ile uyumlu tablo (main-spa Dashboard) */
.dashboard-havuz-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-havuz-section__head {
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-havuz-section__head--with-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-havuz-section__head--dark {
  background: #8b5cf6;
  border-bottom: 1px solid #7c3aed;
}

.dashboard-havuz-section__head--dark .dashboard-havuz-section__title {
  color: #fff;
}

.dashboard-havuz-section__head--dark .dashboard-havuz-section__metric-label {
  color: rgba(255, 255, 255, 0.75);
}

.dashboard-havuz-section__head--dark .dashboard-havuz-section__metric-value {
  color: #fff;
}

.dashboard-havuz-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.dashboard-havuz-section__metric {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
}

.dashboard-havuz-section__metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.dashboard-havuz-section__metric-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.dashboard-havuz-table-wrap {
  /* ~40px satır × 16 + thead (~42px); 17+ satırda dikey scroll */
  max-height: 682px;
  overflow-x: auto;
  overflow-y: auto;
}

.dashboard-havuz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.dashboard-havuz-table thead th {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.dashboard-havuz-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
  color: #111827;
  vertical-align: top;
}

.dashboard-havuz-table__row--clickable {
  cursor: pointer;
}

.dashboard-havuz-table__row--clickable:hover td {
  background: #f8fafc;
}

td.dashboard-havuz-table__empty {
  padding: 12px;
  color: #9ca3af;
  font-size: 11px;
}

.dashboard-havuz-table tfoot td {
  padding: 10px 12px;
  border-top: 2px solid #e5e7eb;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.dashboard-havuz-table__subtotal td:last-child {
  text-align: right;
  white-space: nowrap;
}

.dashboard-scroll-list--fill {
  max-height: none;
  flex: 1;
  min-height: 220px;
}

.dashboard-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-section-head {
  padding: 10px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.dashboard-section-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.dashboard-subsection + .dashboard-subsection {
  border-top: 1px solid #e5e7eb;
}

.dashboard-subsection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-scroll-list {
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
}

.dashboard-meeting-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
  background: #fff;
}


.dashboard-meeting-card {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-meeting-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-meeting-card__main {
  min-width: 0;
  flex: 1;
}

.dashboard-meeting-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.dashboard-meeting-card__company {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
}

.dashboard-meeting-card__meta {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}

.dashboard-meeting-card__provider {
  flex-shrink: 0;
  margin: 0;
}

.dashboard-meeting-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0ebf9;
}

.dashboard-meeting-card--overdue {
  border-color: #fecaca;
  background: #fef2f2;
}

.dashboard-meeting-card--overdue .dashboard-meeting-card__actions {
  border-top-color: #fecaca;
}

.dashboard-reminder-card-open {
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 6px;
  margin: -2px;
  padding: 2px;
}

.dashboard-reminder-card-open:hover,
.dashboard-reminder-card-open:focus-visible,
.dashboard-reminder-meta-row__text[data-reminder-open]:hover,
.dashboard-reminder-meta-row__text[data-reminder-open]:focus-visible {
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

.dashboard-reminder-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.dashboard-reminder-meta-row__text {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 2px;
  text-align: left;
}

.dashboard-reminder-meta-row__btn {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.dashboard-meeting-card--reminder .dashboard-meeting-card__meta {
  margin-top: 0;
}

.dashboard-reminder-status-chip {
  flex-shrink: 0;
  margin: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-reminder-status-chip--overdue {
  background: #fee2e2;
  color: #b91c1c;
}

button.dashboard-reminder-action {
  height: auto;
  min-height: 0;
  border-radius: 6px;
  font-weight: 600;
  opacity: 1;
}

.dashboard-reminder-action--task {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}

.dashboard-reminder-action--task:hover {
  background: #ede9fe;
}

.dashboard-reminder-status-chip--task {
  background: #f5f3ff;
  color: #6d28d9;
}

.dashboard-task-complete-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.dashboard-task-complete-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.dashboard-task-complete-input {
  width: 100%;
  max-width: 280px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

.dashboard-task-complete-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-task-complete-ok,
.dashboard-task-complete-cancel {
  height: auto;
  min-height: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 1;
}

.dashboard-task-complete-ok {
  border: 1px solid #7c3aed;
  background: #8b5cf6;
  color: #fff;
}

.dashboard-task-complete-ok:hover {
  background: #7c3aed;
}

.dashboard-task-complete-cancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.dashboard-task-complete-cancel:hover {
  background: #f3f4f6;
}

.dashboard-list-row {
  border-bottom: 1px solid #e5e7eb;
}

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

.dashboard-list-entry {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

button.dashboard-list-entry {
  height: auto;
  min-height: 0;
  border-radius: 0;
  font-weight: inherit;
  opacity: 1;
}

button.dashboard-list-entry:hover,
button.dashboard-list-entry:focus-visible {
  opacity: 1;
}

.dashboard-list-entry:hover {
  background: #f9fafb;
}

.dashboard-list-entry__primary {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-list-entry__meta {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-list-row.is-overdue .dashboard-list-entry__meta {
  color: #b91c1c;
  font-weight: 600;
}

.dashboard-list-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 10px 8px;
}

.dashboard-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.dashboard-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-stat-card {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  align-self: start;
}

.dashboard-stat-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-stat-card--clickable:hover,
.dashboard-stat-card--clickable:focus-visible {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 1px #dbeafe;
  outline: none;
}

.dashboard-stat-card--clickable.is-active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.dashboard-proposals-panel,
.dashboard-meetings-panel {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.dashboard-meetings-panel-head {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dashboard-meetings-panel-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.dashboard-meetings-panel-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-meetings-panel-list .dashboard-meeting-card {
  margin: 0;
}

.dashboard-meeting-card--cancelled .dashboard-meeting-card__title {
  color: #9ca3af;
  text-decoration: line-through;
}

.dashboard-proposals-panel-head {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dashboard-proposals-panel-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.dashboard-proposals-table-wrap {
  overflow-x: auto;
}

.dashboard-proposals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dashboard-proposals-table thead th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.dashboard-proposals-table__amount,
.dashboard-proposals-table__currency {
  text-align: right;
}

.dashboard-proposals-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.dashboard-proposals-table__row--clickable {
  cursor: pointer;
}

.dashboard-proposals-table__row--clickable:hover,
.dashboard-proposals-table__row--clickable:focus-visible {
  background: #f9fafb;
  outline: none;
}

.dashboard-proposals-table__name {
  font-weight: 600;
  color: #111827;
}

.dashboard-proposals-table__company,
.dashboard-proposals-table__date {
  color: #4b5563;
}

.dashboard-proposals-table__amount,
.dashboard-proposals-table__currency {
  font-variant-numeric: tabular-nums;
  color: #111827;
  white-space: nowrap;
}

.dashboard-proposals-table__empty {
  padding: 16px 10px;
  text-align: center;
  color: #6b7280;
}

.dashboard-stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.dashboard-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.dashboard-stat-amount {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.dashboard-meeting-action,
.dashboard-reminder-action {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-meeting-action:hover,
.dashboard-reminder-action:hover {
  background: #dbeafe;
}

.dashboard-meeting-action.is-disabled {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #9ca3af;
  pointer-events: none;
  cursor: default;
}

.dashboard-provider-chip {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-empty {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

@keyframes dashboard-head-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-section-head--inverse {
  background: #8b5cf6;
  border-bottom-color: #7c3aed;
  color: #fff;
  animation: dashboard-head-in 0.35s ease both;
}

.dashboard-section-head--inverse .dashboard-section-title {
  color: #fff;
}

.dashboard-section-head--inverse .dashboard-section-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-section-head--inverse {
    animation: none;
  }
}

.dashboard-stage-browse-select-wrap {
  flex-shrink: 0;
  min-width: 0;
}

.dashboard-stage-browse-select {
  max-width: min(220px, 42vw);
  padding: 6px 28px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
}

.dashboard-section-head--inverse .dashboard-stage-browse-select {
  color: #fff;
  background: #7c3aed;
  border-color: #a78bfa;
}

.dashboard-stage-browse-table-wrap {
  max-height: 320px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal--dashboard-meeting {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header--dashboard-meeting {
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.modal--dashboard-meeting .modal-header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
}

.dashboard-meeting-detail-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.dashboard-meeting-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dashboard-meeting-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
}

.modal-close-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 6px;
}

.dashboard-meeting-detail-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 16px 18px 0;
}

.dashboard-meeting-detail-meta-card {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.dashboard-meeting-detail-meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.dashboard-meeting-detail-meta-value {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.dashboard-meeting-detail-participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-meeting-detail-participant-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-meeting-detail-empty {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
}

.dashboard-meeting-detail-section {
  padding: 16px 18px;
}

.dashboard-meeting-detail-section-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.dashboard-meeting-detail-description {
  max-height: min(42vh, 320px);
  overflow-y: auto;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.dashboard-meeting-detail-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dashboard-meeting-detail-close-btn {
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-meeting-detail-close-btn:hover {
  background: #f3f4f6;
}

.meeting-cancel-modal-footer {
  gap: 8px;
}

.meeting-cancel-reason-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.meeting-cancel-reason-hint {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}

.meeting-cancel-reason-input {
  width: 100%;
  min-height: 112px;
  resize: vertical;
}

.meeting-cancel-notify-row {
  margin-top: 0;
}

.modal--dashboard-reminder {
  width: min(520px, calc(100vw - 32px));
  border-radius: 8px;
}

.modal-header--dashboard-reminder {
  align-items: flex-start;
}

.dashboard-reminder-modal-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.dashboard-reminder-modal-company {
  margin: 6px 0 0;
  font-size: 12px;
  color: #4b5563;
}

.dashboard-reminder-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px 18px;
}

.dashboard-reminder-modal-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-reminder-modal-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.dashboard-reminder-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dashboard-reminder-modal-btn {
  height: auto;
  min-height: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
  cursor: pointer;
}

.dashboard-reminder-modal-btn--primary {
  border: 1px solid #7c3aed;
  background: #8b5cf6;
  color: #fff;
}

.dashboard-reminder-modal-btn--primary:hover {
  background: #7c3aed;
}

.dashboard-reminder-modal-btn--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.dashboard-reminder-modal-btn--secondary:hover {
  background: #f3f4f6;
}

.modal--dashboard-reflection {
  width: min(640px, calc(100vw - 32px));
  border-radius: 8px;
}

.modal-header--dashboard-reflection {
  align-items: flex-start;
}

.dashboard-reflection-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.dashboard-reflection-when,
.dashboard-reflection-deadline {
  margin: 6px 0 0;
  font-size: 12px;
}

.dashboard-reflection-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px 18px;
}

.dashboard-reflection-context {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.dashboard-reflection-context-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dashboard-reflection-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.dashboard-reflection-meta > div {
  display: grid;
  gap: 4px;
}

.dashboard-reflection-meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}

.dashboard-reflection-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.45;
}

.dashboard-reflection-prompt {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.dashboard-reflection-label--comment {
  gap: 8px;
}

.dashboard-reflection-label__title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.dashboard-reflection-label__hint {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.dashboard-reflection-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.dashboard-reflection-attendance {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.dashboard-reflection-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.dashboard-reflection-choice input[type="radio"] {
  flex-shrink: 0;
  margin: 0;
}

.dashboard-reflection-comment {
  min-height: 220px;
  resize: vertical;
}

.dashboard-reflection-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-reflection-submit-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  cursor: pointer;
}

.dashboard-reflection-submit-btn:hover {
  background: #1d4ed8;
}

.dashboard-reflection-modal--mandatory .modal-close-btn {
  display: none;
}

.dashboard-mail-special {
  margin-bottom: 12px;
}

.dashboard-mail-special-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.dashboard-mail-special-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.dashboard-mail-special-panel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dashboard-mail-special-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.dashboard-mail-special-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dashboard-mail-special-input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.dashboard-mail-special-btn {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-mail-special-btn:hover {
  background: #f9fafb;
}

.dashboard-mail-actions {
  margin: 0;
}

.dashboard-sync-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-sync-btn:hover {
  background: #1d4ed8;
}

.dashboard-section--mail .dashboard-mail-special,
.dashboard-section--mail .dashboard-mail-actions,
.dashboard-section--mail .mailbox-sync-panel {
  margin: 12px 14px;
}

.dashboard-section--mail .mailbox-sync-panel {
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

@media (max-width: 1100px) {
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page="dashboard"] .container {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .dashboard-meeting-detail-meta-grid,
  .dashboard-mail-special-row {
    grid-template-columns: 1fr;
  }
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.list-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.company360-timeline-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}

.company360-timeline-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  min-width: 0;
}

.company360-timeline-filter select {
  height: 34px;
  min-width: 140px;
  font-size: 13px;
  padding: 0 10px;
}

.activity-add-dropdown {
  position: relative;
  flex-shrink: 0;
}

.activity-add-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-add-dropdown-chevron {
  font-size: 10px;
  line-height: 1;
  opacity: 0.9;
}

.activity-add-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 210px;
  max-height: min(320px, 70vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-add-dropdown-item {
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  color: #111827;
  font-family: inherit;
}

.activity-add-dropdown-item:hover,
.activity-add-dropdown-item:focus-visible {
  background: #eff6ff;
  outline: none;
}

/* Şirket 360 — aktivite / toplantı modalı (tek sütun, bölümlü) */
.modal--activity {
  width: min(520px, 100%);
  max-height: min(92vh, 880px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* E-posta / zengin not: daha geniş modal */
.modal--activity.modal--activity-email,
.modal--activity.modal--activity-note-rich {
  width: min(720px, 100%);
  max-height: min(94vh, 960px);
}

.modal--activity .modal-form--activity {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 20px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-header--activity {
  margin-bottom: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
  gap: 14px;
}

.modal-header--activity > div:first-child {
  flex: 1;
  min-width: 0;
}

.modal-header--activity h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
}

.modal-header-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.45;
}

.modal-close-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.modal--company360-email-view {
  width: min(720px, 100%);
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.company360-email-view-header {
  align-items: flex-start;
}

.company360-email-view-head {
  min-width: 0;
}

.company360-email-view-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

.company360-email-view-subject {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.company360-email-view-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.company360-email-view-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
}

.company360-email-view-badge--inbound {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.28);
  color: #047857;
}

.company360-email-view-badge--outbound {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.28);
  color: #1d4ed8;
}

.company360-email-view-body {
  padding: 0 20px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.company360-email-view-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-bottom: 14px;
}

.company360-email-view-meta-card {
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.company360-email-view-meta-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.company360-email-view-meta-value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
}

.company360-email-view-recipient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.company360-email-view-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  font-size: 0.78rem;
  font-weight: 600;
}

.company360-email-view-recipient-kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6366f1;
}

.company360-email-view-section {
  margin-top: 12px;
}

.company360-email-view-section-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.company360-email-view-message {
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(42vh, 360px);
  overflow: auto;
}

.company360-email-view-message--html {
  white-space: normal;
}

.company360-email-view-message--html a {
  color: #4f46e5;
  text-decoration: underline;
}

.company360-email-editor-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.95);
  border-radius: 10px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.company360-email-editor-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
  border-bottom: 1px solid #94a3b8;
  font-size: 0.82rem;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.company360-email-editor-toolbar-caption {
  flex: 0 0 auto;
  margin: 0 2px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
}

.company360-email-tb-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.company360-email-tb-btn--u {
  text-decoration: underline;
  font-weight: 600;
}

.company360-email-tb-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.company360-email-tb-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  margin: 0 2px;
}

.company360-email-tb-font-wrap,
.company360-email-tb-color-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #475569;
  font-weight: 600;
}

.company360-email-tb-select {
  min-width: 88px;
  max-width: 140px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
}

.company360-email-tb-color {
  width: 36px;
  height: 30px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
}

.company360-email-body-editor {
  min-height: min(320px, 42vh);
  max-height: min(520px, 58vh);
  overflow: auto;
  padding: 16px 18px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #1e293b;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.company360-email-body-editor:focus {
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
  outline: none;
}

.company360-email-body-editor:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.company360-email-view-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company360-email-view-attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.company360-email-view-attachment-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.company360-email-view-attachment-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.company360-email-view-attachment-name {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company360-email-view-attachment-size {
  flex-shrink: 0;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.company360-email-view-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  font-size: 0.84rem;
}

.company360-email-view-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 18px;
  border-top: 1px solid #e2e8f0;
}

.company360-email-view-close-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.company360-email-view-close-btn:hover {
  background: #4338ca;
}

@media (max-width: 720px) {
  .company360-email-view-meta-grid {
    grid-template-columns: 1fr;
  }
}

.activity-modal-section {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.activity-modal-section:last-child {
  border-bottom: none;
}

.activity-modal-section--context {
  padding-top: 10px;
}

.activity-modal-section-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.activity-modal-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.activity-modal-field-label:last-child {
  margin-bottom: 0;
}

.activity-modal-optional {
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: normal;
}

.activity-modal-control {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.activity-modal-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.activity-modal-textarea {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.activity-modal-textarea--short {
  min-height: 72px;
}

.activity-modal-context-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.activity-modal-context-title {
  margin: 0;
}

.activity-modal-context-inline-hint {
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
  font-weight: 400;
  max-width: 42em;
}

.activity-modal-helper {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.4;
}

.company360-meeting-schedule-row {
  display: grid;
  grid-template-columns: minmax(8.75rem, 1.05fr) 4.35rem auto 4.35rem minmax(7.5rem, 1fr);
  gap: 8px;
  align-items: center;
}

.company360-meeting-schedule-row .activity-modal-field-label {
  margin-bottom: 0;
  min-width: 0;
}

.company360-meeting-schedule-time {
  width: 4.35rem;
}

.company360-meeting-schedule-time .activity-modal-control {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 6px;
  font-size: 13px;
  text-align: center;
}

.company360-meeting-schedule-arrow {
  align-self: center;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.company360-meeting-schedule-provider {
  min-width: 0;
}

.company360-meeting-join-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.company360-meeting-join-title {
  margin: 0;
  flex: 1 1 160px;
  min-width: 0;
}

.company360-meeting-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
}

.company360-meeting-join-url-wrap {
  margin-top: 0;
}

.company360-meeting-join-url-wrap.hidden {
  display: none;
}

.company360-meeting-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.company360-meeting-checkbox-input {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  margin: 2px 0 0 !important;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.company360-meeting-reflections-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.company360-meeting-reflection-card {
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  background: var(--surface-muted, #f8fafc);
}

.company360-meeting-reflection-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.company360-meeting-reflection-card__name {
  font-size: 0.9rem;
}

.company360-meeting-reflection-card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.company360-meeting-reflection-card__time {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin-left: auto;
}

.company360-meeting-reflection-card__comment {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.company360-meeting-reflection-team {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle, #e2e8f0);
}

.company360-meeting-reflection-team__title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #64748b);
}

.company360-meeting-reflection-team__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.company360-meeting-checkbox-text {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
  cursor: pointer;
  margin: 0;
}

.company360-meeting-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 8px 8px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  font-size: 13px;
  color: #1e40af;
  max-width: 280px;
}

.company360-meeting-chip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.company360-meeting-chip-invite {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.company360-meeting-participant-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company360-meeting-participant-search-wrap {
  position: relative;
}

.company360-meeting-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.company360-meeting-suggestions.hidden {
  display: none;
}

.company360-meeting-suggestion-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
}

.company360-meeting-suggestion-item:last-child {
  border-bottom: none;
}

.company360-meeting-suggestion-item:hover,
.company360-meeting-suggestion-item:focus-visible {
  background: #f8fafc;
  outline: none;
}

.company360-meeting-suggestion-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.company360-meeting-participant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 8px;
}

.company360-meeting-chip-label {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company360-meeting-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.company360-meeting-chip-remove:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

.modal-actions--activity {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.btn-activity-primary {
  min-width: 200px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-activity-primary:hover {
  background: #1e293b;
}

.activity-detail-modal-inner {
  padding-top: 4px;
}

.activity-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  align-items: start;
}

.activity-detail-row:last-child {
  border-bottom: none;
}

.activity-detail-k {
  font-weight: 600;
  color: #64748b;
}

.activity-detail-v {
  color: #0f172a;
  word-break: break-word;
  white-space: pre-wrap;
}

.list-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.new-btn {
  background: #1f9d68;
  border-color: #1f9d68;
  color: #fff;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  padding: 0 12px;
}

.new-btn:hover {
  background: #158056;
  border-color: #158056;
  opacity: 1;
}

.list-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  height: 34px;
  min-width: 260px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.list-search:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.list-search-icon {
  color: #94a3b8;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.list-search-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.list-search input {
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
  color: #0f172a;
}

.list-search input:focus {
  border-color: transparent;
  box-shadow: none;
}

.list-search input::placeholder {
  color: #94a3b8;
}

.entity-form {
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 30;
}

.modal {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  padding: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.modal-form button {
  grid-column: 1 / -1;
}

.modal--activity .modal-form--activity label.activity-modal-field-label {
  font-size: 13px;
  color: #0f172a;
}

.modal--activity .modal-form--activity button.btn-activity-primary {
  grid-column: unset;
  width: auto;
}

.split-360 {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 14px;
}

.left-30 {
  min-height: 420px;
}

.company360-side-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.company360-side-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.company360-side-split {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company360-opportunities-list {
  max-height: 240px;
  overflow-y: auto;
}

.company360-opportunity-form-full {
  grid-column: 1 / -1;
}

.company360-opportunity-form-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.company360-opportunity-form textarea {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.45;
}

.list-title--subsection {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.company360-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

body[data-page="contact-360"] .contact360-company-back {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

body[data-page="contact-360"] .contact360-company-back:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: #f8fafc;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.08);
}

body[data-page="contact-360"] .contact360-company-back:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

body[data-page="contact-360"] .contact360-company-back-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body[data-page="contact-360"] .contact360-company-back-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #4338ca;
  line-height: 1.25;
}

body[data-page="contact-360"] .contact360-timeline-filters {
  margin-top: 10px;
  flex-wrap: nowrap;
  gap: 8px;
}

body[data-page="contact-360"] .contact360-timeline-filters .company360-timeline-filter {
  flex: 1 1 0;
  min-width: 0;
}

body[data-page="contact-360"] .contact360-timeline-filters .company360-timeline-filter select {
  min-width: 0;
  width: 100%;
  font-size: 12px;
  padding: 0 8px;
}

#contact360TimelineList {
  margin-top: 14px;
}

body[data-page="companies"] {
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 179, 71, 0.16), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(99, 102, 241, 0.1), transparent 38%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body[data-page="companies"] .companies-shell {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="companies"] .companies-shell::before {
  content: "";
  position: absolute;
  inset: -42% auto auto -18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 68%);
  pointer-events: none;
}

body[data-page="companies"] .companies-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body[data-page="companies"] .companies-hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

body[data-page="companies"] .companies-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef2ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
  font-size: 1.05rem;
  flex-shrink: 0;
}

body[data-page="companies"] .companies-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

body[data-page="companies"] .companies-hero-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

body[data-page="companies"] .companies-hero-lead {
  margin: 6px 0 0;
  max-width: 34rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-page="companies"] .companies-count-badge {
  margin: 4px 0 0;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="companies"] .companies-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body[data-page="companies"] .companies-search {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 420px;
  border-color: #dbe3ee;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="companies"] .companies-search:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

body[data-page="companies"] .companies-new-btn {
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(31, 157, 104, 0.18);
}

body[data-page="companies"] .companies-list-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-page="companies"] #listBox {
  border: none;
  border-radius: 0;
  background: transparent;
}

body[data-page="companies"] .list-table thead th {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95));
  color: #475569;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="companies"] .list-table tbody tr.clickable-row:hover {
  background: rgba(238, 242, 255, 0.72);
}

body[data-page="companies"] .empty-list {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 720px) {
  body[data-page="companies"] .companies-hero {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="companies"] .companies-count-badge {
    align-self: flex-start;
  }

  body[data-page="companies"] .companies-search {
    max-width: none;
  }
}

body[data-page="contacts"] {
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 179, 71, 0.16), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(99, 102, 241, 0.1), transparent 38%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body[data-page="contacts"] .contacts-shell {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="contacts"] .contacts-shell::before {
  content: "";
  position: absolute;
  inset: -42% auto auto -18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 68%);
  pointer-events: none;
}

body[data-page="contacts"] .contacts-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body[data-page="contacts"] .contacts-hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

body[data-page="contacts"] .contacts-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecfeff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.2);
  font-size: 1.05rem;
  flex-shrink: 0;
}

body[data-page="contacts"] .contacts-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

body[data-page="contacts"] .contacts-hero-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

body[data-page="contacts"] .contacts-hero-lead {
  margin: 6px 0 0;
  max-width: 34rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-page="contacts"] .contacts-count-badge {
  margin: 4px 0 0;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="contacts"] .contacts-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body[data-page="contacts"] .contacts-search {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 420px;
  border-color: #dbe3ee;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="contacts"] .contacts-search:focus-within {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

body[data-page="contacts"] .contacts-new-btn {
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(31, 157, 104, 0.18);
}

body[data-page="contacts"] .contacts-list-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-page="contacts"] #listBox {
  border: none;
  border-radius: 0;
  background: transparent;
}

body[data-page="contacts"] .list-table thead th {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.95));
  color: #475569;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="contacts"] .list-table tbody tr.clickable-row:hover {
  background: rgba(224, 242, 254, 0.72);
}

body[data-page="contacts"] .empty-list {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 720px) {
  body[data-page="contacts"] .contacts-hero {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="contacts"] .contacts-count-badge {
    align-self: flex-start;
  }

  body[data-page="contacts"] .contacts-search {
    max-width: none;
  }
}

body[data-page="company-360"] {
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 179, 71, 0.18), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(99, 102, 241, 0.12), transparent 38%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body[data-page="company-360"] .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body[data-page="company-360"] .container > header {
  flex-shrink: 0;
}

body[data-page="company-360"] .container > .card.app-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 12px 12px 0;
  overflow: hidden;
}

body[data-page="company-360"] .split-360 {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

body[data-page="company-360"] .left-30 {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

body[data-page="company-360"] .company360-side-card {
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

body[data-page="company-360"] .right-70 {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body[data-page="company-360"] .company360-ai-bar,
body[data-page="company-360"] .company360-hero,
body[data-page="company-360"] #company360DetailsPanel {
  flex-shrink: 0;
}

body[data-page="company-360"] #company360TimelineSection {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  width: 100%;
  margin: 12px 0 0;
  margin-bottom: 0;
  overflow: visible;
}

body[data-page="company-360"] #company360TimelineList {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: min(52vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
}

body[data-page="company-360"] .company360-shell {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="company-360"] .company360-side-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  gap: 14px;
}

body[data-page="company-360"] .company360-side-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

body[data-page="company-360"] .company360-side-section:first-of-type {
  flex: 1.15 1 0;
}

body[data-page="company-360"] .company360-side-section:last-of-type {
  flex: 1 1 0;
}

body[data-page="company-360"] .company360-side-section + .company360-side-section {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

body[data-page="company-360"] .company360-side-header,
body[data-page="company-360"] .company360-side-search,
body[data-page="company-360"] .company360-side-footer {
  flex-shrink: 0;
}

body[data-page="company-360"] .company360-side-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body[data-page="company-360"] .company360-side-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

body[data-page="company-360"] .company360-side-heading-copy {
  min-width: 0;
}

body[data-page="company-360"] .company360-side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #eef2ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
  font-size: 1rem;
  flex-shrink: 0;
}

body[data-page="company-360"] .company360-side-icon--opportunity {
  background: linear-gradient(145deg, #fff7ed, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.28);
}

body[data-page="company-360"] .company360-side-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

body[data-page="company-360"] .company360-side-lead {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}

body[data-page="company-360"] .company360-side-count {
  margin: 0;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="company-360"] .company360-side-search {
  width: 100%;
}

body[data-page="company-360"] .company360-side-search .list-search {
  width: 100%;
  min-width: 0;
  height: 32px;
}

body[data-page="company-360"] .company360-side-contact-entry {
  gap: 0;
  padding: 7px 10px;
}

body[data-page="company-360"] .company360-side-contact-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

body[data-page="company-360"] .company360-side-contact-name {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

body[data-page="company-360"] .company360-side-contact-sep {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1;
}

body[data-page="company-360"] .company360-side-contact-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}

body[data-page="company-360"] .company360-side-contact-details {
  display: none;
  margin: 5px 0 0;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="company-360"] .company360-side-contact-entry:hover .company360-side-contact-details,
body[data-page="company-360"] .company360-side-contact-entry:focus-within .company360-side-contact-details {
  display: block;
}

body[data-page="company-360"] .company360-side-list-panel {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  padding: 8px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body[data-page="company-360"] .company360-side-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  overscroll-behavior: contain;
}

body[data-page="company-360"] .company360-side-footer {
  padding-top: 2px;
}

body[data-page="company-360"] .company360-side-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body[data-page="company-360"] .company360-side-entry-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="company-360"] .company360-side-entry-lead {
  margin: 0;
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="company-360"] .company360-side-entry-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="company-360"] .company360-side-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

body[data-page="company-360"] .company360-side-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body[data-page="company-360"] .company360-side-tag--subtle {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

body[data-page="company-360"] .company360-side-entry.company360-contact-item--clickable:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.08);
}

body[data-page="company-360"] .company360-side-empty {
  margin: 0;
  border: none;
  background: transparent;
  padding: 10px 6px;
  text-align: left;
}

body[data-page="company-360"] .company360-main-panel {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-page="company-360"] .company360-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 4px 2px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

body[data-page="company-360"] .company360-eyebrow {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

body[data-page="company-360"] .company360-hero .company360-name-field {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
}

body[data-page="company-360"] .company360-name-input {
  height: 38px;
  border-color: #dbe3ee;
  border-radius: 10px;
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="company-360"] .company360-meta-info {
  flex-shrink: 0;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

body[data-page="company-360"] .company360-details-panel:not(.hidden) {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body[data-page="company-360"] .company360-details-heading {
  margin-bottom: 10px;
}

body[data-page="company-360"] .company360-details-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

body[data-page="company-360"] .company360-details-lead {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

body[data-page="company-360"] .company360-save-btn {
  justify-self: start;
  min-width: 120px;
}

body[data-page="company-360"] .company360-timeline-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  margin: 12px 0 0;
  overflow: visible;
}
  padding: 14px 14px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  border-top: 3px solid #6366f1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

body[data-page="company-360"] .company360-timeline-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body[data-page="company-360"] .company360-timeline-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body[data-page="company-360"] .company360-timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef2ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
  font-size: 1.05rem;
  flex-shrink: 0;
}

body[data-page="company-360"] .company360-timeline-heading .company360-timeline-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

body[data-page="company-360"] .company360-timeline-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

body[data-page="company-360"] .company360-timeline-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

body[data-page="company-360"] .company360-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-page="company-360"] .company360-contact-item {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

body[data-page="company-360"] .company360-contact-item--clickable:hover {
  transform: translateX(2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.1);
}

body[data-page="company-360"] .company360-timeline-type-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body[data-page="company-360"] .company360-timeline-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-page="company-360"] .company360-email-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body[data-page="company-360"] .company360-email-direction--inbound {
  background: #d1fae5;
  color: #047857;
  box-shadow:
    inset 0 0 0 1.5px rgba(5, 150, 105, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

body[data-page="company-360"] .company360-email-direction--outbound {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow:
    inset 0 0 0 1.5px rgba(37, 99, 235, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

body[data-page="company-360"] .company360-email-direction-icon {
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="company-360"] .company360-timeline-activity-title {
  font-weight: 500;
  font-size: 0.84rem;
  color: #334155;
  max-width: min(100%, 36rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="company-360"] .company360-empty {
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  background: rgba(248, 250, 252, 0.92);
}

.company360-contact-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
}

.company360-contact-item--clickable {
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.company360-contact-item--clickable:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.company360-timeline-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.company360-timeline-item > .company360-contact-item {
  flex: 1;
  min-width: 0;
}

.company360-timeline-delete {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.company360-timeline-delete-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.company360-timeline-delete:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

.company360-timeline-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.company360-timeline-cancel {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: #c2410c;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.company360-timeline-cancel-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.company360-timeline-cancel:hover {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
  opacity: 1;
}

.company360-timeline-cancel:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.company360-timeline-reflection {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: #4338ca;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.company360-timeline-reflection-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.company360-timeline-reflection:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: #3730a3;
}

.company360-timeline-reflection:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

.company360-timeline-status--cancelled {
  color: #dc2626;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.company360-timeline-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 4px;
  row-gap: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.company360-timeline-field {
  min-width: 0;
}

.company360-timeline-type {
  font-weight: 700;
  color: #0f172a;
}

.company360-timeline-title {
  font-weight: 600;
  color: #1e293b;
  max-width: min(100%, 36rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company360-timeline-activity-title {
  font-weight: 500;
  font-size: 0.84rem;
  color: #334155;
  max-width: min(100%, 36rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company360-timeline-type-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.company360-email-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.company360-email-direction--inbound {
  background: #d1fae5;
  color: #047857;
  box-shadow:
    inset 0 0 0 1.5px rgba(5, 150, 105, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

.company360-email-direction--outbound {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow:
    inset 0 0 0 1.5px rgba(37, 99, 235, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

.company360-email-direction-icon {
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.company360-timeline-when,
.company360-timeline-platform {
  color: #475569;
  font-weight: 500;
}

.company360-timeline-participants {
  color: #64748b;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
  flex: 1 1 200px;
  min-width: min(100%, 140px);
}

.company360-timeline-sep {
  color: #cbd5e1;
  font-weight: 300;
  flex-shrink: 0;
  user-select: none;
}

.active-item {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.company360-contact-line {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company360-opp-activity-count {
  color: #64748b;
  font-size: 12px;
}

.company360-contact-name {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.company360-contact-meta {
  font-size: 12px;
  color: #64748b;
}

.company360-contact-separator {
  color: #94a3b8;
  font-size: 12px;
}

.company360-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
}

.company360-add-contact-btn {
  width: 100%;
}

.right-70 {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.top-edit-form {
  margin-top: 10px;
}

.company360-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.company360-heading-name-row {
  display: flex;
  align-items: center;
  gap: 14px 16px;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.company360-heading-name-row .list-title {
  flex-shrink: 0;
  margin: 0;
  line-height: 1.25;
}

.company360-name-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 50%;
  min-width: 0;
  max-width: 50%;
}

.company360-name-input {
  flex: 1;
  min-width: 140px;
  width: 100%;
  max-width: 520px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 34px;
}

.company360-name-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.company360-details-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.company360-details-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #94a3b8;
}

.company360-details-toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.company360-details-toggle-chevron {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.company360-details-toggle--open .company360-details-toggle-chevron {
  transform: rotate(180deg);
}

.company360-meta-info {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  text-align: right;
  line-height: 1.25;
  flex-shrink: 0;
}

.company360-details-panel:not(.hidden) {
  margin-top: 12px;
}

.company360-top-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.company360-top-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.company360-address-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 10px 12px;
}

.company360-address-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact360-top-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

.contact360-top-row.contact360-details-top-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company360-name-field.contact360-header-names .company360-name-input {
  flex: 1;
  max-width: none;
  min-width: 100px;
}

.contact360-top-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact360-bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.contact360-bottom-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toast {
  position: fixed;
  top: 10px;
  right: 10px;
  min-width: 260px;
  z-index: 10;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  font-weight: 600;
}

.toast.success {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.toast.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.toast.warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .company360-meeting-schedule-row {
    grid-template-columns: 1fr;
  }
  .company360-meeting-schedule-arrow {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tpa-header {
    padding: 8px 12px;
  }
  .tpa-header .left {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .header-global-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .header-search.list-search {
    max-width: none;
  }
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .list-toolbar-left {
    justify-content: space-between;
  }
  .list-search {
    min-width: 200px;
  }
  .split-360 {
    grid-template-columns: 1fr;
  }
  .company360-header-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .company360-heading-name-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .company360-name-field {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
  .company360-meta-info {
    text-align: left;
  }
  .company360-top-row {
    grid-template-columns: 1fr 1fr;
  }
  .company360-address-row {
    grid-template-columns: 1fr 1fr;
  }
  .contact360-top-row {
    grid-template-columns: 1fr 1fr;
  }
  .contact360-bottom-row {
    grid-template-columns: 1fr 1fr;
  }
}

.danger-btn {
  margin-top: 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  color: #991b1b;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.danger-btn:hover {
  background: #fef2f2;
}

@media (max-width: 640px) {
  .company360-top-row {
    grid-template-columns: 1fr;
  }
  .company360-address-row {
    grid-template-columns: 1fr;
  }
  .contact360-top-row {
    grid-template-columns: 1fr;
  }
  .contact360-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Yönetim sayfası — düzenli sekme, kart ve paneller (management.html)        */
/* -------------------------------------------------------------------------- */

body[data-page="management"] {
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 179, 71, 0.16), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(99, 102, 241, 0.1), transparent 38%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 100vh;
}

body[data-page="management"] .management-shell {
  position: relative;
  overflow: hidden;
  width: calc(100% - 24px);
  max-width: none;
  margin: 12px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-page="management"] .management-shell::before {
  content: "";
  position: absolute;
  inset: -42% auto auto -18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.16), transparent 68%);
  pointer-events: none;
}

body[data-page="management"] .management-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body[data-page="management"] .management-hero-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

body[data-page="management"] .management-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff7ed, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.28);
  font-size: 1.05rem;
  flex-shrink: 0;
}

body[data-page="management"] .management-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

body[data-page="management"] .management-hero-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

body[data-page="management"] .management-hero-lead {
  margin: 6px 0 0;
  max-width: 62ch;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-page="management"] .management-tab-bar {
  position: relative;
  z-index: 1;
}

.management-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: clamp(18px, 3vw, 26px);
  background: rgba(241, 245, 249, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.management-tab {
  flex: 1 1 auto;
  min-width: min(140px, 100%);
  appearance: none;
  border: none;
  margin: 0;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #475569;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.management-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}

.management-tab.active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.management-tab:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

body[data-page="management"] .management-tab-panel {
  position: relative;
  z-index: 1;
}

.management-tab-panel {
  animation: mgmtPanelIn 0.22s ease;
}

@keyframes mgmtPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mgmt-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mgmt-card {
  background: #fafbfc;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 22px);
}

.mgmt-card--accent {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(105deg, rgba(59, 130, 246, 0.07) 0%, #fafbfc 42%);
}

.mgmt-card--mail {
  border-left: 4px solid #059669;
  background: linear-gradient(105deg, rgba(5, 150, 105, 0.07) 0%, #fafbfc 42%);
}

.mgmt-team-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mgmt-actions-row--footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.mgmt-card-head {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.mgmt-card-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.mgmt-subhead {
  margin: 22px 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.mgmt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.mgmt-form-grid--tight {
  gap: 10px 14px;
}

.mgmt-form-grid label,
.mgmt-form-stacked label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.mgmt-span-2 {
  grid-column: 1 / -1;
}

.mgmt-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
}

.mgmt-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
}

.mgmt-checkbox span {
  font-weight: 500;
  font-size: 13px;
  color: #475569;
}

.mgmt-inline-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.mgmt-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.mgmt-btn-primary {
  height: 42px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #0f172a;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.mgmt-btn-primary:hover {
  opacity: 0.94;
  filter: brightness(1.03);
}

.mgmt-btn-secondary {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
}

.mgmt-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.mgmt-btn-ghost {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
}

.mgmt-btn-ghost:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.mgmt-btn-chip {
  flex-shrink: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
}

.mgmt-btn-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.management-split--panels {
  align-items: stretch;
}

.management-split {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.management-rail {
  position: sticky;
  top: 12px;
  align-self: start;
}

.mgmt-rail-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.mgmt-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mgmt-rail-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.mgmt-rail-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.mgmt-rail-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #e8ecf1;
}

.mgmt-user-list {
  max-height: min(280px, 42vh);
  overflow-y: auto;
  padding-right: 4px;
}

.mgmt-scroll-list {
  max-height: min(420px, 55vh);
  overflow-y: auto;
  padding-right: 4px;
}

.mgmt-user-list .company360-contact-item.active-item {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.mgmt-form-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mgmt-form-stacked button {
  margin-top: 4px;
  align-self: flex-start;
}

.mgmt-form-stacked--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.mgmt-form-stacked--grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.mgmt-detail-panel {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 22px);
  min-height: min(440px, 70vh);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.mgmt-detail-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.mgmt-detail-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.mgmt-detail-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  max-width: 68ch;
}

.mgmt-placeholder {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.mgmt-form-block {
  margin-top: 8px;
}

.mgmt-label-hint {
  font-weight: 400;
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 900px) {
  .management-split {
    grid-template-columns: 1fr;
  }

  .management-rail {
    position: static;
  }

  .mgmt-form-grid {
    grid-template-columns: 1fr;
  }

  .mgmt-span-2 {
    grid-column: auto;
  }

  .mgmt-form-stacked--grid {
    grid-template-columns: 1fr;
  }
}

/* CRM pilot skin — dashboard ile hizalı liste, 360 ve yönetim */
:root {
  --crm-page-bg: #f3f4f6;
  --crm-surface: #fff;
  --crm-surface-muted: #f9fafb;
  --crm-border: #e5e7eb;
  --crm-text: #111827;
  --crm-text-muted: #6b7280;
  --crm-radius: 8px;
  --crm-page-gutter: 12px;
}

body[data-page="companies"],
body[data-page="contacts"],
body[data-page="management"],
body[data-page="company-360"],
body[data-page="contact-360"] {
  background: var(--crm-page-bg);
}

body[data-page="companies"] .container,
body[data-page="contacts"] .container,
body[data-page="management"] .container,
body[data-page="company-360"] .container,
body[data-page="contact-360"] .container {
  width: calc(100% - 24px);
  max-width: none;
  margin: var(--crm-page-gutter) auto;
  padding: 0;
  box-sizing: border-box;
}

body[data-page="companies"] .companies-shell,
body[data-page="contacts"] .contacts-shell,
body[data-page="management"] .management-shell,
body[data-page="company-360"] .company360-shell,
body[data-page="contact-360"] .card.app-card {
  position: static;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface);
  box-shadow: none;
}

body[data-page="companies"] .companies-shell::before,
body[data-page="contacts"] .contacts-shell::before,
body[data-page="management"] .management-shell::before,
body[data-page="company-360"] .company360-shell::before {
  display: none;
}

body[data-page="companies"] .companies-hero,
body[data-page="contacts"] .contacts-hero,
body[data-page="management"] .management-hero {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface-muted);
}

body[data-page="companies"] .companies-hero-icon,
body[data-page="contacts"] .contacts-hero-icon,
body[data-page="management"] .management-hero-icon {
  display: none;
}

body[data-page="companies"] .companies-eyebrow,
body[data-page="contacts"] .contacts-eyebrow,
body[data-page="management"] .management-eyebrow {
  color: var(--crm-text-muted);
  letter-spacing: 0.04em;
}

body[data-page="companies"] .companies-hero-title,
body[data-page="contacts"] .contacts-hero-title,
body[data-page="management"] .management-hero-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--crm-text);
}

body[data-page="companies"] .companies-hero-lead,
body[data-page="contacts"] .contacts-hero-lead,
body[data-page="management"] .management-hero-lead {
  font-size: 12px;
  color: var(--crm-text-muted);
}

body[data-page="companies"] .companies-count-badge,
body[data-page="contacts"] .contacts-count-badge {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}

body[data-page="companies"] .companies-list-panel,
body[data-page="contacts"] .contacts-list-panel {
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface);
  box-shadow: none;
}

body[data-page="companies"] .list-table thead th,
body[data-page="contacts"] .list-table thead th {
  background: #f3f4f6;
  border-bottom: 2px solid var(--crm-border);
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}

body[data-page="companies"] .list-table tbody tr.clickable-row:hover,
body[data-page="contacts"] .list-table tbody tr.clickable-row:hover {
  background: #f9fafb;
}

body[data-page="companies"] .companies-new-btn,
body[data-page="contacts"] .contacts-new-btn,
.new-btn {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

body[data-page="companies"] .companies-new-btn:hover,
body[data-page="contacts"] .contacts-new-btn:hover,
.new-btn:hover {
  background: #dbeafe;
}

body[data-page="management"] .management-tab-bar {
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface-muted);
  box-shadow: none;
}

body[data-page="management"] .management-tab-panel,
body[data-page="management"] .management-rail-card,
body[data-page="management"] .management-detail-card {
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface);
  box-shadow: none;
}

body[data-page="company-360"] .company360-side-card,
body[data-page="company-360"] .company360-main-panel,
body[data-page="company-360"] .company360-timeline-panel,
body[data-page="company-360"] .company360-details-panel:not(.hidden),
body[data-page="contact-360"] .company360-side-card {
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface);
  box-shadow: none;
}

body[data-page="company-360"] .company360-side-header,
body[data-page="company-360"] .company360-timeline-header {
  padding: 10px 12px;
  background: var(--crm-surface-muted);
  border-bottom: 1px solid var(--crm-border);
}

body[data-page="company-360"] .company360-side-icon,
body[data-page="company-360"] .company360-timeline-icon {
  display: none;
}

body[data-page="company-360"] .company360-side-title,
body[data-page="company-360"] .company360-timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--crm-text);
}

body[data-page="company-360"] .company360-side-lead,
body[data-page="company-360"] .company360-timeline-subtitle {
  font-size: 12px;
  color: var(--crm-text-muted);
}

body[data-page="company-360"] .company360-side-entry,
body[data-page="company-360"] .company360-contact-item,
body[data-page="company-360"] .company360-timeline-type-group {
  border-color: var(--crm-border);
  border-radius: 0;
  background: var(--crm-surface);
  box-shadow: none;
}

body[data-page="company-360"] .company360-side-entry.company360-contact-item--clickable:hover,
body[data-page="company-360"] .company360-contact-item--clickable:hover {
  background: #f9fafb;
  transform: none;
  box-shadow: none;
}

.modal {
  border-radius: var(--crm-radius);
  border: 1px solid var(--crm-border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--crm-border);
  background: var(--crm-surface-muted);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--crm-text);
}

/* ─── AI Analysis Button ────────────────────────────────────────────── */
.company360-ai-bar {
  padding: 8px 16px 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}
.company360-teamai-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.company360-teamai-panel:not(.hidden) {
  margin-top: 4px;
}
.company360-teamai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f8fafc, #fff);
  flex-shrink: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.company360-teamai-panel-header:hover {
  background: #f1f5f9;
}
.company360-teamai-panel-header-text {
  min-width: 0;
  flex: 1;
}
.company360-teamai-panel-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.company360-teamai-panel-subtitle {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.company360-teamai-panel-subtitle:empty {
  display: none;
}
.company360-teamai-panel-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1;
}
.company360-teamai-panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e5e7eb;
}
.company360-teamai-panel-body.hidden {
  display: none;
}
.company360-ai-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.company360-ai-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.company360-ai-btn:hover { opacity: 0.9; }
.company360-ai-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.company360-ai-result {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  overflow: visible;
}
.company360-ai-loading { color: #6b7280; font-style: italic; }
.company360-ai-error { color: #dc2626; }
.company360-ai-summary { margin-bottom: 12px; }
.company360-ai-summary h4 { margin: 0 0 6px; font-size: 14px; }
.company360-ai-score { margin: 8px 0 0; font-weight: 500; }
.company360-ai-section { margin: 10px 0; }
.company360-ai-section h4 { margin: 0 0 6px; font-size: 13px; }
.company360-ai-section ul { margin: 0; padding-left: 18px; }
.company360-ai-risk-item--critical { border-left: 3px solid #dc2626; padding-left: 8px; }
.company360-ai-risk-item--warning { border-left: 3px solid #f59e0b; padding-left: 8px; }
.company360-ai-risk-item--info { border-left: 3px solid #3b82f6; padding-left: 8px; }
.company360-ai-actions { margin: 4px 0 0; padding-left: 16px; font-size: 12px; color: #6b7280; }
.company360-ai-meta { font-size: 11px; color: #9ca3af; margin: 10px 0 0; }
.company360-ai-dismiss {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
  margin-top: 8px;
}

.company360-ai-cache-note { font-size: 12px; color: #6b7280; margin-top: 6px; }
.company360-ai-refresh {
  background: none;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  margin-left: 8px;
}
.company360-teamai-chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px 14px;
  background: #fff;
  box-sizing: border-box;
}
.company360-teamai-chat-header {
  flex-shrink: 0;
}
.company360-teamai-chat-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.company360-teamai-chat-lead {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.company360-teamai-chat-messages {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: min(44vh, 440px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  scroll-behavior: smooth;
}
.company360-teamai-chat-messages:empty::before {
  content: "Henüz soru sorulmadı. Analizi okuduktan sonra aşağıdan sorun.";
  color: #9ca3af;
  font-size: 12px;
  font-style: italic;
}
.company360-teamai-chat-msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.company360-teamai-chat-msg--user {
  align-self: flex-end;
  max-width: 88%;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.company360-teamai-chat-msg--assistant {
  align-self: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.company360-teamai-chat-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
}
.company360-teamai-chat-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}
.company360-teamai-chat-form textarea {
  width: 100%;
  min-height: 84px;
  max-height: 200px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  background: #fff;
}
.company360-teamai-chat-form textarea:focus {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  border-color: #6366f1;
}
.company360-teamai-chat-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.company360-teamai-chat-hint {
  font-size: 11px;
  color: #9ca3af;
}
.company360-teamai-chat-submit {
  margin-left: auto;
}
.company360-teamai-history {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}
.company360-teamai-history-title { margin: 0 0 6px; font-size: 13px; }
.company360-teamai-history-list { list-style: none; margin: 0; padding: 0; }
.company360-teamai-history-item {
  background: none;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
}
.dashboard-focus-row--teamai .dashboard-focus-row__note { color: #4338ca; }

/* ─── Contact 360 details & notes ─────────────────────────────────── */
body[data-page="contact-360"] .company360-details-panel:not(.hidden) {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body[data-page="contact-360"] #contact360DetailsPanel .modal-form {
  gap: 12px;
}

.contact360-my-notes {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.contact360-notes-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 10px;
}

.contact360-my-notes > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.contact360-my-notes textarea {
  resize: vertical;
  min-height: 88px;
}

.contact360-my-notes .company360-save-btn {
  margin-top: 2px;
}

body[data-page="contact-360"] .contact360-team-notes {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="contact-360"] .contact360-team-notes-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.contact360-team-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.contact360-team-note-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  padding: 10px 11px;
  background: #f8fafc;
}

.contact360-team-note-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.contact360-team-note-card__name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1e293b;
}

.contact360-team-note-card__time {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
}

.contact360-team-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.contact360-team-note-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.66rem;
  font-weight: 700;
}

.contact360-team-note-body {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #475569;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .contact360-notes-row {
    grid-template-columns: 1fr;
  }
}

