/* ========== Assignment Resale 特定樣式 ========== */

/* 複製共用樣式中沒有的特殊佈局 */
.assignment-page {
    width: 100%;
    max-width: 1440px;
}

    .assignment-page .block {
        max-width: 1320px;
    }

.assignment-form .main {
    margin: 36px 56px 56px;
}

/* 金額輸入特殊樣式 */
.money-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.money-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.money-label {
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.money-digit {
    width: 36px !important;
    height: 36px;
    text-align: center;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
}

.money-row span {
    font-size: 14px;
    color: #666;
}

/* 執照輸入 */
.permit-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.permit-inputs input {
    width: auto;
}

/* 買賣標的 */
.target-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* 針對 target-inputs：只對非 radio/checkbox 的 input 設定寬度 */
.target-inputs input:not([type="radio"]):not([type="checkbox"]) {
    width: 80px;
}

.target-inputs .choice-row {
    gap: 12px;
}

/* 理由選項 */
.reason-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reason-option {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--gray-tint);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

    .reason-option:hover {
        border-color: var(--primary-tint);
        background: #f8f9fa;
    }

    .reason-option input[type="radio"] {
        margin-top: 4px;
        flex-shrink: 0;
    }

        .reason-option input[type="radio"]:checked + span {
            color: var(--primary-dark);
        }

    .reason-option span {
        flex: 1;
        line-height: 1.6;
    }

/* 條件面板 */
.conditional-panel {
    display: none;
    padding: 20px;
    border-top: 1px solid var(--gray-tint);
}

    .conditional-panel.is-active {
        display: block;
    }

.panel-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

/* 申請人名冊特殊樣式 */
.roster-container {
    margin-top: 20px;
}

.roster-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #007bff;
}

.roster-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.btn-remove-roster {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-remove-roster:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

.roster-note {
    margin-top: 15px;
    padding: 14px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    font-size: 14px;
}

    .roster-note ul {
        margin: 8px 0;
        padding-left: 24px;
    }

    .roster-note li {
        margin: 4px 0;
    }

/* 響應式調整 */
@media (max-width: 900px) {
    .assignment-form .main {
        margin: 24px 24px 40px;
    }

    .money-section {
        grid-template-columns: 1fr;
    }

    .permit-inputs,
    .target-inputs {
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .assignment-form .main {
        margin: 18px 14px 30px;
    }

    .money-digit {
        width: 32px !important;
        height: 32px;
        font-size: 16px;
    }

    .permit-inputs,
    .target-inputs {
        gap: 4px;
    }
}
