.easyOrderPage {
    max-width: 100%;
}

.easyorder-header {
    margin-bottom: 1.25rem;
}

.easyorder-mapping {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: .9rem;
    margin: .9rem 0 0;
}

.easyorder-panel,
.easyorder-preview {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .5rem;
    background: #fff;
}

.easyorder-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    background: #f7f7f7;
}

.easyorder-panel-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.easyorder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .65rem 1rem 0;
    background: #f7f7f7;
}

.easyorder-tabs button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.5rem;
    padding: .45rem .8rem;
    border: 0;
    border-radius: .35rem .35rem 0 0;
    background: transparent;
    color: inherit;
}

.easyorder-tabs button.active {
    background: #fff;
    font-weight: 700;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .06);
}

.easyorder-tab {
    display: none;
    padding: 1rem;
}

.easyorder-tab.active {
    display: block;
}

.easyorder-choice-copy {
    max-width: 56rem;
}

.easyorder-file-copy {
    max-width: none;
}

.easyorder-file-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.easyorder-file-head > div:first-child {
    max-width: 56rem;
}

.easyorder-choice-copy p {
    margin: .25rem 0 .75rem;
    color: rgba(0, 0, 0, .65);
}

.easyorder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .85rem;
}

.easyorder-template-tools {
    display: grid;
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    gap: .35rem;
    margin-top: 0;
    min-width: 20rem;
    padding: .65rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .4rem;
    background: #fafafa;
}

.easyorder-template-title {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
}

.easyorder-template-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.5rem;
    gap: .4rem;
}

.easyorder-template-controls select {
    width: auto;
    min-width: 0;
}

.easyorder-template-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: .25rem;
    color: #333;
    background: #fff;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.25rem;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.easyorder-template-button:hover {
    color: #111;
    background: #f2f2f2;
}

.easyorder-preview-head,
.easyorder-submitbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.easyorder-preview h3 {
    margin: 0;
    font-size: 1.15rem;
}

.easyorder-counts {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.easyorder-counts span,
.easyorder-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    min-height: 1.75rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.easyorder-counts .ok,
.easyorder-status.ok {
    color: #0f5132;
    background: #d1e7dd;
}

.easyorder-counts .warning,
.easyorder-status.warning {
    color: #664d03;
    background: #fff3cd;
}

.easyorder-counts .error,
.easyorder-status.error {
    color: #842029;
    background: #f8d7da;
}

.easyorder-status.pending {
    color: #41464b;
    background: #e2e3e5;
}

.easyorder-status.checking {
    color: #41464b;
    background: #f1f3f5;
}

.easyorder-lines-table input {
    width: 100%;
    min-width: 0;
}

.easyorder-lines-table {
    table-layout: fixed;
}

.easyorder-col-row {
    width: 3rem;
}

.easyorder-col-code {
    width: 12rem;
}

.easyorder-col-qty {
    width: 6rem;
}

.easyorder-col-catalogue {
    width: 10rem;
}

.easyorder-col-price {
    width: 8.5rem;
}

.easyorder-col-status {
    width: 5.75rem;
}

.easyorder-col-action {
    width: 3.75rem;
}

.easyorder-lines-table td,
.easyorder-lines-table th {
    overflow: hidden;
    text-overflow: ellipsis;
}

.easyorder-lines-table td[data-cell="status"] {
    white-space: nowrap;
}

.easyorder-lines-table [data-action="remove"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.easyorder-preview table {
    margin-bottom: 0;
}

.easyorder-preview tbody tr[data-status="error"] {
    opacity: .72;
}

.easyorder-submitbar {
    border-top: 1px solid rgba(0, 0, 0, .1);
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .easyorder-mapping {
        grid-template-columns: 1fr;
    }

    .easyorder-file-head {
        flex-direction: column;
    }

    .easyorder-template-tools {
        width: 100%;
        min-width: 0;
    }

    .easyorder-template-controls select {
        width: 100%;
    }

    .easyorder-panel-head,
    .easyorder-preview-head,
    .easyorder-submitbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
