.f360 {
  display: grid;
  gap: 16px;
}

.f360-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(36, 99, 211, 0.10), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.f360-hero__main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.f360-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #617896;
  font-weight: 800;
}

.f360-hero__main h3 {
  margin: 0;
  color: #102c57;
  font-size: 28px;
  line-height: 1.1;
}

.f360-hero__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #556b86;
  font-size: 14px;
}

.f360-hero__meta-line span {
  position: relative;
}

.f360-hero__meta-line span + span::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9d7ec;
  transform: translateY(-50%);
}

.f360-hero__side {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: end;
}

.f360-badges,
.f360-top-actions,
.f360-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f360-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.f360-badge--client {
  background: #eef4ff;
  color: #1c56b1;
  border-color: #cadbfd;
}

.f360-badge--success {
  background: #edf8f2;
  color: #167347;
  border-color: #c5e8d2;
}

.f360-badge--warning {
  background: #fff7df;
  color: #936100;
  border-color: #f2d48c;
}

.f360-badge--danger {
  background: #fff6f6;
  color: #9f2424;
  border-color: #f1c1c1;
}

.f360-badge--neutral,
.f360-badge--finance {
  background: #f5f7fb;
  color: #566b86;
  border-color: #dbe4f0;
}

.f360-topstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.f360-topstat {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #fff;
}

.f360-topstat small {
  color: #60708a;
  font-size: 12px;
  font-weight: 700;
}

.f360-topstat strong {
  color: #163965;
  font-size: 15px;
  line-height: 1.3;
}

.f360-topstat--finance {
  background: linear-gradient(180deg, #f6f9ff 0%, #edf4ff 100%);
}

.f360-topstat--success {
  background: linear-gradient(180deg, #f3fbf6 0%, #ebf8f0 100%);
}

.f360-topstat--warning {
  background: linear-gradient(180deg, #fffaf0 0%, #fff3dd 100%);
}

.f360-topstat--danger {
  background: linear-gradient(180deg, #fff6f6 0%, #ffefef 100%);
}

.f360-topstat--neutral {
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
}

.f360-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fbfdff;
}

.f360-tab {
  border: 0;
  background: transparent;
  color: #4f6382;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.f360-tab:hover {
  background: #eef4ff;
  color: #123d80;
}

.f360-tab.is-active {
  background: #ffffff;
  color: #0d5bd7;
  box-shadow: 0 0 0 1px #dbe4f0 inset;
}

.f360-panel {
  display: none;
}

.f360-panel.is-active {
  display: block;
}

.f360-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.f360-grid--summary {
  align-items: start;
}

.f360-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: #fff;
}

.f360-card--identity {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.f360-card--service {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.f360-card--finance {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.f360-card--technical {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.f360-card--status,
.f360-card--insights,
.f360-card--support,
.f360-card--placeholder {
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbff 100%);
}

.f360-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.f360-card__head h4 {
  margin: 0;
  color: #123a78;
  font-size: 17px;
}

.f360-card__head small {
  display: block;
  margin-top: 4px;
  color: #60708a;
  line-height: 1.45;
}

.f360-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.f360-data-grid--single {
  grid-template-columns: 1fr;
}

.f360-data-item {
  display: grid;
  gap: 4px;
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(251, 253, 255, 0.95);
}

.f360-data-item small {
  color: #62748d;
  font-size: 12px;
}

.f360-data-item strong {
  color: #163661;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.f360-status-list,
.f360-pending-list {
  display: grid;
  gap: 8px;
}

.f360-status-row,
.f360-pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  background: rgba(251, 253, 255, 0.95);
}

.f360-status-row small,
.f360-pending-row {
  color: #173f7c;
  font-size: 14px;
  font-weight: 600;
}

.f360-empty {
  border: 1px dashed #c6d7f2;
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  color: #60708a;
  line-height: 1.5;
}

.f360-pending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.f360-pending-item {
  border: 1px dashed #dbe4f0;
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
  display: grid;
  gap: 6px;
}

.f360-pending-item strong {
  color: #133d7b;
}

.f360-pending-item p {
  margin: 0;
  color: #60708a;
  line-height: 1.45;
}

.f360-finance-list {
  display: grid;
  gap: 8px;
}

.f360-finance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.f360-finance-stat {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  background: #fbfdff;
}

.f360-finance-stat small {
  color: #62748d;
  font-size: 11px;
  font-weight: 700;
}

.f360-finance-stat strong {
  color: #163661;
  font-size: 14px;
  line-height: 1.25;
}

.f360-finance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e4ecf7;
  border-radius: 14px;
  background: rgba(251, 253, 255, 0.95);
}

.f360-finance-row strong {
  color: #163661;
}

.f360-finance-row small {
  display: block;
  margin-top: 4px;
  color: #60708a;
  line-height: 1.35;
}

.f360-finance-row__side {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.f360-score-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
}

.f360-score-btn {
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.f360-score-btn.is-active {
  background: #0d5bd7;
  color: #fff;
  border-color: #0d5bd7;
}

.f360-score-grid--readonly {
  gap: 5px;
}

.f360-score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid #d8e3f4;
  border-radius: 9px;
  background: #f8fbff;
  color: #5f7692;
  font-size: 12px;
  font-weight: 700;
}

.f360-score-chip.is-active {
  background: #0d5bd7;
  border-color: #0d5bd7;
  color: #fff;
}

.btn-with-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1080px) {
  .f360-topstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f360-pending-grid {
    grid-template-columns: 1fr;
  }

  .f360-score-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .f360-hero {
    grid-template-columns: 1fr;
  }

  .f360-hero__side {
    justify-items: start;
  }

  .f360-grid,
  .f360-data-grid,
  .f360-topstats,
  .f360-finance-stats,
  .f360-finance-row {
    grid-template-columns: 1fr;
  }

  .f360-finance-row__side {
    justify-items: start;
    text-align: left;
  }
}
