/* Podstawowe style dla wtyczki Kontakt - Baza pracowników */
.cd-search-wrapper {
  margin-bottom: 1rem;
}
.cd-search-input {
  width: 100%;
  max-width: 480px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.cd-search-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 20px; /* zapobiega skokom układu przy pojawieniu się loadera */
}
.cd-search-status .cd-loader {
  width: 20px;
  height: 20px;
  color: inherit;
}
.cd-loader {
  display: inline-block;
  vertical-align: middle;
}

/* Animacja spinnera: przeniesiona z inline <style> w SVG */
.cd-spinner {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: cd-rot 1s linear infinite;
}
.cd-spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 80;
  stroke-dashoffset: 60;
}

@keyframes cd-rot {
  100% { transform: rotate(360deg); }
}

.cd-departments {
  display: grid;
  grid-gap: 1rem;
    @media  (max-width: 700px) {
        grid-template-columns: auto !important;
    }
}
/* prosty layout kolumn - pomaga dla różnych wartości columns */
.cd-columns-1 { grid-template-columns: 1fr; }
.cd-columns-2 { grid-template-columns: repeat(2, 1fr); }
.cd-columns-3 { grid-template-columns: repeat(3, 1fr); }
.cd-columns-4 { grid-template-columns: repeat(4, 1fr); }
.cd-department-card {
  border: 1px solid #e5e5e5;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
}
.cd-department-title { margin-top: 0; margin-bottom: 1rem; }
.cd-employee-list { list-style: none; margin: 0; padding: 0; }
.cd-employee { margin-bottom: 0.5rem;
    padding: 1.3rem;
    border: 1px solid #ebebeb;
    border-radius: 1rem;
}
.cd-employee-name { margin-bottom: 0.25rem; }

/* klasy dostępności - jeśli motyw nie posiada screen-reader-text */
.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
