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

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

.irhvac-pipedrop__form,
.irhvac-pipedrop__result,
.irhvac-pipedrop__message,
.irhvac-pipedrop__details {
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
}

.irhvac-pipedrop__form {
    padding: 1rem;
}

.irhvac-pipedrop__intro {
    margin: 0 0 1rem;
}

.irhvac-pipedrop__section {
    margin: 0 0 1rem;
    padding: 0.9rem;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
}

.irhvac-pipedrop__section legend {
    padding: 0 0.45rem;
    font-weight: 700;
}

.irhvac-pipedrop__grid,
.irhvac-pipedrop__summary {
    display: grid;
    gap: 0.8rem 1rem;
}

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

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

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

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

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

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

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

.irhvac-pipedrop small,
.irhvac-pipedrop__hint {
    color: #5f6872;
}

.irhvac-pipedrop__hint {
    margin: 0 0 0.85rem;
}

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

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

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

.irhvac-pipedrop__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

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

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

.irhvac-pipedrop__actions .irhvac-pipedrop__reset {
    background: #fff;
    color: #1e6db5;
}

.irhvac-pipedrop__message,
.irhvac-pipedrop__result,
.irhvac-pipedrop__details {
    margin-top: 1rem;
    padding: 1rem;
}

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

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

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

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

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

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

.irhvac-pipedrop__primary strong {
    margin: 0.15rem 0;
    font-size: 1.35rem;
}

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

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

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

.irhvac-pipedrop__summary strong,
.irhvac-pipedrop__summary small {
    direction: ltr;
    text-align: right;
    overflow-wrap: anywhere;
}

.irhvac-pipedrop__summary strong {
    margin-top: 0.2rem;
}

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

.irhvac-pipedrop__table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

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

.irhvac-pipedrop__table th {
    width: 44%;
    background: #f5f6f7;
}

.irhvac-pipedrop__table td {
    direction: ltr;
}

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

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

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

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

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

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

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

@media (max-width: 760px) {
    .irhvac-pipedrop__grid,
    .irhvac-pipedrop__summary {
        grid-template-columns: 1fr;
    }

    .irhvac-pipedrop__form {
        padding: 0.75rem;
    }

    .irhvac-pipedrop__section {
        padding: 0.75rem;
    }
}
