.f15-sqr-tool {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.f15-card {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.f15-hero {
  display: none;
}

.f15-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.f15-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.f15-field label {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
}

#f15_sqr_file {
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 1.5px dashed #c9d5ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  color: #475467;
  font-size: 14px;
  box-sizing: border-box;
}

#f15_sqr_file:hover {
  border-color: #8bbcff;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

#f15_sqr_file:focus {
  outline: none;
  border-color: #1f6fff;
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
}

#f15_sqr_file::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: #1f6fff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#f15_sqr_file::file-selector-button:hover {
  background: #155eef;
}

#f15_sqr_file::-webkit-file-upload-button {
  margin-right: 14px;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: #1f6fff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.f15-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 16px 24px;
  border: 0;
  border-radius: 18px;
  background: #1f6fff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 111, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.f15-btn:hover {
  background: #155eef;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 111, 255, 0.28);
}

.f15-btn-secondary,
.f15-export-form .f15-btn-secondary,
.f15-export-form button.f15-btn-secondary {
  min-height: auto;
  padding: 12px 16px;
  background: #1f6fff !important;
  color: #ffffff !important;
  border: 1px solid #1f6fff !important;
  box-shadow: 0 10px 22px rgba(31, 111, 255, 0.18);
}

.f15-btn-secondary:hover,
.f15-export-form .f15-btn-secondary:hover,
.f15-export-form button.f15-btn-secondary:hover,
.f15-btn-secondary:focus,
.f15-export-form .f15-btn-secondary:focus,
.f15-export-form button.f15-btn-secondary:focus {
  background: #155eef !important;
  color: #ffffff !important;
  border-color: #155eef !important;
  box-shadow: 0 14px 28px rgba(31, 111, 255, 0.24) !important;
  transform: translateY(-1px);
}

.f15-errors {
  border-color: #fecaca;
  background: #fff5f5;
  box-shadow: none;
}

.f15-errors ul {
  margin: 0;
  padding-left: 18px;
}

.f15-errors li {
  color: #b42318;
  font-size: 14px;
}

.f15-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.f15-summary-grid .f15-card {
  margin-bottom: 0;
  padding: 22px;
  border-radius: 20px;
}

.f15-summary-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #667085;
}

.f15-summary-grid span {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
}

.f15-table-card {
  padding: 24px;
}

.f15-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.f15-table-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}

.f15-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf1f7;
}

.f15-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.f15-table thead th {
  position: sticky;
  top: 0;
  background: #f8fbff;
  z-index: 1;
}

.f15-table th,
.f15-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}

.f15-table th {
  font-weight: 700;
  color: #344054;
}

.f15-table td {
  color: #475467;
}

.f15-table tbody tr:hover td {
  background: #fafcff;
}

.f15-table tbody tr:last-child td {
  border-bottom: 0;
}

.f15-export-form {
  margin: 0;
}

@media (max-width: 1024px) {
  .f15-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .f15-sqr-tool {
    padding: 0 0 28px;
  }

  .f15-card {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .f15-upload-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .f15-btn {
    width: 100%;
    min-height: 58px;
  }

  #f15_sqr_file {
    min-height: 60px;
    border-radius: 14px;
  }

  #f15_sqr_file::file-selector-button,
  #f15_sqr_file::-webkit-file-upload-button {
    padding: 10px 14px;
    border-radius: 10px;
  }

  .f15-summary-grid {
    grid-template-columns: 1fr;
  }

  .f15-summary-grid span {
    font-size: 24px;
  }

  .f15-table-head h3 {
    font-size: 20px;
  }
}

.f15-btn {
  position: relative;
}

.f15-btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: f15Spin 0.7s linear infinite;
  margin-left: 10px;
}

.f15-btn.is-loading {
  pointer-events: none;
  opacity: 0.95;
}

.f15-btn.is-loading .f15-btn-loader {
  display: inline-block;
}

@keyframes f15Spin {
  to {
    transform: rotate(360deg);
  }
}

.f15-table-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #667085;
}
