.agent-table-thead {
  background-color: #e5ecf4;
}

.search-agent-title {
  font-size: 32px !important;
  text-align: left;
}

#search-agent {
  height: 60px;
  padding: 0 30px;
  width: 100%;
  border-radius: 3px;
  font-size: 16px;
  border: 2px solid #ccdbe2;
  box-sizing: border-box;
  font-size: 20px;
  color: #484747;
}

.search-agent-label {
  font-size: 16px;
  color: rgba(53, 56, 80, 0.5);
  margin-top: 10px;
}

.agents-xlsx-wrap {
  display: flex;
  margin: 28px 0px 8px;
}

.agents-xlsx-document {
  display: inline-block;
  width: 33.3%;
  min-height: 56px;
  padding: 0 70px;
  margin: 0 0 30px 0;
  background: url(xlsx.svg) 0 0 no-repeat;
  font-size: 18px !important;
}

.agents-xlsx-document__description {
  display: block;
  margin: 0 0 5px 0;
  line-height: 1.3;
  color: #484747;
}

.agents-xlsx-document__updated {
  display: block;
  color: rgba(53, 56, 80, 0.4);
  font-size: 16px;
}

.search-bar {
  display: flex;
  justify-content: space-between;
}

.search-bar-col {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
}

.search-bar-col:not(:last-child) {
  margin-right: 20px;
}

.search-bar-col-but {
  flex-basis: 218px;
  flex-grow: 0;
  flex-shrink: 0;
}

.search-agent-submit {
  width: 100%;
  background: none repeat scroll 0 0 #d2e4ec;
  text-align: center;
  border-radius: 3px;
  line-height: 44px;
  border: none;
  color: #526f80;
  text-decoration: none;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -khtml-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  height: 60px;
  line-height: 60px;
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
  font-weight: 400;
}

.search-agent-submit:hover {
  background: none repeat scroll 0 0 #004990;
  color: #fff;
}

.nowrap {
  white-space: nowrap;
}

.agent-section {
  margin-top: 70px;
}

.agent-item:not(:last-child) {
  border-bottom: 1px solid #dbdce0;
}

.agent-item:not(:first-child) {
  margin-top: 60px;
}
.agent-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

.agent-item-row:not(:last-child) {
  margin-bottom: 20px;
}
.agent-item-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.agent-item-col {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
}
.agent-item-title {
  font-size: 14px;
  color: #999;
  margin: 5px 0;
}

.agent-item-name {
  color: #484747;
  font-size: 18px;
  font-weight: 600;
  margin: 5px 0;
}

.agent-item-type {
  margin: 5px 0;
  text-transform: capitalize;
}

.agent-col-w25:not(:last-child) {
  margin-bottom: 20px;
}
.agent-col-w25 {
  flex-basis: 25%;
}

.agent-accordion-head {
  color: #484747;
  padding-left: 20px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  position: relative;
  display: inline-block;
  font-size: 18px;
  text-underline-offset: 5px;
}

.agent-accordion-head:before {
  content: '';
  width: 6px;
  height: 6px;
  border-bottom: 1px solid #000;
  border-right: 1px solid #000;
  left: 2px;
  top: 7px;
  position: absolute;
  transition: all 0.3s;
  transform: rotate(45deg);
}

.agent-accordion-head-active.agent-accordion-head:before {
  transform: rotate(-135deg);
  top: 9px;
}

.agent-accordion-body {
  display: none;
  margin-top: 20px;
  margin-left: 20px;
}

#agent-contract-end {
  text-transform: capitalize;
}

.form__error {
  display: none;
  margin-top: 10px;
  margin-bottom: 30px;
  color: red;
  font-size: 18px !important;
}

/* Дополнительные стили для результатов поиска */
.agents-count {
    font-size: 18px;
    color: #484747;
    margin: 20px 0 30px;
    padding: 15px 20px;
    background-color: #e5ecf4;
    border-radius: 3px;
}

.agents-loading {
    text-align: center;
    padding: 60px;
    color: #999;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 3px;
    margin-top: 20px;
}

.agents-not-found {
    text-align: center;
    padding: 60px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 3px;
    color: #856404;
    font-size: 18px;
    margin-top: 20px;
}

.agents-error {
    text-align: center;
    padding: 60px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    color: #721c24;
    font-size: 18px;
    margin-top: 20px;
}

/* Стили для ссылок в карточках */
.agent-item-name a {
    color: #484747;
    text-decoration: underline;
    transition: color 0.3s;
}

.agent-item-name a:hover {
    color: #004990;
}

/* Адаптивность */
@media (max-width: 768px) {
    .agent-item-row {
        flex-direction: column;
    }
    
    .agent-item-col {
        width: 100% !important;
        margin-bottom: 15px;
        padding-right: 0;
    }
    
    .agent-col-w25 {
        flex-basis: 100%;
    }
    
    .agent-accordion-head {
        font-size: 16px;
        padding-left: 25px;
    }
    
    .agent-accordion-head:before {
        left: 5px;
    }
}

/* Стили для списков в аккордеонах */
.agent-accordion-body ul {
    list-style-type: none;
    padding-left: 0;
}

.agent-accordion-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.agent-accordion-body li:before {
    content: "•";
    color: #526f80;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Убедимся, что аккордеоны работают */
.agent-accordion-body {
    display: none;
}

.agent-accordion-head-active + .agent-accordion-body {
    display: block;
}