/* ==========================================================
   MWP USUARIOS POR CLIENTE - MI CUENTA
   ========================================================== */

.mm-upc-account {
    --mm-upc-navy: #071d49;
    --mm-upc-blue: #2474e5;
    --mm-upc-blue-hover: #1d64c8;
    --mm-upc-text: #263746;
    --mm-upc-muted: #70808d;
    --mm-upc-border: #dfe6ec;
    --mm-upc-border-soft: #e9eef2;
    --mm-upc-soft: #f7f9fb;
    --mm-upc-soft-blue: #f3f7fd;
    --mm-upc-danger: #963d36;
    --mm-upc-danger-hover: #7e302a;
    --mm-upc-danger-bg: #fff7f6;
    --mm-upc-success: #39765c;
    --mm-upc-success-bg: #f0f8f4;

    width: 100%;
    color: var(--mm-upc-text);
}

.mm-upc-account,
.mm-upc-account * {
    box-sizing: border-box;
}

.mm-upc-panel {
    width: 100%;
    margin: 0 0 24px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--mm-upc-border);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(7, 29, 73, .035);
}

.mm-upc-list-panel,
.mm-upc-form-panel {
    width: 100%;
    max-width: none;
}

.mm-upc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--mm-upc-border-soft);
}

.mm-upc-header h2,
.mm-upc-form-panel h2 {
    margin: 0 !important;
    color: var(--mm-upc-navy) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em !important;
}

.mm-upc-form-panel h2 {
    font-size: 20px !important;
}

.mm-upc-header p,
.mm-upc-form-panel .mm-upc-form-desc,
.mm-upc-client-meta {
    margin: 5px 0 0 !important;
    color: var(--mm-upc-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.mm-upc-client-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px !important;
}

.mm-upc-client-meta strong {
    color: var(--mm-upc-text);
    font-weight: 800;
}

.mm-upc-client-meta .mm-upc-muted {
    color: #8996a0 !important;
}

.mm-upc-add-user-btn,
.mm-upc-account a.button.mm-upc-add-user-btn,
.mm-upc-account .button.mm-upc-primary-btn,
.mm-upc-account button.mm-upc-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 132px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    background: var(--mm-upc-blue) !important;
    border: 1px solid var(--mm-upc-blue) !important;
    border-radius: 7px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transform: none !important;
}

.mm-upc-add-user-btn:hover,
.mm-upc-add-user-btn:focus,
.mm-upc-account a.button.mm-upc-add-user-btn:hover,
.mm-upc-account a.button.mm-upc-add-user-btn:focus,
.mm-upc-account .button.mm-upc-primary-btn:hover,
.mm-upc-account .button.mm-upc-primary-btn:focus,
.mm-upc-account button.mm-upc-primary-btn:hover,
.mm-upc-account button.mm-upc-primary-btn:focus {
    background: var(--mm-upc-blue-hover) !important;
    border-color: var(--mm-upc-blue-hover) !important;
    color: #ffffff !important;
}

.mm-upc-account a.button.mm-upc-secondary-btn,
.mm-upc-account .button.mm-upc-secondary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 112px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    background: #ffffff !important;
    border: 1px solid #cbd6de !important;
    border-radius: 7px !important;
    color: var(--mm-upc-text) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.mm-upc-account a.button.mm-upc-secondary-btn:hover,
.mm-upc-account a.button.mm-upc-secondary-btn:focus,
.mm-upc-account .button.mm-upc-secondary-btn:hover,
.mm-upc-account .button.mm-upc-secondary-btn:focus {
    background: var(--mm-upc-soft) !important;
    border-color: #aebdc8 !important;
    color: var(--mm-upc-text) !important;
}

.mm-upc-users-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.mm-upc-user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "main actions"
        "details details";
    gap: 0;
    align-items: center;
    width: 100%;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--mm-upc-border);
    border-radius: 9px;
    overflow: hidden;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.mm-upc-user-card:hover {
    border-color: #cfd9e1;
    box-shadow: 0 3px 10px rgba(7, 29, 73, .025);
}

.mm-upc-user-main {
    grid-area: main;
    min-width: 0;
    padding: 15px 18px;
}

.mm-upc-user-name {
    display: block;
    color: var(--mm-upc-navy);
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mm-upc-user-email {
    display: block;
    margin-top: 4px;
    color: var(--mm-upc-text);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mm-upc-user-id {
    display: block;
    margin-top: 4px;
    color: #87939d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.mm-upc-user-details {
    grid-area: details;
    display: grid;
    grid-template-columns:
        minmax(145px, .9fr)
        minmax(105px, .65fr)
        minmax(190px, 1.4fr)
        minmax(150px, 1fr);
    gap: 0;
    min-width: 0;
    padding: 0 18px;
    background: var(--mm-upc-soft);
    border-top: 1px solid var(--mm-upc-border-soft);
}

.mm-upc-user-details > div {
    min-width: 0;
    padding: 11px 14px 12px 0;
}

.mm-upc-user-details > div + div {
    padding-left: 14px;
    border-left: 1px solid var(--mm-upc-border-soft);
}

.mm-upc-detail-label {
    display: block;
    margin: 0 0 4px;
    color: #7b8995;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mm-upc-detail-value {
    display: block;
    color: var(--mm-upc-text);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mm-upc-muted {
    color: var(--mm-upc-muted) !important;
    font-size: 11px !important;
}

.mm-upc-empty {
    padding: 15px 16px;
    background: var(--mm-upc-soft);
    border: 1px solid var(--mm-upc-border-soft);
    border-radius: 8px;
    color: var(--mm-upc-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.mm-upc-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
    padding: 14px 16px 14px 10px;
}

.mm-upc-actions .mm-upc-secondary-btn,
.mm-upc-actions .mm-upc-danger-btn {
    min-width: 94px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 11px !important;
}

.mm-upc-actions .mm-upc-badge {
    display: inline-block;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--mm-upc-blue);
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.4;
    white-space: normal;
}

.mm-upc-badge::before {
    content: none !important;
    display: none !important;
}

.mm-upc-badge.is-off {
    color: #6f7d88;
}

.mm-upc-badge.is-off::before {
    content: none !important;
    display: none !important;
}

.mm-upc-danger-btn,
.mm-upc-account a.button.mm-upc-danger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid #d5b6b2 !important;
    border-radius: 7px !important;
    color: var(--mm-upc-danger) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.mm-upc-danger-btn:hover,
.mm-upc-danger-btn:focus,
.mm-upc-account a.button.mm-upc-danger-btn:hover,
.mm-upc-account a.button.mm-upc-danger-btn:focus {
    background: var(--mm-upc-danger-bg) !important;
    border-color: #c9948e !important;
    color: var(--mm-upc-danger-hover) !important;
}

.mm-upc-table {
    width: 100%;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid var(--mm-upc-border) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 9px;
    overflow: hidden;
}

.mm-upc-table thead th {
    padding: 11px 13px !important;
    background: var(--mm-upc-soft) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mm-upc-border) !important;
    color: var(--mm-upc-navy) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.mm-upc-table tbody td {
    padding: 13px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mm-upc-border-soft) !important;
    color: var(--mm-upc-text);
    font-size: 12px;
    vertical-align: middle;
}

.mm-upc-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.mm-upc-table small {
    color: var(--mm-upc-muted);
    font-size: 10.5px;
}

.mm-upc-form-panel form {
    margin: 18px 0 0;
}

.mm-upc-form-panel label {
    display: block;
    margin: 0 0 6px;
    color: var(--mm-upc-text);
    font-size: 11.5px;
    font-weight: 800;
}

.mm-upc-form-panel input.input-text,
.mm-upc-form-panel select,
.mm-upc-form-panel .woocommerce-Input {
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    background: #ffffff !important;
    border: 1px solid #cbd6de !important;
    border-radius: 7px !important;
    color: var(--mm-upc-text) !important;
    font-size: 12.5px !important;
    box-shadow: none !important;
    outline: none !important;
}

.mm-upc-form-panel input.input-text:focus,
.mm-upc-form-panel select:focus,
.mm-upc-form-panel .woocommerce-Input:focus {
    border-color: var(--mm-upc-blue) !important;
    box-shadow: 0 0 0 3px rgba(36, 116, 229, .08) !important;
}

.mm-upc-select-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
}

.mm-upc-select-wrap select {
    padding-right: 42px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.mm-upc-select-wrap::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--mm-upc-muted);
    border-bottom: 1.5px solid var(--mm-upc-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.mm-upc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin: 18px 0 0;
}

.mm-upc-form-field {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.mm-upc-form-field--wide {
    grid-column: 1 / -1;
}

.mm-upc-form-help {
    display: block;
    margin: 6px 0 0;
    color: var(--mm-upc-muted);
    font-size: 11px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.45;
}

.mm-upc-form-panel fieldset {
    margin: 22px 0 0;
    padding: 16px;
    background: var(--mm-upc-soft);
    border: 1px solid var(--mm-upc-border-soft);
    border-radius: 8px;
}

.mm-upc-form-panel legend {
    padding: 0 8px;
    color: var(--mm-upc-navy);
    font-size: 13px;
    font-weight: 800;
}

.mm-upc-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 8px;
}

.mm-upc-permission-item {
    margin: 0 !important;
    padding: 0 !important;
}

.mm-upc-permission-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.mm-upc-permission-item input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--mm-upc-blue);
}

.mm-upc-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--mm-upc-border-soft);
}

.mm-upc-form-actions .button,
.mm-upc-form-actions button {
    width: auto !important;
    min-width: 132px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
}

.mm-upc-password-only-notice {
    margin-bottom: 16px !important;
}

@media (max-width: 1050px) {
    .mm-upc-user-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-upc-user-details > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--mm-upc-border-soft);
    }

    .mm-upc-user-details > div:nth-child(4) {
        border-top: 1px solid var(--mm-upc-border-soft);
    }
}

@media (max-width: 900px) {
    .mm-upc-user-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "details"
            "actions";
        align-items: stretch;
    }

    .mm-upc-actions {
        justify-content: flex-start;
        padding: 12px 18px 15px;
        border-top: 1px solid var(--mm-upc-border-soft);
    }
}

@media (max-width: 768px) {
    .mm-upc-panel {
        padding: 18px;
    }

    .mm-upc-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mm-upc-header .mm-upc-add-user-btn {
        width: 100% !important;
    }

    .mm-upc-form-grid,
    .mm-upc-permissions-grid {
        grid-template-columns: 1fr;
    }

    .mm-upc-form-field--wide {
        grid-column: auto;
    }

    .mm-upc-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .mm-upc-form-actions .button,
    .mm-upc-form-actions button {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    .mm-upc-panel {
        padding: 15px;
    }

    .mm-upc-user-details {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .mm-upc-user-details > div,
    .mm-upc-user-details > div + div,
    .mm-upc-user-details > div:nth-child(3),
    .mm-upc-user-details > div:nth-child(4) {
        padding: 10px 0;
        border-left: 0;
        border-top: 1px solid var(--mm-upc-border-soft);
    }

    .mm-upc-user-details > div:first-child {
        border-top: 0;
    }

    .mm-upc-user-main {
        padding: 14px 15px;
    }

    .mm-upc-actions {
        padding: 12px 15px 14px;
    }

    .mm-upc-header h2,
    .mm-upc-form-panel h2 {
        font-size: 18px !important;
    }

    .mm-upc-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .mm-upc-actions .button,
    .mm-upc-actions a.button {
        width: 100% !important;
    }
}


/* ==========================================================
   ESTADOS / APROBACIÓN - TEXTO LIMPIO
   ========================================================== */

.mm-upc-badge,
.mm-upc-badge::before,
.mm-upc-badge.is-off::before {
    box-shadow: none !important;
}

.mm-upc-badge::before,
.mm-upc-badge.is-off::before {
    content: none !important;
    display: none !important;
}

.mm-upc-detail-value {
    display: flex;
    align-items: center;
    min-height: 18px;
}

.mm-upc-detail-value > .mm-upc-badge {
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--mm-upc-blue) !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
}

.mm-upc-detail-value > .mm-upc-badge.is-off {
    color: #6f7d88 !important;
    font-weight: 650 !important;
}

.mm-upc-actions > .mm-upc-badge {
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--mm-upc-navy) !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
}

.mm-upc-user-details > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mm-upc-detail-label {
    min-height: 12px;
}

@media (max-width: 520px) {
    .mm-upc-badge {
        white-space: normal;
    }
}

/* ==========================================================
   FORMULARIO NUEVO / EDITAR USUARIO
   ========================================================== */

.mm-upc-form-panel {
    max-width: none;
}

.mm-upc-form-panel > h2 {
    margin: 0 0 5px !important;
    color: var(--mm-upc-navy) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.mm-upc-form-panel .mm-upc-form-desc {
    margin: 0 !important;
    color: var(--mm-upc-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.mm-upc-front-form {
    margin-top: 20px !important;
}

.mm-upc-form-grid {
    gap: 18px 20px !important;
    margin-top: 0 !important;
}

.mm-upc-form-field label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--mm-upc-text) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.mm-upc-form-field label .required {
    color: #963d36 !important;
}

.mm-upc-form-panel input.input-text,
.mm-upc-form-panel select,
.mm-upc-form-panel .woocommerce-Input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border: 1px solid #cbd6de !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: var(--mm-upc-text) !important;
    font-size: 13px !important;
    line-height: 40px !important;
    box-shadow: none !important;
}

.mm-upc-form-panel input.input-text:hover,
.mm-upc-form-panel select:hover,
.mm-upc-form-panel .woocommerce-Input:hover {
    border-color: #b8c5cf !important;
}

.mm-upc-form-panel input.input-text:focus,
.mm-upc-form-panel select:focus,
.mm-upc-form-panel .woocommerce-Input:focus {
    border-color: var(--mm-upc-blue) !important;
    box-shadow: 0 0 0 3px rgba(36, 116, 229, .08) !important;
}

.mm-upc-form-help {
    margin-top: 7px !important;
    color: var(--mm-upc-muted) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}


/* ==========================================================
   CAMPO CONTRASEÑA / ICONO OJO
   ========================================================== */

.mm-upc-form-panel .password-input {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.mm-upc-form-panel .password-input input {
    width: 100% !important;
    padding-right: 48px !important;
}

.mm-upc-form-panel .show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 4px !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7d88' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/svg%3E") !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-indent: -9999px !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
    z-index: 2 !important;
}

.mm-upc-form-panel .show-password-input:hover,
.mm-upc-form-panel .show-password-input:focus {
    background-color: #f1f4f6 !important;
    box-shadow: none !important;
}

.mm-upc-form-panel .show-password-input::before,
.mm-upc-form-panel .show-password-input::after {
    content: none !important;
    display: none !important;
}

.mm-upc-form-panel .show-password-input.display-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7d88' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.15A11.7 11.7 0 0 1 12 6c6.5 0 10 6 10 6a18.4 18.4 0 0 1-2.2 2.9'/%3E%3Cpath d='M6.3 6.3C3.5 8.1 2 12 2 12s3.5 6 10 6a10.8 10.8 0 0 0 4.1-.8'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") !important;
}


/* ==========================================================
   SELECT TIPO DE USUARIO
   ========================================================== */

.mm-upc-select-wrap {
    max-width: none !important;
}

.mm-upc-select-wrap select {
    padding-right: 42px !important;
    cursor: pointer;
}

.mm-upc-select-wrap::after {
    right: 16px !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 1.5px solid #788692 !important;
    border-bottom: 1.5px solid #788692 !important;
}


/* ==========================================================
   PERMISOS
   ========================================================== */

.mm-upc-form-panel fieldset {
    margin: 22px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.mm-upc-form-panel legend {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: var(--mm-upc-navy) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.mm-upc-permissions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
}

.mm-upc-permission-item {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mm-upc-permission-item label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    background: var(--mm-upc-soft) !important;
    border: 1px solid var(--mm-upc-border-soft) !important;
    border-radius: 7px !important;
    color: var(--mm-upc-text) !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
    transition:
        background-color .15s ease,
        border-color .15s ease !important;
}

.mm-upc-permission-item label:hover {
    background: #f3f6f8 !important;
    border-color: #d6e0e7 !important;
}

.mm-upc-permission-item label > span {
    display: block !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}


/* ==========================================================
   CHECKBOXES PERSONALIZADOS
   ========================================================== */

.mm-upc-permission-item input[type="checkbox"] {
    position: relative !important;
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #ffffff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    border: 1px solid #b9c6cf !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

.mm-upc-permission-item input[type="checkbox"]:hover {
    border-color: #94a5b2 !important;
}

.mm-upc-permission-item input[type="checkbox"]:focus {
    border-color: var(--mm-upc-blue) !important;
    box-shadow: 0 0 0 3px rgba(36, 116, 229, .10) !important;
}

.mm-upc-permission-item input[type="checkbox"]:checked {
    background-color: var(--mm-upc-blue) !important;
    border-color: var(--mm-upc-blue) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.3 6.4 11.2 12.9 4.8' fill='none' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.mm-upc-permission-item input[type="checkbox"]::before,
.mm-upc-permission-item input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}


/* ==========================================================
   ACCIONES DEL FORMULARIO
   ========================================================== */

.mm-upc-form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 22px 0 0 !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--mm-upc-border-soft) !important;
}

.mm-upc-form-actions .button,
.mm-upc-form-actions button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 138px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .mm-upc-permissions-grid {
        grid-template-columns: 1fr !important;
    }

    .mm-upc-form-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }

    .mm-upc-form-actions .button,
    .mm-upc-form-actions button {
        width: 100% !important;
    }
}

