.hem-wrap {
    max-width: 1280px;
}

.hem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.hem-card,
.hem-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px;
}

.hem-card strong {
    display: block;
    color: #50575e;
    font-size: 13px;
    margin-bottom: 8px;
}

.hem-card span {
    color: #1d2327;
    font-size: 28px;
    font-weight: 700;
}

.hem-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.hem-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    align-items: end;
}

.hem-form label,
.hem-inline-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hem-form label span {
    font-weight: 600;
}

.hem-form input,
.hem-form select,
.hem-form textarea,
.hem-inline-form input,
.hem-inline-form select {
    max-width: 100%;
}

.hem-form .hem-wide,
.hem-form p.submit {
    grid-column: 1 / -1;
}

.hem-report-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.hem-actions {
    display: inline-block;
    margin: 0 8px 8px 0;
}

.hem-portal {
    max-width: 980px;
}

.hem-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.hem-table th,
.hem-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.hem-table th {
    background: #f6f7f7;
}

.hem-success {
    background: #edfaef;
    border-left: 4px solid #00a32a;
    padding: 10px 12px;
}

.hem-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
}

.hem-details dt {
    font-weight: 700;
}

.hem-qr {
    width: 220px;
    height: 220px;
}

.hem-updates {
    margin-left: 18px;
}

.hem-search {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
}

.hem-search input[type="search"] {
    min-width: 260px;
}

.hem-qr-panel {
    margin: 16px 0;
}

.hem-qr-label {
    display: inline-block;
    text-align: center;
    padding: 12px;
    border: 1px dashed #999;
    background: #fff;
}

.hem-qr-label p {
    margin: 8px 0 0;
}

.hem-delete {
    color: #b32d2e;
}

.hem-radios {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 400;
}

.hem-radios label {
    flex-direction: row;
    align-items: center;
}

.hem-import-errors {
    margin-left: 18px;
    list-style: disc;
    max-height: 320px;
    overflow-y: auto;
}

@media print {
    #adminmenumain,
    #wpadminbar,
    #wpfooter,
    .hem-wrap,
    .notice {
        display: none !important;
    }

    #wpcontent {
        margin-left: 0;
    }

    .hem-qr-panel {
        border: 0;
    }

    .hem-qr-panel > h2,
    .hem-qr-panel > p {
        display: none;
    }
}

@media (max-width: 782px) {
    .hem-grid-two {
        grid-template-columns: 1fr;
    }
}
