/* CSS unificado SCR / SCRNEWS */

/* ===== Fuentes ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== Base compartida ===== */

 body{
    background-color: #e3f2fa!important;
 }
.scr-main-title {
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1d7989;
}


.scr-help-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #308B91;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(48, 139, 145, 0.35);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.scr-help-fab:hover {
    transform: scale(1.1) rotate(-5deg);
    background: #2A747E;
    color: #fff;
    box-shadow: 0 15px 30px rgba(42, 116, 126, 0.45);
}

.scr-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2B6282;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #2A747E;
    line-height: 1;
    cursor: pointer;
}

.scr-tooltip-icon:hover,
.scr-tooltip-icon:focus {
    background-color: #308B91;
    border-color: #2F8C8E;
    color: #fff;
    text-decoration: none;
}

.scr-inline-form {
    display: inline;
}

.scr-inline-block-form {
    display: inline-block;
}

.scr-mt-075 {
    margin-top: 0.75rem;
}

.scr-maxw-540 {
    max-width: 540px;
}

.scr-text-center {
    text-align: center;
}

.scr-help-footer {
    text-align: center;
    padding: 1rem 0 0.5rem;
    color: #2B6282;
    font-size: 0.8rem;
}

.scr-display-prewrap {
    white-space: pre-wrap;
}

.scr-hidden-card,
.scr-hidden-form,
.scr-content-image-hidden,
.scr-content-reint-hidden,
.scr-content-source-hidden,
.scr-accordion-body-hidden,
.scr-ollama-models-panel,
.scr-progress-container {
    display: none;
}

.scr-ollama-models-panel {
    margin-top: 0.5rem;
}

.scr-btn-primary-force {
    background-color: #308B91 !important;
    border-color: #308B91 !important;
    color: #fff !important;
}

.scr-col-w-3 { width: 3%; }
.scr-col-w-4 { width: 4%; }
.scr-col-w-5 { width: 5%; }
.scr-col-w-6 { width: 6%; }
.scr-col-w-7 { width: 7%; }
.scr-col-w-7ch { width: 7ch; }
.scr-col-w-8 { width: 8%; }
.scr-col-w-9 { width: 9%; }
.scr-col-w-10 { width: 10%; }
.scr-col-w-12 { width: 12%; }
.scr-col-w-15 { width: 15%; }
.scr-col-w-20 { width: 20%; }
.scr-col-w-29 { width: 29%; }
.scr-col-w-30 { width: 30%; }
.scr-col-w-35 { width: 35%; }
.scr-col-w-40 { width: 40%; }
.scr-col-w-50 { width: 50%; }
.scr-col-w-5ch { width: 5ch; }
.scr-col-w-10ch { width: 10ch; }
.scr-col-w-40px { width: 40px; }
.scr-col-w-60px { width: 60px; }
.scr-col-w-80px { width: 80px; }

/* Columnas con ancho fijo para evitar redimensionamiento */
.scr-col-fx-chk    { width: 45px;  min-width: 45px;  text-align: center; }
.scr-col-fx-tema   { width: 110px; min-width: 110px; }
.scr-col-fx-cat    { width: 55px;  min-width: 55px;  text-align: center; }
.scr-col-fx-titulo { width: 450px; min-width: 400px; }
.scr-col-fx-fuente { width: 140px; min-width: 130px; }
.scr-col-fx-fecha  { width: 105px; min-width: 105px; text-align: center; }
.scr-col-fx-ver    { width: 60px;  min-width: 60px;  text-align: center; }
.scr-col-fx-status { width: 50px;  min-width: 50px;  text-align: center; }
.scr-col-fx-seo    { width: 75px;  min-width: 75px;  text-align: center; }
.scr-col-fx-ia     { width: 60px;  min-width: 60px;  text-align: center; }

.scr-img-article-thumb {
    max-width: 60px;
    max-height: 40px;
    border-radius: 4px;
}

.scr-img-copy-thumb {
    max-width: 40px;
    margin-top: 5px;
    border-radius: 4px;
}

.scr-truncate-w-400 {
    max-width: 400px;
}

.scr-truncate-w-200 {
    max-width: 200px;
}

.scr-copy-box {
    font-size: 0.9em;
    max-height: 80px;
    overflow-y: auto;
}

.scr-text-xs-muted {
    font-size: 0.85em;
}

.scr-pre-scroll-sm {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.scr-accordion-bordered {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.scr-accordion-bordered-min {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-width: 280px;
}

.scr-accordion-item-borderless {
    border: none;
}

.scr-accordion-btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.scr-form-help-compact {
    font-size: 0.72rem;
    line-height: 1.2;
    display: block;
    margin-top: 0.25rem;
}

.scr-cell-min-90 {
    min-width: 90px;
}

.scr-input-w-70 {
    width: 70px;
}

.scr-form-help-mini {
    font-size: 0.7rem;
    margin-top: 3px;
}

.scr-cron-monitor-box {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.scr-progress-w-0 {
    width: 0%;
}

.scr-cron-status-output {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-height: 220px;
    overflow: auto;
}

.scr-content-reint-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.scr-content-reint-body {
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    line-height: 1.75;
    font-size: 0.97rem;
    color: #1e293b;
}

.scr-content-reint-source {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    white-space: pre-wrap;
    overflow-x: auto;
    color: #334155;
}

.scr-code-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-family: monospace;
    font-size: 0.9rem;
}

.scr-code-box-breakall {
    word-break: break-all;
}

.scr-code-box-pre {
    font-size: 0.85rem;
    white-space: pre-wrap;
    line-height: 1.45;
}

.scr-section-highlight-green {
    border-left: 4px solid #2F8C8E;
}

.scr-step-badge-green {
    background: #2F8C8E;
}

.scr-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* ===== News (com_scr) ===== */
.scr-news-wrap {
    max-width: 100%;
}

.scr-news-table {
    margin: 0;
    width: 100%;
    background-color: #ffffff !important;
    border-collapse: collapse;
}

.scr-news-table th,
.scr-news-table td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.scr-news-table td a {
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    max-height: 2.6em;
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scr-news-table td a:hover {
    color: #308B91;
    text-decoration: underline;
}

.scr-news-table tbody tr {
    transition: background-color 0.3s ease;
}

.scr-news-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.scr-news-table tbody tr.scr-news-reinterpreted {
    background-color: #f0fdf4 !important; /* Even lighter green */
}

.scr-news-table tbody tr.scr-news-reinterpreted:hover {
    background-color: #dcfce7 !important;
}

.scr-news-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: #fafafa !important;
    background-color: #fafafa !important;
}

.scr-request-info-card {
    background-color: #f8f9fa;
}

.scr-request-info-card .btn-link {
    color: #0c5460;
    font-weight: 600;
}

.scr-request-info-card .btn-link:hover {
    color: #062c33;
}

.scr-news-reinterpreted {
    background-color: #bfdac6 !important;
    transition: background-color 0.3s ease;
}

.scr-tema-cell {
    font-size: 0.9rem;
    color: #555;
    cursor: help;
    position: relative;
}

.scr-status-dot {
    font-size: 45px !important;
    line-height: 0.5;
    display: inline-block;
    vertical-align: middle;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scr-section-title {
    border-left: 5px solid #2F8C8E;
    padding-left: 15px;
    color: #1e293b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.scr-sortable-col {
    cursor: pointer;
    position: relative;
    padding-right: 10px !important;
    white-space: nowrap;
}

.scr-sortable-col:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.scr-sortable-col::after {
    content: '↕';
    position: absolute;
    right: 5px;
    color: #ccc;
    font-size: 0.8em;
}

.scr-sortable-col.asc::after {
    content: '▲';
    color: #000;
    font-weight: 700;
}

.scr-sortable-col.desc::after {
    content: '▼';
    color: #000;
    font-weight: 700;
}

.js-view-reinterpretation {
    transition: all 0.3s ease;
}

.js-view-reinterpretation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.js-view-reinterpretation.scr-ai-reinterpreted {
    background-color: #d4edda;
    border-color: #308B91;
    color: #308B91;
}

.js-view-reinterpretation.scr-ai-reinterpreted:hover:not(:disabled) {
    background-color: #c3e6cb;
    border-color: #2A747E;
    color: #2A747E;
}

.js-view-reinterpretation.scr-ai-reinterpreted:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.js-reinterpret-article {
    transition: all 0.3s ease;
}

.js-reinterpret-article:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.js-reinterpret-article:active:not(:disabled) {
    transform: translateY(0);
}

.spinner-border-sm {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#scrContentReinterpretedWrap {
    background: linear-gradient(to right, #f0f8f0, #f8f9fa);
    border-left: 4px solid #308B91;
}

#scrContentReinterpreted {
    color: #333 !important;
    font-weight: 500;
}

.scr-news-table-results tbody tr {
    vertical-align: middle;
}

.scr-news-table-results a {
    color: #308B91;
    text-decoration: none;
}

.scr-news-table-results a:hover {
    text-decoration: underline;
}

.scr-news-table-stored {
    font-size: 0.9rem;
    table-layout: auto !important;
    width: auto !important;
    min-width: 0 !important;
}

.scr-news-table-stored .btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
}

.scr-news-table-stored td:last-child {
    text-align: center;
}

#temaAccordion {
    background-color: #fff;
}

#temaAccordion .accordion-item {
    border: none;
}

#temaAccordion .accordion-button,
#temaAccordion .js-accordion-btn {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #333;
    background-color: #f8f9fa;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-radius: 4px;
}

#temaAccordion .accordion-button::after,
#temaAccordion .js-accordion-btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: auto;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23333" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

#temaAccordion .accordion-button:not(.collapsed)::after,
#temaAccordion .js-accordion-btn:not(.collapsed)::after {
    transform: rotate(180deg);
}

#temaAccordion .accordion-button:hover,
#temaAccordion .js-accordion-btn:hover {
    background-color: #e7e7e7;
}

#temaAccordion .accordion-body {
    background-color: #f9f9f9;
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 4px 4px;
}

#temaAccordion .form-check {
    margin-bottom: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

#temaAccordion .form-check:first-child {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

#temaAccordion .form-check-input {
    cursor: pointer;
    margin-top: 0.3rem;
}

#temaAccordion .form-check-label {
    cursor: pointer;
    user-select: none;
    margin-left: 0.25rem;
    margin-bottom: 0;
}

#temaAccordion .form-check-input:checked {
    background-color: #2A747E;
    border-color: #2A747E;
    box-shadow: inset 0 0.25rem 0.25rem rgba(0, 0, 0, 0.1);
}

.scr-progress-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.scr-progress-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.scr-progress-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    max-width: 500px;
}

.scr-progress-modal-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #308B91;
    border-radius: 50%;
    animation: scr-spin 1s linear infinite;
}

@keyframes scr-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.scr-progress-modal-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.scr-progress-modal-counter {
    font-size: 14px;
    color: #666;
}

.scr-real-url-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: #308B91;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 700;
}

/* ===== SCR mantenimiento / AI / stats ===== */
.scr-aiconfig {
    max-width: 1200px;
    margin: 20px auto;
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.stats-dashboard {
    background-color: #f1f5f9;
    border-radius: 1rem;
    padding: 2rem;
    min-height: 80vh;
}

.stats-header {
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bg-soft-primary { background-color: #D1E4F0; color: #2B6282; }
.bg-soft-success { background-color: #D1E4F0; color: #2F8C8E; }
.bg-soft-info { background-color: #D1E4F0; color: #308B91; }
.bg-soft-warning { background-color: #D1E4F0; color: #862D74; }
.bg-soft-purple { background-color: #D1E4F0; color: #91308E; }

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #2B6282;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #2A747E;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-whatsapp-api {
    background-color: #25D366 !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.btn-whatsapp-api:hover {
    background-color: #128C7E !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-api i {
    font-size: 1.1rem;
}

.btn-send-report {
    background-color: #ff8c00;
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-send-report:hover {
    background-color: #e67e00;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.stats-table-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 2rem;
}

.stats-table {
    margin-bottom: 0;
}

.stats-table th {
    background-color: #D1E4F0;
    color: #2B6282;
    font-weight: 600;
    padding: 1rem;
    border-top: none;
}

.stats-table td {
    padding: 1rem;
    vertical-align: middle;
    color: #1e293b;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #308B91;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.75rem;
}

.seo-badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.btn-send-report {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%) !important;
    border: none;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-send-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
    background: linear-gradient(135deg, #0284c7 0%, #075985 100%) !important;
    color: #ffffff !important;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.user-articles-block {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.user-articles-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.article-group {
    border: 1px solid #7DBBD4;
    border-radius: 0.65rem;
    padding: 0.75rem;
    background: #D1E4F0;
    margin-bottom: 0.75rem;
}

.article-group:last-child {
    margin-bottom: 0;
}

.article-field-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.2rem 0;
}

.article-field-label {
    min-width: 150px;
    font-weight: 600;
    color: #334155;
}

.article-field-value {
    flex: 1;
    color: #1e293b;
    word-break: break-word;
}

/* ===== com_scrnews ===== */
.nav-tabs .nav-link {
    color: #2A747E;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #91308E;
    border-bottom: 3px solid #91308E;
}

.scr-card-header {
    background: #D1E4F0;
    border-bottom: 1px solid #7DBBD4;
    color: #2B6282;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}

.scr-news-topics-dropdown {
    min-width: 250px;
    max-height: 300px;
    overflow-y: auto;
}

.scr-info-compact {
    font-size: 0.9em;
}

.scr-progress-container {
    display: none;
}

.scr-progress-height {
    height: 25px;
}

.scr-progress-bar-initial {
    width: 0%;
}

.scr-progress-log {
    font-size: 0.85em;
    max-height: 120px;
    overflow-y: auto;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    padding: 10px;
    border-radius: 4px;
}

/* ===== Help pages ===== */
.scr-help-container {
    --primary: #308B91;
    --primary-dark: #2B6282;
    --success: #2F8C8E;
    --warning: #91308E;
    --danger: #862D74;
    --card-bg: #fff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    padding: 1.25rem;
    background: #D1E4F0;
}

.scr-help-container .help-hero {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #2B6282 0%, #2F8C8E 60%, #7DBBD4 100%);
    border-radius: 20px;
    color: #fff;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.scr-help-container .help-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.scr-help-container .help-hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.scr-help-container .help-hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.scr-help-container .help-hero .version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scr-help-container .section-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.scr-help-container .section-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.scr-help-container h2 {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #7DBBD4;
}

.scr-help-container h2 .h2-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.scr-help-container h3 {
    font-size: 1rem;
    color: #2B6282;
    margin: 1.1rem 0 0.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.scr-help-container p {
    margin-bottom: 0.6rem;
    color: #2A747E;
    font-size: 0.95rem;
}

.scr-help-container ul.help-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.scr-help-container ul.help-list li {
    padding: 0.4rem 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #2B6282;
    border-radius: 8px;
    transition: background 0.15s;
}

.scr-help-container ul.help-list li:hover {
    background: #D1E4F0;
}

.scr-help-container ul.help-list li .li-icon {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 1rem;
}

.scr-help-container .step-badge {
    background: linear-gradient(135deg, #308B91, #2F8C8E);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.scr-help-container .tip-box {
    background: #D1E4F0;
    border: 1px solid #7DBBD4;
    border-left: 4px solid #308B91;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: #2B6282;
}

.scr-help-container .tip-box strong {
    color: #2A747E;
}

.scr-help-container .warn-box {
    background: #D1E4F0;
    border: 1px solid #AE9CDE;
    border-left: 4px solid #91308E;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: #862D74;
}

.scr-help-container .indicator-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.88rem;
}

.scr-help-container .indicator-table th {
    background: #D1E4F0;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 700;
    color: #2B6282;
    border-bottom: 2px solid #7DBBD4;
}

.scr-help-container .indicator-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #AE9CDE;
    vertical-align: middle;
}

.scr-help-container .indicator-table tr:last-child td {
    border-bottom: none;
}

.scr-help-container .dot-green { color: #2F8C8E; font-size: 1.5rem; }
.scr-help-container .dot-red { color: #862D74; font-size: 1.5rem; }
.scr-help-container .dot-blue { color: #308B91; font-size: 1.5rem; }
.scr-help-container .dot-gray { color: #AE9CDE; font-size: 1.5rem; }
.scr-help-container .workflow {
    counter-reset: workflow-counter;
    padding: 0;
    list-style: none;
}

.scr-help-container .workflow li {
    counter-increment: workflow-counter;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.875rem;
    font-size: 0.92rem;
    color: #2B6282;
}

.scr-help-container .workflow li::before {
    content: counter(workflow-counter);
    background: #308B91;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.scr-help-container .faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.scr-help-container .faq-question {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.1rem;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.scr-help-container .faq-question:hover {
    background: #f1f5f9;
}

.scr-help-container .faq-answer {
    display: none;
    padding: 0.875rem 1.1rem;
    font-size: 0.9rem;
    color: #475569;
    border-top: 1px solid var(--border);
    background: #fff;
}

.scr-help-container .faq-answer.open {
    display: block;
}

.scr-help-container .faq-chevron {
    transition: transform 0.25s;
    font-size: 0.75rem;
}

.scr-help-container .faq-chevron.open {
    transform: rotate(180deg);
}

.scr-help-container .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.scr-help-container .chip {
    background: #D1E4F0;
    color: #2A747E;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.scr-popup-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 40px auto;
    max-width: 800px;
    line-height: 1.7;
    color: #1e293b;
    padding: 0 20px;
    background: #f8fafc;
}

.scr-popup-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.scr-popup-title {
    color: #0f172a;
    border-bottom: 2px solid #2F8C8E;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 2rem;
}

.scr-popup-container p {
    margin-bottom: 1.5em;
}

.scr-popup-container strong {
    font-weight: 700;
    color: #000;
}

.scr-popup-container hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.scr-popup-footer {
    margin-top: 40px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 768px) {
    .scr-news-table-stored colgroup col {
        width: auto !important;
    }

    .scr-news-table-stored {
        font-size: 0.85rem;
    }

    .scr-news-table-stored .btn-sm {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }

    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

button,
a {
    transition: all 0.2s ease;
}

/* HELP STYLES */
.scr-help-container { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.help-hero { background: linear-gradient(135deg, #2F8C8E 0%, #1e5c5e 100%); padding: 2rem; border-radius: 12px; color: white; margin-bottom: 2rem; text-align: center; }
.version-badge { background: rgba(255,255,255,0.2); display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; margin-bottom: 1rem; }
.section-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.section-card.gray-bg { background: #f8fafc; }
.step-badge { background: #fee2e2; color: #991b1b; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; display: inline-block; }
.h2-icon { margin-right: 0.5rem; }
.timeline { position: relative; padding-left: 2rem; margin-top: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-marker { position: absolute; left: -2.3rem; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #2F8C8E; color: white; text-align: center; line-height: 24px; font-size: 0.8rem; font-weight: 700; }
.help-item { background: #fff; border: 1px solid #cbd5e1; padding: 1rem; border-radius: 8px; height: 100%; transition: transform 0.2s; }
.help-item:hover { transform: translateY(-3px); border-color: #2F8C8E; }
.help-list-alt { list-style: none; padding-left: 0; }
.help-list-alt li { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.help-list-alt li::before { content: '→'; position: absolute; left: 0; color: #2F8C8E; }
.code-box { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 6px; font-family: monospace; font-size: 0.9rem; overflow-x: auto; margin-top: 0.5rem; }
.code-box pre { margin: 0; color: #e2e8f0; }
.scr-help-footer { text-align: center; padding: 2rem 0; color: #64748b; font-size: 0.85rem; border-top: 1px solid #e2e8f0; }
.timeline-content h5 { color: #1e293b; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-content p { color: #475569; margin-bottom: 0; }

.help-details { margin-top: 1.5rem; }
.help-detail-row { display: flex; align-items: flex-start; margin-bottom: 1.5rem; background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #2F8C8E; transition: transform 0.2s; }
.help-detail-row:hover { transform: translateX(5px); }
.help-detail-icon { font-size: 1.5rem; margin-right: 1.25rem; min-width: 32px; text-align: center; }
.help-detail-text { color: #334155; font-size: 0.95rem; line-height: 1.5; }
.help-detail-text strong { color: #1e293b; display: block; margin-bottom: 0.25rem; }

.nav-pills .nav-link.active { background-color: #2F8C8E !important; }
.nav-pills .nav-link { color: #2F8C8E; font-weight: 600; border: 1px solid #2F8C8E; margin-right: 0.5rem; }
.nav-pills .nav-link:hover { background-color: rgba(47, 140, 142, 0.1); }

.border-warning { border-left: 6px solid #fbbf24 !important; }
.gray-bg { background-color: #f1f5f9 !important; }

/* Helix/SP Menu Overrides to match SCR color scheme */
#sp-menu ul.sp-menu > li.sp-menu-item > a,
#sp-menu ul.sp-megamenu-parent > li > a,
#sp-menu ul.sp-megamenu-parent > li > span,
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span,
.sp-menu-item .sp-menu-heading, 
.sp-menu-item > a,
.sp-menu-item > span.sp-menu-heading,
span.sp-menu-heading {
    color: #ffffff !important;
    font-weight: 300 !important;
}

#sp-menu ul.sp-menu > li.sp-menu-item:hover > a,
#sp-menu ul.sp-megamenu-parent > li:hover > a,
#sp-menu ul.sp-megamenu-parent > li:hover > span,
.sp-menu-item:hover > .sp-menu-heading,
.sp-menu-item:hover > a {
    color: #D1E4F0 !important;
    text-decoration: none !important;
}

.sp-dropdown-inner {
    background: #ffffff !important;
    border: 1px solid #7DBBD4 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
}

.sp-dropdown-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sp-dropdown-items .sp-menu-item {
    margin: 0 !important;
    width: 100% !important;
}

.sp-dropdown-items .sp-menu-item a {
    display: block !important;
    color: #2B6282 !important;
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.sp-dropdown-items .sp-menu-item a:hover {
    background-color: #f0f7f9 !important;
    color: #1d7989 !important;
    padding-left: 25px !important;
}

.sp-megamenu-parent>li>span {
    color: #ffffff !important;
    font-weight: 300 !important;
}
.d-xl-inline-block {
        display: inline-block !important;
        color: #fff;
        font-size: 18px;
        margin-top: -2px;
}

.sp-megamenu-parent>li>span {
    color: #fff;
}
    .d-xl-inline-block {
        display: inline-block !important;
        color: #fff!important;
        font-size: 18px;
        margin-top: -2px!important;
    }
#sp-menu .fas{
color:#fff!important;
}

.sp-profile-wrapper .sp-profile-dropdown li a {
font-family: 'Arial', sans-serif;
    font-size: 16px;
    text-decoration: none;
    color: #1d7989;
}

#sp-menu ul.sp-menu > li.sp-menu-item > a, #sp-menu ul.sp-megamenu-parent > li > a, #sp-menu ul.sp-megamenu-parent > li > span, .sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span, .sp-menu-item .sp-menu-heading, .sp-menu-item > a, .sp-menu-item > span.sp-menu-heading, span.sp-menu-heading {
      font-weight: 300 !important;
}

.sp-profile-wrapper .sp-profile-dropdown {
    margin-top: 16px !important;
}

/* ===== New Stats Section Layout ===== */
.stats-container-draggable {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-block {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.stats-block.sortable-ghost {
    opacity: 0.4;
    background: #f1f5f9;
}

.stats-block-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-bottom: 1px solid #f1f5f9;
    cursor: grab;
    position: relative;
    user-select: none;
}

.stats-block-header:hover::after {
    content: '⋮⋮';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #cbd5e1;
    font-size: 1.2rem;
}

.stats-block-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.stats-metric-item {
    text-align: center;
    padding: 1.25rem 0.5rem;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1.5px solid #a8cfae; /* Un poco más marcado como se pidió */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}


.stats-metric-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.1);
    border-color: #28a745; /* Verde más vivo al hover */
}



.stats-metric-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.stats-metric-value {
    font-size: 2.5rem;
    font-weight: 850;
    color: #1d7989;
    line-height: 1;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


.stats-metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-accordion-control {
    width: 100%;
    padding: 1rem;
    background: #064e5c; /* Color oscuro solicitado */
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
    color: #ffffff; /* Texto blanco en la barra oscura */
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-accordion-control:hover {
    background: #043d48;
    color: #ffffff;
}


.stats-accordion-control .bi-chevron-down {
    transition: transform 0.3s ease;
}

.stats-accordion-control:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.stats-block-body table {
    font-family: var(--bs-font-sans-serif);
    color: #333;
}

.stats-block-body table tbody td {
    font-weight: 400;
    color: #333;
}

/* Status Badges SI/NO */
.status-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.6rem;
}


.status-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.6rem;
    min-width: 25px;
    text-align: center;
}

.status-badge-yes {
    background: #1d7989; /* Azul temático */
    color: #fff !important;
}

.status-badge-no {
    background: #333; /* Negro */
    color: #fff !important;
}

.status-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

/* GSC Premium Dashboard Styles */
.gsc-premium-header {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.gsc-grid-colors {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1px !important;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.gsc-grid-colors .stats-metric-item {
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.25rem !important;
    position: relative;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gsc-card-clicks { border-bottom: 4px solid #4285f4 !important; }
.gsc-card-impressions { border-bottom: 4px solid #a142f4 !important; }
.gsc-card-ctr { border-bottom: 4px solid #00c39a !important; }
.gsc-card-position { border-bottom: 4px solid #f4b400 !important; }

.gsc-grid-colors .stats-metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    background: none !important;
    padding: 0 !important;
}

.gsc-grid-colors .stats-metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #202124;
    line-height: 1.2;
}

.gsc-chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.stats-diff.text-success { color: #137333 !important; }
.stats-diff.text-danger { color: #c5221f !important; }

/* Acordeones y Listas de Artículos */
.stats-block-body {
    padding: 1.5rem !important;
}

.stats-article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-height: 85vh; /* Tamaño de una pantalla (casi completo) */
    overflow-y: auto;
    padding: 1rem;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px inset #f0f0f0;
}

/* Scrollbar premium para la lista de artículos */
.stats-article-list::-webkit-scrollbar {
    width: 6px;
}
.stats-article-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.stats-article-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.stats-article-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.stats-article-item {
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.stats-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #3b82f6;
}

/* ===== SCR CUSTOM SWITCH (MODERN & ROBUST) ===== */
.scr-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.scr-custom-switch {
    position: relative;
    width: 70px;
    height: 32px;
    flex-shrink: 0;
}

.scr-custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.scr-custom-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ea4335; /* ROJO NO */
    transition: 0.3s;
    border-radius: 34px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.scr-custom-switch input:checked + label {
    background-color: #34a853; /* VERDE SI */
}

/* El círculo (blob) */
.scr-custom-switch .scr-switch-blob {
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 5;
}

.scr-custom-switch input:checked + label .scr-switch-blob {
    transform: translateX(38px);
}

/* Textos SI/NO */
.scr-custom-switch .scr-switch-text-on,
.scr-custom-switch .scr-switch-text-off {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 800;
    color: white;
    pointer-events: none;
    transition: 0.2s;
    text-transform: uppercase;
}

.scr-custom-switch .scr-switch-text-on {
    left: 10px;
    opacity: 0;
}

.scr-custom-switch .scr-switch-text-off {
    right: 10px;
    opacity: 1;
}

.scr-custom-switch input:checked + label .scr-switch-text-on {
    opacity: 1;
}

.scr-custom-switch input:checked + label .scr-switch-text-off {
    opacity: 0;
}

.scr-switch-label-container {
    line-height: 1.2;
}

.scr-switch-label-container label {
    font-size: 1rem;
    margin-bottom: 2px;
    cursor: pointer;
}

