/* ==========================================================================
   edu.css — estilos propios del módulo altcrm (registrado vía web/EduAsset.php)
   Usa las variables de tema de admin2.scss (:root / .dark-theme) con
   valores por defecto, para que funcione igual en claro y en oscuro.
   ========================================================================== */

/* Color de acento de todo el diseño (antes azul primario) */
:root {
    --edu-accent: #00a8b0;
    --edu-accent-hover: #008f96;
}

/* --------------------------------------------------------------------------
   Panel lateral de acciones / contenidos relacionados (widget NodeRel, layout "sidebar")
   views/widgets/accionessidebar.php
   -------------------------------------------------------------------------- */
.acc-sb,
.acc-dt {
    --acc-sb-primary: var(--edu-accent);
    --acc-sb-bg: var(--white, #fff);
    --acc-sb-text: var(--color, #212529);
    --acc-sb-muted: var(--color-title, #474D58);
    --acc-sb-border: var(--color-border, #E8E8E8);
    --acc-sb-hover: var(--nav-hover, #f1f3f5);
    --acc-sb-input-bg: var(--input-bg, #fff);
    --acc-sb-input-border: var(--input-border, #dee2e6);
    --acc-sb-active-bg: rgba(0, 168, 176, .1);
    --acc-sb-active-bg: color-mix(in srgb, var(--acc-sb-primary) 10%, transparent);
}

.acc-sb {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    margin-bottom: 16px;
    padding: 14px 10px 10px;
    background: var(--acc-sb-bg);
    color: var(--acc-sb-text);
    border: 1px solid var(--acc-sb-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
}

.acc-sb-head {
    flex: 0 0 auto;
}

.acc-sb-title {
    margin: 0 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acc-sb-muted);
    opacity: .75;
}

/* Accesos fijos: Detalles, Histórico correos, Informes */
.acc-sb-fixed {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--acc-sb-border);
}

/* Elemento del listado */
.acc-sb-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--acc-sb-text);
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.acc-sb-item:hover,
.acc-sb-item:focus-visible {
    background: var(--acc-sb-hover);
    color: var(--acc-sb-text);
    text-decoration: none;
    outline: none;
}

.acc-sb-item:hover .acc-sb-icon {
    color: var(--acc-sb-primary);
    transform: translateX(1px);
}

.acc-sb-item.active {
    background: var(--acc-sb-active-bg);
    color: var(--acc-sb-primary);
    font-weight: 600;
}

.acc-sb-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--acc-sb-primary);
}

.acc-sb-icon {
    flex: 0 0 auto;
    font-size: 19px !important;
    color: var(--acc-sb-muted);
    opacity: .85;
    transition: color .15s ease, transform .15s ease;
}

.acc-sb-item.active .acc-sb-icon {
    color: var(--acc-sb-primary);
    opacity: 1;
}

.acc-sb-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acc-sb-label mark {
    padding: 0 1px;
    border-radius: 3px;
    background: rgba(243, 193, 29, .35);
    color: inherit;
}

.acc-sb .acc-sb-badge {
    flex: 0 0 auto;
    min-width: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--acc-sb-hover) !important;
    color: var(--acc-sb-muted);
}

.acc-sb-item.active .acc-sb-badge {
    background: var(--acc-sb-primary) !important;
    color: #fff;
}

/* Buscador */
.acc-sb-search {
    position: relative;
    margin: 0 2px 8px;
}

.acc-sb-search .material-symbols-outlined {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--acc-sb-muted);
    opacity: .6;
    pointer-events: none;
    transition: color .15s ease, opacity .15s ease;
}

.acc-sb-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    font-size: 13px;
    color: var(--acc-sb-text);
    background: var(--acc-sb-input-bg);
    border: 1px solid var(--acc-sb-input-border);
    border-radius: 999px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.acc-sb-search input::placeholder {
    color: var(--acc-sb-muted);
    opacity: .6;
}

.acc-sb-search input:focus {
    border-color: var(--acc-sb-primary);
    box-shadow: 0 0 0 3px var(--acc-sb-active-bg);
}

.acc-sb-search:focus-within .material-symbols-outlined {
    color: var(--acc-sb-primary);
    opacity: 1;
}

/* Contador y enlace "Contador de elementos" */
.acc-sb-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 8px 6px;
    font-size: 12px;
    color: var(--acc-sb-muted);
}

.acc-sb-total {
    font-weight: 700;
    color: var(--acc-sb-text);
}

.acc-sb.is-searching .acc-sb-total {
    color: var(--acc-sb-primary);
}

.acc-sb-count-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--acc-sb-primary);
    text-decoration: none;
    transition: background-color .15s ease;
}

.acc-sb-count-link:hover {
    background: var(--acc-sb-active-bg);
    text-decoration: none;
}

.acc-sb-count-link .material-symbols-outlined {
    font-size: 15px;
}

/* Listado de relacionados con scroll propio */
.acc-sb-list {
    position: relative;
    flex: 1 1 auto;
    min-height: 120px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 2px 2px;
    border-top: 1px solid var(--acc-sb-border);
    scrollbar-width: thin;
    scrollbar-color: var(--acc-sb-border) transparent;
}

.acc-sb-list::-webkit-scrollbar {
    width: 6px;
}

.acc-sb-list::-webkit-scrollbar-thumb {
    background: var(--acc-sb-border);
    border-radius: 6px;
}

.acc-sb-list::-webkit-scrollbar-thumb:hover {
    background: var(--acc-sb-muted);
}

.acc-sb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 8px;
    font-size: 13px;
    color: var(--acc-sb-muted);
    text-align: center;
    opacity: .8;
}

.acc-sb-empty .material-symbols-outlined {
    font-size: 28px;
    opacity: .6;
}

/* Botón desplegable (solo móvil) */
.acc-sb-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 6px;
    background: none;
    border: 0;
    color: var(--acc-sb-text);
    text-align: left;
    cursor: pointer;
}

.acc-sb-toggle-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

.acc-sb-toggle-text small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acc-sb-muted);
    opacity: .75;
}

.acc-sb-toggle-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--acc-sb-primary);
}

.acc-sb-toggle-chevron {
    transition: transform .2s ease;
}

.acc-sb.is-open .acc-sb-toggle-chevron {
    transform: rotate(180deg);
}

/* Tablet / móvil: el panel va arriba, sin sticky, plegado tras el botón */
@media (max-width: 767.98px) {
    .acc-sb {
        position: static;
        max-height: none;
        padding: 8px 10px;
    }

    .acc-sb-list {
        max-height: 320px;
    }

    .acc-sb-toggle {
        display: flex;
    }

    .acc-sb-title {
        display: none;
    }

    .acc-sb:not(.is-open) .acc-sb-head > :not(.acc-sb-toggle),
    .acc-sb:not(.is-open) .acc-sb-list {
        display: none;
    }

    .acc-sb.is-open .acc-sb-toggle {
        margin-bottom: 10px;
    }
}


/* --------------------------------------------------------------------------
   Cabecera de ficha con acciones Editar / Añadir
   views/content/_cabecera.php (view, rel, emails)
   -------------------------------------------------------------------------- */
.acc-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
}

.acc-hd-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.acc-hd-type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-title, #474D58);
}

.acc-hd-id {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--nav-hover, #f1f3f5);
    color: var(--color-title, #474D58);
}

.acc-hd-actions {
    display: flex;
    gap: 8px;
}

.acc-hd-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    white-space: nowrap;
    border-radius: 10px;
}

.acc-hd-actions .btn .material-symbols-outlined {
    font-size: 19px;
}

/* Móvil: la cabecera va arriba del panel lateral, botones a partes iguales */
@media (max-width: 767.98px) {
    .acc-hd {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .acc-hd-actions .btn {
        flex: 1 1 0;
        min-height: 42px;
    }

    .acc-hd-long {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   Detalle del registro (content/view)
   -------------------------------------------------------------------------- */

/* Franja con los datos del registro: creado por, fechas, último usuario */
.acc-dt-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.acc-dt-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-radius: 12px;
}

.acc-dt-meta-item > .material-symbols-outlined {
    flex: 0 0 auto;
    display: flex;
    margin: 0;
    padding: 0;
    line-height: 1 !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 19px;
    color: var(--edu-accent);
    background: rgba(0, 168, 176, .1);
    background: color-mix(in srgb, var(--edu-accent) 10%, transparent);
}

.acc-dt-meta-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.acc-dt-meta-item small {
    font-size: 11px;
    color: var(--color-title, #474D58);
    opacity: .7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-dt-meta-item span:not(.material-symbols-outlined) {
    font-size: 14px;
    font-weight: 600;
    color: var(--color, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tarjeta de campos */
.acc-dt {
    margin-bottom: 16px;
    padding: 14px;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
}

.acc-dt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.acc-dt-title {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-title, #474D58);
    opacity: .75;
}

.acc-dt-search {
    flex: 0 1 260px;
    margin: 0;
}

.acc-dt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.acc-dt-field {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--hover-white, #F8FAFC);
    border: 1px solid transparent;
    transition: border-color .15s ease, background-color .15s ease;
}

.acc-dt-field:hover {
    border-color: var(--color-border, #E8E8E8);
}

.acc-dt-wide {
    grid-column: 1 / -1;
}

.acc-dt-label {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-title, #474D58);
    opacity: .75;
}

.acc-dt-value {
    font-size: 14px;
    color: var(--color, #212529);
    overflow-wrap: anywhere;
}

.acc-dt-value img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.acc-dt-value table {
    max-width: 100%;
}

.acc-dt-wide .acc-dt-value {
    overflow-x: auto;
}

.acc-dt-empty {
    color: var(--color-title, #474D58);
    opacity: .4;
}

.acc-dt-field.is-empty {
    background: transparent;
    border: 1px dashed var(--color-border, #E8E8E8);
}

.acc-dt-noresults {
    grid-column: 1 / -1;
    padding: 16px;
    font-size: 13px;
    text-align: center;
    color: var(--color-title, #474D58);
    opacity: .7;
}

@media (max-width: 991.98px) {
    .acc-dt-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .acc-dt {
        padding: 10px;
    }

    .acc-dt-search {
        flex: 1 1 100%;
    }

    .acc-dt-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* --------------------------------------------------------------------------
   Información rápida / contexto del registro (widget ResumeInfo)
   views/widgets/resumeinfo.php (rel, emails, reportfile)
   Discreta: muestra los primeros campos y "Ver más" para el resto
   -------------------------------------------------------------------------- */
.acc-ri {
    margin-bottom: 16px;
    padding: 10px 12px;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-radius: 12px;
}

.acc-ri-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-ri .acc-ri-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 18px !important;
    line-height: 1 !important;
    vertical-align: middle;
    color: var(--color-title, #474D58);
    background: var(--nav-hover, #f1f3f5);
}

.acc-ri-title {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

.acc-ri-title small {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    color: var(--color-title, #474D58);
    opacity: .7;
}

.acc-ri-id {
    padding: 0 6px;
    border-radius: 999px;
    background: var(--nav-hover, #f1f3f5);
}

.acc-ri-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--color, #212529);
}

.acc-ri-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--edu-accent);
    text-decoration: none;
    transition: background-color .15s ease;
}

.acc-ri-link:hover {
    background: var(--nav-hover, #f1f3f5);
    text-decoration: none;
}

.acc-ri-link .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
}

.acc-ri-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.acc-ri-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--hover-white, #F8FAFC);
}

.acc-ri-field small {
    font-size: 11px;
    color: var(--color-title, #474D58);
    opacity: .7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acc-ri-value {
    font-size: 13px;
    color: var(--color, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* El HTML de getColumn puede traer <p>, badges, enlaces... se mantiene en una línea */
.acc-ri-value p,
.acc-ri-title strong p {
    display: inline;
    margin: 0;
}

.acc-ri-value br,
.acc-ri-title strong br {
    display: none;
}

.acc-ri-value img {
    max-height: 20px;
    width: auto;
    vertical-align: middle;
    border-radius: 4px;
}

.acc-ri-field em {
    font-style: normal;
    opacity: .4;
}

/* Plegado: 4 campos en escritorio */
.acc-ri:not(.is-open) .acc-ri-field:nth-child(n+5) {
    display: none;
}

.acc-ri-more {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 6px auto 0;
    padding: 2px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-title, #474D58);
    opacity: .8;
}

.acc-ri-more:hover {
    background: var(--nav-hover, #f1f3f5);
    opacity: 1;
}

.acc-ri-more.acc-ri-more-all {
    display: flex;
}

.acc-ri-more .material-symbols-outlined {
    font-size: 16px;
    line-height: 1;
    transition: transform .2s ease;
}

.acc-ri.is-open .acc-ri-more .material-symbols-outlined {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .acc-ri-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Móvil: 2 campos */
@media (max-width: 767.98px) {
    .acc-ri-link span:last-child {
        display: none;
    }

    .acc-ri:not(.is-open) .acc-ri-field:nth-child(n+3) {
        display: none;
    }

    .acc-ri-more {
        display: flex;
    }
}

/* Título del listado relacionado (content/rel) */
.acc-rel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.acc-rel-of {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-title, #474D58);
    opacity: .7;
}

.acc-rel-of .material-symbols-outlined {
    font-size: 16px;
}


/* Cabecera compacta (rel, emails): en escritorio el contexto ya lo da ResumeInfo */
.acc-hd.acc-hd-compact {
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.acc-hd.acc-hd-compact .acc-hd-info {
    display: none;
}


/* --------------------------------------------------------------------------
   Bloques propios bajo el detalle (p.ej. backend/views/centro/view.php)
   Se envuelven en .acc-centro y solo se retocan títulos y tablas
   -------------------------------------------------------------------------- */
.acc-centro > h3.page-header,
.acc-centro > div > h3.page-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 10px;
    padding: 0;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-title, #474D58);
    opacity: .85;
}

.acc-centro > h3.page-header::after,
.acc-centro > div > h3.page-header::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-border, #E8E8E8);
}

.acc-centro > div:first-child > h3.page-header {
    margin-top: 4px;
}

/* Tablas como tarjeta */
.acc-centro .table.detail-view {
    overflow: hidden;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
}

.acc-centro .table.detail-view > :not(caption) > * > * {
    border-width: 0 0 1px 0;
    border-color: var(--color-border, #E8E8E8);
    padding: 8px 12px;
    vertical-align: middle;
}

.acc-centro .table.detail-view > tbody > tr:last-child > *,
.acc-centro .table.detail-view > tr:last-child > * {
    border-bottom: 0;
}

.acc-centro .table.detail-view thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-title, #474D58);
    background: var(--hover-white, #F8FAFC);
    white-space: nowrap;
}

/* Contenedores con scroll (facturas, descuentos) */
.acc-centro div[style*="overflow:auto"] {
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border, #E8E8E8) transparent;
}

.acc-centro div[style*="overflow:auto"] .table.detail-view {
    margin-bottom: 0;
}

/* Formulario de facturación prevista */
.acc-centro form.d-flex {
    flex-wrap: wrap;
    align-items: flex-end !important;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-radius: 12px;
}

.acc-centro form.d-flex .form-group {
    flex: 1 1 160px;
    width: auto !important;
    margin: 0;
}

.acc-centro form.d-flex label {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-title, #474D58);
}

/* Catálogo de precios */
.acc-centro .panel.sel_analysis {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--white, #fff);
    border: 1px solid var(--color-border, #E8E8E8);
    border-radius: 12px;
}

.acc-centro .panel.sel_analysis .cont-search {
    width: auto !important;
    max-width: 320px;
}

@media (max-width: 767.98px) {
    .acc-centro .panel.sel_analysis .cont-search {
        max-width: none;
    }

    .acc-centro .table.detail-view {
        display: block;
        overflow-x: auto;
    }
}


/* Botón Editar de la cabecera con el color de acento */
.acc-hd-actions .btn-outline-primary {
    --bs-btn-color: var(--edu-accent);
    --bs-btn-border-color: var(--edu-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--edu-accent);
    --bs-btn-hover-border-color: var(--edu-accent);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--edu-accent-hover);
    --bs-btn-active-border-color: var(--edu-accent-hover);
    --bs-btn-focus-shadow-rgb: 0, 168, 176;
    color: var(--edu-accent);
    border-color: var(--edu-accent);
}

.acc-hd-actions .btn-outline-primary:hover,
.acc-hd-actions .btn-outline-primary:focus-visible {
    color: #fff;
    background-color: var(--edu-accent);
    border-color: var(--edu-accent);
}

/* --------------------------------------------------------------------------
   Listado de contenidos (views/widgets/grid.php): limitar el ancho de las
   celdas para que JSON / textos largos sin espacios no fuercen scroll horizontal
   -------------------------------------------------------------------------- */
#w0.grid-view > table > tbody > tr > td:not(.action-column) {
    max-width: 350px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#w0.grid-view > table > tbody > tr > td:not(.action-column) pre {
    max-width: 350px;
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
}
