.imatest-lab-converter {
    clear: both;
    width: 100%;
}

.imatest-lab-converter table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.imatest-lab-converter table td,
.imatest-lab-converter table th {
    border: 1px solid #a6bfd7;
    padding: 8px 10px;
    vertical-align: middle;
}

.imatest-lab-converter label {
    display: inline;
    font-weight: 600;
}

.imatest-lab-converter select,
.imatest-lab-converter input[type="number"],
.imatest-lab-converter input[type="file"],
.imatest-lab-converter input[type="range"],
.imatest-lab-converter textarea {
    width: 100%;
    box-sizing: border-box;
}

.imatest-lab-converter input[type="button"] {
    width: auto;
    min-width: 220px;
}

.imatest-lab-converter__intro {
    background: #dfeefb;
    border: 1px solid #a6bfd7;
    margin-bottom: 16px;
    padding: 16px 18px;
}

.imatest-lab-converter__intro h2 {
    margin: 0 0 8px;
}

.imatest-lab-converter__intro p {
    margin: 0;
}

.imatest-lab-converter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.imatest-lab-converter__panel {
    flex: 1 1 360px;
    background: #def;
    border: 3px solid #a6bfd7;
    padding: 15px;
    text-align: left;
}

.imatest-lab-converter__row > .imatest-lab-converter__panel {
    min-width: 0;
}

.imatest-lab-converter__panel--wide {
    flex-basis: 100%;
}

.imatest-lab-converter__panel h3 {
    margin-top: 0;
    font-size: 18px;
}

.imatest-lab-summary {
    font-weight: 700;
    color: #1f486d;
}

.imatest-lab-converter__file-row,
.imatest-lab-converter__output-header,
.imatest-lab-converter__status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.imatest-lab-file-name {
    color: #3d5f7d;
    font-style: italic;
}

.imatest-lab-converter__output-actions {
    margin-left: auto;
    display: flex;
    gap: 14px;
}

.imatest-lab-converter__output-actions a {
    font-weight: 600;
}

.imatest-lab-converter textarea {
    min-height: 280px;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

.imatest-lab-status {
    min-height: 24px;
    font-weight: 600;
}

.imatest-lab-status.is-error {
    color: #8a1f11;
}

.imatest-lab-status.is-success {
    color: #1e6a36;
}

@media (max-width: 768px) {
    .imatest-lab-converter__output-actions {
        margin-left: 0;
    }

    .imatest-lab-converter__status-row {
        align-items: flex-start;
    }

    .imatest-lab-converter input[type="button"] {
        min-width: 0;
        width: 100%;
    }
}
