/**
 * @file
 * Case Status search form layout and fields.
 */

.nclt-search-form {
  width: 100%;
}

.nclt-search-form form {
  width: 100%;
}

.nclt-search-form .searcharea {
  margin: 0;
}

.nclt-search-form .form-group {
  margin-bottom: 1rem;
}

.nclt-search-form .form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #052e51;
}

.nclt-search-form .form-control,
.nclt-search-form select.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #969696;
  border-radius: 4px;
  font-size: 14px;
  color: #000;
  background: #fff;
  box-shadow: 1px 0 4px rgba(204, 204, 204, 0.45);
}

.nclt-search-form .form-control:focus,
.nclt-search-form select.form-control:focus {
  border-color: #be9937;
  outline: none;
  box-shadow: 0 0 0 2px rgba(190, 153, 55, 0.2);
}

.nclt-search-form .fb-notice {
  margin-bottom: 1.25rem;
  padding: 12px 16px;
  border-left: 4px solid #be9937;
  border-radius: 4px;
  background: #fff8e8;
  color: #4a3b10;
}

.nclt-search-form .fb-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.nclt-captcha-panel {
  margin-top: 0.5rem;
}

.nclt-captcha-panel__inner {
  padding: 1rem 1.1rem;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #fff;
}

.nclt-captcha-panel__title {
  display: block;
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e8edf3;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #052e51;
}

.nclt-captcha-panel__title .required {
  color: #c0392b;
}

.nclt-captcha-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nclt-captcha-panel__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px dashed #be9937;
  border-radius: 4px;
  background: #f7f9fc;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #052e51;
  text-decoration: none !important;
}

.nclt-captcha-panel__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8e0ea;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nclt-captcha-panel__refresh:hover,
.nclt-captcha-panel__refresh:focus-visible {
  border-color: #be9937;
  background: #fff8e8;
  outline: none;
}

.nclt-captcha-panel__refresh img {
  width: 28px;
  height: 28px;
}

.nclt-captcha-panel__input {
  flex: 1 1 180px;
  max-width: 280px;
  min-height: 44px !important;
}

.nclt-search-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.nclt-search-form-actions .nclt-btn-search,
.nclt-search-form-actions .nclt-btn-reset {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 28px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nclt-search-form-actions .nclt-btn-search {
  background: #be9937;
  color: #fff;
}

.nclt-search-form-actions .nclt-btn-search:hover,
.nclt-search-form-actions .nclt-btn-search:focus-visible {
  background: #a8862f;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  outline: none;
}

.nclt-search-form-actions .nclt-btn-search:active {
  background: #96782a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nclt-search-form-actions .nclt-btn-reset {
  background: #052e51;
  color: #fff;
}

.nclt-search-form-actions .nclt-btn-reset:hover,
.nclt-search-form-actions .nclt-btn-reset:focus-visible {
  background: #001b3b;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  outline: none;
}

.nclt-search-form-actions .nclt-btn-reset:active {
  background: #001428;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .nclt-captcha-panel__input {
    max-width: 100%;
    flex-basis: 100%;
  }

  .nclt-search-form-actions .nclt-btn-search,
  .nclt-search-form-actions .nclt-btn-reset {
    width: 100%;
  }
}

/* Search result pages (Case Status + Orders) */
.nclt-search-results {
  width: 100%;
}

.nclt-search-results__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.nclt-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 40px;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  background: #052e51;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nclt-btn-back:hover,
.nclt-btn-back:focus-visible {
  background: #001b3b;
  color: #fff;
  text-decoration: none;
  outline: none;
}

.nclt-search-results .fb-notice {
  margin-bottom: 1.25rem;
  padding: 12px 16px;
  border-left: 4px solid #be9937;
  border-radius: 4px;
  background: #fff8e8;
  color: #4a3b10;
}

.nclt-search-results .fb-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.nclt-results-table {
  margin-bottom: 0;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  overflow-x: auto;
  background: #fff;
}

.nclt-results-table .table {
  margin-bottom: 0;
  border-collapse: collapse;
}

.nclt-results-table .table thead th {
  background: #be9936;
  color: #fff;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border: 1px solid #a8862f;
  vertical-align: middle;
  white-space: nowrap;
}

.nclt-results-table .table tbody td {
  padding: 10px 14px;
  font-size: 14px;
  color: #1a1a1a;
  border: 1px solid #e8edf3;
  vertical-align: top;
}

.nclt-results-table .table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.nclt-results-table .table tbody tr:hover {
  background: #fff8e8;
}

.nclt-results-table .table tbody td a {
  color: #052e51;
  font-weight: 600;
  text-decoration: underline;
}

.nclt-results-table .table tbody td a:hover {
  color: #be9937;
}

.nclt-vs {
  color: #d32f2f;
  font-weight: 700;
  padding: 0 0.15em;
}

.nclt-results-pagination {
  margin-top: 1.5rem;
}

.nclt-results-pagination .pager__items {
  justify-content: center;
}

/* Skeleton loader — neutral professional theme (search table + case details) */
.nclt-search-form,
.nclt-search-results,
.inner-page-content,
.contentarea {
  position: relative;
}

.nclt-search-section--loading {
  min-height: 360px;
}

.nclt-search-section--loading > :not(.nclt-search-loader) {
  visibility: hidden;
}

.nclt-case-details--pending-load {
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nclt-search-loader--embedded {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  padding: 8px 0 16px;
  background: #fff;
}

#nclt-case-details-skeleton.nclt-search-loader--embedded {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: 420px;
  padding: 16px 0 28px;
  background: transparent;
}

.nclt-search-loader__panel {
  width: 100%;
  max-width: 1140px;
  padding: 20px 20px 24px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(5, 46, 81, 0.08);
}

.nclt-search-form .nclt-search-loader--embedded .nclt-search-loader__panel,
.nclt-search-results .nclt-search-loader--embedded .nclt-search-loader__panel,
.inner-page-content .nclt-search-loader--embedded .nclt-search-loader__panel,
.contentarea .nclt-search-loader--embedded .nclt-search-loader__panel {
  max-width: none;
  width: 100%;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

#nclt-case-details-skeleton .nclt-search-loader__panel {
  max-width: none;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.nclt-search-loader__title {
  margin: 0 0 1.25rem;
  padding: 0 0 0.85rem 14px;
  border-left: 4px solid #052e51;
  font-family: 'open_sanssemibold', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #052e51;
}

.nclt-search-loader--embedded .nclt-search-loader__title {
  padding-left: 12px;
}

/* Shared shimmer blocks */
.nclt-skeleton {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #e8edf3 0%,
    #f4f6f9 40%,
    #ffffff 50%,
    #f4f6f9 60%,
    #e8edf3 100%
  );
  background-size: 240% 100%;
  animation: nclt-skeleton-shimmer 1.5s ease-in-out infinite;
}

.nclt-skeleton--line {
  height: 16px;
}

.nclt-skeleton--line-full {
  width: 100%;
  margin-bottom: 10px;
}

.nclt-skeleton--line-md {
  width: 78%;
}

.nclt-skeleton--label {
  width: 42%;
  height: 14px;
  margin-bottom: 10px;
}

/* Search results table skeleton */
.nclt-skeleton-table-wrap {
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.nclt-skeleton-table__head {
  display: grid;
  grid-template-columns: 56px 1fr 1.1fr 2fr 1.2fr 0.9fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 16px 14px;
  background: #eef2f6;
  border-bottom: 1px solid #d8e0ea;
}

.nclt-skeleton-table__th {
  display: block;
  height: 16px;
  border-radius: 4px;
  background: #d0d8e2;
  animation: nclt-skeleton-pulse 1.4s ease-in-out infinite;
}

.nclt-skeleton-table__row {
  display: grid;
  grid-template-columns: 56px 1fr 1.1fr 2fr 1.2fr 0.9fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 16px 14px;
  border-top: 1px solid #e8edf3;
}

.nclt-skeleton-table__row:nth-child(even) {
  background: #f7f9fc;
}

.nclt-skeleton--cell {
  height: 18px;
  border-radius: 6px;
}

/* Case details page skeleton */
.nclt-skeleton-details__summary {
  margin-bottom: 1rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(5, 46, 81, 0.06);
}

.nclt-skeleton-details__party {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
}

.nclt-skeleton--line-party {
  width: 72%;
  height: 18px;
}

.nclt-skeleton-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nclt-skeleton-details__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid #e8edf3;
  border-right: 1px solid #e8edf3;
}

.nclt-skeleton-details__item:nth-child(even) {
  border-right: none;
}

.nclt-skeleton--line-value {
  width: 68%;
  height: 16px;
}

.nclt-skeleton-details__accordion {
  margin-bottom: 12px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(5, 46, 81, 0.06);
}

.nclt-skeleton--accordion-title {
  display: block;
  height: 52px;
  border-left: 4px solid #c5cdd8;
  background: #eef2f6;
  animation: nclt-skeleton-pulse 1.4s ease-in-out infinite;
}

.nclt-skeleton-details__accordion-body {
  padding: 1rem 1.1rem;
  background: #fff;
}

@keyframes nclt-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@keyframes nclt-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.72;
  }
}

@media (max-width: 991px) {
  .nclt-skeleton-table__head,
  .nclt-skeleton-table__row {
    grid-template-columns: 40px 1fr 1fr 1.5fr 1fr 0.8fr;
  }

  .nclt-skeleton-details__grid {
    grid-template-columns: 1fr;
  }

  .nclt-skeleton-details__item {
    border-right: none;
  }
}

@media (max-width: 767px) {
  .nclt-search-section--loading {
    min-height: 300px;
  }

  .nclt-skeleton-table-wrap {
    overflow-x: auto;
  }

  .nclt-skeleton-table {
    min-width: 640px;
  }
}
