﻿/* ======================================================
   BADGES
====================================================== */

.tree-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

    .tree-badge.subtle {
        background: #f1f5f9;
        color: #475569;
    }

    .tree-badge.unit {
        background: #eef2f7;
        color: #475569;
    }

    .tree-badge.tenant {
        background: #e7f8ed;
        color: #15803d;
    }

    .tree-badge.contract {
        background: #fff1d6;
        color: #92400e;
        font-weight: 700;
    }

    .tree-badge.section {
        background: #f3f4f6;
        color: #4b5563;
    }

    .tree-badge.active {
        background: #dcfce7;
        color: #166534;
    }

/* ======================================================
   UNIT LINE
====================================================== */

.tree-unit-line {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.tree-unit-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.tree-unit-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tree-unit-tenant {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* ======================================================
   PILLS
====================================================== */

.tree-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

    .tree-pill.success {
        background: #dcfce7;
        color: #166534;
    }

    .tree-pill.danger {
        background: #fee2e2;
        color: #b91c1c;
    }

    .tree-pill.neutral {
        background: #e5e7eb;
        color: #4b5563;
    }

/* ======================================================
   SUMMARY
====================================================== */

.tree-summary {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #526277;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {
    .tree-unit-main {
        gap: 6px;
    }
}
/* ======================================================
   SECTION NODES
====================================================== */

.tree-section-line {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.tree-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}
.tree-context-menu {
    position: fixed;
    z-index: 5000;
    min-width: 220px;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.18);
    padding: 6px;
}

    .tree-context-menu.is-hidden {
        display: none;
    }

.tree-context-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tree-context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    color: #1e2f4d;
    text-decoration: none;
}

    .tree-context-menu-item:hover,
    .tree-context-menu-item:focus,
    .tree-context-menu-item:active,
    .tree-context-menu-item:visited {
        background: #eef4ff;
        color: #1e2f4d;
        text-decoration: none;
    }

.tree-context-menu-item-icon {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #56739a;
}

.tree-context-menu-item-title {
    flex: 1;
}

.tree-context-menu-empty {
    padding: 10px 12px;
    color: #6b7b93;
    font-size: 0.95rem;
}

.tree-context-menu-separator {
    height: 1px;
    margin: 4px 6px;
    background: #e3ebf5;
}

.tree-context-menu-item-chevron {
    color: #8aa0bf;
    font-size: 12px;
}

.tree-context-menu-item-check {
    color: #1d7a43;
    font-size: 16px;
    line-height: 1;
}

.tree-context-menu-item.is-back {
    font-weight: 700;
}

.node-details {
    position: static;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    max-height: calc(100vh - 108px);
    max-width: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.node-editor {
    position: static;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

#node-details-panel.is-hidden,
#node-editor-panel.is-hidden {
    display: none;
}

#node-details-panel,
#node-editor-panel {
    min-width: 0;
    max-width: 100%;
}

.node-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.node-details-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.node-details-title-block h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: #122443;
    letter-spacing: -0.03em;
}

.node-details-subtitle {
    margin-top: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.node-details-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.node-details-status.is-issued {
    background: #dbeafe;
    color: #1d4ed8;
}

.node-details-status.is-new {
    background: #ffedd5;
    color: #c2410c;
}

.node-details-status.is-returned {
    background: #dcfce7;
    color: #166534;
}

.node-details-status.is-broken {
    background: #fee2e2;
    color: #b91c1c;
}

.node-details-status.is-neutral {
    background: #e2e8f0;
    color: #334155;
}

.node-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
}

.node-detail-action {
    border: 1px solid #d7e3f4;
    background: #fff;
    color: #1f3356;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}

.node-detail-action:hover {
    background: #f8fbff;
    border-color: #bfd3f4;
    transform: translateY(-1px);
}

.node-detail-action.is-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.node-detail-action.is-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.node-detail-action.is-danger {
    color: #991b1b;
    border-color: #fecaca;
    background: #fff5f5;
}

.node-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.node-detail-grid > div {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5edf6;
}

.node-detail-grid > div.is-wide {
    grid-column: 1 / -1;
}

.node-detail-grid dt {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.node-detail-grid dd {
    margin: 0;
    color: #122443;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.node-detail-grid--tenant {
    grid-template-columns: 1fr;
}

.node-detail-grid--tenant > div {
    min-width: 0;
}

.node-detail-grid--tenant dd {
    overflow-wrap: anywhere;
}

.node-details-section {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e5edf6;
    border-radius: 16px;
    background: #f8fafc;
}

.node-details-section h3 {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.node-details-section p {
    margin: 0;
    color: #122443;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contract-person-list,
.contract-person-add {
    margin-top: 14px;
}

.contract-person-row {
    display: grid;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e5edf6;
}

.contract-person-row:first-of-type {
    border-top: 0;
}

.contract-person-main {
    display: grid;
    gap: 3px;
    color: #122443;
    font-size: 13px;
}

.contract-person-main strong {
    font-size: 14px;
}

.contract-person-main span {
    color: #475569;
}

.contract-person-controls,
.contract-person-end {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.contract-person-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: #122443;
    font-size: 13px;
    font-weight: 650;
}

.contract-person-check input:disabled + span {
    color: #94a3b8;
}

.contract-person-add h4 {
    margin: 0 0 10px;
    color: #122443;
    font-size: 13px;
    font-weight: 800;
}

.node-rent-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #e5edf6;
    color: #122443;
    font-size: 14px;
}

.node-rent-summary span {
    color: #475569;
    font-weight: 650;
}

.node-rent-summary strong {
    font-weight: 800;
}

.node-rent-meta {
    margin-top: 12px;
    grid-template-columns: 1fr;
}

.node-rent-group {
    margin-top: 14px;
}

.node-rent-group h4 {
    margin: 0 0 8px;
    color: #122443;
    font-size: 13px;
    font-weight: 800;
}

.node-rent-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    background: #fff;
}

.node-rent-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #122443;
    font-size: 12px;
}

.node-rent-table th,
.node-rent-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #edf3fb;
    text-align: left;
    vertical-align: top;
}

.node-rent-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.node-rent-table tr:last-child td {
    border-bottom: 0;
}

.unit-invoice-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.unit-invoice-detail-header h3 {
    display: block;
    margin: 0;
    color: #102142;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.unit-invoice-detail-header span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.unit-invoice-detail-meta dt {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.unit-invoice-detail-meta dd {
    margin: 3px 0 0;
    color: #102142;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.unit-invoice-detail {
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.unit-invoice-detail-meta {
    margin-top: 12px;
}

.unit-invoice-table {
    min-width: min(620px, 100%);
    table-layout: auto;
}

.unit-invoice-table th,
.unit-invoice-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.unit-invoice-total-row td {
    color: #102142;
    font-weight: 900;
    background: #f8fafc;
}

.node-detail-sysinfo {
    margin-top: 16px;
    border: 1px solid #dbe7f6;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #f6f9fd 100%);
    overflow: hidden;
}

.node-detail-sysinfo > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: #1f3356;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.node-detail-sysinfo > summary::-webkit-details-marker {
    display: none;
}

.node-detail-sysinfo-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.15s ease;
}

.node-detail-sysinfo[open] .node-detail-sysinfo-toggle {
    transform: rotate(90deg);
}

.node-detail-sysinfo-body {
    padding: 0 14px 14px;
}

.node-detail-grid--sysinfo {
    margin-top: 0;
}

.node-detail-sysinfo .node-detail-grid dd {
    overflow-wrap: anywhere;
}

.node-detail-display.is-hidden,
.node-detail-edit-form.is-hidden {
    display: none;
}

.node-detail-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.node-detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.node-detail-field.is-wide {
    grid-column: 1 / -1;
}

.node-detail-field span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.node-detail-field input,
.node-detail-field select,
.node-detail-field textarea {
    width: 100%;
    border: 1px solid #d6e2f2;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: #122443;
    background: #fff;
}

.node-detail-field input:disabled {
    background: #f8fafc;
    color: #64748b;
}

.node-detail-field textarea {
    resize: vertical;
    min-height: 92px;
}

.node-detail-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.node-detail-create-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5edf6;
}

.node-detail-helper {
    margin: 14px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.node-detail-toggle {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: #122443;
}

    .node-detail-toggle > input {
        margin-top: 3px;
    }

    .node-detail-toggle > div,
    .node-detail-toggle > span {
        min-width: 0;
    }

    .node-detail-toggle strong,
    .node-detail-toggle span {
        display: block;
        text-transform: none;
        letter-spacing: 0;
        font-size: 14px;
        font-weight: 650;
        color: #122443;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

.node-empty,
.node-details-loading,
.node-details-error {
    padding: 18px 0 4px;
    color: #475569;
    line-height: 1.5;
}

.billing-page {
    width: min(1760px, calc(100vw - 40px));
    margin: 20px auto;
    padding: 24px 18px 32px;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.billing-header-side {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.billing-subnav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #fff;
}

.billing-subnav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.billing-subnav a:hover {
    background: #f8fafc;
    color: #102142;
}

.billing-subnav a.is-active {
    background: #102142;
    color: #fff;
}

.billing-eyebrow,
.billing-section-header span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.billing-header h1,
.billing-section-header h2 {
    margin: 4px 0 0;
    color: #0f2140;
    letter-spacing: 0;
}

.billing-header h1 {
    font-size: 42px;
    line-height: 1.05;
}

.billing-section-header h2 {
    font-size: 22px;
}

.billing-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    min-width: min(520px, 100%);
}

.billing-summary-strip > div {
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.billing-summary-strip span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.billing-summary-strip strong {
    display: block;
    margin-top: 3px;
    color: #102142;
    font-size: 20px;
}

.billing-filter-band,
.billing-preview-section,
.billing-message-band,
.billing-result-band,
.billing-empty-state {
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    margin-top: 14px;
}

.billing-result-band {
    border-left: 4px solid #2563eb;
}

.billing-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.billing-overview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px 10px;
    align-items: center;
    min-height: 86px;
    padding: 16px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #fff;
    color: #102142;
    text-decoration: none;
}

.billing-overview-card i {
    grid-row: span 2;
    color: #2563eb;
    font-size: 22px;
}

.billing-overview-card strong {
    min-width: 0;
    font-size: 15px;
    line-height: 1.25;
}

.billing-overview-card span {
    color: #64748b;
    font-size: 13px;
}

.billing-overview-card.is-link:hover {
    border-color: #9bb8f2;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.10);
}

.billing-preview-section.is-refresh {
    background: #fbfdff;
}

.billing-filter-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.billing-filter-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.billing-scope-picker.is-hidden {
    display: none;
}

.billing-filter-form span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.billing-filter-form input,
.billing-filter-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    padding: 8px 10px;
    color: #102142;
    background: #fff;
    font: inherit;
}

.billing-primary-action {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    color: #fff;
    background: #1d4ed8;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.billing-primary-action:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.billing-primary-action i {
    margin-right: 6px;
}

.billing-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    padding: 0 14px;
    color: #102142;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.billing-secondary-action:hover {
    background: #f8fafc;
}

.billing-create-form {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #f8fbff;
}

.billing-create-form div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    color: #475569;
}

.billing-create-form strong {
    color: #102142;
    font-size: 20px;
}

.billing-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 14px;
}

.billing-section-header > strong {
    color: #0f2140;
    font-size: 22px;
}

.billing-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.billing-table-wrap {
    overflow-x: auto;
}

.billing-preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    table-layout: auto;
}

.billing-preview-table th,
.billing-preview-table td {
    border-bottom: 1px solid #e5edf6;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
    color: #102142;
    font-size: 13px;
    line-height: 1.25;
}

.billing-preview-table th {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: #f8fbff;
}

.billing-preview-table tr.has-warning td {
    background: #fffaf0;
}

.billing-preview-table.is-compact th,
.billing-preview-table.is-compact td {
    padding: 7px 9px;
    font-size: 13px;
}

.billing-preview-table.is-dense {
    min-width: 1260px;
}

.billing-preview-table.is-dense th,
.billing-preview-table.is-dense td {
    padding: 7px 8px;
    font-size: 12px;
}

.billing-preview-table.is-dense th:nth-child(2),
.billing-preview-table.is-dense td:nth-child(2) {
    max-width: 170px;
}

.billing-cell-main,
.billing-cell-sub {
    display: block;
    min-width: 0;
}

.billing-cell-main {
    font-weight: 700;
    color: #102142;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-cell-sub {
    margin-top: 2px;
    max-width: 180px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    color: #102142;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.billing-inline-check input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #1d4ed8;
}

.billing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 2px 8px;
    color: #334155;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.billing-badge.is-ok {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.billing-badge.is-warning {
    border-color: #fed7aa;
    color: #9a3412;
    background: #fff7ed;
}

.billing-badge.is-danger {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.billing-badge.is-info {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.billing-badge.is-muted {
    border-color: #e2e8f0;
    color: #475569;
    background: #f8fafc;
}

.registry-page .billing-summary-strip {
    min-width: min(460px, 100%);
}

.registry-filter-form {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto auto;
}

.registry-filter-form label:first-child {
    grid-column: span 2;
}

.registry-table {
    min-width: 1040px;
}

.registry-table td strong,
.registry-table td span {
    display: block;
}

.registry-muted {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.registry-contract-list {
    display: grid;
    gap: 8px;
}

.registry-contract-link {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    color: #102142;
    background: #f8fbff;
    text-decoration: none;
}

.registry-contract-link:hover {
    border-color: #9bbcf2;
    background: #eff6ff;
}

.registry-status {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.registry-action-cell {
    white-space: nowrap;
}

.rental-units-page .billing-summary-strip {
    min-width: min(460px, 100%);
}

.rental-units-page .billing-subnav {
    flex-wrap: wrap;
}

.rental-units-table {
    min-width: 0;
    table-layout: fixed;
}

.rental-units-table th,
.rental-units-table td {
    overflow-wrap: anywhere;
}

.rental-units-table th:nth-child(1),
.rental-unit-info-row td:nth-child(1) {
    width: 90px;
}

.rental-units-table th:nth-child(3),
.rental-unit-info-row td:nth-child(3) {
    width: 90px;
}

.rental-units-table th:nth-child(4),
.rental-unit-info-row td:nth-child(4) {
    width: 120px;
}

.rental-units-table th:nth-child(5),
.rental-unit-info-row td:nth-child(5),
.rental-units-table th:nth-child(6),
.rental-unit-info-row td:nth-child(6) {
    width: 130px;
}

.rental-units-table th:nth-child(7),
.rental-unit-info-row td:nth-child(7) {
    width: 150px;
}

.rental-unit-info-row td {
    border-bottom: 0;
    padding-bottom: 3px;
}

.rental-unit-actions-row td {
    padding-top: 3px;
    padding-bottom: 10px;
}

.rental-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.rental-action-list .billing-secondary-action {
    min-height: 34px;
    padding: 0 10px;
}

.billing-secondary-action.is-disabled {
    color: #64748b;
    background: #f8fafc;
    cursor: not-allowed;
}

.rental-review-page {
    width: min(1760px, calc(100vw - 40px));
}

.rental-review-header {
    align-items: start;
}

.rental-review-hero,
.rental-review-section {
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #fff;
}

.rental-review-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    margin-top: 14px;
}

.rental-review-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.rental-review-kicker {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rental-review-title-row h2 {
    margin: 3px 0 2px;
    color: #0f2140;
    font-size: 30px;
    line-height: 1.1;
}

.rental-review-title-row p,
.rental-review-form-note {
    margin: 0;
    color: #475569;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.rental-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.rental-review-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}

.rental-review-facts > div {
    min-width: 0;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    padding: 11px 12px;
    background: #f8fbff;
}

.rental-review-facts dt,
.rental-review-card dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.rental-review-facts dd,
.rental-review-card dd {
    margin: 4px 0 0;
    color: #102142;
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rental-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

.rental-review-evidence {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.rental-review-section {
    padding: 18px;
    min-width: 0;
}

.rental-review-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rental-review-card {
    min-width: 0;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.rental-review-card > span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.rental-review-card dl {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.rental-review-card small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.rental-review-card.is-featured {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.rental-review-card.is-featured strong {
    display: block;
    margin-top: 12px;
    color: #0f2140;
    font-size: 28px;
    line-height: 1.05;
}

.rental-review-card.is-featured p {
    margin: 12px 0 0;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
}

.rental-review-help {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.rental-review-help span {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 9px;
    color: #475569;
    background: #fff;
    font-size: 13px;
    font-weight: 750;
}

.rental-review-table-wrap {
    overflow-x: auto;
}

.rental-review-table {
    min-width: 0;
    table-layout: fixed;
}

.rental-review-table th,
.rental-review-table td {
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rental-review-table td strong,
.rental-review-table td span {
    display: block;
}

.rental-review-table td span {
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
}

.rental-review-form-panel {
    position: sticky;
    top: 14px;
}

.rental-review-form {
    gap: 14px;
}

.rental-review-form .node-detail-field span {
    font-size: 12px;
}

.rental-review-form .node-detail-field input,
.rental-review-form .node-detail-field textarea {
    border-radius: 8px;
    font-size: 15px;
}

.rental-review-toggle {
    min-height: 44px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fbff;
    font-size: 15px;
}

.rental-review-publish-fields {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.rental-review-publish-fields.is-hidden {
    display: none;
}

.rental-review-submit-row {
    margin-top: 2px;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.wizard-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    padding: 0 12px;
    color: #102142;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.wizard-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
}

.wizard-step.is-active {
    border-color: #102142;
    color: #fff;
    background: #102142;
}

.wizard-step.is-active span {
    color: #102142;
    background: #fff;
}

.wizard-panel.is-hidden,
.contract-create-wizard .is-hidden {
    display: none;
}

.wizard-selection,
.wizard-summary {
    display: grid;
    gap: 8px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #f8fbff;
}

.wizard-selection {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.wizard-selection span,
.wizard-summary span,
.wizard-selection-title {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.wizard-selection strong {
    display: block;
    color: #102142;
}

.wizard-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wizard-summary div {
    min-width: 0;
}

.wizard-summary strong {
    display: block;
    margin-top: 3px;
    color: #102142;
    line-height: 1.3;
}

.wizard-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.wizard-option-card {
    display: grid;
    gap: 4px;
    min-height: 112px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 12px;
    color: #102142;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.wizard-option-card:hover,
.wizard-option-card.is-selected {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.wizard-option-card strong {
    font-size: 15px;
}

.wizard-option-card span {
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.wizard-segmented {
    display: inline-flex;
    gap: 4px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 12px;
    background: #fff;
}

.wizard-segmented button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    color: #475569;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.wizard-segmented button.is-active {
    color: #fff;
    background: #102142;
}

.wizard-inline-section {
    border-top: 1px solid #e5edf6;
    margin-top: 16px;
    padding-top: 16px;
}

.wizard-inline-section.is-wide {
    grid-column: 1 / -1;
}

.wizard-rent-panel {
    border-top: 1px solid #e5edf6;
    margin-top: 16px;
    padding-top: 16px;
}

.wizard-rent-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.wizard-rent-summary div,
.wizard-rent-block {
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #fbfdff;
}

.wizard-rent-summary div {
    padding: 10px 12px;
}

.wizard-rent-summary span {
    display: block;
    color: #5f718f;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wizard-rent-summary strong {
    display: block;
    margin-top: 3px;
    color: #061b3d;
    font-size: 1rem;
}

.wizard-rent-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wizard-rent-block {
    padding: 12px;
}

.wizard-rent-block h3 {
    margin: 0 0 8px;
    color: #102142;
    font-size: 0.96rem;
}

.wizard-rent-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-rent-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 7px 0;
    border-bottom: 1px solid #edf3fb;
}

.wizard-rent-list li:last-child {
    border-bottom: 0;
}

.wizard-rent-list li.is-muted {
    color: #5f718f;
}

.wizard-rent-list li.wizard-rent-total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 2px solid #dbe7f5;
    border-bottom: 0;
    color: #061b3d;
    font-weight: 900;
}

.wizard-rent-list span,
.wizard-rent-list strong {
    min-width: 0;
}

.wizard-rent-list small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-weight: 700;
}

.wizard-more-settings {
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 16px;
    background: #fbfdff;
}

.wizard-more-settings summary {
    color: #102142;
    font-weight: 800;
    cursor: pointer;
}

.wizard-more-settings .node-detail-form-grid {
    margin-top: 12px;
}

.node-detail-field small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.registry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.registry-message {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    color: #334155;
    background: #f8fbff;
    font-size: 13px;
    font-weight: 650;
}

.registry-message.is-success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.registry-message.is-error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.registry-edit-form {
    display: grid;
    gap: 16px;
}

.contract-document-page {
    width: min(1280px, calc(100vw - 40px));
}

.contract-document-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.contract-document-hero h1 {
    margin: 4px 0 8px;
    color: #0f2140;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
}

.contract-document-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
}

.contract-document-facts > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid #dbe7f5;
    border-radius: 6px;
    padding: 4px 9px;
    background: #f8fbff;
}

.document-status-pill {
    color: #0f5132;
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
}

.contract-document-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

.contract-document-summary div {
    min-width: 0;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    padding: 12px;
    background: #fbfdff;
}

.contract-document-summary dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.contract-document-summary dd {
    margin: 4px 0 0;
    color: #102142;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.contract-document-summary dd span,
.document-muted {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.registry-detail-list {
    margin-top: 0;
}

.registry-picker {
    display: grid;
    gap: 10px;
}

.registry-picker.is-wide {
    grid-column: 1 / -1;
}

.registry-picker-selected {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #c7d7ea;
    border-radius: 8px;
    background: #f8fbff;
}

.registry-picker-selected span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.registry-picker-selected strong {
    color: #122443;
    font-size: 14px;
}

.registry-picker-selected .billing-secondary-action {
    grid-row: span 2;
}

.registry-picker-search {
    display: grid;
    gap: 8px;
}

.registry-picker-list {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
}

.registry-picker-result {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    color: #102142;
    background: #ffffff;
    text-align: left;
    font-size: 13px;
    font-weight: 650;
}

.registry-picker-result:hover,
.registry-picker-result:focus {
    border-color: #9bbcf2;
    background: #eff6ff;
}

.registry-picker-message {
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.billing-warning-line,
.billing-empty-state {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #7c2d12;
    font-weight: 700;
}

.billing-empty-state {
    color: #475569;
}

.delivery-status-page .billing-header {
    align-items: center;
}

.delivery-filter-form {
    grid-template-columns: repeat(6, minmax(130px, 1fr)) auto auto;
}

.delivery-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.delivery-summary-card {
    border: 1px solid #dbe7f5;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.delivery-summary-card span,
.delivery-summary-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.delivery-summary-card strong {
    display: block;
    margin: 5px 0 2px;
    color: #102142;
    font-size: 28px;
    line-height: 1;
}

.delivery-summary-card.is-ok {
    border-left-color: #22c55e;
}

.delivery-summary-card.is-warning {
    border-left-color: #f59e0b;
}

.delivery-summary-card.is-danger {
    border-left-color: #ef4444;
}

.delivery-summary-card.is-info {
    border-left-color: #2563eb;
}

.delivery-counts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.delivery-counts-grid h3 {
    margin: 0 0 10px;
    color: #102142;
    font-size: 14px;
}

.delivery-count-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.delivery-count-list > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 3px 8px 3px 3px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
}

.delivery-count-list strong {
    color: #102142;
    font-size: 13px;
}

.delivery-empty-inline {
    color: #64748b;
    font-size: 13px;
}

.delivery-status-table {
    min-width: 1660px;
}

.delivery-status-table tr.is-delivery-failed td {
    background: #fff5f5;
}

.delivery-status-table tr.is-delivery-queued td {
    background: #f8fbff;
}

.delivery-status-table tr.is-delivery-sending td {
    background: #fffbeb;
}

.delivery-status-table tr.is-delivery-sent td {
    background: #f7fff9;
}

.delivery-error-cell {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    color: #1d4ed8;
    background: #fff;
    text-decoration: none;
}

.delivery-icon-link:hover {
    background: #eff6ff;
}

.delivery-failed-section {
    border-left-color: #ef4444;
}

.delivery-failed-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.delivery-failed-item {
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.delivery-failed-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.delivery-failed-head strong,
.delivery-failed-head span {
    display: block;
}

.delivery-failed-head strong {
    color: #102142;
    font-size: 16px;
}

.delivery-failed-head span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.delivery-failed-item p {
    margin: 12px 0;
    color: #7f1d1d;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.delivery-failed-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.delivery-failed-meta div {
    padding: 8px 10px;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #f8fafc;
}

.delivery-failed-meta dt {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.delivery-failed-meta dd {
    margin: 3px 0 0;
    color: #102142;
    font-size: 12px;
    font-weight: 800;
}

.delivery-inline-log {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    color: #475569;
    font-size: 12px;
}

.delivery-log-table {
    min-width: 980px;
}

@media (max-width: 1100px) {
    .billing-header {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-header-side {
        justify-items: stretch;
    }

    .billing-subnav {
        justify-content: flex-start;
        width: fit-content;
    }

    .billing-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-primary-action {
        grid-column: 1 / -1;
    }

    .billing-create-form {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-action-row {
        justify-content: flex-start;
    }

    .delivery-summary-grid,
    .delivery-counts-grid,
    .delivery-failed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rental-review-hero,
    .rental-review-layout {
        grid-template-columns: 1fr;
    }

    .rental-review-actions {
        justify-content: flex-start;
    }

    .rental-review-facts,
    .rental-review-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rental-review-form-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .node-details {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .node-detail-grid {
        grid-template-columns: 1fr;
    }

    .node-detail-grid--tenant > div {
        grid-column: auto;
    }

    .node-detail-form-grid {
        grid-template-columns: 1fr;
    }

    .billing-page {
        width: min(100vw - 20px, 100%);
        margin: 10px auto;
        padding: 16px 4px 24px;
    }

    .billing-header h1 {
        font-size: 34px;
    }

    .billing-summary-strip,
    .billing-filter-form {
        grid-template-columns: 1fr;
    }

    .rental-review-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .rental-review-facts,
    .rental-review-card-grid {
        grid-template-columns: 1fr;
    }

    .rental-review-hero,
    .rental-review-section {
        padding: 14px;
    }

    .rental-review-card.is-featured strong {
        font-size: 24px;
    }

    .wizard-selection,
    .wizard-summary {
        grid-template-columns: 1fr;
    }

    .contract-document-page {
        width: min(100%, calc(100vw - 20px));
    }

    .contract-document-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contract-document-hero .registry-actions {
        justify-content: flex-start;
    }

    .wizard-card-list {
        grid-template-columns: 1fr;
    }

    .wizard-rent-summary,
    .wizard-rent-columns {
        grid-template-columns: 1fr;
    }

    .delivery-summary-grid,
    .delivery-counts-grid,
    .delivery-failed-list,
    .delivery-failed-meta {
        grid-template-columns: 1fr;
    }
}
