/* Company logo upload/display layer */
.company-logo-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-logo-picker,
.company-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  margin-top: 0 !important;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.company-logo-picker {
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.company-logo-picker:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .16);
}

.company-logo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.company-logo-picker img,
.company-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.company-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-logo-actions button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.company-logo-actions button:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.company-avatar-lg {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-size: 16px;
}

.company-cell,
.company-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cloud-table td .company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-cell > span:last-child,
.company-head-title > span:last-child,
.cloud-table td .company-cell > span:last-child {
  display: block;
  min-width: 0;
  margin-top: 0;
}

.company-cell strong,
.company-cell small {
  display: block;
}

.company-cell small,
.cloud-table td .company-cell small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

input[type="file"] {
  color: var(--text-muted);
}

@media (max-width: 680px) {
  .company-logo-form {
    width: 100%;
  }

  .company-logo-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .company-head-title {
    align-items: flex-start;
  }
}
