/* Menú */

.crm-container {
    max-width: 1600px;
    margin: 0 auto;
}

.crm-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #023F1E;
    z-index: 10000;
    height: 80px;
    font-family: DMSansCustom, serif;
}

.crm-menu > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.crm-menu-separator {
    height: 80%;
    background-color: #f9f2e2;
    width: 1px;
}

.crm-menu-img {
    height: 100%;
}

.crm-menu-user {
    color: #F9F2E2;
}

.crm-menu-links > a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.crm-menu-user-image {
    width: 48px;
    height: 48px;
}


/* Panel de usuario */

.crm-panel {
    margin-top: 100px;
}

.crm-panel-user span {
    font-style: italic;
}

.cpt-content-float {
    top: 0;
    right: 0;
    position: absolute;
    z-index: 100;
}

.cpt-content-float select {
    border: 1px solid #936037;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-family: Verdana, serif;
}

.crm-add-button {
    text-transform: uppercase;
    font-family: Verdana, serif;
    font-weight: 600;
    font-size: 14px !important;
}

/* Info usuario */
.user-info {
    background-color: #023F1E; /* verde oscuro */
    color: #F9F2E2;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.user-info h2 {
    margin: 0;
    font-size: 1.6rem;
}
.user-info p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
}

.logout-button {
    display: inline-block;
    color: #FFF;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    margin-left: auto;
    font-weight: 500;
    font-family: 'DMSansCustom', sans-serif;
    font-size: 16px;
}


/* Tabs */
.cpt-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'DMSansCustom', sans-serif;
}

.cpt-tab {
    color: #CFCECF;
    padding: 6px 22px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 400;
    border-bottom: 3px solid #CFCECF;
}
.cpt-tab:hover {
    color: #000000;
}
.cpt-tab.active {
    color: #000000;
    border-bottom: 3px solid #000000;
}

.crm-panel-user h2 {
    font-size: 40px;
}

/* Contenido */

.cpt-content {
    display: none;
    margin-top: 1.5rem;
}
.cpt-content.active {
    display: block;
}
.cpt-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cpt-content li {
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.cpt-content li span {
    color: #023F1E;
    font-weight: 500;
}

/* Botón editar */
.edit-btn, .delete-btn, .view-btn {
    text-decoration: none;
}

.cpt-table {
    width:100%;
    border-collapse: collapse;
}
.cpt-table thead th {
    background-color:#023F1E;
    color:#F9F2E2;
    padding:0.5rem;
}
.cpt-table tbody td {
    background:#fff;
    color:#023F1E;
    padding:0.5rem;
}
.cpt-table tbody tr:hover {
    background:#F9F2E2;
}

.cpt-table thead th:last-of-type {
    width: 10% !important;
}

.half-opacity {
    opacity: 0.3;
}

#crm-featured-preview {
    cursor: pointer;
}

/* Tabla */
.dataTable.cpt-table {
    border: none;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-top: 30px !important;
}

.dataTables_length {
    display: none;
}

.dataTables_wrapper .dataTables_filter {
    width: fit-content;
}

.dataTables_wrapper {
    display: flex;
    flex-direction: column;
}

.dataTables_info {
    display: none;
}

.cpt-table {
    margin-top: 20px !important;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px;
}

/* Encabezados */
.dataTable.cpt-table thead th {
    background-color: #023F1E;
    color: #F9F2E2;
    padding: 0.75rem;
    border: none;
    text-align: left;
}
.dataTable.cpt-table thead th.sorting,
.dataTable.cpt-table thead th.sorting_asc,
.dataTable.cpt-table thead th.sorting_desc {
    background-color: #F9F2E2 !important;
    color: #023F1E !important;
    font-family: 'DMSansCustom', sans-serif;
}

/* Filas */
.dataTable.cpt-table tbody tr {
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.dataTable.cpt-table tbody td {
    padding: 12px 8px;
    color: #023F1E;
    border: none;
}

.cpt-table tbody tr {
    border-bottom: 1px solid #CFCECF;
}

/* Buscador y paginación */
.dataTables_wrapper .dataTables_filter label {
    color: #023F1E;
    font-weight: 500;
}
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #936037;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #936037;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
}

.dataTables_wrapper .dataTables_info {
    color: #023F1E;
    margin-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #000000;
    padding: 4px 12px !important;
    font-family: 'DMSansCustom', sans-serif;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #F9F2E2 !important;
    border: 1px solid white;
    border-radius: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border: 1px solid white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #F9F2E2 !important;
    color: #000000 !important;
    border: 1px solid white;
    border-radius: 10px !important;
}

/* Página de editar */

.page-id-62645 footer, .page-id-62645 #wpadminbar, .page-id-62739  #wpadminbar, .page-id-62739 footer {
    display: none;
}

.frontend-edit .acf-form-submit input {
    background:#936037 !important;
    color:#F9F2E2 !important;
    padding:0.5rem 1rem !important;
    border-radius:6px !important;
    border:none !important;
    font-size:1rem;
}
.frontend-edit .acf-form-submit input:hover {
    background:#023F1E !important;
}

.frontend-edit .acf-label label {
    color: #000000 !important;
    font-weight:500;
}

.frontend-edit .acf-input input,
.frontend-edit .acf-input textarea,
.frontend-edit .acf-input select {
    border:1px solid #936037 !important;
    border-radius:6px !important;
    padding:0.4rem !important;
    width:100% !important;
    background:#fff !important;
    color: #000000 !important;
}

.frontend-edit {
    background-color: #a4a4a414;
    border-radius: 20px;
}

.frontend-come-back {
    margin-top: 90px;
}

.frontend-come-back a {
    color: #023F1E;
    font-weight: 600;
    font-family: 'DMSansCustom', sans-serif;
}

.frontend-edit .acf-tab-wrap.-left .acf-tab-group li a {
    color: #023F1E;
}

.frontend-edit .acf-tab-wrap.-left .acf-tab-group li a:hover {
    color: #023F1E;
}

.frontend-edit .acf-button, .crm-panel .acf-button {
    background: #936037 !important;
    color: #F9F2E2 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    border: none !important;
    font-size: 1rem;
    text-decoration: none;
}

.frontend-edit .acf-switch .acf-switch-on {
    text-shadow: #023F1E 0 1px 0;
}

.frontend-edit .acf-switch.-on {
    background: #936037;
    border-color: #936037;
}

.frontend-edit .acf-switch.-on .acf-switch-slider {
    border-color: #936037;
}

.crm-edit-cpt > h2 {
    color: #023F1E;
}


/* Panel de usuarios */

.crm-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}

.crm-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 22px;
    cursor: pointer;
}

.delete-user-btn {
    cursor: pointer;
}


/* CRM Modal */

.crm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.crm-modal-content {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.crm-modal-content .close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.crm-modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.crm-modal-content label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #333;
}

.crm-modal-content input[type="text"],
.crm-modal-content input[type="email"],
.crm-modal-content input[type="password"],
.crm-modal-content select {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.crm-modal-content input[type="text"]:focus,
.crm-modal-content input[type="email"]:focus,
.crm-modal-content input[type="password"]:focus,
.crm-modal-content select:focus {
    border-color: #316247;
    outline: none;
    box-shadow: 0 0 0 2px rgba(49, 98, 71, 0.2);
}

.crm-modal-content button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: #316247;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}

.crm-modal-content button:hover {
    background: #24503e;
}

.crm-modal-content .error {
    color: #d63638;
    background: #ffe8e8;
    border: 1px solid #f1b2b2;
    padding: 0.6rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

/* Selector Polylang */

.crm-edit-lang {

}


/* Taxonomías */

.crm-taxonomy-box {
    border: 1px #bababa solid;
    border-radius: 5px;
    background-color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: scroll;
}