.irhvac-velo {
    direction: rtl;
    max-width: 980px;
    margin: 1rem auto;
    font-family: inherit;
    line-height: 1.75;
}

.irhvac-velo *,
.irhvac-velo *::before,
.irhvac-velo *::after {
    box-sizing: border-box;
}

.irhvac-velo__form,
.irhvac-velo__result,
.irhvac-velo__message,
.irhvac-velo__details {
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
}

.irhvac-velo__form {
    padding: 1rem;
}

.irhvac-velo__intro {
    margin: 0 0 0.35rem;
}

.irhvac-velo__hint {
    margin: 0 0 1rem;
    color: #5f6872;
}

.irhvac-velo__grid,
.irhvac-velo__summary {
    display: grid;
    gap: 0.8rem 1rem;
}

.irhvac-velo__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.irhvac-velo label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.irhvac-velo label > span:first-child {
    font-weight: 600;
}

.irhvac-velo input,
.irhvac-velo select,
.irhvac-velo button {
    font: inherit;
}

.irhvac-velo input[type="text"],
.irhvac-velo select {
    width: 100%;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #bfc6cd;
    border-radius: 6px;
    background: #fff;
}

.irhvac-velo input[type="text"] {
    direction: ltr;
    text-align: left;
}

.irhvac-velo input:focus,
.irhvac-velo select:focus {
    outline: 2px solid rgba(30, 109, 181, 0.18);
    border-color: #1e6db5;
}

.irhvac-velo small {
    color: #5f6872;
}

.irhvac-velo__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.irhvac-velo__control input {
    border-radius: 0 6px 6px 0 !important;
}

.irhvac-velo__control select {
    min-width: 105px;
    border-radius: 6px 0 0 6px !important;
    border-right: 0 !important;
}

.irhvac-velo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.irhvac-velo__actions button {
    min-width: 120px;
    min-height: 42px;
    padding: 0.5rem 1rem;
    border: 1px solid #1e6db5;
    border-radius: 6px;
    cursor: pointer;
}

.irhvac-velo__actions button[type="submit"] {
    background: #1e6db5;
    color: #fff;
}

.irhvac-velo__actions .irhvac-velo__reset {
    background: #fff;
    color: #1e6db5;
}

.irhvac-velo__message,
.irhvac-velo__result,
.irhvac-velo__details {
    margin-top: 1rem;
    padding: 1rem;
}

.irhvac-velo__message--error {
    border-color: #cf8d8d;
    background: #fff7f7;
}

.irhvac-velo__message--warning {
    border-color: #d7c28a;
    background: #fffaf0;
}

.irhvac-velo__message ul {
    margin-bottom: 0;
}

.irhvac-velo__result h3 {
    margin-top: 0;
}

.irhvac-velo__primary {
    padding: 0.9rem;
    border: 1px solid #bfcfe0;
    border-radius: 8px;
    background: #f7fafc;
    text-align: center;
}

.irhvac-velo__primary span,
.irhvac-velo__primary strong {
    display: block;
}

.irhvac-velo__primary strong {
    margin-top: 0.15rem;
    font-size: 1.55rem;
}

.irhvac-velo__summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1rem 0;
}

.irhvac-velo__summary div {
    padding: 0.8rem;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #f8f9fa;
}

.irhvac-velo__summary span,
.irhvac-velo__summary strong {
    display: block;
}

.irhvac-velo__summary strong {
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.irhvac-velo__table-wrap {
    overflow-x: auto;
}

.irhvac-velo__table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.irhvac-velo__table th,
.irhvac-velo__table td {
    padding: 0.58rem;
    border: 1px solid #dfe3e7;
    text-align: right;
}

.irhvac-velo__table th {
    width: 37%;
    background: #f5f6f7;
}

.irhvac-velo__details {
    padding: 0;
    overflow: hidden;
}

.irhvac-velo__details summary {
    cursor: pointer;
    padding: 0.8rem 1rem;
    background: #f7f8f9;
    font-weight: 700;
}

.irhvac-velo__details-body {
    padding: 0.9rem 1rem;
}

.irhvac-velo__details-body > :first-child {
    margin-top: 0;
}

.irhvac-velo__details-body > :last-child {
    margin-bottom: 0;
}

.irhvac-velo__formula {
    text-align: center;
    font-weight: 700;
}

.irhvac-velo__author {
    margin: 0.75rem 0 0;
    color: #5f6872;
    font-size: 0.92rem;
}

@media (max-width: 840px) {
    .irhvac-velo__grid,
    .irhvac-velo__summary {
        grid-template-columns: 1fr;
    }

    .irhvac-velo__form,
    .irhvac-velo__result,
    .irhvac-velo__message {
        padding: 0.75rem;
    }
}
