.version-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-card {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.version-card:hover,
.version-card.selected {
    border-color: var(--cyan);
    background: #f1fbfd;
}

.version-card > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.version-card > span:last-child {
    align-items: flex-end;
}

.version-card small,
.empty-cell,
.table-caption {
    color: var(--muted);
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 14px;
}

.section-tabs a {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.section-tabs a:hover,
.section-tabs a.active {
    border-color: var(--cyan);
    background: #eaf8fa;
}

.section-tabs a.active {
    box-shadow: inset 0 0 0 1px var(--cyan);
}

.str-heading {
    background: #dceaf5;
    color: var(--navy);
}

.net-row {
    background: #fff8e9;
}

.str-notes {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.str-notes h3 {
    font-size: 16px;
}

.str-notes article {
    border-left: 3px solid var(--cyan);
    padding: 4px 14px;
    margin: 12px 0;
}

.str-notes p {
    margin: 4px 0;
    color: var(--muted);
    white-space: pre-wrap;
}

.error-note {
    border-left-color: var(--red);
}

.table-caption {
    font-size: 12px;
    margin-bottom: 0;
}

.str-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.str-workspace .tariff-list {
    position: sticky;
    top: 16px;
}

.str-workspace .str-catalogue {
    grid-column: 2;
    min-width: 0;
}

.tariff-list > header {
    align-items: stretch !important;
    flex-direction: column;
}

.tariff-list > header .secondary-button {
    justify-content: center;
}

.tariff-list header,
.str-catalogue-head {
    gap: 18px;
    align-items: flex-start !important;
}

.tariff-list header p,
.str-catalogue-head p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.version-card.archived {
    background: #f7f8fa;
    opacity: .82;
}

.status-pill.neutral {
    background: #edf1f5;
    color: #52677b;
}

.str-command-message {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid #b9dfcc;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    background: #f1fbf6;
    padding: 11px 13px;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 12px;
}

.str-command-message.error {
    border-color: #efc2c5;
    border-left-color: var(--red);
    background: #fff4f4;
    color: var(--red);
}

.str-version-state {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 12px;
}

.str-management-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
}

.str-management-actions details {
    flex: 1 1 280px;
}

.str-management-actions summary {
    cursor: pointer;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.str-management-actions form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.str-management-actions label,
.str-filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.str-management-actions input,
.str-management-actions textarea,
.str-filter-bar input {
    width: 100%;
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    background: #fff;
    padding: 10px 11px;
    color: var(--ink);
    font: inherit;
}

.str-management-actions textarea {
    min-height: 66px;
    resize: vertical;
}

.danger-zone {
    border-left: 3px solid var(--red);
    padding-left: 12px;
}

.danger-zone summary,
.danger-zone p {
    color: var(--red);
}

.danger-zone p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.danger-button {
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--red);
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
}

.str-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
}

.str-filter-bar > a {
    padding: 10px 4px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.str-filter-bar > span {
    align-self: center;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
}

.pipe-column-note {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    border-left: 4px solid var(--cyan);
    border-radius: 7px;
    background: #eef9fb;
    padding: 11px 13px;
    font-size: 12px;
}

.pipe-column-note b { color: var(--navy); }
.pipe-column-note span { color: var(--muted); }

.str-table-scroll {
    max-height: 72vh;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.str-table {
    min-width: 900px;
}

.str-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}

.str-table th small {
    letter-spacing: 0;
    text-transform: none;
}

.str-main-row td {
    border-bottom: 0;
    background: linear-gradient(90deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: 12px 14px;
}

.str-main-row b {
    display: inline-flex;
    min-width: 38px;
    color: #6fdef0;
    font-size: 15px;
}

.str-main-row strong {
    letter-spacing: .06em;
}

.str-section-row td {
    background: #dceaf5;
    color: var(--navy);
    padding: 9px 14px;
}

.str-section-row b {
    display: inline-flex;
    min-width: 72px;
}

.str-section-level-3 td { background: #eaf2f8; padding-left: 26px; }
.str-section-level-4 td { background: #f2f6fa; padding-left: 38px; }

.str-note-row td {
    background: #f7f8fa;
    color: #536779;
}

.str-note-row p {
    margin: 6px 0 0;
    max-width: 1050px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.str-item-row td:first-child {
    white-space: nowrap;
    color: var(--navy);
}

.str-detail-cell {
    min-width: 74px;
    text-align: center;
    white-space: nowrap;
    background: #f2fbfc;
    color: var(--navy);
    font-weight: 800;
}

.str-control-tag {
    white-space: nowrap;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
}

.net-row { background: #fff8e9; }
.percentage-row { background: #eef5fc; }

.str-edit-link {
    display: block;
    width: fit-content;
    margin-top: 7px;
    color: var(--cyan-dark, #087f93);
    font-size: 11px;
    font-weight: 800;
}

.pricing-authority { margin-top: 18px; }
.pricing-authority header p { margin: 5px 0 0; color: var(--muted); }
.pricing-authority-form { margin-top: 18px; }
.pricing-authority-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; }
.pricing-authority-form input,
.pricing-authority-form select,
.pricing-authority-form textarea { width: 100%; border: 1px solid #cbd6e2; border-radius: 8px; padding: 11px 12px; font: inherit; }
.pricing-authority-form small { color: var(--muted); font-weight: 400; }
.net-lock-card { display: flex; flex-direction: column; gap: 5px; border: 1px solid #efd28e; border-radius: 9px; background: #fff8e9; padding: 12px; }
.net-lock-card span { font-size: 13px; font-weight: 700; }
.net-lock-card b { color: #855c00; }
.check-label { align-self: center; flex-direction: row !important; align-items: center; }
.check-label input { width: auto !important; }

.str-import-flow { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.str-import-flow > span { display: flex; align-items: center; gap: 9px; }
.str-import-flow b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; }
.str-import-flow small { color: var(--muted); font-weight: 700; }
.str-import-flow i { width: 45px; height: 1px; background: var(--line); }
.source-control-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: #f5f8fb; padding: 13px; }
.source-control-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.source-control-card small { color: var(--muted); }
.str-import-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.str-import-rules article { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; padding: 13px; }
.str-import-rules article b { color: var(--navy); }
.str-import-rules article span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.import-findings { margin-top: 18px; }
.import-findings > article { display: flex; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; }
.import-findings article p { margin: 4px 0 0; color: var(--muted); }
.str-source-findings { margin: 14px 0; border: 1px solid #efd28e; border-radius: 9px; background: #fffbf1; padding: 12px 14px; }
.str-source-findings summary { cursor: pointer; color: #785500; font-weight: 800; }
.str-source-findings > p { color: var(--muted); font-size: 12px; }
.str-source-findings article { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid #eadfbe; padding: 9px 0; }
.str-source-findings article div { display: flex; flex-direction: column; gap: 3px; }
.str-source-findings article small { color: var(--muted); line-height: 1.4; }

@media (max-width: 650px) {
    .version-card {
        flex-direction: column;
    }

    .version-card > span:last-child {
        align-items: flex-start;
    }

    .str-version-state { align-items: flex-start; }

    .pipe-column-note { flex-direction: column; }
    .str-import-flow { align-items: flex-start; flex-direction: column; }
    .str-import-flow i { width: 1px; height: 16px; margin-left: 14px; }
    .str-import-rules { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
    .str-workspace { grid-template-columns: 1fr; }
    .str-workspace .tariff-list { position: static; }
    .str-workspace .str-catalogue { grid-column: 1; }
    .str-filter-bar { grid-template-columns: 1fr auto; }
    .str-filter-bar > span { justify-self: end; }
}
