/* Componente de upload comum a todas as telas do Connect. */
.layout-upload-area.attachment-card {
  position:relative; display:flex; flex-direction:column; gap:8px;
  min-width:0; min-height:167px; padding:13px 16px 12px;
  border:1px solid #dbe7f8; border-radius:10px; background:#fff;
  color:var(--text,#0c1c3a);
}
.attachment-card .layout-upload-heading { display:block; margin:0; min-width:0; }
.attachment-card .sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.attachment-card .layout-upload-heading h5 {
  margin:0; font-size:12px; line-height:18px; font-weight:600;
  white-space:normal; overflow-wrap:anywhere;
}
.attachment-card .file-info { margin-left:4px; color:#7488a5; font-size:13px; cursor:help; border-radius:3px; }
.attachment-card .file-info:focus-visible { outline:2px solid var(--cyan,#075df1); outline-offset:2px; }
.attachment-card .layout-file-list {
  display:flex; flex-direction:column; gap:12px; flex:none; min-width:0;
  margin:0; padding:0; list-style:none; min-height:0; max-height:260px;
  overflow-y:auto; overscroll-behavior:contain;
}
.attachment-card .layout-file-list li {
  display:grid; grid-template-columns:40px minmax(0,1fr); gap:10px;
  align-items:center; min-width:0; padding:10px 0 0; border:0; font-size:12px;
}
.attachment-card .attached-file-icon {
  display:grid; place-items:center; width:40px; height:40px; flex:none;
  border-radius:7px; background:#627496; color:#fff; font-size:10px; font-weight:700;
}
.attachment-card .attached-file-icon[data-file-format=pdf] { background:#f45c64; }
.attachment-card .attached-file-icon:is([data-file-format=xlsx],[data-file-format=csv]) { background:#08b966; }
.attachment-card .attached-file-icon[data-file-format=docx] { background:#4269f5; }
.attachment-card .attached-file-details { display:flex; flex-direction:column; gap:5px; min-width:0; }
.attachment-card .attached-file-details strong {
  display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:12px; font-weight:500;
}
.attachment-card .attached-file-details small { color:#627496; font-size:11px; line-height:15px; }
.attachment-card .attached-file-actions {
  grid-column:1/-1; display:flex; justify-content:flex-end; align-items:center;
  gap:6px; padding-top:8px; margin-top:4px; border-top:1px solid #edf1f6;
}
.attachment-card .attached-file-actions .button {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:27px; min-height:32px; padding:4px; border:0; background:transparent; color:#627da4;
}
.attachment-card .attached-file-actions svg {
  width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}
.attachment-card .attached-file-actions .button.is-danger { color:#e44755; }
.attachment-card .attached-file-actions .button:hover { background:#f3f7fc; border-radius:5px; }
.attachment-card .layout-file-list li.attached-file-empty {
  display:flex; justify-content:center; align-items:center; gap:18px;
  flex:none; min-height:40px; padding:0; color:#627496; font-size:11px;
}
.attachment-card .attached-file-empty > span { display:grid; place-items:center; flex:none; width:40px; height:40px; }
.attachment-card .attached-file-empty svg { width:40px; height:40px; flex:none; stroke:#8999b2; stroke-width:1.6; fill:none; }
.attachment-card:not(.has-attachments) .layout-file-list { padding:10px 0 14px; border-bottom:1px solid #edf1f6; }
.attachment-card .layout-upload-button {
  display:inline-flex; flex:none; align-self:center; align-items:center; justify-content:center;
  gap:7px; width:auto; min-height:32px; padding:6px 11px;
  border:1px solid #9ab8f0; border-radius:6px; background:#fff;
  color:var(--blue,#12479b); font-size:11px; cursor:pointer;
}
.attachment-card .layout-upload-button .upload-file-icon {
  width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7;
  stroke-linecap:round; stroke-linejoin:round;
}
.attachment-card .layout-upload-button input {
  position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap;
}
.attachment-card.has-attachments .layout-upload-button { display:none; }
.attachment-card .layout-upload-button:hover { background:#f3f7fc; }
.attachment-card .layout-upload-button:focus-within { outline:2px solid var(--cyan,#075df1); outline-offset:2px; }
.attachment-card.is-dragging { border-color:var(--blue,#12479b); background:#f5f9ff; }
.attachment-card:has(input:disabled) .layout-upload-button { opacity:.5; cursor:default; pointer-events:none; }
.attachment-card .layout-upload-progress {
  display:grid; grid-template-columns:18px minmax(0,1fr); align-items:center;
  gap:8px; color:var(--blue,#12479b); font-size:12px; line-height:1.4; overflow-wrap:anywhere;
}
.attachment-card .layout-upload-progress[hidden] { display:none; }
.upload-progress-spinner { width:17px; height:17px; border:2px solid #d9e6fb; border-top-color:var(--blue,#12479b); border-radius:50%; animation:upload-progress-spin .8s linear infinite; }
.upload-progress-bar { position:relative; grid-column:1/-1; height:3px; overflow:hidden; border-radius:3px; background:#e4ecf8; }
.upload-progress-bar::after { position:absolute; width:35%; height:100%; background:var(--blue,#12479b); border-radius:3px; content:''; animation:upload-progress-slide 1.3s ease-in-out infinite; }
@keyframes upload-progress-spin { to { transform:rotate(360deg); } }
@keyframes upload-progress-slide { from { left:-35%; } to { left:100%; } }
@media(max-width:700px) {
  .attachment-card .attached-file-details strong { white-space:normal; overflow-wrap:anywhere; }
}
@media(prefers-reduced-motion:reduce) {
  .upload-progress-spinner,.upload-progress-bar::after { animation:none; }
  .upload-progress-bar::after { left:30%; }
}
