.calc-section {
    display: grid;
    gap: 10px;
}

.calc-section-header,
.calc-block {
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
}

.calc-section-header {
    margin-top: 28px;
    padding: 10px 12px;
}

.calc-section-header h2,
.calc-block h3,
.workplace-modal h2 {
    margin: 0;
    color: #1f2933;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
}

.calc-section-header p:not(.workplace-kicker) {
    max-width: 980px;
    margin: 4px 0 0;
    color: #52616b;
    font-size: 12px;
    line-height: 1.35;
}

.calc-inline-control-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 8px 0 0;
    list-style: none;
}

.calc-inline-control-list li {
    flex: 0 1 260px;
    min-width: 0;
    max-width: 320px;
    padding: 0;
    border-left: 3px solid #1d8fd1;
    border-radius: 4px;
    background: #f4f9fd;
    color: #334e68;
    font-size: 11px;
    line-height: 15px;
}

.calc-inline-control-list li.is-expanded {
    flex-basis: 420px;
    max-width: 520px;
}

.calc-control-message-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 24px;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.calc-control-message-toggle:focus {
    outline: 2px solid rgba(0, 99, 176, 0.24);
    outline-offset: -2px;
}

.calc-control-message-toggle strong {
    min-width: 0;
    overflow: hidden;
    color: #1f2933;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calc-control-message-toggle .glyphicon {
    flex: 0 0 auto;
    color: #6b7c8f;
    font-size: 9px;
}

.calc-control-message-text {
    display: block;
    padding: 0 7px 6px;
    color: #52616b;
    font-size: 11px;
    line-height: 15px;
    white-space: normal;
}

.calc-table-toggles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.calc-table-toggles label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #334e68;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.calc-table-toggles input {
    margin: 0;
    accent-color: #0063B0;
}

.calc-block {
    padding: 10px;
}

.calc-block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.calc-block-header h3 {
    font-size: 15px;
}

.calc-block-header span {
    display: block;
    margin-top: 3px;
    color: #6b7c8f;
    font-size: 11px;
}

.calc-table-wrap {
    max-width: 100%;
}

.calc-table {
    font-size: 11px;
}

.calc-table_services {
    min-width: 1220px;
}

.calc-table_penalties {
    min-width: 760px;
}

.calc-table_providers {
    min-width: 760px;
}

.calc-table th,
.calc-table td {
    padding: 5px 6px;
    border-right: 1px solid #dbe5ef;
}

.calc-table th {
    background: #e7f2fb;
    text-transform: none;
}

.calc-table th:last-child,
.calc-table td:last-child {
    border-right: 0;
}

.calc-table .calc-money-head,
.calc-table .calc-count-head {
    text-align: right;
}

.calc-service-name {
    min-width: 150px;
    color: #1f2933;
    font-weight: 700;
}

.calc-detail-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    border-radius: 50%;
    color: #0063B0;
    font-size: 12px;
    vertical-align: text-bottom;
    cursor: help;
}

.calc-detail-trigger:hover,
.calc-detail-trigger:focus {
    color: #004f8d;
    outline: none;
}

.calc-money {
    text-align: right;
    white-space: nowrap;
}

.calc-count {
    text-align: right;
    white-space: nowrap;
}

.calc-money_strong {
    font-weight: 700;
}

.calc-money.is-positive {
    color: #0f6f67;
}

.calc-money.is-negative {
    color: #b42318;
}

.calc-group-row td {
    padding: 5px 8px;
    background: #f3f8fc;
    color: #0063B0;
    font-weight: 700;
    text-align: left;
}

.calc-total-row td {
    background: #e7f2fb;
    color: #1f2933;
    font-weight: 700;
}

.calc-total-row_main td {
    background: #d9ebf8;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

.calc-control-message_warning {
    border-left-color: #e66a00 !important;
    background: #fff7ed !important;
}

.calc-control-message_danger {
    border-left-color: #d93025 !important;
    background: #fff4f2 !important;
}

.calc-control-message_info {
    border-left-color: #0063B0 !important;
}

