.wclm {
    position: relative;
}

.wclm.wrap {
    margin-top: 14px;
}

.wclm a:focus {
    box-shadow: none !important;
    outline: unset;
}

.wclm .select2-container .select2-selection--single {
    border: 1px solid #8c8f94;
    height: 30px;
}

.wclm .legend {
    margin: 0;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #3c434a;
}

.wclm-filter {
    display: none;
    position: relative;
    margin: 14px 0;
    background-color: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    padding: 16px;
    width: 100%;
    max-width: 880px;
    box-sizing: border-box;
}

.wclm-filter .wclm-filter-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 0;
}

.wclm-filter .wclm-filter-label,
.wclm-filter .wclm-filter-cell {
    border: 0;
    padding: 6px 8px 6px 0;
    vertical-align: middle;
}

.wclm-filter .wclm-filter-label {
    min-width: 140px;
}

.wclm-filter .wclm-filter-input,
.wclm-filter input[type="text"],
.wclm-filter input[type="date"],
.wclm-filter select {
    width: 100%;
}

.wclm-filter-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wclm-filter-btn {
    margin: 0 !important;
}

#wclm-license-keys-table-checkbox {
    width: 40px !important;
    padding: 5px 3px !important;
}

#wclm-license-keys-table-license_id {
    width: 74px !important
}

#wclm-license-keys-table-license_key {
    width: 180px !important;
}

.wclm-right {
    float: right;
}

#screen-meta-links .screen-meta-toggle {
    z-index: 999;
}

.wclm-delete-license-key:focus {
    box-shadow: none !important;
}

.wclm-table-responsive {
    width: 100%;
    overflow-x: auto;
    display: block;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

.wclm .wp-list-table {
    min-width: 1260px;
    border-collapse: collapse;
    border: 0;
}

.wclm .wp-list-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
}

.wclm .wp-list-table tbody tr:hover td {
    background: #f6fafe;
}

#wclm-do-action {
    margin: 0 8px 0 0;
}

.wclm .tablenav.top,
.wclm .tablenav.bottom {
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
    min-height: 52px;
    box-sizing: border-box;
}

.wclm .tablenav.top .actions {
    padding-left: 6px;
}

.wclm .tablenav.bottom .tablenav-pages {
    margin: 0 0 0 auto;
}

.wclm input.wclm-generate-input {
    min-width: 57px;
    width: 57px;
}

.wclm-generate-form {
    display: flex;
}

.wclm-generate-btn {
    position: relative;
}

.wclm .wclm-spinner {
    position: relative;
    top: 4px;
    border: 2px solid #ccc;
    border-top: 2px solid #555;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wclm .result-table {
    border-collapse: collapse;
}

.wclm .result-table th {
    text-transform: uppercase;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    padding: 6px;
}

.wclm .result-table td {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 6px;
    text-align: start;
}

.wclm .wclm-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wclm .wclm-action-btn {
    min-height: 28px;
    line-height: 26px;
    padding: 0 10px;
}

.wclm .wclm-action-btn--danger {
    border-color: #d63638;
    color: #d63638;
}

.wclm .wclm-action-btn--danger:hover,
.wclm .wclm-action-btn--danger:focus {
    border-color: #b32d2e;
    color: #b32d2e;
}

.wclm .wclm-action-btn--danger.is-confirm {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.wclm .wclm-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    border: 1px solid transparent;
}

.wclm .wclm-status--available {
    color: #075e39;
    background: #d9f6e5;
    border-color: #8ad2ad;
}

.wclm .wclm-status--active {
    color: #0a4b78;
    background: #d9ecfb;
    border-color: #8ec5f3;
}

.wclm .wclm-status--expired {
    color: #8a2424;
    background: #fde2e1;
    border-color: #efabab;
}

.wclm .wclm-status--inactive {
    color: #5c5f64;
    background: #eceef0;
    border-color: #c3c7cc;
}

.wclm .wclm-status--sold {
    color: #6a4a00;
    background: #fff2cc;
    border-color: #e7c675;
}

.wclm .wclm-status--returned {
    color: #7a2e86;
    background: #f4e2fb;
    border-color: #d2a7ea;
}

.wclm .wclm-status--redeemed {
    color: #174e8c;
    background: #e2edff;
    border-color: #abc5ff;
}

.wclm .wclm-status--unregistered {
    color: #7a3f00;
    background: #ffead6;
    border-color: #f0b986;
}

.wclm .wclm-status--unlimited {
    color: #0a4b78;
    background: #d9ecfb;
    border-color: #8ec5f3;
}

.wclm .wclm-status--activation {
    color: #3f2f07;
    background: #fff2cc;
    border-color: #e7c675;
}

.wclm .wclm-status--sales {
    color: #075e39;
    background: #d9f6e5;
    border-color: #8ad2ad;
}

.wclm .wclm-license-key-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wclm .wclm-license-key-text {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

.wclm .wclm-copy-key-btn {
    margin: 0;
    flex: 0 0 auto;
}

.wclm .wclm-owner-cell {
    display: grid;
    gap: 2px;
}

.wclm .wclm-owner-name {
    font-weight: 600;
    color: #1d2327;
}

.wclm .wclm-owner-email {
    color: #50575e;
    font-size: 12px;
    word-break: break-word;
}

.wclm .wclm-order-link-badge {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #c8dff3;
    background: #e8f3fb;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.wclm .wclm-image-thumb-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.wclm .wclm-image-thumb {
    display: block;
    max-width: 88px;
    max-height: 64px;
    width: auto;
    height: auto;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.wclm .wclm-image-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.wclm .wclm-image-modal.is-open {
    display: block;
}

.wclm .wclm-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.wclm .wclm-image-modal-content {
    position: relative;
    z-index: 1;
    max-width: min(88vw, 980px);
    max-height: 86vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.wclm .wclm-image-modal-content img {
    display: block;
    max-width: 100%;
    max-height: calc(86vh - 30px);
    margin: 0 auto;
}

.wclm .wclm-image-modal-close {
    position: absolute;
    right: 6px;
    top: 0;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #2c3338;
}

.wclm .wclm-status--default {
    color: #3c434a;
    background: #f6f7f7;
    border-color: #c3c4c7;
}

@media (max-width: 960px) {
    .wclm-filter .wclm-filter-label,
    .wclm-filter .wclm-filter-cell {
        display: block;
        width: 100%;
        padding-right: 0;
    }

    .wclm-filter .wclm-filter-label {
        padding-bottom: 2px;
    }

    .wclm .tablenav.top,
    .wclm .tablenav.bottom {
        padding: 10px;
    }

    .wclm .tablenav .alignleft {
        float: none;
        margin-bottom: 8px;
    }

    .wclm .tablenav-pages {
        float: none;
    }
}
