html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #172033;
}

.crm-admin {
    width: 100%;
    max-width: none;
    padding: 24px 32px;
}

.crm-admin .container-fluid,
.crm-admin .tab-content,
.crm-admin .tab-pane,
.crm-admin .card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.crm-admin .card {
    display: block !important;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

.crm-admin .card-body {
    display: block !important;
    width: 100% !important;
}

.crm-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    border-bottom: 1px solid #dee2e6;
}

.crm-tabs .nav-item {
    display: block;
    width: auto !important;
}

.crm-tabs .nav-link {
    width: auto !important;
    padding: 14px 22px;
    color: #64748b;
    font-weight: 600;
    border: 0;
    border-bottom: 3px solid transparent;
}

.crm-tabs .nav-link.active {
    color: #0d6efd;
    background: transparent;
    border-bottom-color: #0d6efd;
}

.crm-admin .row {
    display: flex !important;
    width: auto !important;
}

.crm-data-label {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.crm-data-value {
    color: #172033;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.crm-history {
    max-height: 620px;
    padding-right: 10px;
    overflow-y: auto;
}

.crm-message {
    margin-bottom: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
}

.crm-message.is-requester {
    border-left-color: #00a65a;
}

.crm-message-body {
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.crm-filter.active {
    color: #00a65a;
    background: #fff;
    border-color: #00a65a;
}

.crm-editor .wp-editor-wrap {
    overflow: hidden;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.crm-editor .wp-editor-container {
    border: 0;
}

.crm-editor .mce-toolbar-grp {
    background: #f8fafc;
}

.crm-editor iframe {
    min-height: 300px !important;
}

@media (max-width: 782px) {
    .crm-admin {
        padding: 16px;
    }

    .crm-tabs .nav-link {
        padding: 12px;
    }

    .crm-admin .card-body {
        padding: 18px !important;
    }
}
.crm-actions-group {
    width: 72px;
}

.crm-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 31px;
    padding: 0;
}

.crm-auth-card {
    max-width: 430px;
}

.crm-fecomercio-brand {
    display: inline-flex;
    align-items: center;
}

.crm-fecomercio-brand img {
    display: block;
    width: 170px;
    height: auto;
}

.crm-fecomercio-brand--auth img {
    width: min(300px, 100%);
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--multiple {
    box-sizing: border-box;
    min-height: 38px;
    padding: 5px 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 26px;
    margin: 0;
    padding: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0 0.25rem 0 0;
    padding: 1px 0.4rem;
    border-color: #ced4da;
    background: #e9ecef;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static;
    width: auto;
    margin-right: 0.25rem;
    padding: 0;
    border: 0;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: block;
    flex: 1 0 100%;
    height: 26px;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 100%;
    height: 24px;
    margin: 0 0.25rem 0.25rem 0;
    padding: 0;
    border: 0;
    font-size: 1rem;
    line-height: 24px;
    box-shadow: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 0.75rem;
    height: 36px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    z-index: 1060;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #0d6efd;
}
