/* ===============================
   JDC SPONTE — SEÇÕES PRÁTICAS
   =============================== */

@media (max-width: 768px) {
    body.jdc-live-sponte {
        background-image: none;
        background-color: #EEEEF5;
        background-attachment: scroll;
    }
}

.jdc-section-divider {
    margin: 1.25rem auto;
}

.jdc-pratica {
    padding: 3.5rem 0;
}

.jdc-pratica .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.jdc-pratica-inner {
    max-width: 960px;
    margin: 0 auto;
}

.jdc-pratica-label {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #083FCF;
    margin-bottom: 0.625rem;
}

.jdc-pratica .jdc-section-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.jdc-pratica .jdc-section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.jdc-pratica .jdc-section-header h2 span {
    color: #FC7D55;
}

.jdc-pratica .jdc-section-header p {
    margin: 0 auto;
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ── Integração: nós CRM × ERP ── */

.jdc-pratica-sys-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 1.25rem;
}

.jdc-pratica-sys-node {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-height: 168px;
}

.jdc-pratica-sys-node.crm {
    border-top: 3px solid #083FCF;
}

.jdc-pratica-sys-node.erp {
    border-top: 3px solid #B073FF;
}

.jdc-pratica-sys-node-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.jdc-pratica-sys-node.crm .jdc-pratica-sys-node-label {
    color: #083FCF;
}

.jdc-pratica-sys-node.erp .jdc-pratica-sys-node-label {
    color: #B073FF;
}

.jdc-pratica-sys-node-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.jdc-pratica-sys-node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.jdc-pratica-tag {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.jdc-pratica-tag.blue {
    background: #e6f1fb;
    color: #0C447C;
}

.jdc-pratica-tag.purple {
    background: #EEEDFE;
    color: #3C3489;
}

.jdc-pratica-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.jdc-pratica-conn-line {
    width: 1px;
    height: 18px;
    background: #e5e7eb;
}

.jdc-pratica-conn-pulse {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #083FCF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.jdc-pratica-conn-pulse::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.5px solid #083FCF;
    opacity: 0.3;
    animation: jdc-pratica-ring 2s ease-out infinite;
}

@keyframes jdc-pratica-ring {
    0% { transform: scale(0.75); opacity: 0.6; }
    100% { transform: scale(1.55); opacity: 0; }
}

.jdc-pratica-packets-hint {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 0.875rem;
}

.jdc-pratica-packets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
}

.jdc-pratica-packet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    background: transparent;
    text-align: left;
    width: 100%;
}

.jdc-pratica-packet i {
    font-size: 1rem;
    flex-shrink: 0;
}

.jdc-pratica-packet.blue {
    background: #e6f1fb;
    color: #0C447C;
    border-color: #B5D4F4;
}

.jdc-pratica-packet.purple {
    background: #EEEDFE;
    color: #3C3489;
    border-color: #CECBF6;
}

.jdc-pratica-packet.orange {
    background: #fff3ed;
    color: #993C1D;
    border-color: #F5C4B3;
}

.jdc-pratica-packet.green {
    background: #EAF3DE;
    color: #27500A;
    border-color: #C0DD97;
}

.jdc-pratica-packet:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jdc-pratica-packet.blue.active-p {
    background: #083FCF;
    color: #ffffff;
    border-color: #083FCF;
}

.jdc-pratica-packet.purple.active-p {
    background: #B073FF;
    color: #ffffff;
    border-color: #B073FF;
}

.jdc-pratica-packet.orange.active-p {
    background: #FC7D55;
    color: #ffffff;
    border-color: #FC7D55;
}

.jdc-pratica-packet.green.active-p {
    background: #639922;
    color: #ffffff;
    border-color: #639922;
}

.jdc-pratica-benefit-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.625rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.jdc-pratica-benefit-panel.hl {
    background: #ffffff;
    border-color: #B5D4F4;
    box-shadow: 0 4px 12px rgba(8, 63, 207, 0.08);
    align-items: flex-start;
}

.jdc-pratica-benefit-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.jdc-pratica-benefit-ph i {
    font-size: 2rem;
    color: #9ca3af;
}

.jdc-pratica-benefit-ph p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

.jdc-pratica-benefit-inner {
    width: 100%;
}

.jdc-pratica-ben-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    background: #ffffff;
}

.jdc-pratica-ben-icon.blue { color: #083FCF; }
.jdc-pratica-ben-icon.purple { color: #B073FF; }
.jdc-pratica-ben-icon.orange { color: #FC7D55; }
.jdc-pratica-ben-icon.green { color: #639922; }

.jdc-pratica-ben-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0C447C;
    margin-bottom: 0.4rem;
}

.jdc-pratica-ben-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0;
}

.jdc-pratica-ben-metric {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(8, 63, 207, 0.12);
}

.jdc-pratica-metric-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #083FCF;
    white-space: nowrap;
}

.jdc-pratica-metric-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.4;
}

/* ── Operação: antes × depois ── */

.jdc-pratica-scen-list {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.jdc-pratica-scen-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.18s ease;
    position: relative;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
}

.jdc-pratica-scen-tab:last-child {
    border-bottom: none;
}

.jdc-pratica-scen-tab:hover {
    background: #f3f6ff;
}

.jdc-pratica-scen-tab.active {
    background: #e6f1fb;
}

.jdc-pratica-scen-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.18s ease;
}

.jdc-pratica-scen-tab.active .jdc-pratica-scen-accent {
    background: #083FCF;
}

.jdc-pratica-scen-ico {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f9f8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.jdc-pratica-scen-tab.active .jdc-pratica-scen-ico {
    background: #ffffff;
}

.jdc-pratica-scen-ttl {
    font-family: 'Outfit', sans-serif;
    font-size: 0.975rem;
    font-weight: 700;
    color: #1F2937;
}

.jdc-pratica-scen-tab.active .jdc-pratica-scen-ttl {
    color: #0C447C;
}

.jdc-pratica-scen-s {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8125rem;
    color: #6B7280;
}

.jdc-pratica-scenario-detail {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.625rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.jdc-pratica-detail-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid #e5e7eb;
}

.jdc-pratica-detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #e6f1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #083FCF;
    flex-shrink: 0;
}

.jdc-pratica-detail-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 0.2rem;
}

.jdc-pratica-detail-header p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
}

.jdc-pratica-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.jdc-pratica-ba-card {
    border-radius: 10px;
    padding: 1.25rem 1.375rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.jdc-pratica-ba-card.before {
    background: #ffffff;
    border-color: #e5e7eb;
}

.jdc-pratica-ba-card.after {
    background: #EAF3DE;
    border-color: #C0DD97;
}

.jdc-pratica-ba-lbl {
    font-family: 'Nunito', sans-serif;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.jdc-pratica-ba-card.before .jdc-pratica-ba-lbl {
    color: #6B7280;
}

.jdc-pratica-ba-card.after .jdc-pratica-ba-lbl {
    color: #27500A;
}

.jdc-pratica-ba-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.jdc-pratica-ba-card.before .jdc-pratica-ba-item {
    color: #6B7280;
}

.jdc-pratica-ba-card.after .jdc-pratica-ba-item {
    color: #27500A;
    border-bottom-color: rgba(192, 221, 151, 0.85);
}

.jdc-pratica-ba-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jdc-pratica-ba-item i {
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.jdc-pratica-ba-card.before .jdc-pratica-ba-item i {
    color: #E24B4A;
}

.jdc-pratica-ba-card.after .jdc-pratica-ba-item i {
    color: #639922;
}

@media (max-width: 768px) {
    .jdc-pratica {
        padding: 3rem 0;
    }

    .jdc-pratica .jdc-section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .jdc-pratica-sys-row {
        grid-template-columns: 1fr 48px 1fr;
    }

    .jdc-pratica-sys-node {
        padding: 1.25rem 1rem;
        min-height: auto;
    }

    .jdc-pratica-sys-node-name {
        font-size: 1rem;
    }

    .jdc-pratica-conn-line {
        height: 12px;
    }

    .jdc-pratica-conn-pulse {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .jdc-pratica-ba-grid {
        grid-template-columns: 1fr;
    }

    .jdc-pratica .jdc-section-header {
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 400px) {
    .jdc-pratica-sys-node-name {
        font-size: 0.8125rem;
    }

    .jdc-pratica-tag {
        font-size: 0.625rem;
    }

    .jdc-pratica-packet {
        font-size: 0.75rem;
    }
}
