﻿.survey-page .buttons,
.survey-page .title,
.survey-page .page-title {
  text-align: center;
}

.survey-page .button-1 {
  min-width: 140px;
  border: none;
  padding: 10px 30px;
  text-align: center;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
}

.survey-page .date-picker-wrapper {
  display: inline;
}

.survey-page .date-picker-wrapper select {
    width: 31%;
    max-width: 126px;
}

@media (min-width: 1001px) {
  .survey-page select + select {
    margin: 0 0 0 11px;
  }
}

.survey-page select + select {
  margin: 0 0 0 10px;
}


.attribute-square-container {
  margin: 3px;
}

.attribute-squares input:checked + span .attribute-square {
  box-shadow: 0 0 0 5px #4ab2f1;
}

.inputs .option-list.attribute-squares li {
  padding: 0;
}

.inputs {
  font-size: inherit;
}

.file-uploader-container {
  display: block;
}

.file-uploader-control {
  margin-top: 5px;
}

.survey-input label {
  position: relative;
}
.survey-input label sup {
    position: relative;
}
.survey-input label sup .attribute-description {
  position: absolute;
  opacity: 0;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  font-size: 12px;
  top: 80%;
  transition: 0.3s;
  padding: 2px 8px;
  left: 0;
}

.survey-input label sup:hover .attribute-description {
  opacity: 1;
}

.survey-input.inputs > label {
  display: block;
  white-space: normal;
  text-align: left;
  margin: 0.4rem 0;
}

.survey-page .title {
  line-height: 1.4;
}

.survey-input.inputs .option-list {
  white-space: normal;
  max-width: auto;
}

.survey-input.inputs .option-list li {
  display: inline-block;
  margin: 5px;
  border: 1px solid #ddd;
  background-color: #fff;
}

.survey-submission .survey-field-value {
  text-align: left;
}

.surveys-table-container {
  background: #fff;
}

.inputs input[type="number"], .inputs input[type="range"] {
  height: 40px;
  color: #8c8c8c;
  border-radius: 3px;
  width: 100%;
  vertical-align: middle;
  border: 1px solid #e7e7e7;
  padding: 0 20px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
}

.pp-slider {
  width: 100%;
  font-family: sans-serif;
}

.pp-top {
  display: flex;
  justify-content: flex-end;
  font-weight: 600;
  margin-bottom: 6px;
}

.pp-track {
  position: relative;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
}

.pp-fill {
  position: absolute;
  height: 100%;
  background: #4f46e5;
  border-radius: 4px;
  width: 0;
}

.pp-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #4f46e5;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pp-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

table.dataTable tbody tr {
  height: 56px;
}

table.dataTable tbody td {
  vertical-align: middle;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

table.dataTable thead th {
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb !important;
}

.status-badge {
  padding: 5px 14px;
  padding-left: 20px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.status-completed {
  background: #67B56D38;
  color: #67B56D;
}

.status-processing {
  background: #FFA60038;
  color: #FFA600;
}

.status-pending {
  background: #F13E3E38;
  color: #F13E3E;
}

.status-submitted {
  background: #67B56D38;
  color: #67B56D;
}

.status-approved {
  background: #67B56D38;
  color: #67B56D;
}

.status-rejected {
  background: #F13E3E38;
  color: #F13E3E;
}

.status-badge::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  left: 7px;
}

.status-completed::before {
  background: #67B56D;
}

.status-processing::before {
  background: #FFA600;
}

.status-pending::before {
  background: #F13E3E;
}

.status-submitted::before {
  background: #67B56D;
}

.status-approved::before {
  background: #67B56D;
}

.status-rejected::before {
  background: #F13E3E;
}

.dataTables_wrapper .dataTables_length select {
  height: 32px;
  margin-inline: 10px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 5px;
  margin-left: 10px;
  margin-bottom: 20px;
  border: 1px solid #9E9E9E50;
}

.account-page table.dataTable.compact thead th {
  background: #F2F2F2;
  padding: 10px 26px 10px 10px;
  border-bottom: none !important;
}

.account-page table.dataTable tbody td {
  padding: 10px;
  background: #fff;
  box-shadow: none !important;
  border-bottom: 2px solid #F2F2F2;
  border-top: none !important;
  color: #000;
}

.account-page table.dataTable tbody tr {
  height: auto;
}

table.dataTable.no-footer {
  border-bottom: none;
}

table.dataTable {
  text-align: left;
  margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #fff;
  border-radius: 5px;
  border: 1px solid #9E9E9E;
  color: #9E9E9E;
}

.account-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #b9b9b9 !important;
}

  .account-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-radius: 5px;
  }

.view-link {
  color: #dc2626;
  text-decoration: underline;
  font-weight: 500;
}

  .view-link:hover {
    color: #b91c1c;
  }

@media all and (max-width: 640px) {
  .dataTables_wrapper .dataTables_length {
    float: left;
  }

  .dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
  }

  .dataTables_wrapper .dataTables_length select {
    margin-inline: 5px;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 120px;
  }

  .dataTables_wrapper .dataTables_paginate {
    margin-block: 1.5em;
  }
}

@media all and (max-width: 567px) {
  .account-page table.dataTable.compact thead th {
    padding: 5px 21px 5px 3px;
  }

  .account-page table.dataTable tbody td {
    padding: 10px 3px;
    font-size: 12px;
  }

  .status-badge {
    padding: 0;
    padding-left: 0;
    font-size: 0;
  }

    .status-badge::before {
      left: 0px;
    }

  .survey-status {
    text-align: center;
  }
}
.survey-details-page {
  background: #fff;
}

.breadcrumb-area {
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b7280;
  padding: 12px 0;
}

.breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

  .breadcrumb-link:hover {
    color: #374151;
    text-decoration: underline;
  }

.breadcrumb-separator {
  margin: 0 8px;
  color: #9ca3af;
}

.breadcrumb-current {
  color: #374151;
  font-weight: 500;
}

.survey-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.survey-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.survey-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.survey-meta {
  font-size: 14px;
  color: #6b7280;
}

.survey-sent-date strong {
  color: #374151;
  font-weight: 600;
}

.survey-submission-details {
  background: #fff;
}

.survey-field-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

  .survey-field-row:last-child {
    border-bottom: none;
  }

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.field-value {
  font-size: 14px;
  color: #111827;
  word-break: break-word;
}

.no-data {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* Status badge in header */
.survey-status-badge {
  display: inline-block;
  padding: 6px 16px;
  padding-left: 24px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}

  .survey-status-badge.status-pending {
    background: #F13E3E38;
    color: #F13E3E;
  }

  .survey-status-badge.status-processing {
    background: #FFA60038;
    color: #FFA600;
  }

  .survey-status-badge.status-completed,
  .survey-status-badge.status-submitted,
  .survey-status-badge.status-approved {
    background: #67B56D38;
    color: #67B56D;
  }

  .survey-status-badge.status-rejected {
    background: #F13E3E38;
    color: #F13E3E;
  }

  .survey-status-badge::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
  }

  .survey-status-badge.status-pending::before {
    background: #F13E3E;
  }

  .survey-status-badge.status-processing::before {
    background: #FFA600;
  }

  .survey-status-badge.status-completed::before,
  .survey-status-badge.status-submitted::before,
  .survey-status-badge.status-approved::before {
    background: #67B56D;
  }

  .survey-status-badge.status-rejected::before {
    background: #F13E3E;
  }

@media all and (max-width: 768px) {
  .survey-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-label {
    font-weight: 700;
  }

  .survey-title {
    font-size: 18px;
  }

  .survey-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media all and (max-width: 567px) {
  .breadcrumb-area {
    font-size: 12px;
  }

  .survey-header {
    margin-bottom: 20px;
  }

  .survey-title {
    font-size: 16px;
  }

  .survey-meta {
    font-size: 12px;
  }
}