/* ============================================
   Spisok module styles - Housing waiting list
   Matching new.gorki.gov.by design
   ============================================ */

/* --- Form wrapper --- */
.spisok-info {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.spisok-info strong {
  font-weight: 700;
}

/* --- Search field --- */
#spisok-grazhdan-form .form-item-filter {
  margin: 15px 0 10px 0;
}

#spisok-grazhdan-form .form-item-filter label {
  display: block;
  margin-bottom: 5px;
  font-weight: normal;
  font-size: 14px;
  color: #333;
}

#spisok-grazhdan-form .form-text {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  color: #333;
  width: auto;
  min-width: 300px;
}

#spisok-grazhdan-form .form-text:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* --- Submit button --- */
#spisok-grazhdan-form .form-submit {
  display: inline-block;
  padding: 6px 20px;
  margin: 10px 0 15px 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

#spisok-grazhdan-form .form-submit:hover {
  background-color: #286090;
  border-color: #204d74;
}

/* --- Regulations link --- */
.spisok-regulations {
  margin: 10px 0 20px 0;
  font-size: 14px;
}

.spisok-regulations a {
  color: #337ab7;
  text-decoration: underline;
}

.spisok-regulations a:hover {
  color: #23527c;
}

/* ============================================
   TABLE STYLES - Main content
   ============================================ */

.spisok-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.spisok-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border: 2px solid #cccccc;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  background-color: #fff;
}

/* --- Table header --- */
.spisok-table thead {
  background-color: #f5f5f5;
}

.spisok-table thead th {
  padding: 10px 8px;
  border: 1px solid #cccccc;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  background-color: #f5f5f5;
  color: #333;
}

/* --- Column widths --- */
.spisok-table .col-num {
  text-align: center;
  white-space: nowrap;
}

.spisok-table .col-fio {
  padding: 8px 10px;
}

.spisok-table .col-reason {
  padding: 8px 10px;
}

.spisok-table .col-date {
  padding: 8px 10px;
}

/* --- Table body --- */
.spisok-table tbody td {
  padding: 8px;
  border: 1px solid #cccccc;
  vertical-align: top;
}

.spisok-table tbody tr.odd {
  background-color: #f9f9f9;
}

.spisok-table tbody tr.even {
  background-color: #ffffff;
}

.spisok-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* --- First column (№ п/п) specific fix --- */
.spisok-table tbody td.col-num {
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
}

/* --- Messages --- */
.messages {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
}

.messages--error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.node-content .spisok-table  tbody tr:first-child td{
font-weight: 400;
}

.form-item-filter {
  margin: 15px 0 10px 0;
}

.form-item-filter label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.form-item-filter .form-text,
#edit-filter.form-text {
  padding: 4px 6px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 2px;
  width: 100%;
  max-width: 400px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
}

.form-item-filter .form-text:focus,
#edit-filter.form-text:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.075), 0 0 8px rgba(102,175,233,0.6);
}
.form-submit,
#edit-submit,
.form-submit.button,
.form-submit.js-form-submit,
#edit-submit.button,
#edit-submit.js-form-submit {
  padding: 4px 15px;
  margin: 5px 0 15px 0;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #333;
  background-color: #f5f5f5;
  background-image: linear-gradient(to bottom, #fff, #e6e6e6);
  text-shadow: 0 1px 0 #fff;
  cursor: pointer;
}

.form-submit:hover,
#edit-submit:hover {
  background-image: linear-gradient(to bottom, #e6e6e6, #d4d4d4);
  border-color: #adadad;
}

.form-submit:active,
#edit-submit:active {
  background-image: linear-gradient(to bottom, #d4d4d4, #e6e6e6);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}