/* CRM process list + toolbar buttons on /time (matches timero-bundle-extra.css) */
.timero-booking-module {
  --color-primary: var(--accent);
  --color-primary-2: var(--accent-2);
  --color-surface: var(--bg-surface);
  --color-surface-hover: var(--bg-hover);
  --color-border: var(--border);
  --color-border-2: var(--border-2);
  --color-text: var(--ink-1);
  --color-text-2: var(--ink-3);
  --color-danger: var(--danger);
  --color-danger-soft: var(--danger-soft);
}

.timero-booking-module .timero-icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.timero-booking-module .act,
.timero-booking-module .row-actions .act,
.timero-booking-module button.act {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: var(--color-text-2);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 0;
}
.timero-booking-module .act:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text);
}
.timero-booking-module .act.danger:hover {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.timero-booking-module .row-actions {
  display: flex;
  gap: 1px;
  align-items: center;
  background: linear-gradient(to right, transparent, var(--color-surface-hover) 30%);
  padding-left: 12px;
}
.timero-booking-module #crm-processes-list .row-actions {
  opacity: 0;
  transition: opacity 100ms;
  z-index: 5;
  position: absolute;
  top: 8px;
  right: 8px;
}
.timero-booking-module #crm-processes-list li:hover .row-actions {
  opacity: 1;
}

.timero-booking-module .timero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 2px rgba(176, 84, 33, 0.2);
}
.timero-booking-module .timero-btn-primary:hover {
  background: var(--color-primary-2);
  border-color: var(--color-primary-2);
}
.timero-booking-module .timero-btn-primary.sm {
  height: 24px;
  padding: 0 10px;
  font-size: 11.5px;
}
.timero-booking-module .timero-btn-quick-chart {
  gap: 5px;
  padding: 0 10px;
}
.timero-booking-module .timero-btn-quick-chart .timero-btn-plus {
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
}
.timero-booking-module .timero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text-2) !important;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.timero-booking-module .timero-btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-2);
}

.timero-booking-module #crm-processes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timero-booking-module #crm-processes-list li {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface-2);
  position: relative;
  cursor: pointer;
}
.timero-booking-module .crm-process-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timero-booking-module .crm-process-chart-iframe {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  display: block;
}
.timero-booking-module .crm-process-chart-iframe--inline {
  height: min(360px, 50vh);
  margin-top: 12px;
}
.timero-booking-module .crm-process-chart-iframe--modal {
  height: min(520px, 70vh);
  border: 0;
  border-radius: 0;
}
.timero-booking-module .modal-stack-panel--crm-chart .crm-process-chart-iframe--modal {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}
.timero-booking-module .crm-process-chart-frame--embed {
  width: 100%;
  height: 100%;
  max-height: none;
  line-height: normal;
}
.timero-booking-module .modal-stack-panel--crm-chart .crm-process-chart-frame--embed .crm-process-chart-iframe--modal,
.timero-booking-module .modal-stack-panel--crm-chart .crm-quick-process-embed {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  overflow: hidden;
  background: var(--bg-surface);
}
.timero-booking-module .crm-process-chart-frame {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 0;
}
.timero-booking-module .timero-chart-modal-actions .timero-btn-primary.sm {
  height: 28px;
  padding: 0 14px;
}

.timero-booking-module #crm-processes-list.funnel-processes-compact {
  gap: 4px;
}
.timero-booking-module #crm-processes-list.funnel-processes-compact li.funnel-process-link-item {
  padding: 2px 0;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.timero-booking-module .funnel-process-name-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.timero-booking-module .funnel-process-name-link:hover {
  color: var(--accent-2);
}
.timero-booking-module #crm-processes-list.funnel-processes-compact .row-actions {
  position: static;
  opacity: 0;
  padding-left: 0;
  background: none;
}
.timero-booking-module #crm-processes-list.funnel-processes-compact li.funnel-process-link-item:hover .row-actions {
  opacity: 1;
}
