.version-contract-overview {
    margin-top: 20px;
}

.version-contract-overview .box {
    margin-bottom: 20px;
    padding: 15px;
}

.version-contract-overview h3.title {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: #333;
}

.version-contract-overview h4 {
    color: #666;
    margin: 10px 0;
    font-size: 14px;
}

/* Сетка для основной информации */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.field-group {
    margin-bottom: 15px;
}

/* Обновленные стили для списков определений */
.version-contract-overview dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 15px;
    align-items: baseline;
}

.version-contract-overview dt {
    color: #666;
    font-weight: normal;
    text-align: right;
    min-width: 150px;
    margin: 0;
}

.version-contract-overview dd {
    margin: 0;
    color: #333;
}

/* Инлайновый список определений */
.inline-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 15px;
}

.inline-dl dt {
    text-align: right;
    margin: 0;
    min-width: 150px;
}

.inline-dl dd {
    margin: 0;
}

/* Стили для временной шкалы */
.timeline-view {
    padding: 10px 0;
}

.status-item {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
}

.status-item.current {
    background: #e2eef9;
    font-weight: bold;
}

.arrow {
    color: #666;
    margin: 0 5px;
}

/* Стили для показателей длительности */
.durations .overdue {
    color: #c00;
}

.durations .early {
    color: #080;
}

/* Временная шкала */
.timeline-stats {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 3px;
}

.timeline-item {
    margin: 5px 0;
}

.timeline-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Метаданные */
.metadata-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 15px;
}

.metadata-list dt {
    color: #666;
    text-align: right;
    margin: 0;
    min-width: 150px;
}

.metadata-list dd {
    margin: 0;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .version-contract-overview dl,
    .inline-dl,
    .metadata-list {
        grid-template-columns: auto 1fr;
    }

    .version-contract-overview dt,
    .inline-dl dt,
    .metadata-list dt {
        min-width: 120px;
    }
}

.warranty-dates {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.warranty-dates h4 {
    color: #2996cc;
}

fieldset.box {
    margin-bottom: 15px;
}

fieldset.box legend {
    font-weight: bold;
    color: #666;
}

.box-collapsible {
    margin-bottom: 1em;
}

.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background-color: #f6f6f6;
    border: 1px solid #e4e4e4;
}

.collapsible-header:hover {
    background-color: #efefef;
}

.collapse-toggle {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.collapsible-content {
    border: 1px solid #e4e4e4;
    border-top: none;
    padding: 10px;
}

/* Стили для полей с датами */
.date-field-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}

.date-field-container label {
    text-align: right;
    margin: 0;
}

.date-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

fieldset .date-field-container {
    margin: 8px 0;
}

table.contract-statuses {
    width: 100%;
}

table.contract-statuses td.name {
    width: 30%;
}

table.contract-statuses td.key {
    width: 20%;
}

table.contract-statuses td.buttons {
    width: 15%;
    text-align: right;
}

#new-contract-status {
    margin-bottom: 20px;
    background-color: #f6f6f6;
    padding: 20px;
    border-radius: 3px;
}

#new-contract-status h3.title {
    margin-top: 0;
}

.nodata {
    text-align: center;
    color: #666;
    padding: 20px;
}