/* Registration page */
.registration-panel {
  padding-bottom: 28px;
}

.registration-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px 32px 0;
  border-bottom: 1px solid #e1e6f0;
}

.registration-tabs {
  display: flex;
  gap: 28px;
}

.registration-tab {
  border: none;
  background: none;
  padding: 0 0 10px;
  font-size: 20px;
  color: #656565;
  cursor: pointer;
  position: relative;
}

.registration-tab--active {
  font-weight: 700;
  color: #1F558B;
}

.registration-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #0b61aa;
}

.registration-search {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-left: 1px solid #e1e6f0;
  padding-left: 20px;
}

.registration-search input {
  border: none;
  background: transparent;
  padding: 8px 32px 8px 0;
  font-size: 14px;
  color: #212844;
  outline: none;
  width: 220px;
}

.registration-search input::placeholder {
  color: #98a1b6;
}

.registration-search i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #0b61aa;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.registration-search i:hover {
  color: #084d8a;
}

.registration-list {
  padding: 20px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 12px;
  background: #F5F5F5;
}

.registration-card__body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #000;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.registration-card__period {
  margin: 0;
  font-size: 15px;
  color: var(--uc-primary);
  letter-spacing: 0.04em;
}

.registration-card__period span {
  display: inline;
  font-size: 15px;
  color: #7e879b;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.registration-card__actions {
  border-left: 1px solid rgba(146, 158, 187, 0.4);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 16px;
}

.registration-card__status {
  background: #f5f7fb;
  font-weight: 600;
  font-size: 15px;
  text-transform: capitalize;
}

.registration-card__status--pending {
  color: #0b61aa;
}

.registration-card__status--pass {
  color: #0c9a60;
}

.registration-card__status--fail {
  color: #d93434;
}

.registration-card__action {
  border: none;
  border-radius: 12px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #656565;
  background: #E8E8E8;
}

.registration-card__action--outline {
  background: transparent;
  color: #d93434;
  border: 1px solid #d93434;
}

@media (max-width: 720px) {
  .registration-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .registration-card {
    grid-template-columns: 1fr;
  }

  .registration-card__actions {
    border-left: none;
    padding-left: 0;
  }

  .registration-card__actions::before {
    left: 0;
  }
}

/* Loading and empty states */
.registration-loading,
.registration-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7e879b;
  font-size: 15px;
}

/* Company row in card */
.registration-card__company {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7e879b;
}

.registration-card__company span {
  color: #98a1b6;
}

/* Modal styles */
.registration-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.registration-modal--visible {
  visibility: visible;
  opacity: 1;
}

.registration-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.registration-modal__container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.registration-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid #e1e6f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.registration-modal__title {
  margin: 0;
  font-size: 18px;
  color: #212844;
}

.registration-modal__close {
  border: none;
  background: none;
  font-size: 28px;
  color: #7e879b;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.registration-modal__close:hover {
  color: #212844;
}

.registration-modal__body {
  padding: 24px;
  overflow-y: auto;
}

/* Detail grid layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-row {
  display: flex;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f2f7;
}

.detail-row--full {
  grid-column: 1 / -1;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row label {
  flex: 0 0 140px;
  font-weight: 600;
  color: #7e879b;
  font-size: 14px;
}

.detail-row span {
  flex: 1;
  color: #212844;
  font-size: 14px;
}

/* Remark section */
.detail-reject-section {
  margin-top: 16px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

.detail-reject-section label {
  font-weight: 600;
  color: #7e879b;
  font-size: 14px;
  margin-right: 12px;
}

.detail-reject-section--fail {
  background: #fef2f2;
}

.detail-reject-section--fail .reject-reason {
  color: #d93434;
  font-weight: 500;
}

.detail-file-link {
  color: #0b61aa;
  text-decoration: none;
}

.detail-file-link:hover {
  text-decoration: underline;
}