:root {

--color-paid: #10b981; /* 已付款綠色 */
--color-pending: #f59e0b; /* 待付款黃色 */
--color-inactive: #6b7280; /* 已下架/非活躍灰色 */
--color-completed: #4299e1; /* 已完成藍色 */
/* 新增進度條顏色 */
--progress-background: #e9ecef;
--progress-fill: #14B8A6; /* 略微深一點的青綠 */
--progress-label-bg: #4F46E5; /* 藍紫色背景 */
}

/* 狀態徽章 */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.status-0 { /* 已下架 */
background: rgba(107,114,128,.1);
color: var(--color-inactive);
} 

.status-badge.status-1 { /* 已上架 */
background: rgba(34,197,94,.1);
color: #16a34a;
}

.status-badge.status-2 { /* 已完成 */
background: rgba(66,153,225,.1);
color: var(--color-completed);
}

.status-badge.status-9 { /* 已取消 */
background: rgba(239, 68, 68, .1);
color: var(--red);
}

.info-label {
    color: var(--gray-500);
    font-weight: 400;
    /* font-size: 12px; */
    display: block;
}

/* 進度條樣式容器 */
.session-progress-section {
    padding-top: 10px;
    border-top: 1px dashed var(--gray-200);
    display: flex;
    flex-direction: column;
}

/* 進度條頭部 - 結合人數圖標和百分比 */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-icon-group {
    font-size: 16px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
}

.progress-percentage {
    background: var(--progress-label-bg);
    color: white;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 進度條本體 */
.progress-bar-container {
    height: 8px;
    background-color: var(--progress-background);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--progress-fill);
    transition: width 0.4s ease;
}

/* 報名計數行 */
.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.progress-footer span:last-child {
    color: var(--red); /* 剩餘名額使用紅色強調 */
}


/* 原始結構的容器 */
.order-info-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 左側活動資訊 (已還原) */
.session-details-box {
flex: 1;
min-width: 280px;
background: var(--gray-100);
border-radius: 12px;
padding: 12px;
}


.info-row {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
margin-bottom: 8px;
}

.info-label {
color: var(--gray-600);
min-width: 100px;
font-weight: 500;
}

.info-value {
color: var(--gray-800);
font-weight: 500;
text-align: right;
}

/* 右側費用摘要 (活動費用) - 調整為活動主色 (已還原) */
.session-summary-box {
    flex: 40% 0 0;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-green)); 
    border-radius: 8px;
    padding: 12px;
    color: white;
    height: auto;
}

.level-selection {
    display: flex;        /* 啟用 Flexbox 佈局 */
    flex-wrap: wrap;      /* **關鍵步驟：允許子元素在空間不足時換行** */
    gap: 4px;             /* 設定子元素之間（水平和垂直）的間隔為 2px */
    /* 可選：讓按鈕從左上角開始對齊 */
    justify-content: flex-start;
    align-items: flex-start;
}

.promo-row { /* 調整未生效的樣式，使文字可讀 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 4px;
    /* padding: 3px 0; */
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 4px 8px;
    color: rgba(255, 255, 255, 0.7); /* 使非活躍價格可讀 */
}

.promo-row.active {
    background: rgba(255,255,255,0.9); /* 活躍時背景亮一點 */
    /* font-weight: 600; */
    color: var(--gray-800); /* 活躍時使用深色文字，確保對比 */
    font-size: 14px;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.promo-row.active .summary-label {
    color: var(--gray-800); /* 確保標籤也是深色的 */
}

.promo-row .summary-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
margin-bottom: 4px;
}

.summary-label {
font-size: 14px;
}

.summary-value {
font-weight: 600;
font-size: 14px;
}

.summary-divider {
border-top: 2px solid rgba(255,255,255,0.3);
margin: 6px 0;
}

.summary-divider.strong {
border-top: 3px solid rgba(255,255,255,0.5);
margin: 10px 0;
}

.summary-total {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 20px;
}

.summary-total .summary-value {
font-size: 16px;
font-weight: 700;
}

/* 報名人員列表 (沿用) */
.registration-section {
margin-top: 5px;
/* padding: 10px; */
border-top: 1px dashed var(--gray-200);
}

.registration-title {
font-size: 14px;
font-weight: 600;
color: var(--gray-700);
margin-bottom: 12px;
}

.registration-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 10px;
background: white;
border: 1px solid var(--gray-200);
border-radius: 8px;
}

.registration-info {
display: flex;
align-items: center;
gap: 10px;
flex-grow: 1; 
min-width: 0;
}

.registration-avatar {
width: 28px;
height: 28px;
border-radius: 50%;
background: var(--light-teal);
color: var(--color-activity);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
flex-shrink: 0;
}

.registration-details {
display: flex;
flex-direction: column;
min-width: 0;
}

.registration-name {
font-weight: 600;
color: var(--gray-800);
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.registration-meta {
font-size: 12px;
color: var(--gray-600);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}


/* 報名項目操作區塊 */
.registration-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* 場地選擇卡片 (保持不變) */
.field-select-item {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 15px; 
    display: flex;
    align-items: center; 
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    margin-bottom: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
    position: relative;
}

.field-select-item:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.field-select-item.selected {
    border-color: var(--primary-green);
    background: var(--light-teal);
    box-shadow: 0 0 0 4px rgba(0, 163, 156, 0.1);
    transform: translateY(0);
}

.field-info {
    display: flex;
    align-items: center; 
    min-width: 0;
    flex-grow: 1;
    gap: 20px; 
}

.field-primary-details {
    flex-shrink: 0;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid var(--gray-300);
    min-width: 160px; 
}

.field-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green); 
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-time {
    font-size: 16px;
    color: var(--gray-700);
    font-weight: 600;
    margin-top: 4px;
    display: flex; 
    align-items: center;
    gap: 5px; 
}

.field-secondary-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 4px;
    min-width: 0; 
    overflow: hidden; 
}


.field-location { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.selection-indicator {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--gray-400);
    background: white;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-select-item.selected .selection-indicator {
    border-color: var(--primary-green);
    background: var(--primary-green);
}

.field-select-item.selected .selection-indicator::after {
    content: "\F26E"; /* bi-check 的 Unicode */
    font-family: "bootstrap-icons";
    font-size: 16px;
    color: white;
    line-height: 1;
}

.field-selection-area {
    /* padding: 15px; */
}

.selection-instruction {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid var(--primary-green);
}


/* Modal Footer */
.modal-footer {
background: white;
justify-content: center;
border-top: 1px solid var(--gray-200);
gap: 12px;
flex-shrink: 0; 
}




/* 響應式設計 */
@media (max-width: 768px) {


.modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
}

.modal-content {
    height: 100%;
    max-height: none;
}

.field-info {
    flex-direction: column; 
    align-items: flex-start;
    gap: 10px; 
}

.field-primary-details {
    min-width: auto;
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--gray-200); 
    padding-bottom: 8px;
    width: 100%; 
    text-align: left;
}

.field-secondary-details {
    min-width: auto;
    padding-left: 0; 
    border-left: none; 
    margin-top: -4px;
    width: 100%; 
    overflow: hidden; 
}

.field-select-item {
    padding-right: 50px; 
}

.selection-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}


}

