/*
 * ATLAS Mobile - Arbeitgeber-/Firmendetail.
 * Kompakte, listenbasierte Darstellung nach ACENCIA CI.
 */

.company-screen {
  min-height: calc(100vh - var(--nav-height));
  background: var(--acencia-blue-4);
}

.company-hero {
  position: relative;
  padding: 8px 14px 0;
  overflow: hidden;
  color: var(--acencia-blue-4);
  background:
    radial-gradient(circle at 72% 46%, rgba(20, 83, 126, 0.28), transparent 46%),
    var(--acencia-blue-1);
}

.company-hero__top {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: var(--touch-target);
}

.company-hero__back {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.company-hero__back svg {
  width: 22px;
  height: 22px;
}

.company-hero__identity {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.company-hero__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--acencia-blue-1);
  background: linear-gradient(145deg, #ffffff, #dbe8f3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.company-hero__icon svg {
  width: 22px;
  height: 22px;
}

.company-hero__text,
.company-hero__name,
.company-hero__subtitle {
  display: block;
  min-width: 0;
}

.company-hero__text {
  flex: 1 1 auto;
}

.company-hero__name {
  overflow: hidden;
  font-size: clamp(17px, 4.8vw, 21px);
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-hero__subtitle {
  margin-top: 2px;
  overflow: hidden;
  color: var(--acencia-blue-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-tabs {
  display: flex;
  align-items: stretch;
  height: 36px;
  margin-top: 4px;
  padding: 0 0 0 38px;
  overflow-x: auto;
  scrollbar-width: none;
}

.company-tabs::-webkit-scrollbar {
  display: none;
}

.company-tabs__item {
  position: relative;
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  color: var(--acencia-blue-2);
  font-size: 13px;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.company-tabs__item::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: '';
}

.company-tabs__item.is-active {
  color: var(--acencia-blue-4);
  font-weight: 700;
}

.company-tabs__item.is-active::after {
  background: var(--acencia-orange-1);
}

.company-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--acencia-blue-4);
  font-size: 11px;
  font-weight: 700;
  background: rgba(136, 169, 195, 0.55);
}

.company-content {
  padding: 12px 14px 18px;
  background: var(--acencia-blue-4);
}

.company-overview,
.company-panel {
  max-width: 680px;
  margin: 0 auto;
}

.company-section {
  margin-top: 12px;
}

.company-section__title,
.company-panel__title {
  margin: 0;
  padding: 0 2px 6px;
  border-bottom: 1px solid var(--acencia-blue-3);
  color: #557ba4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.company-panel__title {
  padding-bottom: 8px;
}

.company-section__rows {
  width: 100%;
}

.company-field,
.company-contact,
.company-document {
  min-height: 52px;
  border-bottom: 1px solid var(--acencia-blue-3);
}

.company-field,
.company-document {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 2px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: var(--acencia-blue-1);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.company-field__icon,
.company-contact__icon,
.company-document__icon,
.company-ticket__icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--acencia-blue-1);
  background: var(--acencia-blue-3);
}

.company-field__icon svg,
.company-contact__icon svg,
.company-document__icon svg,
.company-ticket__icon svg {
  width: 18px;
  height: 18px;
}

.company-field__body,
.company-document__body,
.company-ticket__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.company-field__label {
  color: #6283a8;
  font-size: 11px;
  line-height: 1.2;
}

.company-field__value {
  overflow: hidden;
  color: var(--acencia-orange-1);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.company-field[data-company-action='address'] .company-field__value {
  color: var(--acencia-blue-1);
}

.company-field__chevron,
.company-contact__chevron,
.company-document__chevron {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #557ba4;
}

.company-field[data-company-action='phone'] .company-field__chevron,
.company-field[data-company-action='email'] .company-field__chevron {
  color: var(--acencia-orange-1);
}

.company-field__chevron svg,
.company-contact__chevron svg,
.company-document__chevron svg {
  width: 18px;
  height: 18px;
}

.company-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
}

.company-contact__identity {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: var(--touch-target);
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.company-contact__identity:disabled {
  cursor: default;
  opacity: 1;
}

.company-contact__name {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 14px;
  font-weight: 700;
}

.company-contact__role {
  max-width: 100%;
  overflow: hidden;
  color: #6283a8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-contact__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  color: var(--acencia-blue-1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--acencia-blue-3);
}

.company-contact__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.company-icon-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  border: 0;
  color: var(--acencia-orange-1);
  background: transparent;
  cursor: pointer;
}

.company-icon-action svg {
  width: 20px;
  height: 20px;
}

.company-document__name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-document__meta,
.company-ticket__status,
.company-ticket__number {
  overflow: hidden;
  color: #6283a8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-ticket {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--acencia-blue-3);
}

.company-ticket.is-compact {
  min-height: 58px;
  margin-bottom: 4px;
  padding: 8px 10px;
  border: 1px solid var(--acencia-orange-2);
  border-radius: var(--radius-md);
  background: #fff8f1;
}

.company-ticket.is-compact .company-ticket__icon {
  color: #f47c1b;
  background: transparent;
}

.company-ticket__subject {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-ticket.is-compact .company-ticket__status {
  color: #f47c1b;
}

.company-ticket__action {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--acencia-orange-1);
  border-radius: 6px;
  color: #e97010;
  font-size: 12px;
  font-weight: 600;
  background: var(--acencia-blue-4);
  cursor: pointer;
}

.company-empty {
  margin: 0;
  padding: 16px 2px;
  color: #6283a8;
  font-size: 13px;
}

.company-field:focus-visible,
.company-document:focus-visible,
.company-contact__identity:focus-visible,
.company-icon-action:focus-visible,
.company-ticket__action:focus-visible,
.company-tabs__item:focus-visible,
.company-hero__back:focus-visible {
  outline: 2px solid var(--acencia-orange-1);
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .company-tabs {
    justify-content: flex-start;
  }

  .company-tabs__item {
    flex: 0 0 auto;
  }

  .company-contact__actions {
    gap: 0;
  }

  .company-contact__chevron {
    display: none;
  }
}

@media (min-width: 700px) {
  .company-hero__top {
    max-width: 680px;
    margin: 0 auto;
  }

  .company-tabs {
    justify-content: center;
    padding-left: 0;
  }

  .company-tabs__item {
    flex: 0 0 160px;
  }
}
