
  /* ★ 탭 UI 스타일 */
    .tab-menu { display: flex; gap: 32px; border-bottom: 2px solid #e2e8f0; margin-bottom: 24px; padding: 0 8px; overflow-x: auto; white-space: nowrap; }
    .tab-btn { background: none; border: none; font-size: 16px; font-weight: 700; color: #64748b; padding: 12px 4px; cursor: pointer; position: relative; }
    .tab-btn:hover { color: #1e293b; }
    .tab-btn.active { color: #b11b2b; }

    
    .tab-content { display: none; }
    .tab-content.active { display: block; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

	/* 상세 헤드타이틀 */
   .page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
    .page-title-area { display: flex; align-items: center; gap: 12px; }
    .btn-back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 16px; font-weight: 800; color: #333; cursor: pointer; text-decoration: none; }
    .btn-back:hover { background: #f1f5f9; }
	.page-title{margin-bottom:0px;}


	/* 상단 요약 바 */
    .summary-bar { background: #fff; border: 1px solid #e0e4ec; border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 12px rgba(0,0,0,0.02); margin-bottom: 16px; width:100%;}
    .summary-left { display: flex; align-items: center; gap: 16px; }
    .status-badge { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #3730a3; background: #e0e7ff; white-space: nowrap; }
    .summary-title-wrap { display: flex; flex-direction: column; gap: 4px; }
    .summary-code { font-size: 13px; font-weight: 700; color: #888; }
    .summary-title { font-size: 20px; font-weight: 800; color: #111; }
    .summary-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
	.summary-right .btn{font-size:14px;height:40px;padding:0px 25px;}
  
  .option-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 14px; }
    .option-table th { background: #f1f5f9; color: #475569; font-weight: 700; padding: 14px 12px; border-top: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; text-align: left; }
    .option-table th.center { text-align: center; }
    .option-table th.right { text-align: right; }
    .option-group { border-bottom: 2px solid #e2e8f0; }
    .main-row td { padding: 16px 12px; vertical-align: middle; font-weight: 600; color: #111; border-bottom: none; }
    .main-row .opt-name { font-size: 15px; font-weight: 800; color: #b11b2b; }
    .main-row .mapped-item { font-size: 13px; color: #64748b; font-weight: 500; background: #f8fafc; padding: 4px 8px; border-radius: 4px; display: inline-block; }
    .sub-row td { padding: 0 12px 20px 12px; border-top: none; }
    
    .detail-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: stretch; gap: 20px; }
    .detail-cost { display: flex; gap: 20px; flex: 5; border-right: 1px dashed #cbd5e1; padding-right: 20px; }
    .detail-calc { display: flex; gap: 20px; flex: 3; padding: 0 10px; }
    .detail-profit { display: flex; align-items: center; flex-shrink: 0; justify-content: flex-end; }
    
    .data-col { display: flex; flex-direction: column; gap: 6px; flex: 1; }
    .data-label { font-size: 12px; font-weight: 700; color: #64748b; white-space: nowrap; }
    .data-val { font-size: 14px; font-weight: 600; color: #333; white-space: nowrap; }
    .data-val.minus { color: #dc2626; margin-top: 8px; }
    .data-val.primary { color: #1d4ed8; font-weight: 800; font-size: 15px; }
    
    .profit-highlight { background: #eef2ff; padding: 12px 20px; border-radius: 8px; text-align: right; min-width: 160px; border: 1px solid #c7d2fe; }
    .profit-highlight .p-label { font-size: 12px; font-weight: 800; color: #4f46e5; }
    .profit-highlight .p-val { font-size: 18px; font-weight: 900; color: #3730a3; margin-top: 4px; }
    .profit-highlight .p-rate { font-size: 13px; font-weight: 800; color: #ef4444; margin-top: 2px; }

    /* 의견 및 특이사항 */
    .timeline-wrap { display: flex; flex-direction: column; gap: 16px; }
    .comment-item { display: flex; gap: 16px; background: #fcfcfd; padding: 16px; border: 1px solid #eef0f3; border-radius: 8px; }
    .comment-avatar { width: 42px; height: 42px; border-radius: 50%; background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid #e2e8f0; }
    .comment-avatar svg { width: 22px; height: 22px; }
    .comment-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }
    .comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .comment-author { font-size: 14px; font-weight: 700; color: #222; }
    .comment-time { font-size: 12px; color: #888; }
    .comment-text { font-size: 14px; color: #444; line-height: 1.5; }
    .comment-input-area { display: flex; gap: 12px; margin-top: 12px; }
    .comment-input-area textarea { flex: 1; height: 60px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; resize: none; font-size: 14px; outline: none; }
    .comment-input-area textarea:focus { border-color: #b11b2b; }
    .btn-submit-comment { width: 80px; background: #333; color: #fff; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: background 0.15s ease; }
    .btn-submit-comment:hover { background: #111; }

	  /* ★ 탭 UI 스타일 */
    .tab-menu { display: flex; gap: 32px; border-bottom: 2px solid #e2e8f0; margin-bottom: 24px; padding: 0 8px; overflow-x: auto; white-space: nowrap; }
    .tab-btn { background: none; border: none; font-size: 16px; font-weight: 700; color: #64748b; padding: 12px 4px; cursor: pointer; position: relative; }
    .tab-btn:hover { color: #1e293b; }
    .tab-btn.active { color: #b11b2b; }
    .tab-btn.active::after { content: ''; position: absolute; bottom: 0px; left: 0; right: 0; height: 4px; background: #b11b2b; border-radius: 3px 3px 0 0; }
    
    .tab-content { display: none; }
    .tab-content.active { display: block; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }


    /* ==========================================================
       ★ 탭 2 (Actual) 전용 스타일 - 읽기 전용 결과 그리드
       ========================================================== */
    .summary-dash { display: flex; gap: 20px; margin-bottom: 24px; }
    .summary-card { flex: 1; background: #f8fafc; border-radius: 12px; padding: 24px; text-align: center; border: 1px solid #e2e8f0; }
    .summary-card.highlight { background: #eef2ff; border-color: #c7d2fe; }
    .s-title { font-size: 16px; font-weight: 700; color: #64748b; margin-bottom: 8px; }
    .summary-card.highlight .s-title { color: #4f46e5; }
    .s-val { font-size: 26px; font-weight: 900; color: #1e293b; }
    .s-val.blue { color: #1d4ed8; }
    .s-val.red { color: #dc2626; }
    .s-sub { font-size: 13px; font-weight: 600; color: #888; margin-top: 6px; }

    .result-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 13px; }
    .result-table th { background: #f1f5f9; color: #475569; font-weight: 700; padding: 12px; border: 1px solid #cbd5e1; text-align: center; white-space: nowrap; }
    .result-table td { padding: 12px; border: 1px solid #e2e8f0; vertical-align: middle; text-align: right; font-weight: 600; color: #222; background: #fff; }
    .result-table td.left { text-align: left; }
    .result-table td.center { text-align: center; }
    
    /* 결과 강조 표시 */
    .result-table td.profit-col { color: #1d4ed8; font-weight: 800; background: #f8fafc; }
    .result-table td.margin-col { color: #b11b2b; font-weight: 800; }
    .result-table tr.sum-row td { background: #fef2f2 !important; color: #b11b2b; font-weight: 800; border-top: 2px solid #fca5a5; }

    /* 리뷰 및 첨부파일 레이아웃 (읽기 전용) */
    .review-layout { display: flex; gap: 24px; align-items: stretch; }
    .file-download-area { border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; background: #f8fafc; margin-bottom: 12px; transition: background 0.2s; }
    .file-download-area:hover { background: #f1f5f9; }
    .file-name { font-size: 14px; font-weight: 600; color: #1d4ed8; display: flex; align-items: center; gap: 8px; word-break: break-all; }
    .review-box { width: 100%; min-height: 100px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #fdfdfe; color: #444; line-height: 1.6; }

    /* 하단 플로팅 액션 바 */
    .bottom-action-bar { position: fixed; bottom: 0; left: 260px; right: 0; background: #fff; border-top: 1px solid #e2e8f0; padding: 16px 32px; display: flex; justify-content: flex-end; gap: 12px; box-shadow: 0 -4px 12px rgba(0,0,0,0.05); z-index: 100; transition: left 0.3s ease; }
	.bottom-action-bar.bejw{justify-content: space-between; }
	.bottom-action_text{display: flex; align-items: center;  justify-content: flex-start; gap: 12px;font-size:17px;font-weight:600; }
	.action_bar_btnwrap{display: flex; align-items: center;  justify-content: flex-end; gap: 12px; }

    .form-row { display: flex; gap: 24px; margin-bottom: 20px; }
    .form-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
    .form-label { font-size: 14px; font-weight: 700; color: #333; }
    .form-label.req::after { content: "*"; color: #b11b2b; margin-left: 4px; }
    .form-input { height: 42px; padding: 0 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; outline: none; 
	transition: border-color 0.2s; background: #fff; }
    .form-input:focus { border-color: #b11b2b; }
    .form-input[readonly] { background: #f8fafc; color: #64748b; cursor: not-allowed; border-color: #e2e8f0; }

  /* 토글(라디오) 컨트롤 */
    .radio-group { display: flex; gap: 24px; margin-bottom: 24px; padding: 16px 20px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
    .radio-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #111; cursor: pointer; }
    .radio-label input[type="radio"] { width: 18px; height: 18px; cursor: pointer; accent-color: #b11b2b; }

    /* 전환 영역 애니메이션 */
    .toggle-section { display: none; animation: fadeIn 0.3s; }
    .toggle-section.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

    /* 임베드형 브랜드 리스트 UI */
    .brand-list-container { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; overflow: hidden; margin-top: 4px; }
    .brand-list-header { display: flex; background: #f1f5f9; padding: 10px 16px; border-bottom: 1px solid #e2e8f0; font-size: 13px; 
	font-weight: 700; color: #475569; }
    .brand-list-box { max-height: 200px; overflow-y: auto; }
    .list-item { display: flex; padding: 5px 16px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: all 0.2s; font-size: 14px; 
	align-items: center; }
    .list-item:hover { background: #f8fafc; }
    .list-item:last-child { border-bottom: none; }
    .list-item .l-code { width: 120px; color: #64748b; font-weight: 600; font-family: monospace; font-size: 13px; }
    .list-item .l-name { flex: 1; color: #111; font-weight: 700; }
    
    /* 선택된 결과 표시 박스 */
    .result-box { margin-top: 16px; padding: 16px; background: #fef2f2; border: 1px dashed #fca5a5; border-radius: 8px; 
	display: flex; align-items: center; gap: 12px; transition: all 0.3s; }
    .result-box.empty { background: #f8fafc; border: 1px dashed #cbd5e1; }
    .result-box.empty .result-label { color: #64748b; }

	section.content .panel.last_panel1{margin-bottom:50px;}
	.select_ativebox_t{width:100px;text-align:center;}
	.del_btnwrap_t{width:100px;text-align:center;}
	.select_ativebox{width:120px;text-align:center;}
	.del_btnwrap{width:70px;text-align:center;}

	.select_ativebox .search-select{height:28px;}
	.btn.search_btn{height:42px;padding:0px 35px;background:#a90000;}
	.btn.search_btn:hover{background:#810404;}
	.del_btnwrap .del_btn{background:none;border:none;color:var(--color_point);font-weight:600;font-size: 13px;  font-weight: 700; cursor: pointer; transition: 0.15s;}
	.del_btnwrap .del_btn:hover { background: #dc2626; color: #fff;  }
	.bule_boxinfo{padding: 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; margin-top: 16px; display: flex; gap: 12px; align-items: center;}
	.bule_boxinfo span{font-size: 20px;}
	.bule_boxinfo .blue_info{font-size: 13px; color: #1e40af; font-weight: 600; line-height: 1.5;}


