/* cancel-policy.html - SVG 강제취소 흐름도 스타일 */
.cancel-process-advanced {
    margin-top: 10px;
}

.flow-container-v2 {
    background: #f8fafc;
    border-radius: 20px;
    padding: 0 20px;
    /* 상하 패딩 제거 */
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    max-height: 500px;
    /* 다이어그램 확대를 위해 높이 제한 완화 */
}

.flow-svg {
    min-width: 800px;
    width: 100%;
    height: 380px;
    /* 다이어그램 자체의 크기를 확대 */
    display: block;
}

.path-line {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 1.5;
    stroke-dasharray: 4, 4;
    transition: stroke 0.3s;
}

.node-item {
    cursor: pointer;
}

.node-item:hover .node-shape {
    stroke: var(--color-primary);
    stroke-width: 2;
}

.node-item.active .node-shape {
    stroke: var(--color-primary);
    stroke-width: 3;
    stroke-dasharray: 0;
    filter: drop-shadow(0 0 10px rgba(0, 80, 160, 0.3));
}

.node-item.active .node-text {
    fill: var(--color-primary);
    font-weight: 800;
}

.node-shape {
    fill: white;
    stroke: #cbd5e1;
    stroke-width: 1.5;
    filter: url(#nodeShadow);
    transition: all 0.3s;
}

.node-shape.start {
    fill: #eff6ff;
    stroke: #3b82f6;
}

.node-shape.decision {
    fill: #fffbeb;
    stroke: #f59e0b;
}

.node-shape.grace {
    fill: #f0fdf4;
    stroke: #22c55e;
}

.node-shape.danger {
    fill: #fef2f2;
    stroke: #ef4444;
}

.node-shape.alt {
    fill: #f5f3ff;
    stroke: #8b5cf6;
}

.node-shape.success {
    fill: #ecfdf5;
    stroke: #10b981;
}

.node-shape.neutral {
    fill: #f8fafc;
    stroke: #94a3b8;
}

.node-text {
    fill: #475569;
    font-size: 14px;
    /* 글자 크기 확대 및 통일 */
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
    transition: fill 0.3s;
}


/* 패널 스타일 고도안 */
.advanced-notice-panel {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 180px;
}

.panel-header {
    background: var(--color-primary);
    color: white;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-indicator {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 800;
}

.panel-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.panel-body {
    padding: 25px;
}

.panel-body p {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 600;
}

.custom-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.custom-list li {
    position: relative;
    padding: 12px 15px 12px 35px;
    font-size: 0.9rem;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    color: var(--color-primary);
    font-weight: 900;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .custom-list {
        grid-template-columns: 1fr;
    }
}

/* cancel-policy.html - 가로형 자진취소 프로세스 레이아웃 */
.proc-step-container {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-top: 20px;
}

.proc-step {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.proc-header {
    background: #f8fafc;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
}

.proc-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(0, 80, 160, 0.08);
    padding: 2px 8px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 5px;
}

.proc-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
}

.proc-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.proc-left,
.proc-right {
    flex: 1;
}

.proc-left h5 {
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--color-primary);
}

.proc-left ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.proc-left li {
    margin-bottom: 6px;
}

.proc-right h5 {
    font-size: 0.82rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #DC2626;
}

.proc-right p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.proc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--border-light);
}

/* Forced Flow Styling */
.forced-flow-container {
    background: #FDFEFF;
    border: 1px solid #EDEDF5;
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
}

.flow-row {
    display: flex;
    align-items: center;
}

.flow-node {
    width: 220px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #E2E8F0;
    background: white;
    position: relative;
}

.flow-node.highlight {
    border-color: var(--color-primary);
    background: rgba(0, 80, 160, 0.02);
}

.flow-node.danger {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.02);
}

.flow-node.warning {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.02);
}

.flow-node.info {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.02);
}

.flow-node.success {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.02);
}

.node-step {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #334155;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.flow-node h4 {
    margin: 0 0 8px 0;
    font-size: 0.88rem;
}

.flow-node p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-medium);
    line-height: 1.4;
}

.flow-connector {
    flex: 1;
    height: 2px;
    background: #E2E8F0;
    position: relative;
}

.flow-connector.long {
    min-width: 50px;
}

.flow-decision {
    position: relative;
    width: 40px;
}

.logic-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748B;
    white-space: nowrap;
}

.decision-paths {
    height: 100px;
    border-left: 2px solid #E2E8F0;
    border-radius: 4px 0 0 4px;
    margin-left: 20px;
    position: relative;
}

.path-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #E2E8F0;
    right: -30px;
}

.path-up {
    top: 0;
}

.path-down {
    bottom: 0;
}

.flow-branches {
    margin-top: -2px;
}

.branch-item {
    display: flex;
    align-items: center;
    padding-left: 60px;
    height: 120px;
    position: relative;
}

.branch-top::before {
    content: "";
    position: absolute;
    left: 50px;
    top: 50%;
    width: 2px;
    height: 50%;
    background: #E2E8F0;
}

.branch-bottom::before {
    content: "";
    position: absolute;
    left: 50px;
    bottom: 50%;
    width: 2px;
    height: 50%;
    background: #E2E8F0;
}

.final-decisions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 30px;
}

.flow-node.mini {
    width: 140px;
    padding: 10px;
}

.btn-dist-info {
    padding: 12px 24px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dist-info:hover {
    background: #E2E8F0;
}

@media (max-width: 768px) {
    .proc-step-container {
        flex-direction: column;
    }

    .proc-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .forced-flow-container {
        overflow-x: auto;
    }

    .proc-body {
        flex-direction: row;
    }
}
