/* Servixo 4.17 premium legacy upload and public portal motion */

/* Public portal cards: use the full lower area for a lightweight animated story. */
.sx-home-hero .sx-portal-grid{
  align-items:stretch;
}
.sx-home-hero .sx-portal-feature-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:570px;
  overflow:hidden;
}
.sx-home-hero .sx-portal-feature-card>h3{
  margin-bottom:8px;
}
.sx-home-hero .sx-portal-feature-card>p{
  margin-bottom:0;
}
.sx-portal-visual{
  position:relative;
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  justify-content:flex-end;
  min-height:292px;
  margin-top:14px;
  margin-bottom:8px;
  padding:10px 10px 12px;
  border:1px solid color-mix(in srgb,var(--sx-line) 72%,transparent);
  border-radius:22px;
  overflow:hidden;
  isolation:isolate;
}
.sx-company-flow{
  background:linear-gradient(160deg,color-mix(in srgb,#ffd9ca 34%,var(--sx-card)),color-mix(in srgb,#d9f5f1 48%,var(--sx-card)));
}
.sx-employee-flow{
  background:linear-gradient(160deg,color-mix(in srgb,#e9ddff 38%,var(--sx-card)),color-mix(in srgb,#d9f5f1 42%,var(--sx-card)));
}
.sx-portal-visual::before{
  content:"";
  position:absolute;
  inset:auto -18% -36% 18%;
  height:70%;
  border-radius:50%;
  background:color-mix(in srgb,var(--sx-primary) 9%,transparent);
  filter:blur(2px);
  z-index:-1;
}
.sx-portal-visual svg{
  display:block;
  width:100%;
  height:auto;
  max-height:286px;
  overflow:visible;
  animation:sx417VisualBreathe 7s ease-in-out infinite;
}
.sx-visual-backdrop{
  fill:color-mix(in srgb,var(--sx-card) 62%,transparent);
  stroke:color-mix(in srgb,var(--sx-line) 75%,transparent);
  stroke-width:1.5;
}
.sx-portal-visual-label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-wrap:wrap;
  padding:2px 8px 0;
}
.sx-portal-visual-label span{
  font-size:10px;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--sx-muted);
}
.sx-portal-visual-label span+span::before{
  content:"•";
  margin-right:7px;
  color:color-mix(in srgb,var(--sx-primary) 55%,var(--sx-muted));
}

/* Company workflow animation */
.sx-flow-line{
  fill:none;
  stroke:color-mix(in srgb,var(--sx-primary) 48%,transparent);
  stroke-width:4;
  stroke-linecap:round;
  stroke-dasharray:9 10;
  animation:sx417FlowLine 5.8s linear infinite;
}
.sx-flow-line-two{animation-delay:-1.15s}
.sx-flow-line-three{animation-delay:-2.3s}
.sx-flow-line-four{animation-delay:-3.45s}
.sx-flow-line-five{animation-delay:-4.6s}
.sx-flow-hub>rect:first-child{
  fill:color-mix(in srgb,var(--sx-primary) 82%,#0b6f69);
  filter:drop-shadow(0 12px 18px color-mix(in srgb,var(--sx-primary) 18%,transparent));
}
.sx-flow-hub-head{fill:rgba(255,255,255,.86)}
.sx-flow-hub-row{fill:rgba(255,255,255,.62)}
.sx-flow-node>circle:first-child{
  stroke:rgba(255,255,255,.72);
  stroke-width:2;
  animation:sx417NodePulse 4.8s ease-in-out infinite;
}
.sx-node-client>circle:first-child{fill:#f4a58a}
.sx-node-calendar>circle:first-child{fill:#77c9d4;animation-delay:-1.1s}
.sx-node-team>circle:first-child{fill:#9a86d4;animation-delay:-2.2s}
.sx-node-invoice>circle:first-child{fill:#f0b85d;animation-delay:-3.3s}
.sx-node-report>circle:first-child{fill:#72cba4;animation-delay:-4.1s}
.sx-node-inner{
  fill:none;
  stroke:#fff;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Employee workflow animation */
.sx-job-route{
  fill:none;
  stroke:color-mix(in srgb,#8b6ed0 52%,transparent);
  stroke-width:5;
  stroke-linecap:round;
  stroke-dasharray:12 11;
  animation:sx417JobRoute 6.8s linear infinite;
}
.sx-job-card>rect:first-child{
  fill:color-mix(in srgb,var(--sx-card) 90%,#e8e2ff 10%);
  stroke:color-mix(in srgb,#8b6ed0 24%,var(--sx-line));
  stroke-width:1.5;
  filter:drop-shadow(0 8px 12px rgba(44,45,70,.08));
}
.sx-job-card{animation:sx417CardSignal 6.8s ease-in-out infinite}
.sx-job-card-two{animation-delay:-1.7s}
.sx-job-card-three{animation-delay:-3.4s}
.sx-job-card-four{animation-delay:-5.1s}
.sx-job-icon{fill:color-mix(in srgb,#8b6ed0 18%,#f4efff)}
.sx-job-icon-mark{
  fill:none;
  stroke:#7654c4;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sx-job-copy{fill:color-mix(in srgb,var(--sx-muted) 26%,transparent)}
.sx-job-complete{fill:#68c59d}
.sx-job-complete-mark{
  fill:none;
  stroke:#fff;
  stroke-width:2.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sx-route-pulse{
  fill:#fff;
  stroke:#8b6ed0;
  stroke-width:4;
  animation:sx417RoutePulse 6.8s ease-in-out infinite;
}
.sx-route-pulse-two{animation-delay:-1.7s}
.sx-route-pulse-three{animation-delay:-3.4s}
.sx-route-pulse-four{stroke:#45ae83;animation-delay:-5.1s}

@keyframes sx417VisualBreathe{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@keyframes sx417FlowLine{
  to{stroke-dashoffset:-76}
}
@keyframes sx417JobRoute{
  to{stroke-dashoffset:-92}
}
@keyframes sx417NodePulse{
  0%,100%{opacity:.82;filter:brightness(1)}
  50%{opacity:1;filter:brightness(1.08)}
}
@keyframes sx417CardSignal{
  0%,100%{opacity:.76}
  22%,48%{opacity:1}
}
@keyframes sx417RoutePulse{
  0%,100%{opacity:.42}
  18%,36%{opacity:1}
}

/* Premium legacy backup uploader */
.sx-legacy-upload-premium{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:end;
}
.sx-legacy-upload-field{
  display:grid;
  gap:8px;
  min-width:0;
}
.sx-legacy-upload-title{
  display:block;
  font-weight:850;
  color:var(--sx-ink);
}
.sx-legacy-upload-shell{
  position:relative;
  min-width:0;
}
.sx-legacy-file-input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.sx-legacy-dropzone{
  display:flex!important;
  align-items:center;
  gap:16px!important;
  min-height:116px;
  padding:19px 21px;
  border:1.5px dashed color-mix(in srgb,var(--sx-primary) 42%,var(--sx-line));
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--sx-primary) 6%,var(--sx-card)),color-mix(in srgb,#24aeea 5%,var(--sx-card)));
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.sx-legacy-dropzone[hidden]{display:none!important}
.sx-legacy-dropzone:hover,
.sx-legacy-upload-shell.is-dragover .sx-legacy-dropzone{
  border-color:var(--sx-primary);
  background:linear-gradient(135deg,color-mix(in srgb,var(--sx-primary) 10%,var(--sx-card)),color-mix(in srgb,#24aeea 8%,var(--sx-card)));
  transform:translateY(-1px);
}
.sx-legacy-file-input:focus-visible+.sx-legacy-dropzone{
  outline:3px solid color-mix(in srgb,var(--sx-primary) 28%,transparent);
  outline-offset:3px;
}
.sx-legacy-upload-icon,
.sx-legacy-file-badge{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:52px;
  height:52px;
  border-radius:15px;
  background:linear-gradient(135deg,var(--sx-primary),#18afe0);
  color:#fff;
}
.sx-legacy-upload-icon svg,
.sx-legacy-file-badge svg,
.sx-legacy-button-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sx-legacy-upload-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.sx-legacy-upload-copy strong{
  font-size:17px;
  color:var(--sx-ink);
}
.sx-legacy-upload-copy>span{
  color:var(--sx-muted);
  font-weight:650;
}
.sx-legacy-upload-copy small{
  color:var(--sx-muted);
  font-weight:500;
}
.sx-legacy-file-selection{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-height:116px;
  padding:16px 18px;
  border:1px solid color-mix(in srgb,var(--sx-primary) 36%,var(--sx-line));
  border-radius:18px;
  background:color-mix(in srgb,var(--sx-primary) 7%,var(--sx-card));
}
.sx-legacy-file-selection[hidden]{display:none!important}
.sx-legacy-file-badge{
  width:46px;
  height:46px;
  border-radius:13px;
}
.sx-legacy-file-copy{
  display:grid;
  gap:4px;
  min-width:0;
}
.sx-legacy-file-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--sx-ink);
}
.sx-legacy-file-copy small{color:var(--sx-muted)}
.sx-legacy-file-remove{
  min-height:42px!important;
  white-space:nowrap;
}
.sx-legacy-analyze-button{
  align-self:end;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:190px;
  width:auto;
  height:116px;
  min-height:116px!important;
  padding-inline:24px!important;
}
.sx-legacy-button-icon{
  display:grid;
  place-items:center;
}
.sx-legacy-button-icon svg{width:22px;height:22px}

@media(max-width:1000px){
  .sx-home-hero .sx-portal-feature-card{min-height:520px}
  .sx-portal-visual{min-height:260px}
}
@media(max-width:900px){
  .sx-legacy-upload-premium{grid-template-columns:1fr}
  .sx-legacy-analyze-button{align-self:stretch;height:auto;min-height:52px!important;min-width:0;width:100%}
}
@media(max-width:720px){
  .sx-home-hero .sx-portal-feature-card{min-height:440px}
  .sx-portal-visual{min-height:230px;margin-top:12px;margin-bottom:6px}
  .sx-portal-visual-label{gap:5px}
  .sx-portal-visual-label span{font-size:9px}
  .sx-legacy-dropzone{align-items:flex-start;min-height:0;padding:16px}
  .sx-legacy-file-selection{grid-template-columns:auto minmax(0,1fr);min-height:0;padding:14px}
  .sx-legacy-file-remove{grid-column:1/-1;width:100%}
}
@media(max-width:480px){
  .sx-home-hero .sx-portal-feature-card{min-height:400px}
  .sx-portal-visual{min-height:210px;margin-top:10px;margin-bottom:5px;padding:7px 7px 10px;border-radius:18px}
  .sx-portal-visual svg{max-height:230px}
  .sx-legacy-dropzone{gap:12px!important}
  .sx-legacy-upload-icon{width:46px;height:46px;border-radius:13px}
  .sx-legacy-upload-copy strong{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .sx-portal-visual svg,
  .sx-flow-line,
  .sx-flow-node>circle:first-child,
  .sx-job-route,
  .sx-job-card,
  .sx-route-pulse{
    animation:none!important;
  }
  .sx-legacy-dropzone{transition:none}
}
