/* The company header's actions (app/Views/vtc/header.php, .vc-plate-flank.is-actions) on the company page and the
   Company Dashboard (Management 2026-11-15). A separate file on purpose: chrome.css is also changed by another pending
   branch (feature/profile-studio-redesign), so these rules stay out of it.

   One right-aligned group: the primary action (Company Homepage / Dashboard / Apply ...), the Company Area button,
   VTC Studio (the company's Studio staff) and the VTLOG Staff Admin Panel icon (VTLOG platform staff only:
   admin_access + admin_companies, decided in header.php and unchanged here). Visibility is the server's; this file
   only lays out whatever was rendered, so a hidden button leaves no gap and reserves no space:
     - .vc-manage no longer forms a box of its own: its buttons join the row as siblings (one gap, one baseline);
     - every button is 42px high, the admin icon a 42px square;
     - the row stays right-aligned at every width; on a narrow card it wraps, text buttons share each line and the
       icon keeps its square at the end of its line.
   The compact header (the dashboard and other company pages) keeps its own phone rules: on a phone or a short landscape
   screen it hides .vc-manage (chrome.css), and that is restored below with the same media condition. */

:is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-plate-flank.is-actions {
    justify-content: flex-end; align-items: center; gap: .5rem;
}
:is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-manage { display: contents; }
:is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-plate-flank.is-actions > :is(.vc-primary, .vc-status, .vc-area-btn),
:is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-manage > .vc-studio-btn {
    box-sizing: border-box; height: 42px; min-height: 42px; margin: 0;
}
:is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-manage > .vc-admin-btn {
    box-sizing: border-box; flex: 0 0 42px; width: 42px; height: 42px; margin: 0;
}
:is(.vc-chrome.is-site, .vc-chrome.is-dash):not(.is-compact) .vc-socials.is-site { order: 10; }

/* Laptop and tablet card (the actions sit under the identity): still one row, right-aligned, no stretched group gap. */
@container vc-card (max-width: 980px) {
    :is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-plate-flank.is-actions { justify-content: flex-end; }
}

/* Phone: the text buttons share each line (the primary first), the admin square stays at the end of its line. With
   the admin icon hidden the text buttons simply take the whole line; with VTC Studio hidden the primary and the icon
   share one line. */
@media (max-width: 767.98px) {
    :is(.vc-chrome.is-site, .vc-chrome.is-dash):not(.is-compact) .vc-plate-flank.is-actions > :is(.vc-primary, .vc-status, .vc-area-btn) { flex: 1 1 200px; }
    :is(.vc-chrome.is-site, .vc-chrome.is-dash):not(.is-compact) .vc-manage > .vc-studio-btn { flex: 1 1 140px; }
}

/* The compact header on a phone or a short landscape screen hides VTC Studio and the admin icon (chrome.css, same
   condition); display: contents above must not bring them back there. */
@media (max-width: 767.98px), (max-width: 1199.98px) and (orientation: landscape) and (max-height: 500px) {
    :is(.vc-chrome.is-site, .vc-chrome.is-dash).is-compact .vc-manage { display: none; }
}

/* Above phone width VTC Studio keeps its own width (chrome.css lets it grow), so the group stays packed at the right. */
@media (min-width: 768px) {
    :is(.vc-chrome.is-site, .vc-chrome.is-dash) .vc-manage > .vc-studio-btn { flex: 0 0 auto; }
}

/* High-rank VTLOG Staff working on another company (CompanyStaffAccess): one plain line above the company chrome. */
.vh-staff-acting { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .75rem; padding: .55rem .8rem; border: 1px solid rgba(255, 153, 0, .5); border-left-width: 3px; background: rgba(255, 153, 0, .08); color: #e8e8e8; font-size: .86rem; line-height: 1.4; }
.vh-staff-acting > i { color: #ff9900; margin-top: .15rem; }
.vh-staff-acting b { color: #ffb84d; }
