.company-profile-header { padding: 24px 0 0; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.company-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.company-header-breadcrumbs { grid-column: 1 / -1; }
.company-header-breadcrumbs .inner-breadcrumbs { margin: 0; }
.company-header-identity { min-width: 0; }
.company-header-identity h1 { margin: 0; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.company-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.company-header-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid; border-radius: 6px; font-weight: 600; }
.company-header-status--active { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.company-header-status--inactive { color: #b91c1c; border-color: #fecaca; background: #fff1f2; }
.company-header-status > span { font-size: 9px; }
.company-profile-navigation { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 8px; min-width: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); overflow-x: auto; }
.company-profile-link,.company-toolbar-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; color: var(--link); background: transparent; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.company-profile-link { flex-shrink: 0; border-bottom: 3px solid transparent; padding-block: 14px; white-space: nowrap; }
.company-actions .company-toolbar-action { min-height: 34px; padding: 6px 9px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.company-actions .company-toolbar-action .icon { width: 14px; height: 14px; }
.company-profile-link .icon,.company-toolbar-action .icon { width: 16px; height: 16px; flex-shrink: 0; }
.company-profile-link:hover { background: var(--info-soft); text-decoration: none; }
.company-actions .company-toolbar-action:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); border-color: var(--line); text-decoration: none; }
.company-profile-link:focus-visible { outline: 2px solid var(--link); outline-offset: -3px; }
.company-actions .company-toolbar-action:focus-visible { outline: 2px solid var(--muted); outline-offset: 1px; }
.company-profile-link[aria-current=page] { border-bottom-color: var(--link); }
.company-actions .company-action-buttons { flex-wrap: wrap; gap: 8px; margin: 0; }
.company-actions .company-toolbar-save[data-saved=true] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.company-actions [data-company-removal-actions]:empty { display: none; }
.company-actions [data-company-removal-actions]:not(:empty) { order: 1; flex-basis: 100%; }
.company-label-mobile { display: none; }
@media(max-width:1000px) {
    .company-actions { grid-template-columns: minmax(0, 1fr); }
    .company-profile-navigation { grid-row: 3; }
    .company-actions .company-action-buttons { grid-row: 4; justify-content: flex-start; padding-bottom: 16px; }
}
@media(max-width:600px) {
    .company-profile-header { padding-top: 12px; }
    .company-actions { gap: 16px; padding: 0; }
    .company-header-identity h1 { font-size: 20px; }
    .company-header-meta { font-size: 13px; gap: 10px; }
    .company-profile-navigation { gap: 0; margin: 0; padding: 0; border-top: 0; border-bottom: 1px solid var(--line); }
    .company-profile-link { flex: 1 0 auto; padding: 12px 3px; font-size: 13px; }
    .company-profile-link .icon,.company-label-desktop { display: none; }
    .company-label-mobile { display: inline; }
    .company-actions .company-action-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 8px; width: 100%; margin-top: -4px; }
    .company-actions .company-action-buttons > .company-toolbar-action { flex-direction: column; gap: 6px; padding: 7px 4px; min-width: 0; min-height: 54px; border-color: var(--line); font-size: 12px; text-align: center; overflow-wrap: anywhere; }
    .company-actions [data-company-removal-actions] { grid-column: 1 / -1; justify-content: flex-start; }
}
@media print {
    .company-profile-navigation,.company-action-buttons,.company-header-breadcrumbs,[data-company-action-status],#company-alerts,.network-toolbar { display: none !important; }
    .company-actions { display: block; padding: 0; border: 0; box-shadow: none; }
    .profile-layout { display: block; }
    .profile-header h1 { font-size: 24px; }
}
