/* Shared EXO-S visual finish, based on the SFM blue-petrol and teal palette. */
body.company-4 {
  --teal: #0d9488;
  --teal-hover: #0b8178;
  --teal-50: #e8f6f4;
  --teal-100: #c5e5e1;
  --teal-glow: rgba(13, 148, 136, .2);
  --ui-cyan: #176d84;
}

/* Keep the same navigation colors while moving between modules. */
body.company-4 #sidebar {
  background: linear-gradient(165deg, #132a3d 0%, #103647 54%, #0d4b4e 100%) !important;
  box-shadow: 12px 0 38px rgba(11, 42, 57, .2), inset -1px 0 rgba(255,255,255,.12);
}
body.company-4 #sidebar::before {
  background: linear-gradient(128deg, rgba(255,255,255,.12), rgba(255,255,255,.025) 28%, transparent 56%),
    radial-gradient(circle at 6% 4%, rgba(86,186,200,.17), transparent 62%),
    radial-gradient(circle at 100% 38%, rgba(13,148,136,.18), transparent 65%);
}
body.company-4 .sb-nav a.active,
body.company-4 .sb-nav .nav-static.active {
  color: #f2fffd;
  background: linear-gradient(100deg, rgba(13,148,136,.42), rgba(23,109,132,.24));
  box-shadow: inset 3px 0 #79d8cf, 0 8px 20px rgba(5,24,39,.18);
}

/* Employee-style title card for every module that uses the shared header. */
body.company-4 .page-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 42%),
    linear-gradient(113deg, #102b43 0%, #155568 57%, #126c78 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 44px rgba(16,58,76,.2), inset 0 1px rgba(255,255,255,.2);
}
body.company-4 .page-header::before {
  background: radial-gradient(circle, rgba(157,226,226,.23) 0%, rgba(114,199,209,.08) 43%, transparent 69%);
}
body.company-4 .page-header h2 { color: #fff; }
body.company-4 .page-header h2 + div,
body.company-4 .page-header p,
body.company-4 .page-header small { color: #d8eff0 !important; }
body.company-4 .page-header .btn-primary {
  color: #fff;
  background: linear-gradient(115deg, #0d9488, #176d84);
  border-color: rgba(255,255,255,.24);
  box-shadow: inset 0 1px rgba(255,255,255,.26), 0 7px 17px rgba(7,38,52,.22);
}
body.company-4 .page-header .btn-secondary,
body.company-4 .page-header .btn-light,
body.company-4 .page-header .btn-outline-secondary {
  color: #fff;
  background: linear-gradient(125deg,rgba(255,255,255,.19),rgba(255,255,255,.07));
  border-color: rgba(255,255,255,.32);
}

/* SFM uses the same title-card shape as Employees. */
body.company-4 .sfm-wrap .sfm-top {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  min-height: 132px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: linear-gradient(125deg,rgba(255,255,255,.12),transparent 42%),
    linear-gradient(113deg,#102b43 0%,#155568 57%,#126c78 100%);
  box-shadow: 0 20px 44px rgba(16,58,76,.2),inset 0 1px rgba(255,255,255,.2);
}
body.company-4 .sfm-wrap .sfm-top::after {
  content: "";
  position: absolute;
  top: -115px;
  right: 8%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,.025),0 0 0 88px rgba(255,255,255,.018);
  pointer-events: none;
}
body.company-4 .sfm-wrap .sfm-top > * { position: relative; z-index: 1; }
body.company-4 .sfm-wrap .sfm-eyebrow { color: #a9e6df; }
body.company-4 .sfm-wrap .sfm-title { color: #fff; }
body.company-4 .sfm-wrap .sfm-sub { color: #d8eff0; }

/* Gloss stays subtle on white cards; colored state cards keep their status colors. */
body.company-4 #main-content .card:not(.card-hover):not(.stat-card) {
  background-image: linear-gradient(128deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.52) 24%,rgba(255,255,255,.04) 59%,transparent 74%),
    linear-gradient(155deg,#fff,#f7fafc);
  box-shadow: 0 9px 28px rgba(18,54,71,.065), inset 0 1px rgba(255,255,255,.96);
}
body.company-4 .stat-card {
  background-image: linear-gradient(128deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.52) 28%,transparent 63%),
    linear-gradient(145deg,#fff,#f4f9fa) !important;
  box-shadow: 0 11px 30px rgba(18,54,71,.09), inset 0 1px #fff;
}
body.company-4 .stat-card::before { background: linear-gradient(180deg,#0d9488,#176d84); }
body.company-4 .row > [class*="col"]:nth-child(4n+2) .stat-card::before { background: linear-gradient(180deg,#155568,#328397); }
body.company-4 .row > [class*="col"]:nth-child(4n+3) .stat-card::before { background: linear-gradient(180deg,#176d84,#4a91a0); }
body.company-4 .row > [class*="col"]:nth-child(4n+4) .stat-card::before { background: linear-gradient(180deg,#126c78,#159487); }
body.company-4 .stat-card::after { background: radial-gradient(circle,rgba(13,148,136,.14),transparent 70%); }

/* Shared buttons use the SFM primary gradient and a restrained gloss highlight. */
body.company-4 .btn { box-shadow: inset 0 1px rgba(255,255,255,.22), 0 5px 14px rgba(15,61,77,.08); }
body.company-4 .btn-primary {
  color: #fff;
  background: linear-gradient(115deg,#0d9488 0%,#0e858b 52%,#176d84 100%);
  border-color: #0e858b;
}
body.company-4 .btn-primary:hover,
body.company-4 .btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(115deg,#0b8178 0%,#0b727d 52%,#145c7b 100%);
  border-color: #0b727d;
}
body.company-4 .btn-secondary { background: linear-gradient(135deg,#fff,#edf5f7); }
@media (prefers-reduced-motion: reduce) {
  body.company-4 .page-header::before { animation: none; }
}

/* Header actions share one SFM gradient, regardless of Bootstrap button variant. */
body.company-4 .page-header .btn,
body.company-4 .sfm-wrap .sfm-top .sfm-actions .sfm-btn {
  color: #fff !important;
  background: linear-gradient(115deg,#0d9488 0%,#0e858b 52%,#176d84 100%) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.24),0 6px 15px rgba(10,65,80,.2) !important;
}
body.company-4 .page-header .btn:hover,
body.company-4 .sfm-wrap .sfm-top .sfm-actions .sfm-btn:hover {
  color: #fff !important;
  background: linear-gradient(115deg,#0b8178 0%,#0b727d 52%,#145c7b 100%) !important;
  border-color: rgba(255,255,255,.34) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.28),0 8px 18px rgba(10,55,75,.26) !important;
}

/* Compact module artwork centered in the EXO-S shop floor title card. */
body.company-4 .sfm-wrap .sfm-top .sfm-header-art {
  position: relative; z-index: 1; display: block; flex: 0 1 210px;
  width: 210px; height: 124px; object-fit: contain; margin: -10px auto -12px;
  filter: drop-shadow(0 10px 18px rgba(3, 20, 31, .24)); pointer-events: none;
}
@media (max-width: 700px) {
  body.company-4 .sfm-wrap .sfm-top .sfm-header-art { width: 150px; height: 92px; margin: -7px auto; }
}

@keyframes exosHeaderPhotoIn {
  from { opacity: 0; transform: translate(-50%, 12px) scale(.94); filter: blur(4px); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
}
body.company-4 .sfm-wrap .sfm-top { min-height: 148px; }
body.company-4 .sfm-wrap .sfm-top .sfm-header-art {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(105px, 13vw, 174px); height: 136px; margin: 0;
  animation: exosHeaderPhotoIn .7s cubic-bezier(.2,.75,.25,1) both;
}
@media (max-width: 860px) {
  body.company-4 .sfm-wrap .sfm-top .sfm-header-art { left: 60%; width: 112px; height: 112px; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  body.company-4 .sfm-wrap .sfm-top .sfm-header-art { animation: none; }
}
body.company-4 .sfm-wrap .sfm-top { min-height: 198px; }
body.company-4 .sfm-wrap .sfm-top .sfm-header-art { width: 246px; height: 188px; }
@media (max-width: 860px) {
  body.company-4 .sfm-wrap .sfm-top { min-height: 170px; }
  body.company-4 .sfm-wrap .sfm-top .sfm-header-art { left: 62%; width: 180px; height: 158px; }
}
/* Keep the existing SFM header dimensions; fit the photo inside its center slot. */
body.company-4 .sfm-wrap .sfm-top { min-height: 132px; }
body.company-4 .sfm-wrap .sfm-top .sfm-header-art { left: 55%; width: 164px; height: 132px; }
@media (max-width: 860px) {
  body.company-4 .sfm-wrap .sfm-top { min-height: 132px; }
  body.company-4 .sfm-wrap .sfm-top .sfm-header-art { left: 57%; width: 124px; height: 116px; }
}
/* SFM photo: show the full cutout in the existing title card without changing its size. */
body.company-4 .sfm-wrap .sfm-top { min-height: 132px; }
body.company-4 .sfm-wrap .sfm-top .sfm-header-art {
  z-index: 2; left: 52%; top: 50%; width: 166px; height: 154px;
  object-fit: contain; object-position: center center;
}
body.company-4 .sfm-wrap .sfm-top .sfm-actions,
body.company-4 .sfm-wrap .sfm-top > div:first-child { position: relative; z-index: 3; }
@media (max-width: 860px) {
  body.company-4 .sfm-wrap .sfm-top .sfm-header-art { left: 52%; width: 126px; height: 118px; }
}
@keyframes exosHeaderPhotoIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.94); filter: blur(4px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

body.company-4 .sfm-assignee-picker { display: grid; gap: 6px; width: 100%; min-width: 0; }
body.company-4 .sfm-assignee-search {
  width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #cbd5e1;
  border-radius: 8px; padding: 8px 10px; background: #fff; color: #17324d;
  font: inherit; font-size: 12px;
}
body.company-4 .sfm-assignee-search:focus {
  outline: 2px solid rgba(13,148,136,.24); border-color: #0d9488;
}
