/* Kontakty - lokalni vzhled modulu, bez vlivu na ostatni sekce */
.contacts-module {
  --contact-primary: #004085;
  --contact-accent: #0d6efd;
  --contact-border: #dfe6ee;
  --contact-bg: #ffffff;
  --contact-soft: #f7f9fc;
  --contact-text: #263238;
}

.contacts-module .contact-card,
.contacts-module .form-col > .dragArea,
.contacts-module .contact-related-section {
  background: var(--contact-bg);
  border: 1px solid var(--contact-border);
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.045);
}

.contacts-module .contact-section-title,
.contacts-module .hlkontakt,
.contacts-module .contact-related-section > .form-control-label {
  display: block;
  color: var(--contact-primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}

.contacts-module .hr-line {
  border: 0;
  border-top: 2px solid #e7edf4;
  margin: .35rem 0 1rem;
}

.contacts-module .form-control,
.contacts-module .form-select {
  min-height: 40px;
  border: 1px solid #cfd8e3;
  border-radius: .55rem;
  background: #fff;
}

.contacts-module .form-control:focus,
.contacts-module .form-select:focus {
  border-color: var(--contact-accent);
  box-shadow: 0 0 0 .18rem rgba(13,110,253,.12);
}

.contacts-module .form-control-label {
  color: #40556b;
  font-size: .86rem;
  font-weight: 600;
  margin-top: .35rem;
}

.contacts-module .form-row {
  align-items: flex-start;
  gap: 1rem;
}

.contacts-module .input-row {
  gap: .65rem;
}

.contacts-module .contact-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.contacts-module .contact-switch-group {
  background: var(--contact-soft);
  border: 1px solid #edf1f5;
  border-radius: .6rem;
  padding: .75rem .85rem;
}

.contacts-module .contact-switch-group-title {
  display: block;
  color: var(--contact-primary);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.contacts-module .form-check {
  margin: .25rem 0;
}

.contacts-module .swich-label {
  color: #34495e;
  font-size: .9rem;
}

.contacts-module .data-table {
  margin-bottom: 0;
  border: 1px solid var(--contact-border);
  box-shadow: none;
}

.contacts-module .data-table th {
  background: var(--contact-primary);
  padding: .7rem .75rem;
}

.contacts-module .data-table td {
  padding: .7rem .75rem;
  vertical-align: middle;
}

.contacts-module .data-table td:last-child,
.contacts-module .data-table th:last-child {
  text-align: right;
}

.contacts-module .contact-list-wrap {
  background: #fff;
  border: 1px solid var(--contact-border);
  border-radius: .75rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.045);
}

.contacts-module .search-row {
  margin-bottom: .85rem;
}

.contacts-module .search-btn,
.contacts-module .btn-secondary {
  border-radius: .55rem;
}

.contacts-module .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0 .8rem;
}

.contacts-module .contact-actions .btn {
  margin: 0;
}

.contacts-module .btn-center {
  padding-top: .75rem;
  padding-bottom: .5rem;
}

.contacts-module .btn-center .btn {
  width: auto !important;
  min-width: 220px;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 900px) {
  .contacts-module .form-row,
  .contacts-module .input-row {
    flex-direction: column;
  }

  .contacts-module .contact-settings-grid {
    grid-template-columns: 1fr;
  }

  .contacts-module .contact-list-wrap {
    overflow-x: auto;
  }

  .contacts-module .data-table {
    min-width: 760px;
  }
}

/* Doplnění rozložení pouze pro Kontakty. */
.contacts-module .form-col { width:100%; }
.contacts-module .contact-section-title { border-bottom:0; padding-bottom:0; }
.contacts-module .form-group { margin-bottom:.7rem; }
.contacts-module .contact-switch-row { padding-left:0; }
.contacts-module .contact-switch-row .switch-wrapper { display:flex; gap:.65rem; margin:.35rem 0; cursor:pointer; }
.contacts-module .contact-switch-row .switch { flex:0 0 46px; }
.contacts-module .swich-label { white-space:normal; line-height:1.4; }
.contacts-module .switch input:focus-visible + .slider { outline:3px solid #004085; outline-offset:3px; }
.contacts-module .contact-related-section { overflow-x:auto; }
.contacts-module .data-table { width:100%; }
.contacts-module .data-table td { overflow-wrap:anywhere; }
.contacts-module .data-table tbody tr:nth-child(even) { background:#f7f9fc; }
.contacts-module .data-table tbody tr:hover { background:#edf4ff; }
.contacts-module .data-table .btn { white-space:nowrap; }
@media (max-width:900px) {
 .contacts-module .form-col { flex:1 1 auto; }
 .contacts-module .search-row { display:flex; flex-wrap:wrap; gap:.5rem; }
 .contacts-module .search-input { width:100%; min-width:0; }
 .contacts-module .btn-center .btn { min-width:0; width:100% !important; }
}
