.ftth-reserve {
  display:grid;
  gap:14px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
}

.ftth-reserve-header {
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:13px;
  border:1px solid color-mix(
    in srgb,#10a36f 30%,var(--border)
  );
  border-radius:14px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(16,163,111,.15),
      transparent 46%
    ),
    var(--panel);
}

.ftth-reserve-icon {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:linear-gradient(145deg,#10a36f,#10a9df);
  box-shadow:0 7px 16px rgba(16,163,111,.28);
  color:white;
  font-size:23px;
  font-weight:800;
}

.ftth-reserve-header small,
.ftth-reserve-header span {
  display:block;
  color:var(--muted);
  font-size:9px;
}

.ftth-reserve-header h3 {
  margin:2px 0;
  color:var(--text);
  font-size:15px;
}

.ftth-reserve-header .ftth-reserve-badge {
  padding:5px 8px;
  border-radius:20px;
  background:rgba(16,163,111,.12);
  color:#07875c;
  font-weight:800;
}

.ftth-reserve-equation {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.2fr);
  align-items:center;
  gap:5px;
  padding:11px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel);
}

.ftth-reserve-equation > div {
  min-width:0;
  text-align:center;
}

.ftth-reserve-equation small,
.ftth-reserve-equation strong {
  display:block;
}

.ftth-reserve-equation small {
  color:var(--muted);
  font-size:8px;
}

.ftth-reserve-equation strong {
  margin-top:3px;
  font-size:11px;
  white-space:nowrap;
}

.ftth-reserve-equation > span {
  color:var(--accent);
  font-weight:800;
}

.ftth-reserve-equation .total {
  padding:8px 4px;
  border-radius:9px;
  background:rgba(16,163,111,.1);
}

.ftth-reserve-equation .total strong {
  color:#07875c;
}

.ftth-reserve-kpis {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.ftth-reserve-kpis > div {
  padding:9px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--panel);
}

.ftth-reserve-kpis small,
.ftth-reserve-kpis strong {
  display:block;
}

.ftth-reserve-kpis small {
  color:var(--muted);
  font-size:9px;
}

.ftth-reserve-kpis strong {
  margin-top:3px;
  font-size:13px;
}

.ftth-reserve-card,
.ftth-reserve-network {
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--panel);
}

.ftth-reserve-section-title {
  display:flex;
  align-items:center;
  gap:9px;
}

.ftth-reserve-section-title > span {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:9px;
  background:rgba(16,163,111,.12);
  color:#07875c;
  font-size:16px;
  font-weight:800;
}

.ftth-reserve-section-title small {
  color:var(--muted);
  font-size:9px;
}

.ftth-reserve-section-title h4 {
  margin:2px 0 0;
  color:var(--accent);
  font-size:13px;
}

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

.ftth-reserve label {
  display:grid;
  gap:5px;
  min-width:0;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
}

.ftth-reserve input,
.ftth-reserve select,
.ftth-reserve textarea {
  width:100%;
  min-width:0;
  min-height:40px;
  box-sizing:border-box;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:9px;
  outline:none;
  background:var(--bg);
  color:var(--text);
  font-size:11px;
}

.ftth-reserve input:focus,
.ftth-reserve select:focus,
.ftth-reserve textarea:focus {
  border-color:#10a36f;
  box-shadow:0 0 0 3px rgba(16,163,111,.12);
}

.ftth-reserve textarea {
  min-height:65px;
  resize:vertical;
}

.ftth-reserve-unit {
  position:relative;
}

.ftth-reserve-unit input {
  padding-right:34px;
}

.ftth-reserve-unit span {
  position:absolute;
  top:50%;
  right:9px;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:9px;
}

.ftth-reserve-estimate {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:9px;
  border:1px dashed #10a36f;
  border-radius:9px;
  background:rgba(16,163,111,.06);
}

.ftth-reserve-estimate small,
.ftth-reserve-estimate strong {
  display:block;
}

.ftth-reserve-estimate small {
  color:var(--muted);
  font-size:8px;
}

.ftth-reserve-estimate strong {
  margin-top:2px;
  color:#07875c;
}

.ftth-reserve-network {
  background:
    linear-gradient(
      145deg,
      rgba(16,163,111,.06),
      var(--panel)
    );
}

.ftth-reserve-network-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}

.ftth-reserve-network-grid > div {
  min-width:0;
  padding:8px 4px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--bg);
  text-align:center;
}

.ftth-reserve-network-grid small,
.ftth-reserve-network-grid strong {
  display:block;
}

.ftth-reserve-network-grid small {
  color:var(--muted);
  font-size:8px;
}

.ftth-reserve-network-grid strong {
  margin-top:3px;
  overflow:hidden;
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ftth-reserve-save {
  width:100%;
  min-height:42px;
}

@media (max-width:460px) {
  .ftth-reserve-header {
    grid-template-columns:43px minmax(0,1fr);
  }

  .ftth-reserve-badge {
    grid-column:1/-1;
    width:max-content;
  }

  .ftth-reserve-grid {
    grid-template-columns:1fr;
  }

  .ftth-reserve-equation {
    grid-template-columns:1fr;
  }

  .ftth-reserve-equation > span {
    transform:rotate(90deg);
    text-align:center;
  }
}
