/* =========================================
   COMPANY DETAIL - Detail panel
   ========================================= */
/* =========================================
   DETAIL PANEL
   ========================================= */
.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border-light);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.detail-panel.open {
  transform: translateX(0);
  z-index: 1000;
}

.detail-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.detail-close {
  width: 28px;
  height: 28px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.detail-close:hover { background: var(--color-surface-3); color: var(--color-text); }

.detail-company-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  line-height: 1.3;
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Detail sekce */
.detail-section {
  margin-bottom: 20px;
}

.detail-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 10px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.detail-row-icon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  flex-shrink: 0;
  padding-top: 1px;
}

.detail-row-label {
  font-size: 11px;
  color: var(--color-text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.detail-row-value {
  font-size: 12px;
  color: var(--color-text);
  flex: 1;
  word-break: break-word;
}

.detail-row-value a {
  color: var(--color-accent);
  text-decoration: none;
}

.detail-row-value a:hover { text-decoration: underline; }

/* Akce panel */
.detail-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.actions-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 10px;
}

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.action-btn:hover {
  background: var(--color-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.action-btn svg { flex-shrink: 0; }

/* Disabled akce */
.action-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: auto;
}

.action-btn.disabled:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-light);
  color: var(--color-text);
}

.action-btn-lock {
  margin-left: auto;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--color-text-dim);
}

/* Tooltip pro disabled */
.action-btn.disabled::after {
  content: attr(data-tooltip);
}

