/* New start*/
.wrap.mulopimfwc-location-managers-main {
    border: 2px solid #d1d1d4;
    border-radius: 8px;
    background-color: #f9fafb;
    margin: 20px 20px 0px 0px;
}

h1.mlm-settings-heading {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mlm-settings-icon {
    color: #ffffff;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 7px;
}

.mulopimfwc-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
    padding: 20px;
}

.mulopimfwc-manager-header button {
    background: #2563eb !important;
    border-color: #2563eb !important;
    padding: 5px 15px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.mulopimfwc-manager-header button svg {
    width: 15px;
    height: 15px;
    margin-right: 6px;
}

.mulopimfwc-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.mulopimfwc-social-field input {
    width: 100%;
}

.mulopimfwc-social-field .description {
    margin-top: 6px;
    color: #475569;
}

.mulopimfwc-managers-list {
    padding: 10px 25px;
}

.manager-info img {
    border-radius: 50%;
}


.manager-actions .mulopimfwc-delete-manager,
.mulopimfwc-delete-btn {
    background: #ffffff !important;
    border-color: #dc2626 !important;
    padding: 0px 30px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    color: #dc2626 !important;
    font-weight: 600;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease !important;
}

.manager-actions .mulopimfwc-delete-manager:hover,
.mulopimfwc-delete-btn:hover {
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4) !important;
    transform: translateY(-2px);
}



/* New End */

.mulopimfwc-managers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.mulopimfwc-manager-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.manager-email {
    margin: 0px 0 0;
    color: #666;
    font-size: 14px;
}

.manager-actions {
    display: flex;
    gap: 5px;
}

.manager-locations,
.manager-capabilities {
    margin-bottom: 15px;
}

.manager-locations h4,
.manager-capabilities h4 {
    margin: 0 0 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.manager-locations h4 svg,
.manager-capabilities h4 svg {
    width: auto;
    height: 14px;
    margin-right: 6px;
}

.location-list,
.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.location-tag,
.capability-tag {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 12px;
}

.capability-tag {
    background: #2563eb1a;
    color: #2563eb;
}

.no-locations,
.no-capabilities {
    color: #666;
    font-style: italic;
    margin: 0;
}

.mulopimfwc-no-managers {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Modal Styles */
.mulopimfwc-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.mulopimfwc-modal-content {
    background-color: #fff;
    margin: 1.5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.mulopimfwc-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mulopimfwc-modal-header h2 {
    margin: 0;
}

.mulopimfwc-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.mulopimfwc-modal form {
    padding: 20px;
}

.mulopimfwc-form-row {
    margin-bottom: 20px;
}

.mulopimfwc-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mulopimfwc-form-row input[type="text"],
.mulopimfwc-form-row input[type="password"],
.mulopimfwc-form-row input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.location-checkboxes,
.capability-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-label:hover {
    background: #f9f9f9;
}

.global-default {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.mulopimfwc-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* User Search */
.user-search-container {
    position: relative;
}

#user-search-results.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.user-search-container .search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.user-search-container .search-result-item:hover {
    background: #f9f9f9;
}

.user-search-container .search-result-item:last-child {
    border-bottom: none;
}

/* Reference redesign layer */
.wrap.mulopimfwc-location-managers-main {
    --mulopimfwc-surface: #ffffff;
    --mulopimfwc-page: #f3f4f6;
    --mulopimfwc-text: #2f3037;
    --mulopimfwc-muted: #62646f;
    --mulopimfwc-border: #e6e5e9;
    --mulopimfwc-primary: oklch(0.5 0.17 290);
    --mulopimfwc-primary-dark: oklch(0.42 0.16 300);
    --mulopimfwc-primary-gradient: linear-gradient(120deg, var(--mulopimfwc-primary), var(--mulopimfwc-primary-dark));
    --mulopimfwc-page-gutter: 20px;
    --mulopimfwc-section-gap: 16px;
    max-width: none;
    width: auto;
    margin: 20px 20px 0 0;
    padding: 24px 0 44px;
    border: 0;
    border-radius: 0;
    background: var(--mulopimfwc-page);
    color: var(--mulopimfwc-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mulopimfwc-location-managers-main .mulopimfwc-reference-ui {
    box-sizing: border-box;
    max-width: none;
    margin: 0 var(--mulopimfwc-page-gutter) var(--mulopimfwc-section-gap);
}

.mulopimfwc-location-managers-main .mulopimfwc-reference-welcome,
.mulopimfwc-location-managers-main .mulopimfwc-reference-feature-panel {
    margin-bottom: var(--mulopimfwc-section-gap);
}

.mulopimfwc-location-managers-main .mulopimfwc-reference-tabs {
    margin-bottom: 0;
}

.mulopimfwc-location-managers-main .mulopimfwc-manager-header,
.mulopimfwc-location-managers-main .mulopimfwc-managers-list {
    box-sizing: border-box;
    max-width: none;
    margin-left: var(--mulopimfwc-page-gutter);
    margin-right: var(--mulopimfwc-page-gutter);
}

.mulopimfwc-location-managers-main .mulopimfwc-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: var(--mulopimfwc-section-gap);
    min-height: 70px;
    padding: 16px 22px;
    border-radius: 12px;
    background: var(--mulopimfwc-primary-gradient);
    color: #fff;
    box-shadow: none;
}

.mulopimfwc-manager-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

h1.mlm-settings-heading {
    margin: 0;
    color: #fff;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.25;
}

.mulopimfwc-manager-header-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12.5px;
    line-height: 1.35;
}

.mlm-settings-icon {
    display: none;
}

.mulopimfwc-manager-header button,
.mulopimfwc-modal-footer .button-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    min-width: 246px;
    padding: 0 22px !important;
    border-color: #fff !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--mulopimfwc-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.mulopimfwc-manager-header button:hover,
.mulopimfwc-manager-card .mulopimfwc-btn-primary:hover,
.mulopimfwc-modal-footer .button-primary:hover {
    background: #f7efff !important;
    color: var(--mulopimfwc-primary-dark) !important;
}

.mulopimfwc-manager-header button svg {
    width: 12px;
    height: 12px;
    margin-right: 0;
}

.mulopimfwc-managers-list {
    padding: 0;
}

.mulopimfwc-managers-list h2 {
    margin: 0 0 16px;
    color: #111318;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.mulopimfwc-managers-grid {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.mulopimfwc-manager-card,
.mulopimfwc-no-managers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 16px 18px;
    border: 1px solid var(--mulopimfwc-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 20, 28, 0.05);
    box-sizing: border-box;
}

.mulopimfwc-manager-card:hover {
    border-color: #d5c4e8;
    box-shadow: 0 6px 18px rgba(20, 20, 28, 0.07);
}

.mulopimfwc-manager-card .manager-header {
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8ec;
}

.mulopimfwc-manager-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ddebff;
    color: #0872c9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.manager-info {
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.manager-details {
    min-width: 0;
}

.manager-details h3 {
    margin: 0;
    color: #292930;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-email {
    margin-top: 1px;
    font-size: 11.5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-email,
.no-locations,
.no-capabilities,
.global-default {
    color: var(--mulopimfwc-muted);
}

.manager-locations h4,
.manager-capabilities h4 {
    margin-bottom: 6px;
    color: #6b6f78;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.manager-locations h4 svg,
.manager-capabilities h4 svg {
    display: none;
}

.manager-locations,
.manager-capabilities {
    margin-bottom: 0;
}

.mulopimfwc-manager-card .manager-locations + .manager-capabilities {
    margin-top: -8px !important;
}

.location-list,
.capability-list {
    gap: 6px;
    min-width: 0;
}

.mulopimfwc-manager-card .location-list,
.mulopimfwc-manager-card .capability-list {
    column-gap: 6px;
    row-gap: 4px;
}

.location-tag,
.capability-tag {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
}

.location-tag {
    border: 1px solid #b7e4c4;
    border-radius: 999px;
    background: #dcfce7;
    color: #007a2c;
}

.capability-tag {
    border: 1px solid #dcdfe5;
    border-radius: 999px;
    background: #f8f9fb;
    color: #1f2937;
}

.no-locations,
.no-capabilities {
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.manager-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e8e8ec;
}

.mulopimfwc-manager-card .mulopimfwc-btn-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 4px 14px !important;
    border-color: var(--mulopimfwc-primary) !important;
    border-radius: 7px !important;
    background: var(--mulopimfwc-primary) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.mulopimfwc-manager-card .mulopimfwc-btn-primary:hover {
    border-color: var(--mulopimfwc-primary-dark) !important;
    background: var(--mulopimfwc-primary-dark) !important;
    color: #fff !important;
}

.manager-actions .mulopimfwc-delete-manager,
.mulopimfwc-delete-btn {
    min-width: 76px;
    min-height: 38px;
    padding: 4px 16px !important;
    border-color: #f1b7b7 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #d00 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.manager-actions .mulopimfwc-delete-manager:hover,
.mulopimfwc-delete-btn:hover {
    border-color: #d00 !important;
    background: #fff5f5 !important;
    color: #d00 !important;
    box-shadow: none !important;
    transform: none;
}

.mulopimfwc-modal {
    background: rgba(20, 20, 28, 0.58);
}

.mulopimfwc-modal-content {
    border: 1px solid var(--mulopimfwc-border);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(20, 20, 28, 0.28);
}

.mulopimfwc-modal-header,
.mulopimfwc-modal-footer {
    border-color: var(--mulopimfwc-border);
}

.mulopimfwc-modal-header h2 {
    color: #292930;
    font-size: 18px;
    font-weight: 700;
}

.mulopimfwc-form-row label {
    color: #444651;
    font-size: 13px;
    font-weight: 700;
}

.mulopimfwc-form-row input[type="text"],
.mulopimfwc-form-row input[type="password"],
.mulopimfwc-form-row input[type="email"],
.mulopimfwc-form-row input[type="url"],
.mulopimfwc-form-row select {
    min-height: 38px;
    border-color: #dedde3;
    border-radius: 8px;
    box-shadow: none;
}

.checkbox-label {
    border-color: var(--mulopimfwc-border);
    border-radius: 8px;
    background: #fff;
}

.checkbox-label:hover {
    border-color: #d5c4e8;
    background: #f7efff;
}

@media (max-width: 1280px) {
    .mulopimfwc-managers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .mulopimfwc-managers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .wrap.mulopimfwc-location-managers-main {
        --mulopimfwc-page-gutter: 12px;
        --mulopimfwc-section-gap: 14px;
        margin-right: 10px;
        padding-top: 12px;
    }

    .mulopimfwc-location-managers-main .mulopimfwc-reference-ui,
    .mulopimfwc-location-managers-main .mulopimfwc-manager-header,
    .mulopimfwc-location-managers-main .mulopimfwc-managers-list {
        max-width: calc(100% - (var(--mulopimfwc-page-gutter) * 2));
        margin-left: var(--mulopimfwc-page-gutter);
        margin-right: var(--mulopimfwc-page-gutter);
    }

    .mulopimfwc-location-managers-main .mulopimfwc-manager-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mulopimfwc-manager-header button {
        width: 100%;
    }

    .mulopimfwc-managers-grid {
        grid-template-columns: 1fr;
    }

    .manager-actions {
        grid-template-columns: 1fr;
    }
}

/* Canonical reference background color shared by every admin tab. */
.wrap.mulopimfwc-location-managers-main {
    --mulopimfwc-page: #f3f4f6;
    --mulopimfwc-primary: oklch(0.5 0.17 290);
    --mulopimfwc-primary-dark: oklch(0.42 0.16 300);
    --mulopimfwc-primary-gradient: linear-gradient(120deg, var(--mulopimfwc-primary), var(--mulopimfwc-primary-dark));
    background: #f3f4f6 !important;
}

.mulopimfwc-location-managers-main .mulopimfwc-manager-header {
    background: var(--mulopimfwc-primary-gradient) !important;
}

body.location-manage_page_location-managers #wpcontent,
body.location-manage_page_location-managers #wpbody-content {
    background: #ffffff !important;
}

.wrap.mulopimfwc-location-managers-main select:not([multiple]):not([size]):not(.select2-hidden-accessible) {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    height: 34px !important;
    line-height: 32px !important;
    min-height: 34px !important;
    padding: 0 38px 0 12px !important;
}

.mulopimfwc-location-managers-main .mulopimfwc-manager-card .location-list .location-tag {
    align-items: center !important;
    background: #dcfce7 !important;
    border: 1px solid #b7e4c4 !important;
    border-radius: 999px !important;
    color: #007a2c !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    min-height: 20px !important;
    padding: 2px 9px !important;
}
